/* ============================================================
   STARCHAN — Hermit / Almanac variant
   Ported from .cd-fetch/hermit-LhO/hermit-page-1/project/hermit-c.css
   (the same stylesheet that backs hermit-almanac-tweakable.html).
   Port deltas:
   - Scoped everything under body.page-hermit (no global :root pollution)
   - Generic class names prefixed (masthead → hermit-masthead, etc.)
   - Dropped @import 'assets/tokens.css' — tokens come from vars.css
   - Dropped tweaks-app.css (CD slider UI, not relevant in production)
   - Galaxy bg uses our existing canvas (hermit-galaxy.js), not a static jpg
   - Tweakable CSS vars retained as --t-* under body.page-hermit so
     future preference toggles (parchment mode etc.) remain easy to wire
   ============================================================ */

body.page-hermit {
  /* ── tweakable variables (scoped to this page only) ── */
  --t-gold:           #c8923a;
  --t-gold-light:     #d4a84e;
  --t-paper:          #f4ecdb;
  --t-page-bg:        #0a0f1a;  /* lifted from near-black #04050a — galaxy was being crushed */

  --t-page-width:     1080px;
  --t-page-pad:       80px;

  --t-hero-size:      124px;
  --t-chapter-size:   52px;
  --t-body-size:      19px;
  --t-tradition-size: 26px;

  --t-gold-rule:      0.55;
  --t-vignette:       0.35;       /* was 0.7 — corners were going pitch-black */
  --t-plate-bg:       0.40;       /* was 0.55 — masthead was reading as opaque slab */

  --t-letter-spacing-eyebrow: 0.4em;
  --t-letter-spacing-roman:   0.5em;

  --t-ornament:       "\2766";
  --t-fleuron:        "\2766";

  --t-drop-cap-size:  112px;  /* was 76 — bigger drop cap requested 2026-05-03 */
  --t-drop-cap-color: #c8923a;

  --t-tradition-cols: 80px 1fr 1.4fr 90px 110px;
  --t-voice-cols:     2;

  --t-show-pilcrows:    inline;
  --t-show-drop-cap:    1;
  --t-show-plate-double: block;
  --t-show-observ-double: block;
  --t-show-roman-suffix: inline;

  --t-density:          1;
  --t-italic-titles:    italic;

  --t-font-display: var(--font-display);

  background: var(--t-page-bg);
  color: var(--text-on-dark);
  /* `clip` not `hidden`: hidden makes body the scroll container, which breaks
     position:sticky chrome AND the board-tabs overflow-x:auto containment
     (see donate.css note). clip kills horizontal bleed without that. */
  overflow-x: clip;
  font-family: var(--t-font-display);
}

/* .page-wrap is a column flexbox; main is a flex item whose default
   min-width:auto refuses to shrink below its content's min-content width.
   min-width:0 lets it shrink to the device width. The content column also
   clips horizontally so no single wide element (e.g. a long row) can inflate
   the mobile layout viewport past device-width. */
body.page-hermit main#main-content { min-width: 0; }
body.page-hermit .hermit-page { overflow-x: clip; }

/* Header + tabs use global translucent chrome (layout.css). Footer alone needs
   its own dark veil so it stays legible over the galaxy backdrop. */
body.page-hermit .site-footer {
  position: relative;
  z-index: 2;
  background: rgba(4, 5, 10, 0.85);
  color: rgba(221, 232, 244, 0.6);
}

/* ============================================================
   GALAXY BACKDROP — fixed, vignetted; canvas painted by hermit-galaxy.js
   ============================================================ */
body.page-hermit .galaxy-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--t-page-bg);
  pointer-events: none;
}
body.page-hermit .galaxy-bg-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 35%, rgba(40, 60, 100, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 70% 65%, rgba(80, 50, 30, 0.10) 0%, transparent 70%),
    var(--t-page-bg);
}
body.page-hermit .galaxy-bg__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* Canvas starts hidden and fades in once the WebGL pipeline marks itself
     live (hermit-galaxy.js sets data-live="1" after first successful frame).
     Prevents the visible "pop" on slow connections / cold tabs. */
  opacity: 0;
  transition: opacity 600ms ease-out;
}
body.page-hermit .galaxy-bg__canvas[data-live="1"] {
  opacity: 1;
}
/* Hide the static fallback once the live canvas takes over. The fallback
   sits as a sibling under .galaxy-bg, so an adjacent-sibling selector pairs
   the live canvas to the fallback regardless of source order. */
body.page-hermit .galaxy-bg:has(.galaxy-bg__canvas[data-live="1"]) .galaxy-bg-fallback {
  opacity: 0;
}
body.page-hermit .galaxy-bg-fallback {
  transition: opacity 600ms ease-out;
}
body.page-hermit .galaxy-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 50%,
    rgba(4, 5, 10, 0) 0%,
    rgba(4, 5, 10, calc(var(--t-vignette) * 0.45)) 70%,
    rgba(4, 5, 10, var(--t-vignette)) 100%);
}

/* ============================================================
   PUBLICATION MASTHEAD (decorative; sits below site nav)
   ============================================================ */
body.page-hermit .hermit-masthead {
  position: relative;
  text-align: center;
  padding: calc(36px * var(--t-density)) 56px calc(24px * var(--t-density));
  border-bottom: 1px solid rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.82));
  background: rgba(4, 5, 10, calc(var(--t-plate-bg) * 1));
  z-index: 1;
}
body.page-hermit .hermit-masthead::before,
body.page-hermit .hermit-masthead::after {
  content: "";
  position: absolute;
  left: 56px;
  right: 56px;
  height: 1px;
  background: rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.58));
}
body.page-hermit .hermit-masthead::before { top: 14px; }
body.page-hermit .hermit-masthead::after  { bottom: 6px; }
body.page-hermit .hermit-masthead__brand {
  font-family: var(--t-font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--t-gold);
  margin: 0 0 6px;
}
body.page-hermit .hermit-masthead__brand .orn {
  font-size: 18px;
  margin: 0 14px;
  opacity: 0.75;
}
body.page-hermit .hermit-masthead__sub {
  font-family: var(--t-font-display);
  font-size: 14px;
  color: #c8c1b3;
  letter-spacing: 0.05em;
  margin: 0;
}
body.page-hermit .hermit-masthead__sub em {
  font-style: italic;
  color: var(--t-gold-light);
}

/* ============================================================
   PAGE — main content column
   ============================================================ */
body.page-hermit .hermit-page {
  max-width: var(--t-page-width);
  margin: 0 auto;
  padding: 0 var(--t-page-pad);
  position: relative;
  z-index: 1;
  /* Tight baseline halo on every glyph — keeps body copy crisp on the
     busy galaxy bg without smudging at small sizes. Display-size text
     gets a wider halo via .hermit-hero/__title selectors below. */
  text-shadow: 0 1px 2px rgba(4, 6, 14, 0.85);
}

/* Vertical "content well" — darkens the central column where the text
   lives so body copy reads cleanly. Soft gradient feathers at the edges
   keeps the galaxy visible at the margins; ::before sits behind text
   children but above the canvas (z-index: -1 within .hermit-page
   stacking context). inset: 0 keeps the well inside the column boundary
   so the galaxy is preserved at every viewport size. */
body.page-hermit .hermit-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right,
    rgba(4, 6, 14, 0)    0%,
    rgba(4, 6, 14, 0.55) 12%,
    rgba(4, 6, 14, 0.72) 50%,
    rgba(4, 6, 14, 0.55) 88%,
    rgba(4, 6, 14, 0)    100%);
  pointer-events: none;
}

/* Wider, more dramatic halo for display-size text — large glyphs can
   carry the extra glow without smudging. Body copy keeps the tight
   baseline halo. */
body.page-hermit .hermit-hero__title,
body.page-hermit .hermit-hero__subtitle,
body.page-hermit .hermit-chapter__title,
body.page-hermit .cat-item__name,
body.page-hermit .observ__name,
body.page-hermit .cta-section__head,
body.page-hermit .promise__head {
  text-shadow: 0 1px 3px rgba(4, 6, 14, 0.9), 0 0 14px rgba(4, 6, 14, 0.5);
}

/* The masthead already has its own bg slab; give it the wide halo too
   so the brand line keeps the same display-type weight. */
body.page-hermit .hermit-masthead {
  text-shadow: 0 1px 3px rgba(4, 6, 14, 0.9), 0 0 14px rgba(4, 6, 14, 0.5);
}

/* ============================================================
   HERO PLATE
   ============================================================ */
body.page-hermit .hermit-hero {
  text-align: center;
  padding: calc(88px * var(--t-density)) 0 calc(72px * var(--t-density));
}
body.page-hermit .hermit-hero__plate {
  position: relative;
  border-top: 1px solid rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.9));
  border-bottom: 1px solid rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.9));
  padding: 56px 24px;
  margin: 0 32px;
}
body.page-hermit .hermit-hero__plate::before,
body.page-hermit .hermit-hero__plate::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  height: 1px;
  background: rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.5));
  display: var(--t-show-plate-double);
}
body.page-hermit .hermit-hero__plate::before { top: -10px; }
body.page-hermit .hermit-hero__plate::after  { bottom: -10px; }

body.page-hermit .hermit-hero__eyebrow {
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: var(--t-letter-spacing-eyebrow);
  text-transform: uppercase;
  color: var(--t-gold);
  margin: 0 0 18px;
}
body.page-hermit .hermit-hero__eyebrow .orn {
  font-family: var(--t-font-display);
  margin: 0 12px;
  opacity: 0.75;
}
body.page-hermit .hermit-hero__title {
  font-family: var(--t-font-display);
  font-weight: 700;
  font-style: var(--t-italic-titles);
  font-size: clamp(72px, 8.5vw, var(--t-hero-size));
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--t-paper);
  margin: 0 0 22px;
}
body.page-hermit .hermit-hero__subtitle {
  font-family: var(--t-font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--t-gold-light);
  margin: 0 0 32px;
}
body.page-hermit .hermit-hero__manifesto {
  font-family: var(--t-font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: #d6cfc0;
  max-width: 56ch;
  margin: 0 auto 28px;
}
body.page-hermit .hermit-hero__tagline {
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: var(--t-letter-spacing-eyebrow);
  text-transform: uppercase;
  color: var(--t-gold);
}
body.page-hermit .hermit-hero__tagline .sep {
  font-family: var(--t-font-display);
  margin: 0 14px;
  opacity: 0.75;
}

/* ============================================================
   CHAPTER HEADERS
   ============================================================ */
body.page-hermit .hermit-chapter {
  text-align: center;
  margin: 0 0 calc(40px * var(--t-density));
}
body.page-hermit .hermit-chapter__roman {
  font-family: var(--t-font-display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: var(--t-letter-spacing-roman);
  color: var(--t-gold);
  margin: 0 0 12px;
  text-transform: uppercase;
}
body.page-hermit .hermit-chapter__title {
  font-family: var(--t-font-display);
  font-weight: 700;
  font-style: var(--t-italic-titles);
  font-size: var(--t-chapter-size);
  line-height: 1.05;
  color: #f1e8d6;
  margin: 0 0 14px;
  letter-spacing: -0.012em;
}
body.page-hermit .hermit-chapter__lede {
  font-family: var(--t-font-display);
  font-style: italic;
  font-size: 18px;
  color: #c8c1b3;
  max-width: 56ch;
  margin: 0 auto;
}

/* ============================================================
   PROOF — observationes plate
   ============================================================ */
body.page-hermit .hermit-proof {
  background: rgba(8, 10, 18, calc(var(--t-plate-bg) * 1.15));
  border: 1px solid rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.85));
  padding: 14px;
  margin: calc(56px * var(--t-density)) 0;
  /* Gold-tinted depth — same plate signature as the method cards. */
  box-shadow:
    0 0 0 1px rgba(200, 146, 58, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 0 60px rgba(200, 146, 58, 0.025);
}
body.page-hermit .hermit-proof__inner {
  border: 1px solid rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.55));
  padding: 40px 32px 36px;
  position: relative;
  display: block;
}
body.page-hermit .hermit-proof__inner::before {
  content: "OBSERVATIONES";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #0a0c14;
  padding: 0 16px;
  font-family: var(--t-font-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--t-gold);
}
/* Bottom break-mark — mirrors the OBSERVATIONES top label as a closing
   ornament. Three glyphs read as a small fleuron rule rather than a
   single mark, matching the page's `❦ ✦ ❦` ornament pattern. */
body.page-hermit .hermit-proof__inner::after {
  content: "❦  ✦  ❦";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #0a0c14;
  padding: 0 14px;
  font-family: var(--t-font-display);
  font-size: 14px;          /* normalized with .cta-section ornament cluster */
  letter-spacing: 0.4em;    /* normalized with .cta-section ornament cluster */
  color: var(--t-gold);
  line-height: 1;
}
body.page-hermit .hermit-proof__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
body.page-hermit .hermit-proof__row .hermit-stat {
  text-align: center;
  padding: 16px 8px;
  border-right: 1px solid rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.4));
}
body.page-hermit .hermit-proof__row .hermit-stat:last-child { border-right: none; }
body.page-hermit .hermit-stat__label {
  font-family: var(--font-main);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--t-gold);
  display: block;
  margin-bottom: 12px;
}
body.page-hermit .hermit-stat__num {
  font-family: var(--t-font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--t-paper);
  display: block;
  letter-spacing: -0.01em;
}
body.page-hermit .hermit-stat__roman {
  font-family: var(--t-font-display);
  font-style: italic;
  font-size: 11px;
  color: var(--t-gold);
  opacity: 0.7;
  display: var(--t-show-roman-suffix);
  margin-top: 8px;
  letter-spacing: 0.1em;
}

/* ============================================================
   TRADITIONS CATALOG
   ============================================================ */
body.page-hermit .traditions-catalog {
  margin: calc(32px * var(--t-density)) 0 0;
  padding: 0;
  list-style: none;
}
body.page-hermit .cat-item {
  border-bottom: 1px solid rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.4));
  /* Make the gold under-rule visibly stronger when this item's <details>
     is open, to anchor the expanded sub-list to its parent row. */
}
body.page-hermit .cat-item:first-child {
  border-top: 1px solid rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.82));
}
body.page-hermit .cat-item:last-child {
  border-bottom: 1px solid rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.82));
}

/* <details>/<summary> wrapper. The <summary> takes over the cat-item row
   responsibilities; the rest of <details> holds the expanded book list. */
body.page-hermit .cat-details {
  display: block;
}
body.page-hermit .cat-details[open] {
  background: rgba(200, 146, 58, 0.025);
}

/* Hide the default browser disclosure triangle (Webkit + Firefox). */
body.page-hermit .cat-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: var(--t-tradition-cols) 28px;
  align-items: baseline;
  gap: 20px;
  padding: calc(22px * var(--t-density)) 16px;
  transition: background 200ms ease;
  -webkit-user-select: none;
          user-select: none;
}
body.page-hermit .cat-summary::-webkit-details-marker { display: none; }
body.page-hermit .cat-summary::marker                  { display: none; content: ""; }
body.page-hermit .cat-summary:hover {
  background: rgba(200, 146, 58, 0.05);
}
body.page-hermit .cat-summary:focus-visible {
  outline: 2px solid var(--t-gold);
  outline-offset: -2px;
}

body.page-hermit .cat-summary__chevron {
  font-family: var(--t-font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--t-gold);
  text-align: right;
  line-height: 1;
  opacity: 0.7;
  transition: transform 250ms ease, opacity 200ms ease;
  align-self: center;
}
body.page-hermit .cat-summary:hover .cat-summary__chevron {
  opacity: 1;
}
body.page-hermit .cat-details[open] .cat-summary__chevron {
  transform: rotate(45deg);  /* "+" rotates 45° → looks like "×" / "open" */
  opacity: 1;
  color: var(--t-gold-light);
}

body.page-hermit .cat-item__num {
  font-family: var(--t-font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  color: var(--t-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
body.page-hermit .cat-item__name {
  font-family: var(--t-font-display);
  font-weight: 700;
  font-style: var(--t-italic-titles);
  font-size: var(--t-tradition-size);
  line-height: 1.2;
  color: #f1e8d6;
  margin: 0;
  letter-spacing: -0.005em;
}
body.page-hermit .cat-item__era {
  font-family: var(--t-font-display);
  font-style: italic;
  font-size: 17px;
  color: #c8c1b3;
  margin: 0;
}
body.page-hermit .cat-item__count {
  font-family: var(--font-main);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-gold);
  text-align: right;
}
body.page-hermit .cat-item__count .v {
  display: block;
  font-family: var(--t-font-display);
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  color: #f1e8d6;
  margin-top: 4px;
}

/* ============================================================
   EXPANDED BOOK LIST — almanac sub-catalogue
   ============================================================ */
body.page-hermit .cat-books {
  padding: 12px 24px 36px 64px;  /* lighter left indent so book rows breathe */
  border-top: 1px dashed rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.32));
  background: rgba(8, 10, 18, 0.40);
  animation: hermit-expand 280ms ease-out;
}
@keyframes hermit-expand {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.page-hermit .cat-books__lede {
  font-family: var(--t-font-display);
  font-style: italic;
  font-size: 15px;
  color: rgba(212, 168, 78, 0.95);   /* gold-light, near-full opacity */
  margin: 20px 0 18px;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
body.page-hermit .cat-books__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: hermit-book;
}
body.page-hermit .cat-book {
  position: relative;
  padding: 18px 0 18px 40px;
  border-bottom: 1px dashed rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.30));
  font-family: var(--t-font-display);
  font-size: 17px;
  line-height: 1.55;
  color: #ece5d3;                    /* warmer cream — better luminance on dark */
}
body.page-hermit .cat-book:last-child { border-bottom: none; }
body.page-hermit .cat-book::before {
  counter-increment: hermit-book;
  content: counter(hermit-book) ".";
  position: absolute;
  left: 0;
  top: 19px;
  font-family: var(--t-font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--t-gold-light);
  opacity: 0.95;
  letter-spacing: 0.04em;
  min-width: 30px;
  text-align: right;
  padding-right: 10px;
}
body.page-hermit .cat-book__author {
  font-weight: 700;
  color: #faf3df;                    /* brighter cream for primary identifier */
  margin-right: 6px;
}
body.page-hermit .cat-book__title {
  font-style: italic;
  color: #dcd3bf;
}
body.page-hermit .cat-book__meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 6px;
  margin-left: 6px;
  font-family: var(--font-main);
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  align-items: baseline;
}
body.page-hermit .cat-book__anns {
  color: var(--t-gold-light);
  border-left: 1px solid rgba(200, 146, 58, 0.55);
  padding-left: 14px;
  font-style: italic;
  font-family: var(--t-font-display);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 13.5px;
  font-weight: 600;
}

/* On narrow screens the meta block stacks beneath the title rather than
   trying to flow inline with the row, otherwise it wraps awkwardly. */
@media (max-width: 760px) {
  body.page-hermit .cat-books {
    padding: 10px 18px 28px 36px;
  }
  body.page-hermit .cat-book {
    padding: 16px 0 16px 30px;
    font-size: 16px;
  }
  body.page-hermit .cat-book::before {
    top: 17px;
    min-width: 22px;
    padding-right: 6px;
  }
  body.page-hermit .cat-book__meta {
    display: flex;
    margin-left: 0;
  }
}

/* ============================================================
   VOICES COLOPHON
   ============================================================ */
body.page-hermit .colophon-list {
  list-style: none;
  margin: calc(32px * var(--t-density)) 0 0;
  padding: 32px 24px;
  border-top: 1px solid rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.82));
  border-bottom: 1px solid rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.82));
  column-count: var(--t-voice-cols);
  column-gap: 64px;
}
body.page-hermit .col-entry {
  break-inside: avoid;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.32));
}
body.page-hermit .col-entry:last-child { border-bottom: none; }
body.page-hermit .col-entry__num {
  font-family: var(--t-font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--t-gold);
  padding-top: 4px;
  letter-spacing: 0.05em;
  opacity: 0.85;
}
body.page-hermit .col-entry__body {
  font-family: var(--t-font-display);
  font-size: 16px;
  line-height: 1.4;
  color: #e8e0d0;
}
body.page-hermit .col-entry__author { font-weight: 700; color: #f1e8d6; }
body.page-hermit .col-entry__work   { font-style: italic; color: #d6cfc0; }
body.page-hermit .col-entry__era {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--t-gold);
  margin-left: 4px;
  opacity: 0.85;
}

/* ============================================================
   OBSERVATIONS (method cards)
   ============================================================ */
body.page-hermit .observ {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: calc(32px * var(--t-density)) 0;
  padding: 24px 0;
}
body.page-hermit .observ__item {
  text-align: center;
  padding: 38px 24px 32px;
  position: relative;
  border: 1px solid rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.72));
  background: rgba(8, 10, 18, calc(var(--t-plate-bg) * 1.05));
  /* Subtle gold-tinted depth — gives the plates presence on the busy bg
     without competing with the bloom on the galaxy. */
  box-shadow:
    0 0 0 1px rgba(200, 146, 58, 0.05),
    0 6px 24px rgba(0, 0, 0, 0.45),
    inset 0 0 40px rgba(200, 146, 58, 0.02);
}
body.page-hermit .observ__item::before {
  content: "";
  position: absolute;
  inset: 8px;                                /* widened from 4px — more breath */
  border: 1px solid rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.38));
  pointer-events: none;
  display: var(--t-show-observ-double);
}
/* Top break-mark glyph — sits centered on the outer top edge, breaking
   through the frame the way OBSERVATIONES does on the proof strip. The
   single ✦ ties to the page's primary ornament and signals "this is a
   plate, not a card." */
body.page-hermit .observ__item::after {
  content: "✦";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--t-font-display);
  font-size: 16px;
  color: var(--t-gold);
  background: #0a0c14;
  padding: 0 10px;
  line-height: 1;
  pointer-events: none;
}
body.page-hermit .observ__roman {
  font-family: var(--t-font-display);
  font-weight: 700;
  font-size: 38px;
  color: var(--t-gold);
  letter-spacing: 0.1em;
  margin: 0 0 8px;
  line-height: 1;
}
body.page-hermit .observ__name {
  font-family: var(--t-font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  color: #f1e8d6;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
body.page-hermit .observ__rule {
  width: 36px;
  height: 1px;
  background: var(--t-gold);
  margin: 0 auto 16px;
  opacity: 0.6;
}
body.page-hermit .observ__body {
  font-family: var(--t-font-display);
  font-size: 15px;
  line-height: 1.6;
  color: #d6cfc0;
  margin: 0;
}

/* ============================================================
   PROMISE — drop cap paragraph
   ============================================================ */
body.page-hermit .promise {
  padding: calc(32px * var(--t-density)) 64px;
  border-top: 1px solid rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.72));
  border-bottom: 1px solid rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.72));
  position: relative;
  background: rgba(8, 10, 18, calc(var(--t-plate-bg) * 1));
  margin: calc(32px * var(--t-density)) 0;
}
body.page-hermit .promise__head {
  font-family: var(--t-font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--t-gold);
  text-align: center;
  margin: 0 0 24px;
}
body.page-hermit .promise__head .o {
  font-style: normal;
  opacity: 0.7;
  margin: 0 12px;
}
body.page-hermit .promise__body {
  font-family: var(--t-font-display);
  font-size: var(--t-body-size);
  line-height: 1.65;
  color: #e8e0d0;
  margin: 0;
  text-align: justify;
  text-indent: 0;
  /* Cleaner justified rag — hyphens break long words at line ends so we
     don't get rivers of whitespace between justified words. */
  hyphens: auto;
  -webkit-hyphens: auto;
  text-justify: inter-word;
}
body.page-hermit .promise__body::first-letter {
  font-family: var(--t-font-display);
  font-weight: 700;
  font-size: calc(var(--t-drop-cap-size) * var(--t-show-drop-cap));
  /* Sized for ~3 lines of body text alongside the cap. line-height: 0.82
     keeps the cap baseline-aligned with the wrapping text. */
  line-height: 0.82;
  float: left;
  margin: 6px 14px 0 0;
  color: var(--t-drop-cap-color);
  opacity: var(--t-show-drop-cap);
}
body.page-hermit .promise__body .pilcrow {
  display: var(--t-show-pilcrows);
  font-family: var(--t-font-display);
  color: var(--t-gold);
  margin: 0 6px 0 4px;
  opacity: 0.75;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
body.page-hermit .cta-section {
  text-align: center;
  padding: 48px 0 24px;
  margin-top: calc(48px * var(--t-density));
  position: relative;
}
/* Ornament rule above the closing CTA. ::before is the gold rule line
   (paints first, sits behind); ::after is the glyph cluster (paints last,
   sits on top of the rule and breaks through it). Pseudo-render order
   alone handles layering — no z-index needed, more robust against future
   changes that might introduce a stacking context here. */
body.page-hermit .cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.72));
}
body.page-hermit .cta-section::after {
  content: "❦  ✦  ❦";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #0a0c14;
  padding: 0 18px;
  font-family: var(--t-font-display);
  font-size: 14px;          /* normalized with .hermit-proof__inner::after */
  letter-spacing: 0.4em;
  color: var(--t-gold);
  line-height: 1;
}
body.page-hermit .cta-section__head {
  font-family: var(--t-font-display);
  font-weight: 700;
  font-style: var(--t-italic-titles);
  font-size: 42px;
  line-height: 1.1;
  color: #f1e8d6;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
body.page-hermit .cta-section__head em {
  color: var(--t-gold-light);
  font-style: italic;
}
body.page-hermit .cta-section__buttons {
  display: inline-flex;
  gap: 18px;
  margin: 16px 0 24px;
}
body.page-hermit .hermit-btn {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid;
  text-decoration: none;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  transition: transform 150ms ease, color 150ms ease, border-color 150ms ease, background 150ms ease;
}
body.page-hermit .hermit-btn--primary {
  background: var(--t-gold);
  color: var(--navy-deep);
  border-color: var(--t-gold);
}
body.page-hermit .hermit-btn--primary:hover,
body.page-hermit .hermit-btn--primary:focus-visible {
  background: var(--t-gold-light);
  border-color: var(--t-gold-light);
  transform: translateY(-1px);
}
body.page-hermit .hermit-btn:focus-visible {
  outline: 2px solid var(--t-gold-light);
  outline-offset: 3px;
}
body.page-hermit .hermit-btn--outline {
  background: transparent;
  color: var(--t-gold);
  border-color: rgba(200, 146, 58, 0.6);
}
body.page-hermit .hermit-btn--outline:hover,
body.page-hermit .hermit-btn--outline:focus-visible {
  color: var(--t-gold-light);
  border-color: var(--t-gold-light);
  transform: translateY(-1px);
}
body.page-hermit .hermit-btn .glyph { font-family: var(--t-font-display); }
body.page-hermit .cta-section__note {
  font-family: var(--t-font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--t-gold);
  margin: 16px 0 0;
}

/* ============================================================
   COLOPHON FOOT
   ============================================================ */
body.page-hermit .colophon-foot {
  text-align: center;
  padding: 32px 0 48px;
  font-family: var(--t-font-display);
  font-style: italic;
  font-size: 12px;
  color: rgba(200, 146, 58, 0.7);
  letter-spacing: 0.18em;
}
body.page-hermit .colophon-foot .orn {
  color: var(--t-gold);
  margin: 0 12px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Narrow-desktop band: the five-across stat row keeps 44px serif numerals,
   but between 981px (where the 2-col reflow ends) and ~1294px the 1fr
   tracks bottom out at the numerals' min-content — "39,789" fills its
   whole cell and sits 17px from "23,319" with the column hairline lost
   between them, reading as one mashed figure (owner UAT 2026-07-22).
   Scale the numerals with the viewport in this band; 3.4vw reaches 44px
   at 1294px so the hand-off to the fixed size is seamless. */
@media (min-width: 981px) and (max-width: 1294px) {
  body.page-hermit .hermit-stat__num {
    font-size: clamp(30px, 3.4vw, 44px);
  }
}

@media (max-width: 980px) {
  body.page-hermit {
    --t-page-pad:       40px;
    --t-hero-size:      96px;
    --t-chapter-size:   42px;
    --t-tradition-size: 22px;
    --t-tradition-cols: 60px 1fr 90px 110px;
    --t-voice-cols:     1;
  }
  body.page-hermit .cat-item .cat-item__era {
    grid-column: 2 / -1;
    margin-top: 4px;
  }
  body.page-hermit .observ {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  body.page-hermit .hermit-proof__row {
    grid-template-columns: repeat(2, 1fr);
  }
  body.page-hermit .hermit-proof__row .hermit-stat {
    border-right: none;
    border-bottom: 1px solid rgba(200, 146, 58, calc(var(--t-gold-rule) * 0.4));
  }
}

@media (max-width: 640px) {
  body.page-hermit {
    --t-page-pad:    20px;
    --t-hero-size:   64px;
  }
  /* The outer base.html main carries 32px side padding on every page; on
     hermit it stacks onto each section's own min-content (masthead brand,
     traditions catalog) and floored the page at ~392px — a horizontal wobble
     on 360-390px phones (UAT 2026-07-21). Hermit is a full-bleed page; trim
     the outer gutter on phones only. */
  body.page-hermit main#main-content { padding-left: 12px; padding-right: 12px; }
  body.page-hermit .hermit-masthead { padding: 20px 16px 14px; }
  body.page-hermit .hermit-masthead::before,
  body.page-hermit .hermit-masthead::after { left: 16px; right: 16px; }
  body.page-hermit .hermit-masthead__brand {
    font-size: 16px;
    letter-spacing: 0.32em;
  }
  body.page-hermit .hermit-hero__plate { margin: 0; padding: 32px 16px; }
  body.page-hermit .hermit-proof__row { grid-template-columns: 1fr; }
  body.page-hermit .hermit-proof__row .hermit-stat:last-child { border-bottom: none; }
  /* The grid lives on .cat-summary, not .cat-item — the old rules targeted the
     wrong element, so the 5-column desktop template (60px 1fr 90px 110px 28px)
     never collapsed on phones and forced a ~528px min-content width that
     widened the WHOLE page (clipping the masthead/hero). Reflow the summary
     itself into a compact 3-column stack. */
  body.page-hermit .cat-summary {
    /* minmax(0, 1fr), NOT bare 1fr (UAT 2026-07-21): a 1fr track's implied
       minimum is the min-content of its largest item, and "Mesopotamian"
       (one unbreakable word, 148px at 22px) propagated up the whole chain as
       a page min-width of ~410px — a 20px horizontal wobble on 390px phones. */
    grid-template-columns: 46px minmax(0, 1fr) 28px;
    grid-template-rows: auto auto auto;
    gap: 6px 14px;
    align-items: center;
  }
  body.page-hermit .cat-item__num        { grid-row: 1; grid-column: 1; }
  body.page-hermit .cat-item__name       {
    grid-row: 1; grid-column: 2;
    min-width: 0;
    font-size: 19px;
    /* absolute floor on very narrow screens: hyphenate rather than widen */
    overflow-wrap: break-word;
    hyphens: auto;
  }
  body.page-hermit .cat-summary__chevron { grid-row: 1; grid-column: 3; }
  body.page-hermit .cat-item__era        { grid-row: 2; grid-column: 2 / -1; }
  body.page-hermit .cat-item__count      { grid-row: 3; grid-column: 1 / -1; text-align: left; }
  body.page-hermit .cat-item__count .v   { display: inline; margin-left: 8px; }
  body.page-hermit .promise { padding: 24px 18px; }
  body.page-hermit .cta-section__head { font-size: 30px; }
  /* Two tracked-out buttons in a no-wrap inline-flex overflow ~390px — let
     them stack on phones. */
  body.page-hermit .cta-section__buttons { display: flex; flex-wrap: wrap; justify-content: center; }
}

/* iPhone-SE-class viewports — drop cap and hero scale down further so the
   floated cap doesn't crowd the body column and the hero title doesn't
   bleed past the plate. */
@media (max-width: 480px) {
  body.page-hermit {
    --t-drop-cap-size: 80px;
    --t-hero-size:     56px;
  }
  body.page-hermit .hermit-hero__title {
    font-size: clamp(48px, 12vw, var(--t-hero-size));
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  body.page-hermit *,
  body.page-hermit *::before,
  body.page-hermit *::after {
    transition: none !important;
    animation: none !important;
  }
}
