:root {
  --paper: #f3efe6;
  --paper-deep: #e8e0d2;
  --ink: #17211b;
  --muted: #5e675f;
  --line: #c8c1b4;
  --accent: #225b46;
  --accent-soft: #d7e3da;
  --white: #fffdf7;
  --max: 74rem;
  --measure: 44rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .7rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.shell { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.site-header { padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { font-weight: 750; letter-spacing: -.02em; text-decoration: none; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; font-size: .95rem; }
.nav-links a { text-decoration: none; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
main { min-height: 65vh; }
.hero { padding: clamp(5rem, 11vw, 9.5rem) 0 clamp(4rem, 8vw, 7rem); }
.eyebrow { margin: 0 0 1.2rem; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 18ch; margin: 0; font-size: clamp(2.9rem, 7.5vw, 6.5rem); font-weight: 650; }
h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.8rem); font-weight: 650; }
h3 { margin: 0; font-size: 1.4rem; }
.lede { max-width: 42rem; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .78rem 1.05rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; }
.button:hover { background: var(--accent); color: white; }
.text-link { display: inline-flex; align-items: center; padding: .78rem .15rem; font-weight: 700; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(9rem, .45fr) 1.55fr; gap: 2rem; margin-bottom: 3.5rem; }
.section-number { color: var(--muted); font-variant-numeric: tabular-nums; }
.section-intro { max-width: var(--measure); margin: 1rem 0 0; color: var(--muted); font-size: 1.08rem; }
.work-card { display: grid; grid-template-columns: 1.35fr .65fr; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.work-card:hover { border-color: var(--accent); color: var(--ink); }
.work-card h3 { max-width: 17ch; margin-top: .55rem; font-size: clamp(1.9rem, 4vw, 3.25rem); }
.work-card p { max-width: 36rem; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: .45rem; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status::before { width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); content: ""; }
.card-aside { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; border-left: 1px solid var(--line); padding-left: 2rem; }
.meta { color: var(--muted); font-size: .9rem; }
.arrow { font-size: 2rem; line-height: 1; }
.principles { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 4rem 1fr 1.2fr; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.principle strong { font-size: 1.08rem; }
.principle p { margin: 0; color: var(--muted); }
.domains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.domain { min-height: 13rem; padding: 1.5rem; border: 1px solid var(--line); background: rgba(255, 253, 247, .45); }
.domain p { color: var(--muted); }
.about-slab { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); }
.about-slab p { margin-top: 0; color: var(--muted); font-size: 1.1rem; }
.footer { padding: 2.5rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; }

/* Article pages */
.article-hero { padding: clamp(4rem, 9vw, 7rem) 0 4rem; }
.article-hero h1 { max-width: 16ch; font-size: clamp(2.7rem, 6.5vw, 5.6rem); }
.article-wrap { display: grid; grid-template-columns: minmax(11rem, .42fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); padding: 4rem 0; border-top: 1px solid var(--line); }
.article-label { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: #38423b; font-size: 1.05rem; }
.prose h2 { margin: 2.8rem 0 1rem; font-size: 2rem; }
.prose h3 { margin-top: 2rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 2.5rem 0 0; background: var(--line); border: 1px solid var(--line); }
.fact { padding: 1.25rem; background: var(--white); }
.fact span { display: block; margin-bottom: .4rem; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 2rem 0; }
.flow-step { min-height: 8.5rem; padding: 1.1rem; border: 1px solid var(--line); background: var(--white); }
.flow-step span { display: block; margin-bottom: .7rem; color: var(--accent); font-size: .75rem; font-weight: 800; }
.note { margin: 2rem 0; padding: 1.3rem 1.5rem; border-left: 4px solid var(--accent); background: var(--accent-soft); }
.note p { margin: 0; color: var(--ink); }
.back { display: inline-flex; margin-top: 2rem; font-weight: 700; }

@media (max-width: 760px) {
  .nav { align-items: flex-start; }
  .nav-links { gap: .8rem; font-size: .88rem; }
  .section-head, .work-card, .about-slab, .article-wrap { grid-template-columns: 1fr; }
  .card-aside { min-height: 7rem; border-left: 0; border-top: 1px solid var(--line); padding: 1.5rem 0 0; }
  .principle { grid-template-columns: 2.3rem 1fr; }
  .principle p { grid-column: 2; }
  .domains, .facts { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 460px) {
  .nav-links a:first-child { display: none; }
  .flow { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
