:root {
  color-scheme: dark;
  --background: #000000;
  --text: #ffffff;
  --muted: #8c8c8c;
  --subtle: #5f5f5f;
  --line: #292929;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--background);
}

body {
  min-width: 20rem;
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  font: inherit;
}

.projects-shell {
  width: min(100%, 100rem);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  display: flex;
  min-height: clamp(5rem, 9vw, 8rem);
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  color: var(--text);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.intro {
  padding: clamp(4.5rem, 10vw, 10rem) 0 clamp(3.5rem, 7vw, 7rem);
}

.intro h1 {
  margin: 0;
  font-size: clamp(5rem, 13vw, 13rem);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.085em;
}

.intro + .project-group {
  padding-top: 0;
}

.project-group {
  padding-top: clamp(4.5rem, 8vw, 8rem);
}

.project-list {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-row {
  display: grid;
  min-height: 10.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: clamp(3.3rem, 7vw, 6rem) minmax(0, 1fr);
  gap: clamp(0.75rem, 2.5vw, 2.5rem);
  align-items: start;
}

.project-row:last-child {
  border-bottom: 0;
}

.project-number {
  padding-top: 0.25rem;
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.project-copy {
  min-width: 0;
}

.project-copy h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.project-copy h2 a {
  color: inherit;
  text-decoration: none;
}

.project-copy h2 a:hover,
.project-copy h2 a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.project-copy > p {
  max-width: 54rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.page-footer {
  display: flex;
  padding: clamp(5rem, 10vw, 10rem) 0 clamp(2.5rem, 5vw, 5rem);
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
}

.page-footer p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.page-footer a {
  color: var(--text);
  font-size: 0.9rem;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

@media (max-width: 48rem) {
  .intro {
    padding-top: 4.5rem;
  }

  .intro h1 {
    font-size: clamp(4.6rem, 24vw, 8rem);
    line-height: 0.82;
  }

  .project-row {
    min-height: 10rem;
    grid-template-columns: 2.7rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .page-footer {
    align-items: center;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 28rem) {
  .project-row {
    grid-template-columns: 2.2rem minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
