@font-face {
  font-family: "Garden Display";
  src: url("fonts/display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Garden Display";
  src: url("fonts/display-bold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Garden Display";
  src: url("fonts/display-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Garden Display";
  src: url("fonts/display-bold-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Garden Serif";
  src: url("fonts/serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Garden Serif";
  src: url("fonts/serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Garden Serif";
  src: url("fonts/serif-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Garden Sans";
  src: url("fonts/sans.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Garden Sans";
  src: url("fonts/sans-medium.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Garden Mono";
  src: url("fonts/mono.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #faf6f0;
  --surface: #f1ebe0;
  --surface-deep: #e5ddd0;
  --card: #fffdf9;
  --obsidian: #112016;
  --obsidian-card: #172a1e;
  --obsidian-line: rgba(212, 175, 106, 0.22);
  --header-bg: rgba(250, 246, 240, 0.91);
  --ink: #131c16;
  --soft-ink: #38453c;
  --muted: #626e64;
  --line: #dfd7c9;
  --line-strong: #c6bcae;
  --forest: #1b3b27;
  --forest-hover: #11281a;
  --forest-ink: #faf6f0;
  --accent: #b04625;
  --accent-ink: #fffdf9;
  --accent-soft: #f3e4dc;
  --sage-pill: #e5ede3;
  --sage-ink: #1b3b27;
  --gold: #89692f;
  --gold-bright: #c89d54;
  --footer: #0f1c14;
  --shadow-sm: 0 4px 18px rgba(19, 28, 22, 0.05);
  --shadow: 0 18px 48px rgba(19, 28, 22, 0.09);
  --shadow-lg: 0 28px 72px rgba(19, 28, 22, 0.16);
  --sans: "Garden Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Garden Serif", Georgia, "Times New Roman", serif;
  --display: "Garden Display", "Garden Serif", Georgia, serif;
  --mono: "Garden Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

:root[data-theme="dark"] {
  --paper: #0b120e;
  --surface: #111b15;
  --surface-deep: #17251d;
  --card: #142019;
  --obsidian: #070d0a;
  --obsidian-card: #101b14;
  --obsidian-line: rgba(212, 175, 106, 0.22);
  --header-bg: rgba(11, 18, 14, 0.90);
  --ink: #f4efe6;
  --soft-ink: #c2cdc4;
  --muted: #88968a;
  --line: #213026;
  --line-strong: #314638;
  --forest: #8fc49a;
  --forest-hover: #a7d6b1;
  --forest-ink: #0b120e;
  --accent: #e57a54;
  --accent-ink: #0b120e;
  --accent-soft: #2e1e19;
  --sage-pill: #1c2d22;
  --sage-ink: #bbe0c2;
  --gold: #d4af6a;
  --gold-bright: #e2be7a;
  --footer: #070c09;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.32);
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.48);
  --shadow-lg: 0 32px 84px rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(158, 123, 59, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

picture {
  display: block;
}

button, input, select {
  font: inherit;
}

button, a, input, select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

h1, h2, h3, h4, p, figure, dl, dd, blockquote {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.1rem, 5.6vw, 5.25rem);
}

h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.45rem);
}

h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
}

h1 em, h2 em, h3 em {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
}

strong {
  font-weight: 700;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: middle;
  stroke-width: 1.65;
}

.section-shell {
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  padding: 8px 0;
  color: var(--forest);
  border-bottom: 1px solid var(--line-strong);
  transition: gap 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  max-width: max-content;
}

.text-link:hover {
  gap: 14px;
  color: var(--accent);
  border-color: var(--accent);
}

.text-link .icon {
  width: 16px;
  height: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.button:hover {
  transform: translateY(-1.5px);
}

.button:hover .icon {
  transform: translateX(3px);
}

.button-green, .button-cream {
  background: var(--forest);
  color: var(--forest-ink);
  box-shadow: 0 8px 22px rgba(27, 59, 39, 0.22);
}

.button-green:hover, .button-cream:hover {
  background: var(--forest-hover);
}

.button-outline {
  border-color: var(--line-strong);
  background: var(--card);
  color: var(--ink);
}

.button-outline:hover {
  border-color: var(--forest);
  background: var(--surface);
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.icon-button:hover {
  background: var(--surface);
  border-color: var(--forest);
}

.theme-sun {
  display: none;
}

[data-theme="dark"] .theme-sun {
  display: inline-block;
}

[data-theme="dark"] .theme-moon {
  display: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 20px;
  z-index: 500;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--forest);
  color: var(--forest-ink);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

/* ==========================================================================
   1. Top Observatory Telemetry Bar & Editorial Masthead Header
   ========================================================================== */
.almanac-strip {
  background: var(--obsidian);
  border-bottom: 1px solid var(--obsidian-line);
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.82);
}

.almanac-strip-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 8px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.almanac-strip-inner span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.almanac-strip-inner strong {
  color: var(--gold-bright);
  font-weight: 500;
}

.almanac-center {
  color: rgba(244, 239, 230, 0.58);
}

.almanac-strip-inner .icon {
  width: 13px;
  height: 13px;
  color: var(--gold-bright);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .site-header {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.header-inner {
  height: 86px;
  max-width: 1380px;
  padding: 0 48px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Season Wheel medallion. The seal carries its own forest field, so it is identical on parchment,
   in dark mode and in the footer; only the wordmark beside it follows the theme. */
.brand {
  --sw-summer: #e2be7a;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  line-height: 1;
  padding: 4px 0;
  text-decoration: none;
}

.brand-crest-svg {
  width: 54px;
  height: 54px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 3px 7px rgba(15, 28, 20, 0.22)) drop-shadow(0 1px 1px rgba(15, 28, 20, 0.3));
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] .brand-crest-svg {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 0.5px rgba(226, 190, 122, 0.35));
}

.intro-mark .brand-crest-svg,
.end-flourish .brand-crest-svg {
  width: 100%;
  height: 100%;
}

.sw-medal .sw-disc { fill: #17301f; }
.sw-medal .sw-disc-shine { fill: url(#sw-shine); }
.sw-medal .sw-bezel { stroke: #c89d54; stroke-opacity: 0.6; }
.sw-medal .sw-ticks { stroke: #e2be7a; stroke-opacity: 0.55; }
.sw-medal .sw-ring { stroke: #f4efe6; stroke-opacity: 0.15; }
.sw-medal .sw-lit { stroke: var(--sw-summer, #e2be7a); }
.sw-medal .sw-seed { fill: #f4efe6; }
.sw-medal .sw-groove { stroke: #8fc49a; }
.sw-medal .sw-halo { fill: #e57a54; opacity: 0.28; }
.sw-medal .sw-sun { fill: #e57a54; stroke: #17301f; stroke-width: 1; }

/* At header size the tick bezel is below a pixel: the gold rim carries the edge instead. */
.site-header .sw-ticks { display: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Header: the sun makes one slow sweep across summer as the page opens, then rests at midsummer;
     hovering the logo sends it round again. The footer seal keeps the slow continuous orbit. */
  .site-header .sw-orbit {
    transform-origin: 32px 32px;
    animation: sw-sweep 4.8s cubic-bezier(0.45, 0, 0.25, 1) 0.4s both;
  }
  .site-header .brand:hover .sw-orbit,
  .site-header .brand:focus-visible .sw-orbit {
    animation: sw-sweep 4.8s cubic-bezier(0.45, 0, 0.25, 1) both;
  }
  .footer-brand .sw-orbit,
  .intro-mark .sw-orbit,
  .nf-mark .sw-orbit {
    transform-origin: 32px 32px;
    animation: sw-orbit 45s ease-in-out infinite;
  }
}

@keyframes sw-sweep {
  0% { transform: rotate(-60deg); }
  55% { transform: rotate(60deg); }
  100% { transform: rotate(0deg); }
}

@keyframes sw-orbit {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(60deg); }
  75% { transform: rotate(-60deg); }
  100% { transform: rotate(0deg); }
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.brand-title {
  font-family: var(--display);
  font-size: 1.95rem;
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.brand-title em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
}

.footer-brand .brand-title em {
  color: #e2be7a;
}

.footer-brand .brand-title {
  color: #EEF0E6;
}

.brand-subkicker {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #eef0e6;
  opacity: 0.62;
  white-space: nowrap;
}

.footer-brand .brand-subkicker {
  color: #EEF0E6;
  opacity: 0.62;
}

.footer-brand .brand-crest-svg {
  width: 72px;
  height: 72px;
}

.brand:hover .brand-crest-svg,
.brand:focus-visible .brand-crest-svg {
  transform: scale(1.04);
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.primary-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--soft-ink);
  padding: 8px 2px;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
}

.nav-num {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--gold);
  font-weight: 500;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}

.nav-saved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px !important;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--card);
}

.nav-saved .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.saved-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--sage-pill);
  color: var(--sage-ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  flex-shrink: 0;
}

.search-pill-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 13px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--soft-ink);
  font-size: 0.81rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.search-pill-trigger:hover {
  border-color: var(--forest);
  background: var(--surface);
  color: var(--ink);
}

.search-pill-trigger .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.search-pill-trigger kbd {
  font-family: var(--mono);
  font-size: 0.66rem;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.menu-toggle {
  display: none;
}

/* ==========================================================================
   2. Editorial Hero — Monograph Cover Spread
   ========================================================================== */
.editorial-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 54px;
  padding-top: 52px;
  padding-bottom: 68px;
  align-items: start;
}

.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-copy h1 {
  font-size: clamp(3.3rem, 5.4vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero-lead {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--soft-ink);
  margin-top: 24px;
  max-width: 610px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-ledger {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero-ledger > div {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.hero-ledger > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero-ledger dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.hero-ledger dd {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  margin-top: 6px;
}

.hero-ledger span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 3px;
}

/* Gallery-Matted Specimen Plate Frame */
.hero-visual {
  position: relative;
  min-width: 0;
}

.specimen-frame-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 4px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-primary-plate {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px 16px 16px;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-plate-link {
  display: block;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero-plate-link picture {
  aspect-ratio: 1.44;
}

.hero-plate-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.3, 1);
}

.hero-plate-link:hover img {
  transform: scale(1.035);
}

.plate-pill {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(17, 32, 22, 0.86);
  backdrop-filter: blur(8px);
  color: #faf6f0;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 106, 0.35);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.hero-plate-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 4px 2px;
}

.hero-plate-caption strong {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
  margin-top: 4px;
}

.plate-arrow {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.plate-arrow:hover {
  background: var(--forest);
  color: var(--forest-ink);
  border-color: var(--forest);
}

.hero-companion-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.hero-secondary-plate {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 14px 10px 10px;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-secondary-plate:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.hero-secondary-plate picture {
  width: 78px;
  height: 78px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-secondary-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-secondary-plate strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.12;
  margin: 3px 0 4px;
}

.hero-secondary-plate span:last-child {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soft-ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-secondary-plate .icon {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   3. Zone 5B 12-Month Seasonal Almanac Bar
   ========================================================================== */
.seasonal-almanac-section {
  padding-bottom: 68px;
}

.almanac-card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.almanac-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
}

.almanac-card-head h2 {
  margin-top: 6px;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}

.almanac-stamp {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 4px;
  white-space: nowrap;
}

.almanac-quarters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
  gap: 18px;
}

.quarter-block {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quarter-block.is-peak {
  background: var(--surface);
  border-color: var(--gold);
}

.quarter-block:hover,
.quarter-block:focus-visible {
  border-color: var(--gold);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.quarter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quarter-meta span {
  color: var(--accent);
  font-weight: 600;
}

.quarter-meta strong {
  color: var(--muted);
  font-weight: 500;
}

.quarter-block h3 {
  font-size: 1.38rem;
  margin-top: 2px;
  transition: color 0.2s ease;
}

.quarter-block:hover h3,
.quarter-block:focus-visible h3 {
  color: var(--accent);
}

.quarter-block p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--soft-ink);
}

.quarter-link {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--forest);
  transition: color 0.2s ease, gap 0.2s ease;
}

[data-theme="dark"] .quarter-link {
  color: #8fc49a;
}

.quarter-block:hover .quarter-link,
.quarter-block:focus-visible .quarter-link {
  color: var(--accent);
  gap: 10px;
}

.quarter-link .icon {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   4. Architectural & Agronomic Systems (Obsidian Conservatory Blueprint)
   ========================================================================== */
.pillars-section {
  background: var(--obsidian);
  color: #f4efe6;
  border-top: 1px solid var(--obsidian-line);
  border-bottom: 1px solid var(--obsidian-line);
  padding: 84px 0;
}

.pillars-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--obsidian-line);
}

.pillars-header .eyebrow {
  color: var(--gold-bright);
}

.pillars-header h2 {
  margin-top: 8px;
  color: #faf6f0;
  max-width: 680px;
}

.pillars-intro {
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.7;
  color: #c2cdc4;
  max-width: 440px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.pillar-card {
  background: var(--obsidian-card);
  border: 1px solid var(--obsidian-line);
  border-radius: 8px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
}

.pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212, 175, 106, 0.15);
}

.pillar-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 106, 0.35);
}

.pillar-schematic {
  width: 58px;
  height: 58px;
  color: #d6dfd7;
}

.pillar-card h3 {
  font-size: 1.5rem;
  color: #faf6f0;
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 0.9rem;
  line-height: 1.68;
  color: #bdc9bf;
  flex: 1;
}

.pillar-link {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 175, 106, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  transition: color 0.2s ease;
}

.pillar-link:hover {
  color: #fff;
}

/* ==========================================================================
   5. Section Headings & Curated Monograph Chapters
   ========================================================================== */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.collections-section {
  padding-top: 84px;
  padding-bottom: 84px;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.collection-card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--forest);
}

.collection-card-media {
  position: relative;
  aspect-ratio: 1.32;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.collection-card-media picture,
.collection-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-card:hover .collection-card-media img {
  transform: scale(1.05);
}

.collection-num {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(17, 32, 22, 0.86);
  color: #faf6f0;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 106, 0.35);
}

.collection-card-body {
  padding: 18px 8px 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.collection-card-body h3 {
  font-size: 1.65rem;
  margin: 6px 0 8px;
}

.collection-card-body p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--soft-ink);
  flex: 1;
}

.collection-link-meta {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--forest);
}

/* ==========================================================================
   6. Lead Feature Monograph Spread & Archival Story Cards
   ========================================================================== */
.home-featured {
  padding-bottom: 88px;
}

.lead-feature-card {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}

.lead-feature-media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1.46;
  background: var(--surface);
  border: 1px solid var(--line);
}

.lead-feature-media a,
.lead-feature-media picture,
.lead-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.lead-feature-card:hover .lead-feature-media img {
  transform: scale(1.03);
}

.lead-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(17, 32, 22, 0.88);
  color: #faf6f0;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 106, 0.4);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.lead-feature-media > .save-button {
  position: absolute;
  right: 14px;
  top: 14px;
}

.lead-feature-copy {
  padding: 8px 16px 8px 0;
}

.lead-feature-copy h3 {
  font-size: clamp(2rem, 3.1vw, 2.85rem);
  line-height: 1.04;
  margin: 10px 0 16px;
}

.lead-feature-copy h3 a:hover {
  color: var(--accent);
}

.lead-excerpt {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--soft-ink);
}

.lead-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.lead-highlights strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ink);
}

.lead-highlights span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.lead-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
}

/* Story Grid & Archival Cards */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.story-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--forest);
}

.story-photo {
  position: relative;
  aspect-ratio: 1.44;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.story-photo > a,
.story-photo picture,
.story-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-photo img {
  transition: transform 0.55s ease;
}

.story-card:hover .story-photo img {
  transform: scale(1.04);
}

.story-photo-bar {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-category-badge {
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.story-dispatch-num {
  background: rgba(17, 32, 22, 0.86);
  color: var(--gold-bright);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

[data-theme="dark"] .story-category-badge {
  background: rgba(20, 32, 25, 0.92);
  color: var(--ink);
}

.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: var(--ink);
  background: var(--card);
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.save-button:hover {
  border-color: var(--accent);
}

.save-button .icon {
  width: 16px;
  height: 16px;
}

.save-button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.save-button[aria-pressed="true"] .icon {
  fill: currentColor;
}

.story-photo > .save-button {
  position: absolute;
  right: 10px;
  top: 10px;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.save-button.with-label {
  width: auto;
  height: 40px;
  padding: 8px 15px;
  border-radius: 6px;
}

.story-copy {
  padding: 18px 8px 6px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.story-copy .eyebrow {
  font-size: 0.66rem;
}

.story-plates-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.story-copy h3 {
  font-size: 1.65rem;
  margin: 8px 0 10px;
  line-height: 1.1;
}

.story-copy h3 a:hover {
  color: var(--accent);
}

.story-excerpt {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--soft-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.story-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.story-time-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.meta-dot {
  padding: 0 5px;
}

.story-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--sage-pill);
  color: var(--sage-ink);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.story-arrow .icon {
  width: 13px;
  height: 13px;
}

.story-arrow:hover {
  background: var(--forest);
  color: var(--forest-ink);
}

/* ==========================================================================
   7. Family Story Spread & Harvest Contact Strip & Master Directory
   ========================================================================== */
.home-intro {
  padding: 12px 0 88px;
}

.intro-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 52px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: start;
  box-shadow: var(--shadow-sm);
}

.intro-badge-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.intro-mark {
  height: 60px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.intro-location {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 3px;
}

.intro-left h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.15rem);
  margin-bottom: 22px;
}

.intro-quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.52rem;
  line-height: 1.48;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 22px;
}

.intro-right > p {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--soft-ink);
}

.intro-mentors {
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.intro-mentors p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--soft-ink);
  margin-top: 6px;
}

.intro-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.more-stories-section {
  padding-bottom: 84px;
}

/* Harvest Photography Contact Sheet Strip */
.photo-section {
  padding-bottom: 84px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.photo-strip-item {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.photo-strip-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.photo-strip-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.photo-strip-frame picture {
  aspect-ratio: 0.94;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.photo-strip-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-strip-item:hover .photo-strip-frame img {
  transform: scale(1.05);
}

.photo-strip-caption {
  padding: 10px 2px 2px;
}

.photo-strip-caption strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.1;
}

.photo-strip-caption span {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
  margin-top: 3px;
}

/* Complete Table of Contents Directory on Homepage */
.index-directory-section {
  padding-bottom: 92px;
}

.directory-card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.directory-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 12px;
}

.directory-header h2 {
  margin-top: 8px;
}

.directory-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 44px;
}

.index-row {
  display: grid;
  grid-template-columns: 44px 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.index-row:hover {
  background: var(--surface);
  border-radius: 4px;
  padding-left: 14px;
}

.index-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.index-title {
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--ink);
}

.index-cat {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--sage-pill);
  color: var(--sage-ink);
}

.index-plates {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.index-read {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.index-read .icon {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   8. Journal Archive & Gallery Pages (with View/Density Switchers)
   ========================================================================== */
.journal-main, .gallery-main {
  padding-bottom: 92px;
}

.page-heading {
  padding-top: 52px;
  padding-bottom: 36px;
}

.page-heading > .eyebrow {
  margin-bottom: 14px;
}

.page-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.page-heading h1 {
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.98;
}

.page-heading > p {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.72;
  color: var(--soft-ink);
  margin-top: 20px;
  max-width: 720px;
}

.collection-stamp {
  display: flex;
  gap: 16px;
  align-items: center;
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 22px;
}

.collection-stamp strong {
  font-family: var(--display);
  font-size: 4rem;
  line-height: 0.9;
  font-weight: 600;
  color: var(--forest);
}

.collection-stamp > span {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--soft-ink);
}

.journal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 12px 0 22px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: 6px;
  padding: 10px 18px;
  min-height: 48px;
  box-shadow: var(--shadow-sm);
}

.search-field > .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
  min-width: 0;
}

.search-field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.search-field input:focus-visible {
  outline: none;
}

.search-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.archive-search {
  width: 52%;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft-ink);
}

.sort-control select {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  max-width: 220px;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--card);
  padding: 3px;
  gap: 2px;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.view-btn .icon {
  width: 14px;
  height: 14px;
}

.view-btn.is-active {
  background: var(--forest);
  color: var(--forest-ink);
}

/* Ledger View Mode for #article-grid */
.archive-grid.is-ledger {
  grid-template-columns: 1fr;
  gap: 12px;
}

.archive-grid.is-ledger .story-card {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 12px 18px 12px 12px;
}

.archive-grid.is-ledger .story-photo {
  width: 180px;
  flex-shrink: 0;
  aspect-ratio: 1.45;
}

.archive-grid.is-ledger .story-copy {
  padding: 4px 0;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 40px;
  color: var(--soft-ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-chip > span {
  font-family: var(--mono);
  font-size: 0.68rem;
  opacity: 0.8;
}

.filter-chip .icon {
  width: 14px;
  height: 14px;
}

.filter-chip:hover {
  border-color: var(--forest);
  color: var(--ink);
}

.filter-chip.is-active {
  background: var(--forest);
  color: var(--forest-ink);
  border-color: var(--forest);
}

.results-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 24px;
  margin-bottom: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.results-line > span:first-child {
  color: var(--ink);
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 72px 24px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.empty-state > .icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
}

.empty-state h2 {
  font-size: 2.2rem;
  margin: 16px 0 10px;
}

.empty-state p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Gallery Controls & Masonry */
.gallery-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.photo-masonry {
  columns: 3;
  column-gap: 22px;
}

.photo-masonry.is-contact {
  columns: 5;
  column-gap: 14px;
}

.photo-card {
  break-inside: avoid;
  margin: 0 0 22px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.photo-masonry.is-contact .photo-card {
  margin-bottom: 14px;
  padding: 8px;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--forest);
}

.photo-card-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.photo-card > a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.photo-card img {
  width: 100%;
  transition: transform 0.55s ease;
}

.photo-card > a:hover img {
  transform: scale(1.035);
}

.photo-card-overlay {
  position: absolute;
  inset: auto 0 0;
  color: #faf6f0;
  background: linear-gradient(transparent, rgba(17, 32, 22, 0.88));
  padding: 36px 14px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.photo-card > a:hover .photo-card-overlay,
.photo-card > a:focus-visible .photo-card-overlay {
  opacity: 1;
}

.photo-card-overlay .icon {
  width: 15px;
  height: 15px;
}

.photo-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.94rem;
  line-height: 1.45;
  padding: 10px 2px 2px;
}

.plate-index {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   9. Article Reading Experience — Monograph Dispatch Layout
   ========================================================================== */
.article-heading {
  padding-top: 38px;
  padding-bottom: 32px;
}

.article-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.dispatch-code {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--soft-ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, color 0.2s ease;
}

.breadcrumb:hover {
  background: var(--sage-pill);
  color: var(--sage-ink);
}

.breadcrumb .icon {
  width: 14px;
  height: 14px;
}

.article-heading > .eyebrow {
  margin-bottom: 12px;
}

.article-heading h1 {
  font-size: clamp(2.9rem, 5.4vw, 4.75rem);
  max-width: 1000px;
  line-height: 0.98;
  margin-bottom: 18px;
}

.article-deck {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.68;
  color: var(--soft-ink);
  max-width: 780px;
  margin-bottom: 28px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--sage-pill);
  color: var(--sage-ink);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  flex-shrink: 0;
}

.byline-author {
  display: block;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink);
}

.byline-meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 3px;
}

.article-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.article-hero-mat {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px 16px 16px;
  box-shadow: var(--shadow);
}

.article-hero-mat > a {
  display: block;
  position: relative;
  height: 520px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.article-hero picture,
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(17, 32, 22, 0.88);
  backdrop-filter: blur(8px);
  color: #faf6f0;
  border: 1px solid rgba(212, 175, 106, 0.4);
  border-radius: 4px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cover-label .icon {
  width: 15px;
  height: 15px;
}

.reading-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 740px);
  column-gap: 68px;
  justify-content: center;
  padding-top: 56px;
}

.reading-aside {
  position: sticky;
  top: 112px;
  align-self: start;
}

.aside-card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.aside-dossier-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.article-toc {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.toc-link {
  display: flex;
  gap: 10px;
  font-size: 0.81rem;
  line-height: 1.48;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--soft-ink);
  transition: color 0.15s ease;
}

.toc-link > span {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 22px;
  padding-top: 1px;
}

.toc-link:hover,
.toc-link[aria-current="location"] {
  color: var(--ink);
  font-weight: 700;
}

.reading-aside-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 16px;
  color: var(--muted);
}

.reading-progress {
  position: fixed;
  z-index: 110;
  top: 86px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 0.08s linear;
}

.article-content {
  min-width: 0;
  counter-reset: plate;
}

.prose {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.88;
  color: var(--ink);
  overflow-wrap: break-word;
}

.prose > p:first-of-type::first-letter {
  font-family: var(--display);
  font-weight: 600;
  float: left;
  font-size: 4.1rem;
  line-height: 0.82;
  padding: 6px 14px 2px 0;
  color: var(--forest);
}

.prose p {
  margin-bottom: 26px;
}

.prose a:not([data-lightbox]) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose h2, .prose h3, .prose h4 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 42px 0 16px;
}

.prose h2 {
  font-size: 2.15rem;
}

.prose h3 {
  font-size: 1.75rem;
}

.prose ul, .prose ol {
  padding-left: 26px;
  margin: 0 0 26px;
}

.prose li {
  padding-left: 4px;
  margin-bottom: 10px;
}

.prose figure {
  counter-increment: plate;
  margin: 42px 0;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.prose figure a {
  display: block;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.prose figure picture,
.prose figure img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.prose figure a:hover img {
  transform: scale(1.02);
}

.prose figcaption {
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--soft-ink);
  padding: 12px 4px 2px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.prose figcaption::before {
  content: "PLATE № " counter(plate, decimal-leading-zero) " ·";
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  flex-shrink: 0;
}

.photo-enlarge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(17, 32, 22, 0.86);
  color: #faf6f0;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 106, 0.35);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.photo-enlarge::after {
  content: "Inspect 1:1";
}

.photo-enlarge .icon {
  width: 14px;
  height: 14px;
}

.prose figure a:hover .photo-enlarge,
.prose figure a:focus-visible .photo-enlarge {
  opacity: 1;
}

.story-end {
  margin: 52px 0 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.story-end-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.end-flourish {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.story-end-header p {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
}

.story-end > span {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--soft-ink);
}

.story-end-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.dispatch-pager {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.pager-card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pager-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pager-next {
  text-align: right;
  align-items: flex-end;
}

.pager-dir {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pager-dir .icon {
  width: 13px;
  height: 13px;
}

.pager-card strong {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.15;
}

.related-section {
  padding-top: 84px;
  padding-bottom: 92px;
}

/* ==========================================================================
   10. About Page, Supporting Pages & Masthead Footer
   ========================================================================== */
.about-opening {
  padding-top: 56px;
  padding-bottom: 40px;
}

.about-opening > .eyebrow {
  margin-bottom: 16px;
}

.about-opening h1 {
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.98;
}

.about-introduction {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 26px;
}

.about-introduction > p {
  font-family: var(--serif);
  font-size: 1.2rem;
  max-width: 640px;
  line-height: 1.72;
  color: var(--soft-ink);
}

.about-date {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.65;
  text-align: right;
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}

.about-date > time {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.about-story {
  display: grid;
  grid-template-columns: 270px minmax(0, 740px);
  gap: 68px;
  justify-content: center;
  border-top: 1px solid var(--line-strong);
  padding-top: 48px;
  padding-bottom: 92px;
}

.about-sidebar {
  position: sticky;
  align-self: start;
  top: 112px;
}

.about-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--forest);
  padding-top: 16px;
}

.about-location .icon {
  width: 15px;
  height: 15px;
}

.small-note {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 10px;
}

.supporting-page {
  max-width: 900px;
  padding-top: 36px;
  padding-bottom: 88px;
}

.supporting-page .page-heading {
  padding-top: 18px;
  padding-bottom: 28px;
}

.supporting-page .page-heading h1 {
  font-size: clamp(2.6rem, 4.8vw, 3.9rem);
}

.supporting-page .page-heading > p {
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-top: 14px;
}

.archive-note {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--soft-ink);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin-bottom: 34px;
  background: var(--surface);
  border-radius: 0 6px 6px 0;
}

.archive-note > strong {
  display: block;
  font-family: var(--mono);
  color: var(--ink);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.supporting-page > .text-link {
  margin-top: 28px;
}

.redirect-page {
  max-width: 820px;
  margin: 70px auto;
  padding: 32px;
}

.redirect-page > .brand {
  margin-bottom: 28px;
}

.redirect-page h1 {
  font-size: 3rem;
  margin-bottom: 24px;
}

.redirect-page a {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: #f4efe6;
  border-top: 1px solid var(--obsidian-line);
  padding: 76px 0 36px;
}

.footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  padding-bottom: 52px;
}

.footer-brand {
  display: flex;
  width: max-content;
  margin-bottom: 24px;
}

.footer-message .eyebrow {
  display: block;
  color: var(--gold-bright);
}

.footer-message h2 {
  font-size: clamp(2.2rem, 3.4vw, 3.1rem);
  line-height: 1.05;
  margin-top: 12px;
  color: #faf6f0;
}

.footer-message h2 em {
  color: #e57a54;
}

.footer-bio {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.8;
  color: #a7b5a9;
  margin-top: 18px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 6px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.footer-links .eyebrow {
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.footer-links a,
.footer-links button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #e4e9e2;
  text-align: left;
  padding: 0;
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--gold-bright);
}

.footer-links .icon {
  width: 15px;
  height: 15px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(212, 175, 106, 0.18);
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #96a598;
}

.footer-bottom > div {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-bottom a:hover,
.footer-bottom button:hover {
  color: #faf6f0;
}

.footer-bottom button {
  font-size: 0.72rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom .icon {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   11. Accessible Command-Palette Search & Darkroom Lightbox Dialogs
   ========================================================================== */
dialog {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  padding: 0;
  box-shadow: var(--shadow-lg);
}

dialog::backdrop {
  background: rgba(9, 15, 11, 0.74);
  backdrop-filter: blur(8px);
}

.search-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(86svh, 820px);
  border-radius: 8px;
  padding: 28px 28px 0;
}

.search-dialog[open] {
  display: flex;
  flex-direction: column;
}

.search-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.search-dialog-head .eyebrow {
  margin-bottom: 6px;
}

.search-dialog-head h2 {
  font-size: 2.1rem;
}

.search-dialog > .search-field {
  flex-shrink: 0;
}

.search-status {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin: 16px 4px 10px;
}

.search-results {
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 100px;
  padding-bottom: 12px;
}

.search-result {
  display: flex;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 14px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.search-result:hover {
  background: var(--surface);
}

.search-result-image {
  width: 84px;
  height: 68px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.search-result-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.search-result-title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.search-result-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.search-result-excerpt {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--soft-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-empty {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 40px 0;
  text-align: center;
}

.search-dialog-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 4px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  flex-shrink: 0;
}

kbd {
  font-family: var(--mono);
  font-size: 0.68rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--muted);
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100svh;
  max-height: 100svh;
  background: rgba(8, 13, 10, 0.97);
  color: #f4efe6;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  overflow-y: auto;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  padding: 24px 24px 18px;
  gap: 14px;
}

.lightbox.is-original-size[open] {
  align-items: start;
  padding-top: 68px;
  padding-bottom: 40px;
}

.lightbox figure {
  grid-column: 2;
  margin: auto;
  max-width: min(2000px, 100%);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - 82px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.65);
  cursor: zoom-in;
}

.lightbox.is-original-size #lightbox-image {
  max-height: none;
  cursor: zoom-out;
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding-top: 14px;
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.5;
  color: #d6dfd4;
}

#lightbox-count {
  font-family: var(--mono);
  font-size: 0.76rem;
  white-space: nowrap;
  color: var(--gold-bright);
}

.lightbox .icon-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #faf6f0;
}

.lightbox .icon-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-toolbar {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-zoom {
  height: 40px;
  padding: 0 15px;
  border-radius: 6px;
  background: rgba(17, 32, 22, 0.88);
  border: 1px solid rgba(212, 175, 106, 0.4);
  color: #faf6f0;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lightbox-zoom:hover,
.lightbox-zoom[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.lightbox-close {
  position: static;
}

.lightbox-prev, .lightbox-next {
  justify-self: center;
  position: sticky;
  top: calc(50svh - 21px);
}

.toast {
  position: fixed;
  z-index: 300;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: var(--obsidian);
  color: #faf6f0;
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 12px 22px;
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 0.78rem;
  max-width: calc(100% - 40px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   12. Responsive Breakpoints (1180px, 980px, 640px, 390px)
   ========================================================================== */
@media (max-width: 1220px) {
  .section-shell, .almanac-strip-inner, .header-inner, .footer-inner {
    padding-left: 32px;
    padding-right: 32px;
  }
  .almanac-center {
    display: none;
  }
  .editorial-hero {
    gap: 38px;
  }
  .almanac-quarters, .pillars-grid, .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .reading-layout, .about-story {
    grid-template-columns: 230px minmax(0, 720px);
    gap: 44px;
  }
}

/* Header tiers. The full desktop header needs ~1340px; between 1280 and 1340px it drops the nav
   numbers, the Ctrl K hint and the search label; at 1279px and below it collapses into the menu button. */
@media (max-width: 1340px) and (min-width: 1280px) {
  .nav-num,
  .search-pill-trigger kbd,
  .search-pill-trigger span,
  .almanac-pub {
    display: none;
  }
  .primary-nav {
    gap: 18px;
  }
  .header-inner {
    gap: 18px;
  }
  .search-pill-trigger {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 1279px) {
  .almanac-strip {
    display: none;
  }
  .header-inner {
    height: 76px;
    padding: 0 24px;
  }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: var(--card);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    max-height: calc(100svh - 80px);
    overflow-y: auto;
  }
  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav a {
    font-family: var(--display);
    font-size: 1.65rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav a[aria-current="page"]::after {
    display: none;
  }
  .header-actions {
    margin-left: auto;
    border: 0;
    padding-left: 0;
  }
  .search-pill-trigger kbd {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .reading-progress {
    top: 76px;
  }
}

@media (max-width: 980px) {
  .editorial-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 36px;
    padding-bottom: 52px;
  }
  .editorial-hero > *,
  .lead-feature-card > *,
  .intro-card > *,
  .reading-layout > *,
  .about-story > *,
  .footer-top > * {
    min-width: 0;
  }
  .pillars-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .lead-feature-card, .intro-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .directory-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .reading-layout, .about-story {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 36px;
  }
  .reading-aside, .about-sidebar {
    position: static;
    margin-bottom: 24px;
  }
  .photo-masonry, .photo-masonry.is-contact {
    columns: 2;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .section-shell, .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
  .header-inner {
    height: 68px;
    padding: 0 14px;
    gap: 8px;
  }
  .primary-nav {
    top: 68px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .brand {
    gap: 8px;
    min-width: 0;
  }
  .brand-crest-svg {
    width: 44px;
    height: 44px;
  }
  .brand-wordmark {
    gap: 2px;
  }
  .brand-title {
    font-size: 1.32rem;
  }
  .brand-subkicker {
    font-size: 0.46rem;
    letter-spacing: 0.14em;
  }
  .search-pill-trigger span {
    display: none;
  }
  .search-pill-trigger {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }
  .icon-button {
    width: 36px;
    height: 36px;
  }
  .header-actions {
    gap: 6px;
  }
  h1, .hero-copy h1, .article-header h1, .archive-hero h1, .about-introduction h1 {
    font-size: clamp(2.15rem, 8.5vw, 3rem);
  }
  h2, .pillars-header h2, .lead-feature-copy h2, .intro-left h2 {
    font-size: clamp(1.8rem, 7vw, 2.35rem);
  }
  .kicker-pill, .specimen-frame-bar {
    flex-wrap: wrap;
    max-width: 100%;
  }
  .hero-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-ledger > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .hero-companion-row, .almanac-quarters, .pillars-grid, .collections-grid, .story-grid, .lead-highlights, .dispatch-pager {
    grid-template-columns: minmax(0, 1fr);
  }
  .almanac-card {
    padding: 24px 18px;
  }
  .almanac-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .photo-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .directory-card {
    padding: 24px 18px;
  }
  .directory-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .index-row {
    grid-template-columns: 38px 1fr;
    gap: 6px;
  }
  .index-cat, .index-plates, .index-read {
    grid-column: 2;
    width: max-content;
  }
  .page-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .journal-toolbar, .toolbar-right {
    flex-direction: column;
    align-items: stretch;
  }
  .archive-search {
    width: 100%;
  }
  .archive-grid.is-ledger .story-card {
    flex-direction: column;
    align-items: stretch;
  }
  .archive-grid.is-ledger .story-photo {
    width: 100%;
  }
  .photo-masonry, .photo-masonry.is-contact {
    columns: 1;
  }
  .article-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-hero-mat > a {
    height: 290px;
  }
  .article-byline {
    flex-wrap: wrap;
  }
  .article-actions {
    width: 100%;
    margin-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .about-introduction {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .about-date {
    text-align: left;
  }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .lightbox[open] {
    grid-template-columns: 1fr;
    padding: 60px 14px 96px;
  }
  .lightbox figure {
    grid-area: 1 / 1;
  }
  .lightbox-prev, .lightbox-next {
    position: absolute;
    bottom: 22px;
  }
  .lightbox-prev {
    left: calc(50% - 54px);
  }
  .lightbox-next {
    right: calc(50% - 54px);
  }
}

@media (max-width: 400px) {
  .header-inner {
    padding: 0 10px;
    gap: 6px;
  }
  .brand {
    gap: 6px;
  }
  .brand-crest-svg {
    width: 40px;
    height: 40px;
  }
  .brand-wordmark {
    gap: 1px;
  }
  .brand-subkicker {
    display: none;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .header-actions {
    gap: 4px;
  }
  .search-pill-trigger,
  .icon-button {
    width: 32px;
    height: 32px;
  }
}

@media print {
  .almanac-strip, .site-header, .reading-aside, .article-actions, .story-end-actions, .dispatch-pager, .related-section, .site-footer, dialog, .toast, .reading-progress {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .reading-layout, .about-story {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* 404: the site template with the medallion as a large seal. */
.not-found {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 96px;
}

.nf-mark {
  width: 112px;
  height: 112px;
  margin-bottom: 30px;
}

.nf-mark .brand-crest-svg {
  width: 100%;
  height: 100%;
}

.not-found h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  margin: 14px 0 20px;
}

.not-found h1 em {
  color: var(--accent);
}

.nf-lede {
  max-width: 34rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--soft-ink);
}

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
