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

:root {
  --paper: #f5f5f1;
  --ink: #171717;
  --muted: #71716d;
  --line: #d7d7d1;
  --soft: #ecece7;
  --accent: #3157d5;
  --max: 1080px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.nav {
  width: min(calc(100% - 48px), var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.brand {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  color: var(--muted);
  text-decoration: none;
  padding: 7px 0 5px;
  border-bottom: 1px solid transparent;
}
.nav-list a:hover, .nav-list a[aria-current='page'] {
  color: var(--ink);
  border-color: var(--ink);
}
.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 8px 0;
}

main {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}
.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  align-items: end;
  gap: clamp(50px, 10vw, 150px);
  padding: 12vh 0 13vh;
}
.hero-name {
  margin: 0;
  font-size: clamp(54px, 9vw, 126px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.075em;
}
.hero-copy {
  max-width: 570px;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.42;
  letter-spacing: -0.035em;
}
.hero-copy p { margin: 0 0 1.4em; }
.hero-copy p:last-child { margin-bottom: 0; }
.eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.text-link { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--accent); }

.page-intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 9vw, 140px);
  padding: 14vh 0 12vh;
}
.page-title {
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.07em;
}
.page-deck {
  max-width: 620px;
  margin: 0;
  align-self: end;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.section {
  border-top: 1px solid var(--line);
  padding: 34px 0 110px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.index-list { margin: 0; padding: 0; list-style: none; }
.index-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(160px, 0.45fr) 18px;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.index-item:first-child { border-top: 0; }
.index-item a { display: contents; text-decoration: none; }
.index-number, .index-meta { color: var(--muted); font-size: 13px; }
.index-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}
.mobile-only { display: none; }
.index-arrow { transition: transform .2s ease; }
.index-item:hover .index-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.index-item:hover .index-arrow { transform: translateX(4px); }

.project {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0 52px;
}
.project-body { max-width: 760px; }
.project-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.055em;
}
.project-body p { max-width: 650px; margin: 0 0 26px; color: var(--muted); font-size: 17px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: var(--muted); font-size: 12px; }

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.shelf-item {
  min-height: 190px;
  padding: 24px 28px 34px 0;
  border-bottom: 1px solid var(--line);
}
.shelf-item:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.shelf-item h2 { margin: 0 0 42px; font-size: clamp(20px, 3vw, 32px); font-weight: 500; letter-spacing: -0.04em; }
.shelf-item p { max-width: 440px; margin: 0; color: var(--muted); }

.postcards-intro {
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  max-width: 680px;
  padding: 4vh 0 12vh;
  font-size: clamp(24px, 4vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.05em;
}
.postcards-intro p { margin: 0; }

.article-header {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 15vh 0 10vh;
}
.article-kicker { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.article-title {
  margin: 28px 0 34px;
  font-size: clamp(48px, 8vw, 94px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.07em;
}
.article-deck { margin: 0 0 36px; font-size: clamp(18px, 2.3vw, 25px); line-height: 1.45; letter-spacing: -0.03em; }
.article-meta { color: var(--muted); font-size: 13px; }
.article-body {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 58px 0 14vh;
  border-top: 1px solid var(--ink);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.72;
  letter-spacing: -0.018em;
}
.article-body p { margin: 0 0 1.65em; }
.article-body p:first-child { font-size: clamp(22px, 2.5vw, 29px); line-height: 1.5; }
.article-body strong { font-weight: 600; }
.article-body sup { font-size: 0.65em; line-height: 0; }
.article-body sup a { color: var(--accent); text-decoration: none; }
.pullquote {
  margin: 3.5em 0;
  padding: 28px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: clamp(25px, 4vw, 43px);
  line-height: 1.25;
  letter-spacing: -0.045em;
}
.article-notes {
  margin-top: 5em;
  padding-top: 30px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 0.72em;
  line-height: 1.65;
  letter-spacing: 0;
}
.article-notes h2 {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-notes ol { margin: 0; padding-left: 1.5em; }
.article-notes li { margin-bottom: 1.2em; padding-left: 0.45em; }
.article-notes a { color: var(--ink); text-underline-offset: 3px; }
.back-link { display: inline-block; margin-top: 38px; color: var(--muted); text-underline-offset: 4px; }
.back-link:hover { color: var(--ink); }

.site-footer {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  body { font-size: 12px; }
  .nav { width: min(calc(100% - 64px), var(--max)); min-height: 104px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
  .menu-button { display: none; }
  .brand { min-width: 0; }
  .nav-list { display: flex; width: 100%; gap: 0 18px; overflow-x: auto; padding: 0 0 2px; scrollbar-width: none; }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-list li, .nav-list a { flex: 0 0 auto; }
  .nav-list a { display: block; padding: 5px 0; }
  main, .site-footer { width: min(calc(100% - 64px), var(--max)); }
  .hero { min-height: auto; grid-template-columns: 1fr; align-items: start; gap: 80px; padding: 13vh 0 16vh; }
  .hero-name { font-size: clamp(58px, 20vw, 90px); }
  .hero-copy { font-size: 15px; }
  .page-intro { grid-template-columns: 1fr; gap: 60px; padding: 12vh 0 10vh; }
  .page-deck { align-self: auto; font-size: 14px; }
  .section { padding-bottom: 80px; }
  .index-item { grid-template-columns: 45px minmax(0, 1fr); gap: 12px; overflow: hidden; }
  .index-title { display: block; width: 100%; max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
  .mobile-only { display: inline; }
  .index-meta { grid-column: 2; }
  .index-arrow { display: none; }
  .project { grid-template-columns: 45px 1fr; gap: 12px; }
  .project-body p { font-size: 14px; }
  .shelf-grid { grid-template-columns: 1fr; }
  .shelf-item, .shelf-item:nth-child(even) { padding: 24px 0 38px; border-left: 0; }
  .article-header { padding-top: 12vh; }
  .article-deck { font-size: 15px; }
  .article-body { font-size: 14px; }
  .article-body p:first-child { font-size: 19px; }
  .article-notes { font-size: 11px; }
  .pullquote { font-size: 22px; padding: 24px 0; }
  .postcards-intro { font-size: 21px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
