:root {
  color-scheme: light dark;
  --background: #f4f4f1;
  --surface: #ffffff;
  --text: #171715;
  --muted: #71716b;
  --line: #d9d9d3;
  --shadow: 0 20px 55px rgb(20 20 16 / 6%);
}

* { box-sizing: border-box; }

html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
}

main,
footer {
  width: min(100% - 40px, 920px);
  margin-inline: auto;
}

main { padding: clamp(64px, 12vw, 136px) 0 72px; }

.intro { max-width: 700px; }

.eyebrow,
.project-kind {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(3.8rem, 12vw, 8rem);
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.6;
}

section { margin-top: clamp(80px, 14vw, 140px); }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 { margin: 0; font-size: 0.9rem; letter-spacing: 0.04em; }
.section-heading span { color: var(--muted); font-size: 0.75rem; }

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  margin-top: 20px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-card h3 {
  margin: 18px 0 10px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  letter-spacing: -0.04em;
}

.project-card p:last-child {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-index { color: var(--muted); font-size: 0.78rem; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 520px) {
  main,
  footer { width: min(100% - 28px, 920px); }
  main { padding-top: 54px; }
  .project-card { border-radius: 18px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #11110f;
    --surface: #1a1a17;
    --text: #f2f2ed;
    --muted: #9a9a91;
    --line: #30302b;
    --shadow: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .intro,
  section { animation: enter 500ms ease-out both; }
  section { animation-delay: 80ms; }
  @keyframes enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}
