:root {
  --ink: #18203c;
  --ink-soft: #46506b;
  --paper: #f3f0e8;
  --paper-deep: #e7e0d2;
  --white: #fffdf8;
  --copper: #c45d35;
  --copper-dark: #923d24;
  --blue: #386d78;
  --blue-soft: #c7d9d7;
  --gold: #d5a84f;
  --line: rgba(24, 32, 60, .18);
  --shadow: 0 24px 70px rgba(24, 32, 60, .12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1180px;
  --narrow: 760px;
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 6.4vw, rgba(24, 32, 60, .045) 6.4vw calc(6.4vw + 1px), transparent calc(6.4vw + 1px)),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--copper-dark); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.wrap { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), var(--narrow)); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section.compact { padding: clamp(2.8rem, 5vw, 4.5rem) 0; }
.section.ink { color: var(--white); background: var(--ink); }
.section.white { background: var(--white); }
.section.blue { background: var(--blue-soft); }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 232, .96);
}
.header-row { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; position: relative; border: 1px solid var(--ink); background: var(--white); }
.brand-mark::before,
.brand-mark::after { content: ""; position: absolute; left: 7px; right: 7px; height: 2px; background: var(--copper); }
.brand-mark::before { top: 11px; box-shadow: 0 7px 0 var(--ink); }
.brand-mark::after { bottom: 7px; width: 8px; left: 7px; background: var(--blue); }
.brand strong { display: block; font-family: var(--serif); font-size: 1.12rem; line-height: 1; letter-spacing: -.02em; }
.brand small { display: block; margin-top: .28rem; color: var(--ink-soft); font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { position: relative; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.45rem; height: 2px; background: var(--copper); transition: right .25s var(--ease); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { right: 0; }
.menu-button { display: none; border: 1px solid var(--ink); padding: .55rem .75rem; color: var(--ink); background: transparent; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.hero { padding: clamp(3.5rem, 7vw, 7rem) 0 clamp(4.5rem, 9vw, 8rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.hero-copy { position: relative; z-index: 2; }
.kicker, .eyebrow { margin: 0 0 1rem; color: var(--copper-dark); font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.kicker::before, .eyebrow::before { content: ""; display: inline-block; width: 2.4rem; height: 1px; margin: 0 .7rem .25rem 0; background: currentColor; }
h1, h2, h3 { margin-top: 0; font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.035em; }
h1 { max-width: 13ch; margin-bottom: 1.4rem; font-size: clamp(3.2rem, 7vw, 7rem); }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.7rem); }
h3 { margin-bottom: .7rem; font-size: 1.45rem; }
.lead { max-width: 62ch; margin: 0 0 1.7rem; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(1.12rem, 2vw, 1.38rem); line-height: 1.55; }
.ink .lead { color: rgba(255, 253, 248, .76); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid var(--ink); padding: .75rem 1.15rem; background: var(--ink); color: white; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: transform .2s var(--ease), background .2s ease; }
.button:hover { color: white; background: var(--copper-dark); transform: translateY(-2px); }
.button.secondary { color: var(--ink); background: transparent; }
.button.secondary:hover { color: white; background: var(--ink); }
.hero-visual { position: relative; padding: 0 0 2.1rem 2.1rem; }
.hero-visual::before { content: ""; position: absolute; inset: 2.2rem 2.1rem 0 0; border: 1px solid var(--copper); }
.hero-visual::after { content: "01 / ORIENTATION"; position: absolute; right: -2.7rem; top: 42%; color: var(--ink-soft); font-family: var(--mono); font-size: .65rem; letter-spacing: .14em; transform: rotate(90deg); }
.hero-visual picture { position: relative; display: block; box-shadow: var(--shadow); }
.hero-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: saturate(.76) contrast(1.05); }
.image-credit { margin: .7rem 0 0; color: var(--ink-soft); font-size: .7rem; line-height: 1.45; }
.hero-visual .image-credit { position: relative; max-width: 80%; }
.folio { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; margin: 2.2rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); }
.folio span { font-family: var(--mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }

.section-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.section-head p { margin: 0; color: var(--ink-soft); }
.section-head h2 { margin: 0; }
.index-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--white); }
.index-card { position: relative; min-height: 360px; padding: 1.5rem; border-right: 1px solid var(--line); text-decoration: none; overflow: hidden; }
.index-card:last-child { border-right: 0; }
.index-card .number { color: var(--copper); font-family: var(--mono); font-size: .75rem; }
.index-card h3 { margin-top: 5rem; font-size: clamp(1.45rem, 2vw, 2rem); }
.index-card p { color: var(--ink-soft); font-size: .9rem; }
.index-card::after { content: "→"; position: absolute; left: 1.5rem; bottom: 1.4rem; color: var(--copper-dark); font-size: 1.4rem; transition: transform .25s var(--ease); }
.index-card:hover { color: var(--ink); background: var(--paper-deep); }
.index-card:hover::after { transform: translateX(.45rem); }

.feature-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature-image { position: relative; }
.feature-image img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.feature-copy ol { margin: 2rem 0; padding: 0; list-style: none; counter-reset: method; }
.feature-copy li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .7rem; padding: .75rem 0; border-top: 1px solid rgba(255,255,255,.18); counter-increment: method; }
.feature-copy li::before { content: "0" counter(method); color: var(--gold); font-family: var(--mono); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principle { min-height: 250px; padding: 2rem; background: var(--white); }
.principle strong { display: block; margin-bottom: 2.2rem; color: var(--copper); font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.principle p { color: var(--ink-soft); }

.page-hero { padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: end; }
.page-hero h1 { max-width: 12ch; font-size: clamp(3rem, 6vw, 5.8rem); }
.page-hero-note { border-left: 3px solid var(--copper); padding-left: 1.2rem; color: var(--ink-soft); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .45rem; color: var(--copper); }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.story-card { display: grid; grid-template-columns: 180px 1fr; min-height: 280px; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.story-card picture, .story-card img { width: 100%; height: 100%; }
.story-card img { object-fit: cover; filter: saturate(.78); }
.story-card-copy { padding: 1.5rem; }
.story-card .tag { color: var(--copper-dark); font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.story-card h2 { margin: 1.2rem 0 .8rem; font-size: 1.7rem; }
.story-card p { color: var(--ink-soft); font-size: .9rem; }
.story-card:hover { color: var(--ink); border-color: var(--copper); transform: translateY(-2px); }

.article-shell { padding: 2.2rem 0 clamp(5rem, 8vw, 8rem); }
.article-head { width: min(100%, 980px); margin: 0 auto 2.4rem; }
.article-head h1 { max-width: 14ch; font-size: clamp(3rem, 6vw, 5.6rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.article-image { width: min(100%, 1100px); margin: 0 auto clamp(3rem, 6vw, 5rem); }
.article-image img { width: 100%; max-height: 660px; object-fit: cover; box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0, 740px) 260px; gap: clamp(2rem, 6vw, 5rem); justify-content: center; }
.prose { font-family: var(--serif); font-size: 1.08rem; line-height: 1.82; }
.prose > p:first-child { color: var(--ink); font-size: 1.28rem; line-height: 1.65; }
.prose h2 { margin: 2.8rem 0 1rem; font-size: 2.2rem; }
.prose h3 { margin: 2rem 0 .7rem; }
.prose a { color: var(--copper-dark); }
.prose blockquote { margin: 2.2rem 0; padding: 1.3rem 1.6rem; border-left: 4px solid var(--copper); background: var(--white); font-size: 1.18rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .55rem; }
.reading-box { margin: 2rem 0; padding: 1.5rem; border: 1px solid var(--line); background: var(--white); font-family: var(--sans); font-size: .9rem; }
.reading-box h3 { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-aside { align-self: start; position: sticky; top: 1.5rem; border-top: 3px solid var(--copper); padding-top: 1rem; }
.article-aside h2 { font-family: var(--mono); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-aside ul { margin: 1rem 0; padding: 0; list-style: none; }
.article-aside li { padding: .45rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .84rem; }
.article-aside p { color: var(--ink-soft); font-size: .8rem; }

.method-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.method-item { min-height: 220px; border-top: 3px solid var(--copper); padding: 1.3rem; background: var(--white); }
.method-item span { color: var(--blue); font-family: var(--mono); font-size: .72rem; }
.method-item h3 { margin-top: 2rem; }
.method-item p { color: var(--ink-soft); font-size: .9rem; }

.source-list { display: grid; gap: 1rem; }
.source-item { padding: 1.5rem; border: 1px solid var(--line); background: var(--white); }
.source-item h2 { font-size: 1.55rem; }
.source-item p { margin-bottom: .35rem; color: var(--ink-soft); }
.source-item .license { color: var(--copper-dark); font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.legal { width: min(calc(100% - 2rem), 760px); margin-inline: auto; }
.legal h1 { max-width: none; font-size: clamp(3rem, 6vw, 5rem); }
.legal h2 { margin-top: 2.6rem; font-size: 2rem; }
.legal p, .legal li { color: var(--ink-soft); }

.cta-band { border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.cta-grid h2 { margin-bottom: .6rem; }
.cta-grid p { margin: 0; color: rgba(255,253,248,.72); }
.ink .button { color: var(--ink); border-color: var(--white); background: var(--white); }
.ink .button:hover { color: white; border-color: var(--copper); background: var(--copper); }

.site-footer { padding: 4rem 0 1.5rem; color: var(--white); background: #10162d; }
.site-footer .brand:hover { color: white; }
.site-footer .brand-mark { border-color: rgba(255,255,255,.55); background: transparent; }
.site-footer .brand-mark::before { box-shadow: 0 7px 0 rgba(255,255,255,.8); }
.site-footer .brand small { color: rgba(255,255,255,.56); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(2, .7fr); gap: 3rem; }
.footer-intro { max-width: 42ch; color: rgba(255,255,255,.64); font-size: .9rem; }
.footer-title { margin: 0 0 1rem; color: var(--gold); font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: .45rem 0; }
.footer-links a { color: rgba(255,255,255,.76); font-size: .86rem; text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.5); font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; }

.error-page { min-height: 72vh; display: grid; place-items: center; text-align: center; }
.error-code { margin: 0; color: var(--copper); font-family: var(--mono); font-size: .8rem; letter-spacing: .15em; }
.error-page h1 { max-width: none; margin-inline: auto; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .index-grid { grid-template-columns: repeat(2, 1fr); }
  .index-card:nth-child(2) { border-right: 0; }
  .index-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .article-aside { position: static; display: none; }
}

@media (max-width: 760px) {
  body { background: var(--paper); }
  .header-row { min-height: 70px; }
  .menu-button { display: inline-flex; }
  .site-nav { position: absolute; left: 1rem; right: 1rem; top: calc(100% + 1px); display: none; align-items: stretch; flex-direction: column; gap: 0; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 1rem; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
  .hero-grid, .feature-grid, .section-head, .page-hero .wrap, .cta-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { padding: 0 1.1rem 1.1rem 0; }
  .hero-visual::before { inset: 1.1rem 0 0 1.1rem; }
  .hero-visual::after { display: none; }
  .hero-visual .image-credit { max-width: 100%; }
  .section-head { align-items: start; }
  .principles, .method-list { grid-template-columns: 1fr; }
  .page-hero-note { max-width: 36rem; }
  .story-card { grid-template-columns: 135px 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .wrap, .narrow, .legal { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand small { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { padding-top: 2.8rem; }
  h1 { font-size: 3.15rem; }
  .index-grid { grid-template-columns: 1fr; }
  .index-card { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  .index-card:last-child { border-bottom: 0; }
  .story-card { grid-template-columns: 1fr; }
  .story-card picture, .story-card img { height: 220px; }
  .article-head h1 { font-size: 3.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
