:root {
  --paper: #F2F1EC;
  --ink: #111112;
  --muted: #55554F;
  --body-muted: #3A3A36;
  --rule-soft: #C9C8C0;
  --hi: #D4FF3A;
  --dark-text: #F2F1EC;
  --dark-muted: #C9C9C2;
  --dark-faint: #8D8D86;
  --dark-rule: #55554F;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --gutter: clamp(20px, 4.5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.6;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { background: var(--hi); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.label { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.serif { font-family: var(--serif); font-weight: 400; }
.hl { background: linear-gradient(transparent 58%, var(--hi) 58%, var(--hi) 92%, transparent 92%); padding: 0 0.05em; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 4px 28px; padding: 20px 0; font-size: 0.8125rem; letter-spacing: 0.06em;
}
.site-header a { text-decoration: none; padding: 10px 0; display: inline-block; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.site-header nav a { color: var(--muted); }
.site-header nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: space-between; gap: 64px; padding: 48px 0 48px; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3.5rem, 12vw, 10.5rem); line-height: 0.92; letter-spacing: -0.025em; }
.offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 40px; padding-top: 28px; border-top: 1.5px solid var(--ink); }
.offer .lead { display: flex; flex-direction: column; gap: 10px; }
.offer .lead p { margin: 0; font-family: var(--serif); font-size: 1.625rem; line-height: 1.2; }
.offer .item { display: flex; flex-direction: column; gap: 6px; font-size: 0.8125rem; }
.offer .item b { font-weight: 700; }
.offer .item span:last-child { color: var(--body-muted); }

/* Dark band */
.band { background: var(--ink); color: var(--dark-text); }
.band .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 72px; }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.band-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.02em; max-width: 12em; }
.band-head h2 em { color: var(--hi); }
.band .label { color: #A3A39C; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px 40px; }
.principle { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; border-top: 1px solid var(--dark-rule); }
.principle .num { font-family: var(--serif); font-size: 4.5rem; line-height: 0.8; color: var(--hi); }
.principle h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.15; }
.principle p { margin: 0; color: var(--dark-muted); }
.principle .note { font-size: 0.75rem; color: var(--dark-faint); font-style: italic; }

/* Doors */
.doors { padding: 112px 0 96px; }
.doors > .label { display: block; padding-bottom: 20px; }
.door { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; padding: 40px 0; border-top: 1.5px solid var(--ink); text-decoration: none; }
.door:last-child { border-bottom: 1.5px solid var(--ink); }
.door:hover { background: transparent; }
.door:hover .door-title { background: var(--hi); }
.door-title { font-family: var(--serif); font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.95; letter-spacing: -0.02em; }
.door-aside { flex: 1 1 340px; max-width: 520px; }

.ribbon { display: flex; flex-direction: column; gap: 7px; font-size: 0.6875rem; color: var(--muted); }
.ribbon .row { position: relative; height: 14px; }
.ribbon .bar { position: absolute; top: 0; height: 14px; background: var(--ink); }
.ribbon .bar.now { background: var(--hi); outline: 1.5px solid var(--ink); }
.ribbon .name { position: absolute; top: 0; line-height: 14px; white-space: nowrap; }
.ribbon .axis { position: relative; display: flex; justify-content: space-between; border-top: 1px solid var(--ink); padding-top: 4px; }

.status-list { display: flex; flex-direction: column; font-size: 0.8125rem; }
.status-list > span { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.status-list > span:last-child { border-bottom: 0; }
.tag { padding: 1px 8px; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--ink); }
.tag.live { background: var(--hi); border-color: var(--hi); }
.tag.dev { border-style: dashed; }

/* Writing */
.writing { padding: 0 0 112px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 56px; align-items: start; }
.writing .intro { display: flex; flex-direction: column; gap: 14px; }
.writing .intro p { margin: 0; font-family: var(--serif); font-size: 1.75rem; line-height: 1.2; }
.essays { grid-column: span 2; min-width: 0; display: flex; flex-direction: column; }
@media (max-width: 700px) { .essays { grid-column: auto; } }
.essays a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--ink); text-decoration: none; }
.essays a:last-child { border-bottom: 1px solid var(--ink); }
.essays .t { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1; }
.essays .m { font-size: 0.75rem; color: var(--muted); }

/* Contact */
.contact { background: var(--hi); }
.contact .wrap { padding-top: 104px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 56px; }
.contact h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 9vw, 7.5rem); line-height: 0.95; letter-spacing: -0.025em; }
.contact-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; border-top: 1.5px solid var(--ink); padding-top: 24px; font-size: 0.8125rem; }
.contact-foot .links { display: flex; flex-wrap: wrap; gap: 0 32px; }
.contact-foot a { padding: 10px 0; display: inline-block; }
.contact a:hover { background: var(--ink); color: var(--hi); }

/* Inner pages */
.page-head { padding: 72px 0 64px; display: flex; flex-direction: column; gap: 24px; border-bottom: 1.5px solid var(--ink); }
.page-head h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3.25rem, 10vw, 8rem); line-height: 0.92; letter-spacing: -0.025em; }
.page-head p { margin: 0; max-width: 40em; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.3; }

.entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 24px 56px; padding: 56px 0; border-bottom: 1px solid var(--ink); }
@media (max-width: 800px) { .entry { grid-template-columns: minmax(0, 1fr); } }
.entry-meta { display: flex; flex-direction: column; gap: 8px; }
.entry-meta h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.015em; }
.entry-meta .when { font-size: 0.8125rem; color: var(--muted); }
.entry-body { display: flex; flex-direction: column; gap: 22px; max-width: 46em; }
.entry-body .oneliner { margin: 0; font-family: var(--serif); font-size: 1.625rem; line-height: 1.25; }
.facet { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 4px 24px; padding-top: 14px; border-top: 1px solid var(--rule-soft); }
@media (max-width: 560px) { .facet { grid-template-columns: minmax(0, 1fr); } }
.facet .label { padding-top: 2px; }
.facet p { margin: 0; color: var(--body-muted); }
.facet ul { margin: 0; padding-left: 1.1em; color: var(--body-muted); }
.facet li + li { margin-top: 4px; }
.outcome { align-self: flex-start; font-size: 0.8125rem; padding: 6px 10px; background: var(--hi); }

.small-entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 56px; padding: 56px 0 96px; }
.small-entries div { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--ink); }
.small-entries h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.small-entries p { margin: 0; color: var(--body-muted); }

.through { padding: 56px 0; border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px 32px; counter-reset: step; }
.through div { display: flex; flex-direction: column; gap: 6px; }
.through div::before { counter-increment: step; content: "0" counter(step); font-size: 0.75rem; color: var(--muted); }
.through b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.through span { color: var(--body-muted); font-size: 0.8125rem; }

.build-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding: 28px 0 40px; font-size: 0.75rem; color: var(--muted); }
.site-foot a { color: var(--muted); padding: 6px 0; display: inline-block; }
