:root {
  --paper: #f7f4ec;
  --paper-bright: #fffdf8;
  --ink: #17252c;
  --muted: #617078;
  --teal: #176b73;
  --teal-dark: #0f5057;
  --rust: #a44f3d;
  --gold: #d5aa57;
  --line: #d9d2c2;
  --shadow: 0 18px 50px rgba(26, 42, 46, .11);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

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

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  color: var(--paper-bright);
  background: var(--teal);
  border-radius: 50% 50% 46% 54%;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .08em;
}
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.site-header nav a {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--teal); }

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: center;
}
.frame-wrap { position: relative; }
.frame-wrap::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  z-index: -1;
  background: var(--gold);
  border-radius: 3px;
  opacity: .7;
}
.hero-art img, .story-art > .art-button > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border: 1px solid rgba(23,37,44,.14);
  background: #eadfca;
  box-shadow: var(--shadow);
}
.image-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: .48rem .72rem;
  color: var(--ink);
  background: rgba(255,253,248,.92);
  border: 1px solid rgba(23,37,44,.15);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow {
  margin: 0 0 .7rem;
  color: var(--rust);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}
.featured-label { color: var(--teal); }
h1, h2, h3 { font-family: var(--serif); text-wrap: balance; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5.2vw, 5rem);
  letter-spacing: -.055em;
  line-height: .96;
}
.dek {
  margin: 1.45rem 0 1.8rem;
  color: #415158;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  line-height: 1.55;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.7rem;
  min-width: 210px;
  padding: .9rem 1.05rem;
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 2px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.button:hover, .button:focus-visible { background: var(--teal-dark); transform: translateY(-2px); }
.reading-time { margin: .8rem 0 0; color: var(--muted); font-size: .78rem; }

.archive-section {
  width: min(1180px, calc(100% - 40px));
  margin: clamp(5rem, 9vw, 8rem) auto 0;
  scroll-margin-top: 1.5rem;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: -.04em;
  line-height: 1.05;
}
.filters { display: flex; gap: .45rem; }
.filter {
  padding: .56rem .8rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  font: 700 .76rem/1 var(--sans);
}
.filter:hover, .filter:focus-visible, .filter.is-active { color: #fff; background: var(--teal); border-color: var(--teal); }
.archive-tools {
  display: grid;
  grid-template-columns: auto minmax(240px, 430px) 1fr;
  gap: .8rem 1rem;
  align-items: center;
  margin: 0 0 1.35rem;
}
.archive-tools label { color: var(--ink); font-size: .8rem; font-weight: 800; }
.archive-tools input {
  width: 100%;
  min-height: 42px;
  padding: .65rem .8rem;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: 2px;
  font: 500 .92rem/1.2 var(--sans);
}
.archive-tools input::placeholder { color: #76838a; }
.archive-count { justify-self: end; margin: 0; color: var(--muted); font-size: .78rem; font-weight: 700; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}
.story-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 10px 35px rgba(26,42,46,.05);
  animation: reveal .28s ease both;
}
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
.card-image { overflow: hidden; background: #e8dfcf; }
.card-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .35s ease;
}
.card-image:hover img, .card-image:focus-visible img { transform: scale(1.025); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 1.35rem 1.35rem 1.45rem; }
.card-body h3 { margin: 0 0 .72rem; font-size: 1.52rem; line-height: 1.08; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover, .card-body h3 a:focus-visible { color: var(--teal); }
.card-body > p:not(.eyebrow) { margin: 0 0 1.3rem; color: var(--muted); font-size: .93rem; }
.text-link { margin-top: auto; color: var(--teal); font-size: .84rem; font-weight: 800; text-decoration: none; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.archive-empty { grid-column: 1 / -1; margin: 0; padding: 2rem; color: var(--muted); background: var(--paper-bright); border: 1px solid var(--line); font-family: var(--serif); font-size: 1.1rem; text-align: center; }
.archive-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.archive-pagination button { padding: .6rem .85rem; color: var(--teal-dark); background: var(--paper-bright); border: 1px solid var(--line); border-radius: 2px; cursor: pointer; font: inherit; }
.archive-pagination button:hover, .archive-pagination button:focus-visible { color: #fff; background: var(--teal); border-color: var(--teal); }
.archive-pagination button:disabled { color: #9ca5a8; cursor: default; }

.about-section {
  width: min(940px, calc(100% - 40px));
  margin: clamp(6rem, 11vw, 9rem) auto;
  padding: clamp(2.4rem, 7vw, 5rem);
  color: #fff;
  background: var(--ink);
  border-radius: 4px;
  box-shadow: var(--shadow);
  text-align: center;
}
.about-section .eyebrow { color: #e6bb6e; }
.about-section h2 { margin: 0 auto 1.2rem; font-size: clamp(2rem, 4.5vw, 3.7rem); line-height: 1.06; letter-spacing: -.045em; }
.about-section > p:last-child { max-width: 680px; margin: 0 auto; color: #cfdbdd; font-family: var(--serif); font-size: 1.12rem; }

footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .78rem;
}
footer span:first-child { color: var(--ink); font-family: var(--serif); font-size: 1rem; font-weight: 700; }

/* Reusable story page */
.story-shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.story-hero { max-width: 860px; margin: clamp(3.5rem, 7vw, 6.5rem) auto 2.5rem; text-align: center; }
.breadcrumb { display: inline-flex; gap: .5rem; margin-bottom: 2rem; color: var(--teal); font-size: .8rem; font-weight: 800; text-decoration: none; }
.breadcrumb:hover, .breadcrumb:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.story-hero h1 { margin: 0; font-size: clamp(3rem, 7vw, 6.1rem); letter-spacing: -.06em; line-height: .94; }
.story-dek { max-width: 760px; margin: 1.4rem auto 1.1rem; color: #425158; font-family: var(--serif); font-size: clamp(1.2rem, 2.3vw, 1.55rem); line-height: 1.52; }
.story-meta { display: flex; justify-content: center; gap: .65rem 1.6rem; color: var(--muted); font-size: .76rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.story-meta span + span::before { content: "•"; margin-right: 1.6rem; color: var(--gold); }
.story-art { margin: 0 auto; }
.art-button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.art-button > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: .5rem .72rem;
  color: var(--ink);
  background: rgba(255,253,248,.93);
  border: 1px solid rgba(23,37,44,.15);
  font: 800 .7rem/1 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.story-art figcaption { max-width: 820px; margin: 1.25rem auto 0; color: var(--muted); font-family: var(--serif); font-size: .94rem; line-height: 1.65; text-align: center; }
.story-art figcaption strong { color: var(--ink); }
.story-gallery { margin: clamp(4rem, 8vw, 7rem) 0 0; }
.story-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.story-gallery-heading h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -.04em; line-height: 1.05; }
.story-gallery-heading > p { max-width: 390px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: .98rem; line-height: 1.55; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.gallery-item { margin: 0; padding: .75rem .75rem 1rem; background: var(--paper-bright); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(26,42,46,.05); }
.gallery-item .art-button > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid rgba(23,37,44,.14); background: #eadfca; }
.gallery-item figcaption { margin: .85rem .2rem 0; color: var(--muted); font-family: var(--serif); font-size: .9rem; line-height: 1.55; }
.gallery-item figcaption strong { color: var(--ink); }
.story-content {
  display: grid;
  grid-template-columns: 230px minmax(0, 650px);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
  justify-content: center;
  margin: clamp(4.5rem, 9vw, 8rem) auto 0;
}
.at-a-glance { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow: auto; padding: 1.25rem; background: #efe9dc; border-top: 4px solid var(--gold); }
.at-a-glance dl { margin: 0; }
.at-a-glance dl div { padding: .85rem 0; border-top: 1px solid rgba(23,37,44,.12); }
.at-a-glance dt { margin-bottom: .18rem; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.at-a-glance dd { margin: 0; font-family: var(--serif); font-size: .95rem; line-height: 1.35; }
.story-prose { min-width: 0; }
.prose-section { margin-bottom: 4.4rem; scroll-margin-top: 1.5rem; }
.prose-section h2, .sources h2 { margin: 0 0 1.1rem; font-size: clamp(1.75rem, 3vw, 2.35rem); letter-spacing: -.03em; line-height: 1.1; }
.section-art { margin: 1.5rem 0 2rem; padding: .65rem .65rem .9rem; background: var(--paper-bright); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(26,42,46,.06); }
.section-art .art-button > img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #eadfca; border: 1px solid rgba(23,37,44,.14); }
.section-art figcaption { margin: .85rem .25rem 0; color: var(--muted); font-family: var(--serif); font-size: .91rem; line-height: 1.6; }
.section-art figcaption strong { color: var(--ink); }
.story-prose p { color: #36474e; font-family: var(--serif); font-size: 1.14rem; line-height: 1.84; }
.story-prose .prose-section p:first-of-type::first-letter { float: left; margin: .1em .09em 0 0; color: var(--rust); font-size: 3.3em; font-weight: 700; line-height: .75; }
.takeaway { margin: 4rem 0; padding: .3rem 0 .3rem 1.7rem; border-left: 5px solid var(--gold); }
.takeaway p { margin: 0; color: var(--ink); font-size: 1.45rem; font-style: italic; line-height: 1.55; }
.sources { padding-top: 2.2rem; border-top: 1px solid var(--line); }
.sources ul { margin: 0; padding-left: 1.1rem; }
.sources li { margin: .7rem 0; color: var(--muted); font-size: .88rem; }
.sources a { color: var(--teal-dark); font-weight: 700; }
.external { margin-left: .35rem; }
.story-prose .prototype-note { margin-top: 2rem; padding: 1rem; color: var(--muted); background: #efe9dc; font-family: var(--sans); font-size: .78rem; line-height: 1.5; }
.story-toc { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(23,37,44,.15); }
.story-toc .toc-title { margin: 0 0 .7rem; color: var(--ink); font: 800 .7rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.story-toc ol { margin: 0; padding-left: 1.15rem; }
.story-toc li { margin: .42rem 0; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.story-toc a { text-decoration: none; }
.story-toc a:hover, .story-toc a:focus-visible { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.story-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: clamp(5rem, 10vw, 8rem) 0 4.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.story-nav-link { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; text-decoration: none; }
.story-nav-link.next { text-align: right; }
.story-nav-link span { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.story-nav-link strong { font-family: var(--serif); font-size: 1.14rem; }
.story-nav-link:hover strong, .story-nav-link:focus-visible strong { color: var(--teal); }

.art-dialog {
  width: min(95vw, 1300px);
  max-width: none;
  padding: 0;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 30px 100px rgba(0,0,0,.4);
}
.art-dialog::backdrop { background: rgba(9, 20, 24, .84); backdrop-filter: blur(5px); }
.art-dialog img { width: 100%; max-height: 78vh; object-fit: contain; background: #ded4c3; }
.art-dialog p { max-width: 900px; margin: 0 auto; padding: 1rem 1.5rem 1.4rem; color: var(--muted); font-family: var(--serif); text-align: center; }
.dialog-close { position: absolute; z-index: 2; top: .7rem; right: .7rem; display: grid; place-items: center; width: 2.6rem; aspect-ratio: 1; color: #fff; background: rgba(23,37,44,.86); border: 1px solid rgba(255,255,255,.3); border-radius: 50%; cursor: pointer; font: 300 1.7rem/1 var(--sans); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; margin-top: 28px; }
  .hero-copy { max-width: 700px; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .story-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .at-a-glance { position: static; max-height: none; overflow: visible; }
  .at-a-glance dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .story-toc ol { columns: 2; column-gap: 2rem; }
}
@media (max-width: 600px) {
  .site-header { width: min(100% - 28px, 1180px); min-height: 70px; }
  .site-header nav { gap: .9rem; }
  .site-header nav a { font-size: .7rem; }
  .hero, .archive-section, .story-shell, footer { width: min(100% - 28px, 1180px); }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .frame-wrap::before { inset: 7px -7px -7px 7px; }
  .section-heading { align-items: start; flex-direction: column; }
  .archive-tools { grid-template-columns: 1fr auto; }
  .archive-tools label { grid-column: 1 / -1; }
  .archive-tools input { min-width: 0; }
  .story-grid { grid-template-columns: 1fr; }
  .about-section { width: min(100% - 28px, 940px); padding: 2.4rem 1.3rem; }
  .story-hero h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .story-meta { align-items: center; flex-direction: column; }
  .story-meta span + span::before { content: none; }
  .story-art figcaption { padding: 0 .5rem; text-align: left; }
  .story-gallery-heading { align-items: start; flex-direction: column; gap: .8rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .at-a-glance dl { grid-template-columns: 1fr; gap: 0; }
  .story-toc ol { columns: 1; }
  .story-prose p { font-size: 1.06rem; }
  .story-navigation { grid-template-columns: 1fr; }
  .story-nav-link.next { text-align: left; }
  footer { align-items: start; flex-direction: column; justify-content: center; }
}
