:root {
  --paper: #f3eee4;
  --paper-deep: #e7dece;
  --surface: #fbf8f1;
  --surface-strong: #fffdf8;
  --ink: #28251f;
  --muted: #726b5c;
  --line: #d5cab8;
  --terracotta: #a84f3e;
  --terracotta-deep: #7e392f;
  --sage: #637861;
  --sandal: #b48f63;
  --shadow: 0 14px 34px rgba(70, 51, 30, .09);
  --shell: min(88vw, 1380px);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'Source Code Pro', ui-monospace, monospace;
  color-scheme: light;
}

html[data-theme="dark"], html.dark {
  --paper: #1f211e;
  --paper-deep: #2a2b26;
  --surface: #292b26;
  --surface-strong: #32342e;
  --ink: #eee8da;
  --muted: #b5ad9c;
  --line: #4d5147;
  --terracotta: #d27a63;
  --terracotta-deep: #ef9a7d;
  --sage: #a6bb9a;
  --sandal: #d2ad78;
  --shadow: 0 14px 34px rgba(0, 0, 0, .2);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(circle at 12% 0%, rgba(180,143,99,.11), transparent 28rem), linear-gradient(90deg, transparent 0 49.8%, rgba(126,57,47,.035) 50%, transparent 50.2%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
img { max-width: 100%; }

.site-header, main, .site-footer { width: var(--shell); margin-inline: auto; }
.utility-bar { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0 .5rem; border-bottom: 1px solid var(--line); color: var(--muted); font: 500 .72rem/1.2 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.utility-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.utility-bar a, .topic-row a { text-decoration: none; }
.utility-bar a:hover, .topic-row a:hover { color: var(--terracotta); }
.masthead { display: flex; align-items: center; gap: 1.25rem; padding: 1.05rem 0 .9rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; min-width: max-content; }
.brand-mark { width: 2.8rem; height: 2.8rem; flex: 0 0 auto; }
.brand-name { font: 700 clamp(1.45rem, 2.4vw, 2.1rem)/.95 var(--font-display); letter-spacing: -.035em; }
.brand-kicker { display: block; margin-top: .28rem; color: var(--sage); font: 600 .64rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.masthead-note { max-width: 24rem; margin: 0 auto 0 1rem; color: var(--muted); font-size: .9rem; }
.header-actions, .menu-cluster { display: flex; align-items: center; gap: .5rem; }
.menu-cluster { margin-left: auto; }
.icon-button, .quiet-9f5d { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); }
.icon-button:hover, .quiet-9f5d:hover { border-color: var(--terracotta); color: var(--terracotta); }
.theme-button { position: relative; overflow: hidden; }
.theme-button::before { content: '◒'; font-size: 1.1rem; }
.theme-button span, .quiet-9f5d span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.quiet-9f5d { display: none; border-radius: .35rem; }
.nav-wrap { border-top: 3px solid var(--terracotta); border-bottom: 1px solid var(--line); }
.primary-nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 3.2rem); min-height: 3.1rem; }
.primary-nav a { position: relative; padding: .8rem 0; font-weight: 600; text-decoration: none; }
.primary-nav a::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.primary-nav a:hover::after, body[data-tidee9="home"] .nav-home::after, body[data-tidee9="archive"] .nav-archive::after, body[data-tidee9="timeline"] .nav-timeline::after, body[data-tidee9="resources"] .nav-resources::after { transform: scaleX(1); }
.topic-row { display: flex; gap: 1.4rem; overflow-x: auto; padding: .65rem 0; color: var(--sage); font: 600 .72rem var(--font-mono); letter-spacing: .03em; white-space: nowrap; }
.topic-row span { color: var(--terracotta); }

.page-shell { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 1.25rem; align-items: start; padding: 2.2rem 0 4rem; }
.page-shell:has([data-plume5f][hidden]) { grid-template-columns: minmax(0, 1fr); }
.tide-73fb { position: sticky; top: 1rem; border-top: 3px solid var(--sage); padding-top: .7rem; }
.tide-73fb h2 { margin: 0 0 .8rem; font: 600 1rem var(--font-display); }
.tide-73fb ol { margin: 0; padding-left: 1.15rem; color: var(--muted); font-size: .85rem; }
.tide-73fb li + li { margin-top: .65rem; }
.tide-73fb a { text-decoration: none; }
.tide-73fb a:hover { color: var(--terracotta); }
[data-plume5f][hidden] { display: none; }

.section-kicker { display: flex; align-items: center; gap: .65rem; margin: 0 0 .65rem; color: var(--terracotta); font: 700 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.section-kicker::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; border-bottom: 1px solid var(--line); padding-bottom: .65rem; }
.section-heading h2 { margin: 0; font: 600 clamp(1.3rem, 2vw, 1.8rem)/1.1 var(--font-display); }
.section-heading p { margin: 0; color: var(--muted); font-size: .88rem; }

.home-intro { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.home-intro h1 { max-width: 17ch; margin: 0; font: 600 clamp(2.2rem, 4.5vw, 4rem)/.98 var(--font-display); letter-spacing: -.04em; }
.home-intro p { max-width: 35rem; margin: 0; color: var(--muted); font-size: 1.05rem; }
.fold-grid { display: grid; grid-template-columns: 1.55fr .76fr 1.05fr; gap: 1.15rem; align-items: stretch; }
.fold-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.fold-col > .zone-label { flex: 0 0 auto; }
.zone-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; border-bottom: 2px solid var(--ink); padding-bottom: .45rem; }
.zone-label strong { font: 600 1.05rem var(--font-display); }
.zone-label span { color: var(--sage); font: 600 .66rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.fold-lead, .fold-rail, .fold-specialist { display: flex; flex-direction: column; gap: .9rem; min-height: 0; }
.fold-lead { flex: 1; }
.fold-rail { flex: 1; border-left: 1px solid var(--line); padding-left: 1rem; }
.fold-specialist { flex: 1; }
.fold-specialist .specialist-module + .specialist-module { margin-top: .85rem; border-top: 1px solid var(--line); padding-top: .85rem; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; align-items: stretch; }
.news-grid > .jasper-6d36 { grid-column: 1 / -1; }
.copper-162c { min-width: 0; }
.copper-162c .flint-6cd5 { display: block; position: relative; overflow: hidden; background: var(--paper-deep); aspect-ratio: 16 / 10; }
.flint-6cd5 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.copper-162c .bloom-e55d { padding-top: .65rem; }
.willow-6de2 { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; margin-bottom: .35rem; color: var(--muted); font: 600 .67rem var(--font-mono); letter-spacing: .02em; text-transform: uppercase; }
.grove-f1d5 { color: var(--terracotta); }
.copper-162c h3 { margin: 0; font: 600 1.15rem/1.12 var(--font-display); }
.copper-162c h3 a { text-decoration: none; }
.copper-162c h3 a:hover { color: var(--terracotta); }
.copper-162c p { margin: .4rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.35; }
.lead-feed .copper-162c:first-child h3 { font-size: clamp(1.6rem, 2.5vw, 2.35rem); line-height: 1.04; }
.lead-feed .copper-162c:first-child .flint-6cd5 { aspect-ratio: 16 / 9; }
.lead-feed .copper-162c + .copper-162c { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .75rem; border-top: 1px solid var(--line); padding-top: .85rem; }
.lead-feed .copper-162c + .copper-162c .flint-6cd5 { grid-column: 1; aspect-ratio: 1 / .82; }
.lead-feed .copper-162c + .copper-162c .bloom-e55d { grid-column: 2; padding-top: 0; }
.digest-feed .copper-162c { border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.digest-feed .copper-162c h3 { font-size: 1rem; line-height: 1.14; }
.digest-feed .copper-162c p { font-size: .83rem; }
.digest-feed .flint-6cd5 { display: none; }
.specialist-feed .copper-162c { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: .7rem; }
.specialist-feed .flint-6cd5 { grid-column: 1; aspect-ratio: 1 / 1; }
.specialist-feed .bloom-e55d { grid-column: 2; padding-top: 0; }
.specialist-feed .copper-162c h3 { font-size: 1rem; }
.specialist-feed .copper-162c p { display: none; }
.brief-feed .copper-162c { border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.brief-feed .copper-162c h3 { font-size: .98rem; }
.brief-feed .flint-6cd5 { display: none; }

.band { margin-top: 2.8rem; }
.timeline-band { border-top: 3px solid var(--sage); border-bottom: 1px solid var(--line); padding: 1rem 0 1.2rem; }
.timeline-band .section-heading { margin-bottom: 1rem; }
.timeline-feed { display: grid; grid-template-columns: repeat(8, minmax(9.5rem, 1fr)); gap: 0; overflow: hidden; }
.timeline-feed .copper-162c { min-width: 0; border-right: 1px solid var(--line); padding: 0 .8rem; }
.timeline-feed .copper-162c:first-child { padding-left: 0; }
.timeline-feed .copper-162c:last-child { border-right: 0; }
.timeline-feed .flint-6cd5 { display: none; }
.timeline-feed .copper-162c h3 { font-size: .96rem; }
.timeline-feed .copper-162c p { display: none; }
.timeline-feed .willow-6de2 { color: var(--sage); }

.dual-band { display: grid; grid-template-columns: 1.38fr 1fr; gap: 1.25rem; align-items: stretch; }
.dual-band > section { min-width: 0; }
.mosaic-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic-feed .copper-162c:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.mosaic-feed .copper-162c:first-child .flint-6cd5 { aspect-ratio: 16 / 9; }
.opinion-feed { display: flex; flex-direction: column; gap: .8rem; }
.opinion-feed .copper-162c { border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.opinion-feed .copper-162c h3 { font-size: 1.1rem; }
.opinion-feed .flint-6cd5 { display: none; }

.triple-band { display: grid; grid-template-columns: .7fr 1.38fr .88fr; gap: 1.2rem; align-items: stretch; }
.triple-band > section { min-width: 0; }
.archive-feed, .research-feed { display: flex; flex-direction: column; gap: .75rem; }
.archive-feed .copper-162c, .research-feed .copper-162c { border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.archive-feed .flint-6cd5, .research-feed .flint-6cd5 { display: none; }
.archive-feed .copper-162c h3, .research-feed .copper-162c h3 { font-size: .99rem; }
.stream-feed { display: flex; flex-direction: column; gap: 1rem; }
.stream-feed .copper-162c { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: .9rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.stream-feed .flint-6cd5 { grid-column: 1; aspect-ratio: 4 / 3; }
.stream-feed .bloom-e55d { grid-column: 2; padding-top: 0; }
.stream-feed .copper-162c h3 { font-size: 1.25rem; }

.resource-band { display: grid; grid-template-columns: .68fr 1.32fr; gap: 1.25rem; border-top: 3px solid var(--terracotta); padding-top: 1.25rem; }
.resource-band > section { min-width: 0; }
.resource-intro { padding: .15rem 1rem 0 0; }
.resource-intro h2 { margin: 0 0 .65rem; font: 600 1.8rem/1.05 var(--font-display); }
.resource-intro p { margin: 0 0 1rem; color: var(--muted); }
.resource-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resource-list .flint-6cd5 { display: none; }
.resource-list .copper-162c { border: 1px solid var(--line); padding: .8rem; background: var(--surface); }
.resource-list .copper-162c h3 { font-size: 1rem; }

.jasper-6d36 { margin: 0; border: 1px dashed var(--line); padding: 1rem; color: var(--muted); font-size: .86rem; }
[data-coral86] { min-height: 4rem; }

.page-intro { border-bottom: 3px solid var(--terracotta); padding-bottom: 1.2rem; margin-bottom: 1.7rem; }
.page-intro h1 { max-width: 18ch; margin: 0 0 .5rem; font: 600 clamp(2.2rem, 4vw, 3.6rem)/1 var(--font-display); letter-spacing: -.04em; }
.page-intro p { max-width: 48rem; margin: 0; color: var(--muted); font-size: 1.08rem; }
.archive-tools { display: grid; grid-template-columns: 1fr auto; gap: 1rem; margin-bottom: 1.25rem; }
.grove-f90a { display: flex; align-items: center; gap: .65rem; border-bottom: 2px solid var(--ink); }
.grove-f90a input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); padding: .7rem 0; }
.grove-f90a input::placeholder { color: var(--muted); }
.grove-f90a button { border: 0; background: var(--terracotta); color: #fffaf2; padding: .7rem 1rem; font-weight: 600; }
.filter-list { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.5rem; }
.filter-list a { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .7rem; color: var(--muted); font-size: .82rem; text-decoration: none; }
.filter-list a:hover { border-color: var(--terracotta); color: var(--terracotta); }
.brass-a710 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; align-items: stretch; }
.brass-a710 .copper-162c { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); background: var(--surface); padding-bottom: .9rem; }
.brass-a710 .flint-6cd5 { aspect-ratio: 16 / 10; }
.brass-a710 .bloom-e55d { display: flex; flex: 1; flex-direction: column; padding: .75rem .9rem 0; }
.brass-a710 .copper-162c h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.brass-a710 .copper-162c p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(16rem, .8fr); gap: 1.4rem; }
.content-layout > section, .content-layout > div { min-width: 0; }
.content-layout h2 { margin: 0 0 .7rem; font: 600 1.65rem/1.1 var(--font-display); }
.content-layout p { color: var(--muted); }
.heritage-card, .guide-card, .resource-note { border-top: 2px solid var(--sage); padding: 1rem 0; }
.heritage-card + .heritage-card, .guide-card + .guide-card { border-top: 1px solid var(--line); }
.heritage-card h3, .guide-card h3, .resource-note h3 { margin: 0 0 .35rem; font: 600 1.2rem var(--font-display); }
.fact-grid, .method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.fact-card, .method-card { background: var(--surface); border: 1px solid var(--line); padding: 1rem; }
.fact-card strong, .method-card strong { display: block; margin-bottom: .4rem; color: var(--terracotta); font: 700 1.2rem var(--font-mono); }
.timeline-page { position: relative; }
.timeline-page::before { content: ''; position: absolute; top: 0; bottom: 0; left: .75rem; width: 2px; background: var(--sage); }
.timeline-event { position: relative; margin-left: 2.2rem; padding: 0 0 1.7rem 1rem; }
.timeline-event::before { content: ''; position: absolute; top: .35rem; left: -1.63rem; width: .85rem; height: .85rem; border: 3px solid var(--paper); border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 1px var(--terracotta); }
.timeline-date { color: var(--sage); font: 700 .75rem var(--font-mono); letter-spacing: .08em; }
.timeline-event h2 { margin: .25rem 0 .35rem; font-size: 1.45rem; }
.timeline-event p { max-width: 47rem; margin: 0; color: var(--muted); }
.resource-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.resource-index article { border: 1px solid var(--line); background: var(--surface); padding: 1.1rem; }
.resource-index article:nth-child(odd) { border-top: 3px solid var(--terracotta); }
.resource-index article:nth-child(even) { border-top: 3px solid var(--sage); }
.resource-index h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.resource-index p { margin: 0 0 .8rem; color: var(--muted); }
.text-link { color: var(--terracotta); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: .2em; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 1.25rem; }
.article-layout:has([data-plume5f][hidden]) { grid-template-columns: minmax(0, 1fr); }
.article-reader { max-width: 58rem; }
.byline { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .15rem .7rem; margin-bottom: 1.25rem; border-block: 1px solid var(--line); padding: .8rem 0; }
.byline img { grid-row: span 2; width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; background: var(--paper-deep); }
.byline strong { align-self: end; }
.byline p { margin: 0; color: var(--muted); font-size: .84rem; }
.nova-9777 h1 { margin: 0 0 .65rem; font: 600 clamp(2.3rem, 5vw, 4.6rem)/.98 var(--font-display); letter-spacing: -.04em; }
.maple-a363 { max-width: 48rem; margin: 0; color: var(--muted); font-size: 1.2rem; }
.lumen-06ab { margin: 1.5rem 0; }
.lumen-06ab img { display: block; width: 100%; height: auto; }
.prose { max-width: 47rem; }
.prose p, .prose li { font-family: var(--font-body); font-size: 1.08rem; line-height: 1.75; }
.prose h2, .prose h3 { font-family: var(--font-display); line-height: 1.1; }
.prose a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.prose img.onyx-20f2 { display: block; width: 100%; height: auto; }

.site-footer { border-top: 1px solid var(--line); padding: 1.3rem 0 2rem; color: var(--muted); font-size: .84rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; }
.footer-inner p { margin: 0; }

@media (max-width: 980px) {
  :root { --shell: min(92vw, 800px); }
  .masthead-note { display: none; }
  .fold-grid { grid-template-columns: 1.15fr .85fr; }
  .fold-col:first-child { grid-row: span 2; }
  .dual-band, .resource-band { grid-template-columns: 1fr; }
  .triple-band { grid-template-columns: 1fr 1.45fr; }
  .triple-band > section:last-child { grid-column: 1 / -1; }
  .timeline-feed { grid-template-columns: repeat(4, minmax(9.5rem, 1fr)); row-gap: 1rem; }
}
@media (max-width: 700px) {
  :root { --shell: min(91vw, 560px); }
  .utility-bar { font-size: .62rem; }
  .utility-links { gap: .7rem; }
  .masthead { padding-block: .8rem; }
  .brand-mark { width: 2.45rem; height: 2.45rem; }
  .brand-name { font-size: 1.45rem; }
  .quiet-9f5d { display: inline-grid; }
  .primary-nav { display: none; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); padding: .4rem 0; }
  .primary-nav.flint-20af { display: flex; }
  .primary-nav a { padding: .65rem 0; }
  .topic-row { gap: .9rem; }
  .page-shell, .article-layout { grid-template-columns: 1fr; }
  .tide-73fb { position: static; order: 2; }
  .home-intro { display: block; }
  .home-intro p { margin-top: .9rem; }
  .fold-grid, .dual-band, .triple-band, .resource-band { grid-template-columns: 1fr; }
  .fold-col:first-child { grid-row: auto; }
  .fold-rail { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; }
  .timeline-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-feed .copper-162c:nth-child(2n) { border-right: 0; }
  .mosaic-feed { grid-template-columns: 1fr; }
  .mosaic-feed .copper-162c:first-child { grid-column: auto; display: block; }
  .stream-feed .copper-162c { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .resource-list, .resource-index, .fact-grid, .method-grid { grid-template-columns: 1fr; }
  .archive-tools { grid-template-columns: 1fr; }
  .footer-inner { display: block; }
  .footer-inner p + p { margin-top: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
