:root {
  --paper: #f5f0e6;
  --paper-deep: #ebe0cd;
  --ink: #27362d;
  --muted: #687168;
  --moss: #3f5c48;
  --moss-deep: #294337;
  --terracotta: #ad5c3b;
  --terracotta-deep: #87442f;
  --sand: #d4b98e;
  --line: rgba(39, 54, 45, .16);
  --card: #fbf8f1;
  --shadow: 0 1.1rem 2.8rem rgba(48, 45, 33, .09);
  --measure: min(1180px, calc(100% - 3rem));
  --display-size: clamp(2.7rem, 7vw, 6.65rem);
  --font-display: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-synthesis: none;
}

html[data-theme="dark"],
html.dark {
  --paper: #1e2823;
  --paper-deep: #27362d;
  --ink: #f5f0e6;
  --muted: #b7c0b7;
  --moss: #a9c4a4;
  --moss-deep: #d0dfc7;
  --terracotta: #e08b64;
  --terracotta-deep: #f0aa87;
  --sand: #806e51;
  --line: rgba(245, 240, 230, .18);
  --card: #26332c;
  --shadow: 0 1.1rem 2.8rem rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; }

.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); position: relative; z-index: 5; }
.header-inner { width: var(--measure); margin: 0 auto; min-height: 5.75rem; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 3rem; height: 3rem; color: var(--terracotta); }
.brand-copy { display: grid; line-height: 1; gap: .25rem; }
.brand-name { font-family: var(--font-display); font-size: clamp(1.3rem, 2.3vw, 1.75rem); font-weight: 600; letter-spacing: -.035em; }
.brand-tag { color: var(--muted); font-family: var(--font-mono); font-size: .56rem; letter-spacing: .11em; text-transform: uppercase; }
.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--muted); font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--terracotta); }
.header-actions { display: flex; align-items: center; gap: .55rem; margin-left: .5rem; }
.icon-button, .coral-abc2 { align-items: center; border: 1px solid var(--line); background: transparent; color: var(--ink); display: inline-flex; justify-content: center; height: 2.6rem; width: 2.6rem; border-radius: 50%; }
.icon-button:hover, .coral-abc2:hover { background: var(--paper-deep); border-color: var(--terracotta); }
.coral-abc2 { display: none; }
.theme-icon { width: 1.05rem; height: 1.05rem; }

.site-shell { width: var(--measure); margin: 0 auto; }
.cipher-2205 { display: grid; grid-template-columns: minmax(0, 1fr) 11.5rem; gap: clamp(1.8rem, 4vw, 4.5rem); align-items: start; }
.cipher-2205:has([data-deltac0][hidden]) { grid-template-columns: minmax(0, 1fr); }
[data-deltac0][hidden] { display: none; }
.velvet-abf9 { border-left: 2px solid var(--sand); padding: .6rem 0 .6rem 1rem; position: sticky; top: 1.5rem; }
.velvet-abf9 h2 { font-family: var(--font-mono); font-size: .65rem; font-weight: 700; letter-spacing: .11em; margin: 0 0 .9rem; text-transform: uppercase; }
.velvet-abf9 ol { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.velvet-abf9 a { color: var(--muted); font-size: .78rem; text-decoration: none; }
.velvet-abf9 a:hover { color: var(--terracotta); }

.breadcrumbs { border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; padding: 1rem 0; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--terracotta); }
.breadcrumbs span { padding: 0 .55rem; color: var(--sand); }

.eyebrow { color: var(--terracotta); font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.04em; line-height: 1.03; margin: 0; }
h1 { font-size: clamp(2.7rem, 6vw, 5.75rem); }
h2 { font-size: clamp(2rem, 3.7vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
p { margin: 0; }
.sr-only { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.32rem); line-height: 1.55; max-width: 40rem; }

.hero { margin: 1.5rem auto 0; min-height: min(700px, calc(100vh - 7rem)); position: relative; overflow: hidden; border-radius: 1rem 1rem 4.5rem 1rem; display: flex; align-items: flex-end; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 42, 34, .82) 0%, rgba(30, 42, 34, .5) 47%, rgba(30, 42, 34, .06) 100%), linear-gradient(0deg, rgba(30, 42, 34, .5), transparent 52%); }
.hero-content { color: #fffaf0; max-width: 43rem; padding: clamp(2rem, 7vw, 5.5rem); position: relative; z-index: 1; }
.hero h1 { max-width: 10ch; margin: .6rem 0 1.25rem; }
.hero .lede { color: rgba(255, 250, 240, .86); max-width: 34rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button { border: 1px solid var(--terracotta); border-radius: 999px; background: var(--terracotta); color: #fffaf0; display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .6rem 1.1rem; font-size: .85rem; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { background: var(--terracotta-deep); transform: translateY(-2px); }
.button--ghost { background: transparent; border-color: rgba(255, 250, 240, .55); }
.button--ghost:hover { background: rgba(255, 250, 240, .12); }

.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-heading { align-items: end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 2.2rem; }
.section-heading h2 { max-width: 12ch; }
.section-heading p { color: var(--muted); max-width: 28rem; }
.section-link { color: var(--terracotta); font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-link::after { content: " ↗"; }

.intro-band { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 8vw, 8rem); align-items: start; border-bottom: 1px solid var(--line); }
.intro-band h2 { max-width: 9ch; }
.intro-copy { display: grid; gap: 1.2rem; }
.intro-copy p { color: var(--muted); font-size: 1.06rem; max-width: 44rem; }
.pullquote { border-left: 3px solid var(--terracotta); color: var(--moss); font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.25; padding-left: 1.2rem; }

.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.category-card { background: var(--card); min-height: 14.5rem; padding: 1.6rem; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; transition: background .2s ease, color .2s ease; }
.category-card:hover { background: var(--moss); color: #fffaf0; }
.category-card:hover p, .category-card:hover .category-number { color: rgba(255, 250, 240, .75); }
.category-number { color: var(--terracotta); font-family: var(--font-mono); font-size: .7rem; }
.category-card h3 { margin: 2.5rem 0 .55rem; }
.category-card p { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.category-arrow { font-size: 1.35rem; margin-left: auto; }

.news-grid, .archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.4rem; align-items: start; }
.mist-092f { background: var(--card); border: 1px solid var(--line); min-width: 0; }
.copper-a0ce { display: block; position: relative; aspect-ratio: 1.35 / 1; overflow: hidden; background: var(--paper-deep); }
.copper-a0ce img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.mist-092f:hover .copper-a0ce img { transform: scale(1.04); }
.cipher-e260 { padding: 1.15rem 1.2rem 1.35rem; }
.atlas-4b0c { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem .75rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; }
.amber-4d04 { color: var(--terracotta); }
.mist-092f h3 { font-size: 1.45rem; line-height: 1.12; margin: .7rem 0 .65rem; }
.mist-092f h3 a { text-decoration: none; }
.mist-092f h3 a:hover { color: var(--terracotta); }
.mist-092f p { color: var(--muted); font-size: .9rem; }
.frost-5e17 { align-items: center; display: flex; gap: .55rem; margin-top: 1rem; }
.coral-ad53 { border-radius: 50%; height: 2.5rem; object-fit: cover; width: 2.5rem; }
.maple-b528 { color: var(--muted); font-size: .75rem; }
.silver-4052 { border: 1px dashed var(--line); color: var(--muted); padding: 1.4rem; }

.featured-story { background: var(--moss-deep); color: #fffaf0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 31rem; overflow: hidden; }
.featured-story img { width: 100%; height: 100%; min-height: 22rem; object-fit: cover; }
.featured-copy { align-self: center; padding: clamp(2rem, 6vw, 5rem); }
.featured-copy .eyebrow { color: var(--sand); }
.featured-copy h2 { margin: .7rem 0 1rem; max-width: 9ch; }
.featured-copy p { color: rgba(255, 250, 240, .76); max-width: 27rem; }
.featured-copy .button { margin-top: 1.5rem; background: var(--sand); border-color: var(--sand); color: var(--ink); }

.newsletter { background: var(--paper-deep); border-radius: 1rem; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; padding: clamp(2rem, 5vw, 4.2rem); }
.newsletter h2 { max-width: 11ch; }
.newsletter-copy { display: grid; gap: 1rem; }
.newsletter-copy p { color: var(--muted); max-width: 32rem; }
.newsletter-form { align-self: center; display: grid; gap: .65rem; }
.form-row { display: flex; gap: .6rem; }
.text-input { background: var(--card); border: 1px solid var(--line); border-radius: .3rem; color: var(--ink); min-height: 3rem; padding: .65rem .85rem; width: 100%; }
.text-input::placeholder { color: var(--muted); }
.form-note { color: var(--muted); font-size: .75rem; }
.form-success { color: var(--moss); font-size: .85rem; font-weight: 600; min-height: 1.3rem; }

.page-intro { padding: clamp(4rem, 8vw, 7rem) 0 3rem; }
.page-intro h1 { max-width: 11ch; margin: .55rem 0 1.1rem; }
.page-intro .lede { max-width: 42rem; }
.band-image { aspect-ratio: 2.3 / 1; overflow: hidden; margin: 0 0 clamp(2rem, 5vw, 4rem); }
.band-image img { height: 100%; width: 100%; object-fit: cover; }
.split-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split-section { background: var(--card); padding: clamp(1.5rem, 4vw, 3rem); min-height: 19rem; }
.split-section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: .5rem 0 1rem; }
.split-section p { color: var(--muted); max-width: 33rem; }
.check-list { display: grid; gap: .7rem; list-style: none; margin: 1.4rem 0 0; padding: 0; }
.check-list li { border-top: 1px solid var(--line); padding: .7rem 0 .1rem 1.6rem; position: relative; }
.check-list li::before { color: var(--terracotta); content: "✦"; left: 0; position: absolute; }
.callout { align-items: center; background: var(--moss); color: #fffaf0; display: flex; gap: 2rem; justify-content: space-between; margin-top: clamp(2rem, 5vw, 4rem); padding: clamp(1.6rem, 4vw, 3rem); }
.callout h2 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); max-width: 14ch; }
.callout p { color: rgba(255, 250, 240, .75); max-width: 27rem; }
.callout .button { background: var(--sand); border-color: var(--sand); color: var(--ink); }

.archive-tools { background: var(--card); border: 1px solid var(--line); display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr) auto; padding: 1.2rem; margin-bottom: 2rem; }
.archive-tools label { color: var(--muted); display: grid; gap: .35rem; font-size: .75rem; font-weight: 700; }
.filter-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.filter-list a { border: 1px solid var(--line); color: var(--muted); border-radius: 99px; font-size: .76rem; padding: .45rem .75rem; text-decoration: none; }
.filter-list a:hover, .filter-list a[aria-current="page"] { background: var(--moss); border-color: var(--moss); color: #fffaf0; }
.orchid-3015 { display: grid; gap: 1px; background: var(--line); }
.orchid-3015 .mist-092f { display: grid; grid-template-columns: 13rem minmax(0, 1fr); border: 0; }
.orchid-3015 .copper-a0ce { aspect-ratio: 1.25 / 1; }

.article-layout { padding: 3rem 0 6rem; }
.byline { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: .8rem; margin: 0 auto 2.5rem; max-width: 54rem; padding-bottom: 1rem; }
.byline img { border-radius: 50%; height: 3rem; object-fit: cover; width: 3rem; }
.byline strong { display: block; font-size: .84rem; }
.byline p { color: var(--muted); font-size: .78rem; margin: .15rem 0 0; }
.article-reader { max-width: 54rem; margin: 0 auto; }
.ripple-58cb .atlas-4b0c { margin-bottom: 1rem; }
.ripple-58cb h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); max-width: 15ch; }
.silver-fe4e { color: var(--muted); font-size: 1.22rem; line-height: 1.55; margin-top: 1.2rem; max-width: 41rem; }
.plume-fe62 { aspect-ratio: 1.8 / 1; margin: 2.8rem 0; overflow: hidden; }
.plume-fe62 img { height: 100%; width: 100%; object-fit: cover; }
.prose { font-family: var(--font-body); font-size: 1.08rem; line-height: 1.8; }
.prose p { margin: 0 0 1.35rem; }
.prose h2, .prose h3 { margin: 2.5rem 0 .8rem; }
.prose a { color: var(--terracotta); text-decoration-thickness: .09em; text-underline-offset: .18em; }
.prose ul, .prose ol { margin: 0 0 1.5rem; padding-left: 1.4rem; }
.prose li { margin: .45rem 0; }
.comments { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem; }
.comments h2 { font-size: 2rem; }
.comments p { color: var(--muted); margin-top: .6rem; }

.not-found { min-height: 65vh; display: grid; place-items: center; text-align: center; padding: 5rem 0; }
.not-found h1 { margin: .6rem auto 1rem; max-width: 10ch; }
.not-found p { color: var(--muted); max-width: 27rem; margin: 0 auto 1.5rem; }

.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer-inner { align-items: end; display: flex; justify-content: space-between; gap: 2rem; }
.footer-inner p { color: var(--muted); font-size: .78rem; }
.footer-motto { color: var(--moss); font-family: var(--font-display); font-size: 1.3rem; max-width: 14ch; text-align: right; }

@media (max-width: 960px) {
  .header-inner { gap: 1rem; }
  .site-nav { order: 3; width: 100%; }
  .header-inner { flex-wrap: wrap; padding: .8rem 0; }
  .header-actions { margin-left: auto; }
  .nav-list { display: none; padding: 1rem 0 .5rem; }
  .site-nav.willow-9336 .nav-list { display: grid; gap: 0; }
  .nav-list li { border-top: 1px solid var(--line); padding: .8rem 0; }
  .coral-abc2 { display: inline-flex; }
  .cipher-2205 { grid-template-columns: minmax(0, 1fr) 10rem; gap: 1.5rem; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root { --measure: min(100% - 2rem, 37rem); }
  .brand-tag { display: none; }
  .brand-mark { height: 2.7rem; width: 2.7rem; }
  .header-inner { min-height: 5rem; }
  .cipher-2205, .intro-band, .featured-story, .newsletter, .split-sections { grid-template-columns: 1fr; }
  .velvet-abf9 { position: static; }
  .hero { min-height: 590px; margin-top: 1rem; border-radius: .8rem .8rem 3rem .8rem; }
  .hero::after { background: linear-gradient(90deg, rgba(30, 42, 34, .82), rgba(30, 42, 34, .34)), linear-gradient(0deg, rgba(30, 42, 34, .56), transparent); }
  .hero-content { padding: 1.6rem; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4.6rem); }
  .section-heading { align-items: start; display: grid; gap: .8rem; }
  .section-heading h2 { max-width: 13ch; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 12rem; }
  .featured-story img { min-height: 15rem; max-height: 21rem; }
  .featured-copy { padding: 2rem 1.5rem 2.5rem; }
  .newsletter { gap: 1.5rem; }
  .form-row { display: grid; }
  .archive-tools { grid-template-columns: 1fr; }
  .orchid-3015 .mist-092f { grid-template-columns: 1fr; }
  .orchid-3015 .copper-a0ce { aspect-ratio: 1.6 / 1; }
  .callout { align-items: start; flex-direction: column; }
  .footer-inner { align-items: start; flex-direction: column; }
  .footer-motto { text-align: left; }
}

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

@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
body { animation: page-in .45s ease both; }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }
