:root {
  --ink: #171716;
  --muted: #62615d;
  --paper: #f5f3ee;
  --paper-deep: #e9e6df;
  --line: #d4d0c7;
  --accent: #9d2e2a;
  --accent-dark: #74201e;
  --soft-red: #ead8d1;
  --shadow: 0 1.25rem 3rem rgba(23, 23, 22, .09);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'Source Code Pro', ui-monospace, monospace;
  --measure: min(90vw, 78rem);
  --reading: 48rem;
  color-scheme: light;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
}

html[data-theme="dark"], html.dark {
  --ink: #f2efe7;
  --muted: #b5b0a5;
  --paper: #191817;
  --paper-deep: #252321;
  --line: #48433d;
  --accent: #e18c78;
  --accent-dark: #f0a492;
  --soft-red: #3c2926;
  --shadow: 0 1.25rem 3rem rgba(0, 0, 0, .24);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 18rem; background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
::selection { color: #fff; background: var(--accent); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--accent);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: var(--measure);
  min-height: 5.5rem;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  color: var(--paper);
  background: var(--accent);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -.035em;
}
.header-trailing { display: flex; align-items: center; gap: .6rem; }
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.primary-nav a {
  position: relative;
  padding: .35rem 0;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}
.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: '';
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.primary-nav a[aria-current="page"] { color: var(--ink); }
[data-plumeab], .lantern-4c28 {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
[data-plumeab]:hover, .lantern-4c28:hover { border-color: var(--accent); color: var(--accent); }
.lantern-4c28 { display: none; }

.page-wrap { width: var(--measure); margin: 0 auto; }
.lantern-955d {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11rem;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.lantern-955d:has([data-haven5d][hidden]) { grid-template-columns: minmax(0, 1fr); }
[data-haven5d][hidden] { display: none; }
.solace-0662 {
  position: sticky;
  top: 7.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
}
.solace-0662 h2 {
  margin: 0 0 .9rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.solace-0662 ol { display: grid; gap: .75rem; margin: 0; padding-left: 1.1rem; }
.solace-0662 li { padding-left: .15rem; color: var(--muted); font-size: .82rem; }
.solace-0662 a { text-decoration: none; }
.solace-0662 a:hover { color: var(--accent); }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.035em; }
h1 { max-width: 13ch; margin-bottom: 1.35rem; font-size: clamp(2.8rem, 6vw, 5.8rem); }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { margin-bottom: .65rem; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.lead { max-width: 39rem; color: var(--muted); font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.55; }
.text-link { color: var(--accent); font-weight: 600; text-underline-offset: .2em; }
.text-link:hover { color: var(--accent-dark); }

.hero {
  position: relative;
  min-height: 38rem;
  margin: 0 calc((var(--measure) - 100vw) / 2) 0;
  overflow: hidden;
  color: #fff;
  background: #28221f;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.hero::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(16, 14, 13, .88) 0%, rgba(16, 14, 13, .58) 43%, rgba(16, 14, 13, .12) 100%); }
.hero-content { position: relative; z-index: 1; display: flex; min-height: 38rem; width: var(--measure); margin: 0 auto; align-items: end; padding: clamp(2rem, 7vw, 6.5rem) 0; }
.hero-copy { max-width: 45rem; }
.hero h1 { margin-bottom: 1.5rem; color: #fff; font-size: clamp(3.3rem, 8vw, 7.7rem); }
.hero .lead { color: rgba(255, 255, 255, .84); }
.hero-meta { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin-top: 2rem; color: rgba(255, 255, 255, .74); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-meta span + span::before { margin-right: 1.2rem; content: '•'; color: var(--accent); }

.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .7rem 1.25rem;
  border: 1px solid var(--accent);
  color: #fff;
  background: var(--accent);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.button:hover { color: #fff; background: var(--accent-dark); transform: translateY(-2px); }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button.secondary:hover { color: var(--accent); border-color: var(--accent); background: transparent; }

.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p { max-width: 25rem; margin-bottom: .2rem; color: var(--muted); line-height: 1.5; }
.intro-band { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(15rem, .75fr); gap: clamp(2rem, 7vw, 8rem); }
.intro-band p { color: var(--muted); font-size: 1.12rem; line-height: 1.7; }
.pull-quote { margin: 0; padding: 1.2rem 0 1.2rem 1.4rem; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.2; }

.news-grid, .archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 2.25rem 1.25rem; align-items: start; }
.bloom-8f57 { min-width: 0; }
.slate-3154 { display: block; position: relative; aspect-ratio: 1.45 / 1; overflow: hidden; margin-bottom: 1.1rem; background: var(--paper-deep); }
.slate-3154 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.bloom-8f57:hover .slate-3154 img { transform: scale(1.04); }
.solace-dcc7, .archive-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-bottom: .65rem; color: var(--muted); font-family: var(--font-mono); font-size: .67rem; letter-spacing: .05em; text-transform: uppercase; }
.nova-3c67 { color: var(--accent); }
.bloom-8f57 h3 { margin-bottom: .6rem; }
.bloom-8f57 h3 a { text-decoration: none; }
.bloom-8f57 h3 a:hover { color: var(--accent); }
.bloom-8f57 p { margin-bottom: 0; color: var(--muted); line-height: 1.5; }
.nickel-37b1 { color: var(--muted); font-style: italic; }

.topic-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.topic-card { min-height: 12rem; padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; background: var(--paper); transition: background .2s ease; }
.topic-card:hover { background: var(--soft-red); }
.topic-number { display: block; margin-bottom: 2.3rem; color: var(--accent); font-family: var(--font-mono); font-size: .7rem; }
.topic-card p { margin: 0; color: var(--muted); line-height: 1.45; }

.callout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .65fr); gap: 2rem; padding: clamp(2rem, 5vw, 4rem); color: #fff; background: var(--accent-dark); }
.callout h2 { color: #fff; }
.callout p { max-width: 30rem; color: rgba(255,255,255,.8); line-height: 1.6; }
.callout .button.secondary { color: #fff; border-color: rgba(255,255,255,.45); }

.page-intro { padding: clamp(4.5rem, 9vw, 8rem) 0 3rem; border-bottom: 1px solid var(--line); }
.page-intro h1 { max-width: 11ch; }
.page-intro .lead { margin-bottom: 0; }
.archive-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin: 2rem 0; }
.archive-form { display: flex; width: min(100%, 30rem); gap: .5rem; }
.archive-form label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.archive-form input { width: 100%; min-height: 3rem; padding: .7rem .9rem; border: 1px solid var(--line); color: var(--ink); background: transparent; }
.archive-form input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-list a { padding: .45rem .75rem; border: 1px solid var(--line); color: var(--muted); font-size: .82rem; text-decoration: none; }
.filter-list a:hover { color: var(--accent); border-color: var(--accent); }
.plume-2ff1 { display: grid; gap: 1.25rem; }
.plume-2ff1 .bloom-8f57 { display: grid; grid-template-columns: minmax(10rem, 17rem) minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.plume-2ff1 .slate-3154 { margin: 0; aspect-ratio: 1.45 / 1; }

.about-grid { display: grid; grid-template-columns: minmax(15rem, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.about-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-deep); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: var(--reading); }
.prose p, .prose li { color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.prose p + p { margin-top: 1.3rem; }
.prose h2 { margin-top: 3rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.principle { padding-top: 1rem; border-top: 2px solid var(--accent); }
.principle strong { display: block; margin-bottom: .6rem; font-family: var(--font-display); font-size: 1.35rem; }
.principle p { margin-bottom: 0; color: var(--muted); line-height: 1.5; }

.dossier-list { display: grid; gap: 1px; border-top: 1px solid var(--line); }
.dossier-row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.dossier-row:hover h2 { color: var(--accent); }
.dossier-row .number { color: var(--accent); font-family: var(--font-mono); font-size: .75rem; }
.dossier-row h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.dossier-row p { grid-column: 2; margin: .35rem 0 0; max-width: 35rem; color: var(--muted); line-height: 1.5; }
.dossier-arrow { color: var(--accent); font-size: 1.5rem; }

.byline { display: flex; align-items: center; gap: 1rem; max-width: var(--reading); margin: 2rem auto 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline img { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; background: var(--paper-deep); }
.byline strong { display: block; font-family: var(--font-display); }
.byline p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.mist-407b { padding: 4rem 0 7rem; }
#anchor-c11d { max-width: var(--reading); margin: 0 auto; }
.ember-6a83 { margin-bottom: 2rem; }
.ember-6a83 h1 { max-width: 15ch; font-size: clamp(2.5rem, 6vw, 5rem); }
.quiet-a5a3 { color: var(--muted); font-size: 1.2rem; line-height: 1.55; }
.summit-bf01 { width: 100%; max-height: 34rem; margin: 2rem 0 3rem; object-fit: cover; }
.prose a { color: var(--accent); text-underline-offset: .2em; }
.prose a:hover { color: var(--accent-dark); }
.prose img.sable-8d34 { width: 100%; height: auto; margin: 2rem 0; }
.category-shell { padding: 4rem 0 7rem; }
#nova-1af4 { max-width: none; }
#lantern-5f09 { max-width: 40rem; color: var(--muted); font-size: 1.15rem; line-height: 1.5; }

.site-footer { margin-top: 2rem; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding: 3.5rem 0; }
.footer-inner h2 { margin-bottom: .7rem; font-size: 1.25rem; }
.footer-inner p, .footer-inner a { color: var(--muted); line-height: 1.5; }
.footer-inner a:hover { color: var(--accent); }
.footer-note { margin: 0; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: .68rem; }

@media (max-width: 52rem) {
  .header-inner { min-height: 4.75rem; }
  .lantern-4c28 { display: grid; }
  .primary-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .75rem var(--gutter, 5vw) 1.2rem; border-bottom: 1px solid var(--line); background: var(--paper); }
  .primary-nav.coral-a4b8 { display: flex; }
  .primary-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .hero, .hero-content { min-height: 34rem; }
  .hero-content { width: var(--measure); }
  .intro-band, .callout, .about-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .lantern-955d { grid-template-columns: minmax(0, 1fr); }
  .solace-0662 { position: static; order: 2; }
  .lantern-955d:has([data-haven5d][hidden]) { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 38rem) {
  :root { --measure: min(90vw, 78rem); }
  h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero { margin-right: calc((var(--measure) - 100vw) / 2); margin-left: calc((var(--measure) - 100vw) / 2); }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .section-heading { display: block; }
  .section-heading p { margin-top: 1rem; }
  .plume-2ff1 .bloom-8f57 { grid-template-columns: 1fr; gap: 1rem; }
  .plume-2ff1 .slate-3154 { max-width: 100%; }
  .dossier-row { grid-template-columns: 2.5rem minmax(0, 1fr) 1rem; }
  .dossier-row p { grid-column: 2 / -1; }
  .footer-inner { grid-template-columns: 1fr; padding: 2.5rem 0; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: .5rem; }
}

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

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
