@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: #ffffff;
  color: #000000;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

header {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  padding: 2rem 2rem 0 2rem;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #000000;
}

.brand.is-home {
  cursor: default;
}

nav a {
  font-size: 0.9rem;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  margin-left: 1.5rem;
}

nav a.active {
  text-decoration: underline;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem 1.5rem;
}

main.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 1rem 1.5rem;
}

.portfolio-link {
  margin-top: 1rem;
}

.portfolio-link a {
  color: #000000;
}

.accordion {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem 1.5rem;
}

.accordion-item {
  border-top: 1px solid #000000;
}

.accordion-item:last-child {
  border-bottom: 1px solid #000000;
}

.accordion-trigger {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000000;
  cursor: pointer;
  padding: 1rem 0;
}

.accordion-panel {
  padding: 0 0 2rem 0;
}

.home-name {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: default;
  user-select: none;
  max-width: 720px;
}

.home-typed-line {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.6;
  min-height: 3.6rem;
  width: 100%;
  margin: 2rem auto 0 auto;
  text-align: left;
}

.home-typed-cursor {
  display: inline-block;
  margin-left: 0.1em;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.project-list, .section-list {
  list-style: none;
}

.project-list li, .section-list li {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.project-list a {
  color: #000000;
}

.section-heading {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 2.5rem 0 1rem 0;
}

.section-heading:first-of-type {
  margin-top: 0;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.placeholder {
  font-size: 0.95rem;
  color: #000000;
  font-weight: 300;
}

.spec-table {
  display: grid;
  grid-template-columns: 90px 1fr;
  row-gap: 0.4rem;
  column-gap: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.spec-table dt {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.spec-table dd {
  font-weight: 300;
  margin: 0;
}

@media (max-width: 600px) {

  header {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem 0 1.5rem;
  }

  nav {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
  }

  nav a {
    margin-left: 0;
  }

  .home-name {
    font-size: 2rem;
  }

  .home-typed-line {
    font-size: 1rem;
    min-height: 5.4rem;
  }

  .spec-table {
    grid-template-columns: 1fr;
    row-gap: 0.2rem;
  }

  .spec-table dd {
    margin-bottom: 0.6rem;
  }
}
