/* Design tokens and single-purpose utilities. Component hooks use npc-. */
:root {
  color-scheme: light;
  --wood: #8B4513;
  --straw: #F5DEB3;
  --olive: #6B8E23;
  --white: #FFFFFF;
  --burnt: #CC5500;
  --blue: #001F3F;
  --concrete: #A9A9A9;
  --tan: #D2B48C;
  --ink-muted: #72614E;
  --accent-ink: #9B3E00;
  --olive-ink: #465D16;
  --display: "Playfair Display", Georgia, serif;
  --body: "Playfair Display", Georgia, serif;
  --organic-sans: "Open Sans", system-ui, sans-serif;
  --technical: "JetBrains Mono", ui-monospace, monospace;
  --radius: 8px;
  --unit: 8px;
  --section-gap: clamp(4rem, 8vw, 8rem);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--white); color: var(--wood); font: 400 1rem/1.6 var(--body); }
body, button, summary, a, li, figcaption { font-size: 1rem; }
button, summary { font-family: var(--body); }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:hover { text-decoration-thickness: 2px; }
a, button, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--wood); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.16; font-weight: 700; text-wrap: balance; }
h1 { font-size: 2.25rem; letter-spacing: -0.035em; max-width: 23ch; }
h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; flex-shrink: 0; }
ul { margin: 0; padding-left: 1.25rem; }
[hidden] { display: none !important; }
.u-shell { max-width: 1280px; margin-inline: auto; padding-inline: 1.5rem; }
.u-grid { display: grid; }
.u-flex { display: flex; }
.u-wrap { flex-wrap: wrap; }
.u-between { justify-content: space-between; }
.u-center { align-items: center; }
.u-start { align-items: start; }
.u-gap-1 { gap: 0.5rem; }
.u-gap-2 { gap: 1rem; }
.u-gap-3 { gap: 1.5rem; }
.u-gap-4 { gap: 2rem; }
.u-gap-wide { gap: clamp(2rem, 5vw, 5rem); }
.u-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.u-article-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.u-flow > * + * { margin-top: 1rem; }
.u-flow-wide > * + * { margin-top: 1.5rem; }
.u-stack { gap: var(--section-gap); }
.u-mt-2 { margin-top: 1rem; }
.u-mt-3 { margin-top: 1.5rem; }
.u-mt-4 { margin-top: 2rem; }
.u-mt-6 { margin-top: 3rem; }
.u-mt-section { margin-top: var(--section-gap); }
.u-py-3 { padding-block: 1.5rem; }
.u-py-5 { padding-block: 2.5rem; }
.u-py-section { padding-block: var(--section-gap); }
.u-pad-card { padding: clamp(1.5rem, 4vw, 2.5rem); }
.u-measure { max-width: 72ch; }
.u-short { max-width: 54ch; }
.u-min-zero { min-width: 0; }
.u-border { border: 1px solid var(--tan); }
.u-border-top { border-top: 1px solid var(--tan); }
.u-radius { border-radius: var(--radius); }
.u-shadow { box-shadow: 0 4px 20px rgb(139 69 19 / 5%); }
.u-white { background: var(--white); }
.u-straw { background: var(--straw); }
.u-dark { background: var(--blue); color: var(--white); }
.u-muted { color: var(--ink-muted); }
.u-accent { color: var(--accent-ink); }
.u-olive { color: var(--olive-ink); }
.u-label { font-size: 1rem; font-weight: 500; letter-spacing: 0.025em; }
.u-upper { text-transform: uppercase; letter-spacing: 0.09em; }
.u-hero-type { font-size: clamp(2.5rem, 5vw, 4rem); max-width: 17ch; }
.u-lead { font-size: 1.125rem; line-height: 1.6; }
.u-bold { font-weight: 700; }
.u-no-decoration { text-decoration: none; }
.u-tap { min-height: 48px; display: inline-flex; align-items: center; padding-block: 0.625rem; gap: 0.75rem; }
.u-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: 0.75rem 1.25rem; border: 1px solid var(--tan); border-radius: var(--radius); font-size: 1rem; line-height: 1.4; font-weight: 500; text-decoration: none; }
.u-button-wood { background: var(--wood); border-color: var(--wood); color: var(--white); }
.u-button-soft { background: var(--white); border-color: var(--burnt); color: var(--accent-ink); }
.u-button:hover { box-shadow: 0 4px 16px rgb(139 69 19 / 12%); }
.u-transition { transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out, background-color 0.6s ease-in-out; }
.u-full { width: 100%; }
.u-image { width: 100%; height: 100%; object-fit: cover; }
.u-reverse > :first-child { order: 2; }
.u-reverse > :last-child { order: 1; }
.u-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.npc-skip { position: fixed; z-index: 20; top: 0.75rem; left: 0.75rem; background: var(--white); padding: 0.75rem 1rem; transform: translateY(-180%); }
.npc-skip:focus { transform: none; }
.npc-masthead { border-bottom: 1px solid var(--tan); }
.npc-brand { min-height: 48px; display: inline-flex; align-items: center; gap: 0.875rem; text-decoration: none; line-height: 1.3; }
.npc-mark { width: 32px; height: 40px; border: 1px solid var(--wood); border-radius: 3px; background: repeating-linear-gradient(0deg, transparent 0 5px, rgb(139 69 19 / 28%) 5px 6px), repeating-linear-gradient(90deg, var(--straw) 0 5px, rgb(139 69 19 / 48%) 5px 6px); flex-shrink: 0; }
.npc-directory-jump { padding-inline: 0.75rem; border-left: 1px solid var(--tan); }
.npc-hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.npc-scenario { border-left: 3px solid var(--olive); padding-left: 1.25rem; }
.npc-photo { position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--tan); border-radius: var(--radius); background: var(--straw); }
.npc-photo-tall { aspect-ratio: 5 / 6; }
.npc-photo-wide { aspect-ratio: 5 / 4; }
.npc-photo::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(135deg, rgb(255 255 255 / 32%), transparent 55%), repeating-linear-gradient(8deg, transparent 0 6px, rgb(139 69 19 / 7%) 6px 7px), var(--straw); }
.npc-photo::after { content: ""; position: absolute; z-index: -1; width: 58%; aspect-ratio: 1; border: 1px solid rgb(139 69 19 / 25%); border-radius: 50%; top: 19%; left: 20%; box-shadow: 0 0 0 22px rgb(255 255 255 / 14%), 0 0 0 44px rgb(139 69 19 / 4%); }
.npc-photo img { position: absolute; inset: 0; color: var(--wood); }
.npc-image-pending { visibility: hidden; }
.npc-answer { position: relative; overflow: hidden; }
.npc-answer::after { content: ""; position: absolute; width: 7rem; height: 100%; right: 0; top: 0; opacity: 0.2; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 7px, rgb(139 69 19 / 25%) 7px 8px); mask-image: linear-gradient(90deg, transparent, black); }
.npc-date { display: flex; align-items: center; gap: 0.625rem; color: var(--olive-ink); }
.npc-date::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); flex-shrink: 0; }
.npc-answer-list { list-style: none; padding: 0; max-width: 72ch; }
.npc-answer .npc-route-links { max-width: 72ch; }
.npc-answer-list li { padding-left: 1.5rem; position: relative; }
.npc-answer-list li::before { content: "→"; position: absolute; left: 0; color: var(--wood); }
.npc-article { padding-top: 2rem; }
.npc-section { border-top: 1px solid var(--tan); padding-top: 2rem; }
.npc-question-list { list-style: none; padding: 0; border-block: 1px solid var(--tan); }
.npc-question-list li { padding: 1rem 0 1rem 1.5rem; position: relative; }
.npc-question-list li + li { border-top: 1px solid var(--tan); }
.npc-question-list li::before { content: "?"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }
.npc-route-links { display: grid; gap: 0.75rem; }
.npc-route-link { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 56px; padding: 1rem 1.25rem; border: 1px solid var(--tan); border-radius: var(--radius); text-decoration: none; background: var(--white); overflow: hidden; }
.npc-route-link::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: 0; background: repeating-linear-gradient(5deg, var(--straw) 0 7px, #eed2a4 7px 8px); transition: opacity 0.6s ease-in-out; }
.npc-route-link:hover::before { opacity: 0.45; }
.npc-route-link:hover { box-shadow: 0 4px 14px rgb(139 69 19 / 8%); }
.npc-source { border: 1px solid var(--tan); border-radius: var(--radius); background: var(--straw); }
.npc-source > summary { min-height: 56px; padding: 1rem 1.5rem; cursor: pointer; font-weight: 500; }
.npc-source > summary::marker { color: var(--wood); }
.npc-source-content { padding: 0 1.5rem 1.5rem; }
.npc-source-note + .npc-source-note { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--tan); }
.npc-source-note p { max-width: 60ch; }
.npc-source-link { min-height: 48px; display: flex; align-items: center; gap: 0.75rem; padding-block: 0.625rem; font-weight: 500; line-height: 1.5; }
.npc-next { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem; min-height: 88px; border: 1px solid var(--tan); border-radius: var(--radius); text-decoration: none; }
.npc-next:hover { background: var(--straw); }
.npc-directory { margin-top: var(--section-gap); background: var(--blue); color: var(--white); position: relative; }
.npc-directory::before { content: ""; display: block; height: 8px; background: repeating-linear-gradient(90deg, var(--wood) 0 8px, var(--straw) 8px 16px); }
.npc-directory-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 6vw, 6rem); }
.npc-directory-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.npc-directory-group { border-top: 1px solid rgb(210 180 140 / 55%); padding-top: 1rem; }
.npc-directory-group h3 { color: var(--straw); margin-bottom: 0.75rem; }
.npc-directory-group ul { list-style: none; padding: 0; }
.npc-directory-link { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 48px; padding-block: 0.75rem; line-height: 1.5; text-decoration: none; }
.npc-directory-link:hover, .npc-directory-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
.npc-directory-link:focus-visible { outline-color: var(--straw); }
.npc-footer-line { color: var(--straw); padding-block: 1.5rem; border-top: 1px solid rgb(210 180 140 / 55%); }
.npc-drawer { inset: 0 0 0 auto; margin: 0; width: min(100%, 36rem); height: 100dvh; max-height: 100dvh; border: 0; border-left: 1px solid var(--tan); padding: 0; background: var(--white); color: var(--wood); font: inherit; }
.npc-drawer::backdrop { background: rgb(0 31 63 / 55%); }
.npc-drawer[open] { display: flex; flex-direction: column; }
.npc-drawer-header { padding: 1.5rem; border-bottom: 1px solid var(--tan); background: var(--straw); }
.npc-drawer-body { overflow-y: auto; padding: 1.5rem; }
.npc-drawer-body .npc-source-content { padding: 0; }
.npc-drawer-body a { overflow-wrap: anywhere; }
.npc-404 { min-height: 60vh; }
@media (min-width: 1100px) { .npc-body-article { padding-right: 5rem; } }
@media (max-width: 760px) {
  .u-split, .u-article-grid, .npc-directory-grid { grid-template-columns: minmax(0, 1fr); }
  .u-reverse > :first-child, .u-reverse > :last-child { order: initial; }
  .npc-masthead .u-shell { align-items: flex-start; gap: 0.75rem; }
  .npc-brand { max-width: 58%; }
  .npc-directory-jump { max-width: 40%; padding-left: 0.75rem; padding-right: 0; font-size: 1rem; }
  .npc-mark { width: 24px; height: 32px; }
  .npc-photo-tall { aspect-ratio: 5 / 4; }
  .npc-hero h1 { max-width: 100%; }
  .npc-article { padding-top: 0; }
  .npc-directory-links { grid-template-columns: minmax(0, 1fr); }
  .npc-next { padding: 1.25rem; }
  .npc-source > summary { padding-inline: 1.25rem; }
  .npc-source-content { padding-inline: 1.25rem; }
  .npc-drawer-header { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .npc-masthead, .npc-photo, .npc-directory, .npc-next, .npc-drawer { display: none; }
  .u-shell { max-width: none; padding: 0; }
  .u-split, .u-article-grid { display: block; }
  .u-stack { gap: 2rem; }
  .npc-source { break-inside: avoid; }
}
