/* copy of https://unoccult.org/assets/css/main.css, synced by tools/sync_chrome.py; do not edit by hand */
/* ============================================================
   Unoccult — base styles
   Editorial, restrained. Cream paper, slate ink, navy accent.
   System font stack (no third-party fonts).
   ============================================================ */

:root {
  --bg:           #f5f1e8;   /* warm cream */
  --bg-soft:      #efe9dc;   /* slightly deeper cream for surfaces */
  --bg-card:      #fffdf7;   /* near-white card surface */
  --ink:          #1c1f24;   /* primary text */
  --ink-soft:     #3a4049;   /* secondary text */
  --ink-mute:     #6b7079;   /* tertiary / meta */
  --rule:         #d8cfbb;   /* hairline rules on cream */
  --rule-strong:  #b8ad94;
  --accent:       #1f3a5f;   /* deep navy */
  --accent-ink:   #142640;
  --accent-soft:  #e6ecf3;   /* navy-tinted background */
  --warn:         #7a2e2e;   /* burgundy used sparingly */

  --font-serif:   "Charter", "Iowan Old Style", "Iowan", "Source Serif Pro", "Apple Garamond", Georgia, "Times New Roman", serif;
  --font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --maxw:         68rem;
  --maxw-prose:   42rem;
  --gutter:       1.5rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--accent-ink); text-decoration-thickness: 2px; }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left:  var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem; top: 1rem;
  background: var(--ink); color: var(--bg);
  padding: .5rem .75rem; z-index: 1000;
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: .02em;
}
.brand:hover { color: var(--accent); }
.brand-mark {
  width: 18px; height: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 4px;
  background: var(--ink);
  border-radius: 50%;
}
.brand-name { font-size: 1.05rem; }

.primary-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 1.5rem;
  font-family: var(--font-sans);
  font-size: .95rem;
}
.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.primary-nav a:hover,
.primary-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none; border: 0; padding: .5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); margin: 4px 0;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .primary-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 1rem var(--gutter);
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: .75rem; }
  .site-header { position: relative; }
}

/* ---------- Main ---------- */

.site-main { padding: 3rem 0 5rem; }

/* ---------- Homepage hero ---------- */

.hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--rule);
}
.hero-eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .8rem;
  color: var(--ink-mute);
  margin: 0 0 1rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -.01em;
  max-width: 22ch;
}
.hero-lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .95rem;
  padding: .75rem 1.25rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- Sections ---------- */

.section { padding: 3rem 0; border-bottom: 1px solid var(--rule); }
.section-traditions { padding-top: 4rem; }
.section-stance { background: var(--bg-soft); }

.section-head { margin-bottom: 2rem; }
.section-head h2 {
  font-size: 1.6rem; margin: 0 0 .5rem;
  letter-spacing: -.005em;
}
.section-sub {
  color: var(--ink-soft);
  margin: 0; max-width: 60ch;
}

/* ---------- Card grid (homepage traditions) ---------- */

.card-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); }
.card-link {
  display: block; padding: 1.25rem 1.25rem 1.5rem;
  color: var(--ink); text-decoration: none;
}
.card-title {
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0 0 .25rem;
  letter-spacing: -.005em;
  /* Clamp + reserve a uniform 2-line title block across all homepage
     cards so they align regardless of name length (e.g. "Tarot" vs
     "Hermetic Order of the Golden Dawn"). */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3rem * 1.2 * 2);
}
.card-meta {
  font-family: var(--font-sans);
  font-size: .8rem;
  line-height: 1.4;
  color: var(--ink-mute);
  margin-bottom: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  /* Clamp the year/region row to one line and reserve its height so
     cards align even when founded_year + region strings vary in
     length. Long values ellipsis-truncate. */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(.8rem * 1.4);
}
.card-summary {
  font-size: .98rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  /* Clamp the summary to 5 lines with a min-height reservation so
     the summary block is the same height on every card regardless
     of source length. Full text stays in the DOM for accessibility
     and search indexing. */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(.98rem * 1.5 * 5);
}
.card-cta {
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--accent);
  letter-spacing: .02em;
}
.card-link:hover .card-cta { text-decoration: underline; }

/* ---------- Intro section (homepage editorial block) ---------- */

.section-intro { padding: 3rem 0; border-bottom: 1px solid var(--rule); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 50rem);
  justify-content: center;
}
.intro-prose h2 {
  font-size: 1.7rem;
  margin: 0 0 1rem;
  letter-spacing: -.005em;
}
.intro-prose p {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.article-page .intro-prose {
  margin: 2rem 0 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.article-page .intro-prose-tail {
  margin: 3rem 0 0;
  padding-top: 2rem;
  padding-bottom: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 0;
}
.article-page .intro-prose-tail h2 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
  letter-spacing: -.005em;
}

/* ---------- Stance grid ---------- */

.stance-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}
.stance h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-mute);
  margin: 0 0 .5rem;
  font-weight: 600;
}
.stance p { margin: 0; color: var(--ink-soft); }

/* ---------- Article / page-head ---------- */

.article-page { max-width: 50rem; }
.article-page.prose { max-width: var(--maxw-prose); }

.page-head { margin-bottom: 2.5rem; }
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .8rem;
  color: var(--ink-mute);
  margin: 0 0 .75rem;
}
.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 .75rem;
  letter-spacing: -.01em;
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 55ch;
}

/* ---------- Index grid (traditions index) ---------- */

.index-grid {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

/* /tracts index uses a 2-column grid (wider cards, more breathing room
   for the longer standfirst summaries). /traditions index stays at 3. */
.tracts-index .index-grid {
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.25rem;
}
.index-item {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  transition: border-color .15s, transform .15s;
}
.index-item:hover { border-color: var(--accent); }
.index-link {
  display: block;
  padding: 1rem 1.1rem 1.2rem;
  color: var(--ink);
  text-decoration: none;
  height: 100%;
}
.index-link:hover .index-title { color: var(--accent); }
.index-title {
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -.005em;
  /* Clamp + reserve a uniform 2-line title block across all index cards
     so cards align regardless of title length (e.g. "Tarot" vs
     "Hermetic Order of the Golden Dawn"). */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.15rem * 1.2 * 2);
}
.index-year {
  display: block;
  font-family: var(--font-sans);
  font-size: .72rem;
  line-height: 1.4;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .35rem;
  margin-bottom: .65rem;
  /* Clamp the year/region row to one line and reserve its height
     so cards align even when founded_year strings vary in length
     (e.g. "1971" vs "1899 (Leland) / 1990s (Grimassi revival)"). */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(.72rem * 1.4);
}
.index-summary {
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  /* Clamp the summary to 7 lines with a min-height reservation so the
     summary block is the same height on every card regardless of source
     length. Full summary text stays in the DOM for accessibility and
     search indexing. */
  display: -webkit-box;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(.9rem * 1.5 * 7);
}

/* ---------- Tract subnav + landing TOC + sub-page navigation ---------- */

/* On tract / tradition / concordance pages the subnav's top border is the
   section divider — drop the entry-head's own bottom border to avoid a
   doubled rule. */
.tract-overview .entry-head,
.tract-subpage .entry-head,
.tradition-overview .entry-head,
.tradition-subpage .entry-head,
.concordance-entry .entry-head {
  border-bottom: 0;
  padding-bottom: .5rem;
}

/* ---------- Social sharing row ---------- */

.share-links {
  margin: 2.5rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
}
.share-label {
  font-family: var(--font-sans);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-mute);
}
.share-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  font-family: var(--font-sans);
  font-size: .85rem;
}
.share-links a,
.share-links .share-copy {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  letter-spacing: 0;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.share-links a:hover,
.share-links .share-copy:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* When share-links precedes prev/next, the share row's own top border is
   the divider — collapse prev/next's own border + heavy spacing so we
   don't get a doubled rule and 5rem of empty space between them. */
.share-links + .tract-prevnext {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: 0;
}

/* ---------- Audit summary box (feminism tract only) ---------- */

.audit-summary-box {
  margin: 1.5rem 0 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.audit-score-block {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.audit-score-value {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.02em;
}
.audit-score-label {
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.audit-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: .7rem;
  margin: 0;
}
.audit-meta > div {
  display: grid;
  grid-template-columns: minmax(6rem, 8rem) 1fr;
  gap: 1.1rem;
  align-items: baseline;
}
.audit-meta dt {
  font-family: var(--font-sans);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-mute);
  margin: 0;
  font-weight: 600;
}
.audit-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.5;
}
.audit-corrections {
  padding-left: 1.4rem;
}
.audit-corrections li {
  margin: .55rem 0;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.audit-corrections li strong {
  color: var(--ink);
}
@media (max-width: 640px) {
  .audit-meta > div {
    grid-template-columns: 1fr;
    gap: .15rem;
  }
  .audit-score-value {
    font-size: 2.4rem;
  }
}

/* ---------- Concordance ---------- */

.concordance-letterstrip ul {
  gap: .2rem .9rem;
}
.concordance-letterstrip li a {
  font-family: var(--font-mono, var(--font-sans));
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  min-width: 1.3rem;
  text-align: center;
}
.concordance-letter-section {
  margin: 2.5rem 0;
  scroll-margin-top: 1rem;
}
.concordance-letter {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink-mute);
  margin: 0 0 .75rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--rule);
  letter-spacing: .04em;
}
.concordance-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.concordance-list-item {
  border-bottom: 1px solid var(--rule);
}
.concordance-list-item:last-child { border-bottom: 0; }
.concordance-list-link {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: .9rem 0;
  text-decoration: none;
  color: var(--ink);
}
.concordance-list-link:hover .concordance-list-term { color: var(--accent); }
.concordance-list-term {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.005em;
}
.concordance-list-summary {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .concordance-list-link {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
}

/* Concordance entry page — Discussed in / Related blocks */
.concordance-meta {
  margin: 2rem 0;
  padding: 1rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.concordance-meta-label {
  font-family: var(--font-sans);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-mute);
  margin: 0 0 .65rem;
  font-weight: 600;
  padding-bottom: 0;
  border-bottom: 0;
}
.concordance-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  font-family: var(--font-sans);
  font-size: .9rem;
}
.concordance-link-list li a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.concordance-link-list li a:hover {
  border-bottom-color: var(--accent);
}

/* Horizontal sub-page nav, mirrors the firstfemale.net .site-nav pattern */
.section-subnav {
  margin: 2rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: .75rem 0;
}
.section-subnav ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1.4rem;
}
.section-subnav li a {
  font-family: var(--font-sans);
  font-size: .88rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: .25rem 0;
  border-bottom: 1px solid transparent;
  display: inline-block;
}
.section-subnav li a:hover {
  color: var(--ink);
  border-bottom-color: var(--rule);
}
.section-subnav li.is-active a {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 600;
}

/* Landing-page Contents list */
.tract-toc { margin: 1rem 0 3rem; }
.tract-toc h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--rule);
}
.tract-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: tract-toc;
}
.tract-toc-list li {
  border-bottom: 1px solid var(--rule);
}
.tract-toc-list li:last-child { border-bottom: 0; }
.tract-toc-list a {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--ink);
}
.tract-toc-list a:hover .tract-toc-heading {
  color: var(--accent);
}
.tract-toc-num {
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--ink-mute);
  letter-spacing: .04em;
}
.tract-toc-heading {
  font-size: 1.15rem;
  letter-spacing: -.005em;
  color: var(--ink);
}
.tract-toc-mins {
  font-family: var(--font-sans);
  font-size: .8rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Sub-page prev/next at the bottom */
.tract-prevnext {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.tract-prevnext-cell { min-height: 1rem; }
.tract-prevnext-cell a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1rem 1.1rem;
  background: var(--bg-card);
  transition: border-color .15s;
}
.tract-prevnext-cell a:hover { border-color: var(--accent); }
.tract-prevnext-next a { text-align: right; }
.tract-prevnext-label {
  display: block;
  font-family: var(--font-sans);
  font-size: .75rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .35rem;
}
.tract-prevnext-heading {
  display: block;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -.005em;
}
.tract-prevnext-cell a:hover .tract-prevnext-heading { color: var(--accent); }

/* Sub-page eyebrow link to landing page */
.tract-subpage-article .eyebrow a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.tract-subpage-article .eyebrow a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 640px) {
  .tract-toc-list a {
    grid-template-columns: 2rem 1fr;
    gap: .5rem 1rem;
  }
  .tract-toc-mins {
    grid-column: 2;
    margin-top: .15rem;
  }
  .tract-prevnext { grid-template-columns: 1fr; }
  .tract-prevnext-next a { text-align: left; }
}

/* ---------- Tradition entry ---------- */

.breadcrumb {
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 .35rem; color: var(--rule-strong); }
.breadcrumb .current { color: var(--ink); }

.entry-head { border-bottom: 1px solid var(--rule); padding-bottom: 2rem; }
.entry-meta {
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--ink-mute);
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin: 1rem 0;
}
.entry-meta strong { color: var(--ink-soft); font-weight: 600; }

.entry-body {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.entry-aside { position: relative; }
.toc {
  position: sticky; top: 1.5rem;
  font-family: var(--font-sans);
  font-size: .9rem;
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
}
.toc-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  color: var(--ink-mute);
  margin-bottom: .5rem;
}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin: .35rem 0; }
.toc-list a { color: var(--ink-soft); text-decoration: none; }
.toc-list a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .entry-body { grid-template-columns: 1fr; gap: 2rem; }
  .entry-aside { order: -1; }
  .toc { position: static; border-left: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1rem 0; }
}

/* ---------- Article sections ---------- */

.article-section { margin: 2.5rem 0; scroll-margin-top: 1rem; }
.article-section h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--rule);
  letter-spacing: -.005em;
}

.prose p { margin: 0 0 1rem; }
.prose p + p { text-indent: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.prose li { margin: .35rem 0; }
.prose h2 {
  font-size: 1.5rem;
  margin: 2.25rem 0 .75rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--rule);
}
.prose h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
  margin: 1.5rem 0 .5rem;
}
.prose blockquote {
  border-left: 3px solid var(--rule-strong);
  padding-left: 1rem;
  color: var(--ink-soft);
  margin: 1rem 0;
  font-style: italic;
}

/* ---------- Figures (notable people) ---------- */

.figure-list { list-style: none; padding: 0; margin: 0; }
.figure {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.figure:last-child { border-bottom: 0; }
.figure-head {
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
  margin-bottom: .25rem;
}
.figure-name { font-weight: 600; font-size: 1.05rem; }
.figure-lifespan {
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--ink-mute);
}
.figure-role {
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: .35rem;
}
.figure-bio { color: var(--ink-soft); }
.figure-bio p { margin: 0; }

/* ---------- Subgroups ---------- */

.subgroup-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.subgroup {
  border: 1px solid var(--rule);
  background: var(--bg-card);
  border-radius: 3px;
  transition: border-color .15s;
}
.subgroup:hover { border-color: var(--accent); }
.subgroup a {
  display: block; padding: 1rem 1.25rem;
  text-decoration: none; color: var(--ink);
}
.subgroup-name { font-size: 1.1rem; margin: 0 0 .25rem; }
.subgroup-summary { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------- Sources ---------- */

.sources-section .source-list {
  font-family: var(--font-sans);
  font-size: .9rem;
  padding-left: 1.4rem;
}
.source { margin: .5rem 0; color: var(--ink-soft); }
.source-title { color: var(--ink); }
.source-meta { color: var(--ink-mute); }
.source a.source-title { color: var(--accent); }

/* ---------- Footer ---------- */
/* 2026-12-03: four columns over a colourised Thomas Wright plate (1750, starry spheres), fading up into the page.
   David picked it from seven candidates (Flammarion, Khunrath, Speculum, Melencolia, Dore, Faust, Wright). */

.site-footer {
  position: relative;
  background: var(--bg-soft);
  border-top: 0;
  padding: 15rem 0 1.5rem;
  margin-top: 4rem;
  overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background: url("https://unoccult.org/assets/img/footer-wright.jpg") center 50% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6rem);
          mask-image: linear-gradient(to bottom, transparent 0, #000 6rem);
  pointer-events: none;
}
.site-footer::after {   /* cream veil behind the text so the links stay readable */
  content: ""; position: absolute; inset: 12.5rem 0 0 0;
  background: linear-gradient(to bottom, rgba(245,241,232,.0), rgba(245,241,232,.9) 4rem);
  pointer-events: none;
}
.site-footer > .container { position: relative; z-index: 1; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.footer-brand-name {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem;
  color: var(--ink); text-decoration: none; margin-bottom: .5rem;
}
.footer-tagline { margin: 0 0 .5rem; color: var(--ink); font-size: 1rem; }
.footer-note { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.footer-head {
  font-family: var(--font-sans); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent); margin: .2rem 0 .75rem;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  font-family: var(--font-sans); font-size: .92rem;
}
.footer-col li { margin: .4rem 0; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-all { font-style: italic; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule-strong);
  font-family: var(--font-sans); font-size: .8rem; color: var(--ink-soft);
}
.footer-bottom p { margin: 0; }
.footer-credit { font-family: var(--font-serif); font-style: italic; }

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site-footer::before { background-image: url("https://unoccult.org/assets/img/footer-wright-small.jpg"); bottom: auto; height: 16rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 5rem, #000 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 5rem, #000 70%, transparent 100%); }
}

/* ---------- Misc ---------- */

.empty {
  padding: 2rem;
  background: var(--bg-soft);
  border: 1px dashed var(--rule-strong);
  color: var(--ink-soft);
  text-align: center;
}
code {
  font-family: var(--font-mono);
  font-size: .9em;
  background: var(--bg-soft);
  padding: .1em .35em;
  border-radius: 2px;
}

/* ----- Subscribe pages ----- */

.subscribe-wrap {
  max-width: 36rem;
  margin: 1.5rem 0 3rem;
}

.subscribe-form { margin: 0; }

.subscribe-field { margin: 0 0 1.5rem; }

.subscribe-field label {
  display: block;
  font: 500 0.85rem/1.4 var(--font-serif);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.subscribe-optional {
  font-weight: 400;
  color: var(--ink-mute);
  font-style: italic;
}

.subscribe-field input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-serif);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.subscribe-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.subscribe-hint {
  margin: 0.45rem 0 0;
  font: italic 0.85rem/1.5 var(--font-serif);
  color: var(--ink-mute);
}

.subscribe-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.subscribe-submit {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 3px;
  font: 500 0.95rem/1 var(--font-serif);
  letter-spacing: 0.02em;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
  margin-top: 0.25rem;
}

.subscribe-submit:hover,
.subscribe-submit:focus {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  outline: none;
}

.subscribe-submit:disabled {
  background: var(--ink-mute);
  border-color: var(--ink-mute);
  cursor: not-allowed;
}

.subscribe-status {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 3px;
  font: 400 0.95rem/1.5 var(--font-serif);
}

.subscribe-status--ok {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--ink);
}

.subscribe-status--err {
  background: #f7e6e6;
  border: 1px solid var(--warn);
  color: var(--warn);
}

/* ===================================================================
   Site banner (2026-12-03, David chose A: the Flammarion engraving; then "more color": colourised).
   Public-domain engravings re-inked in the site navy on the cream by
   bin/build-banner.py. Home: the whole print on the right of the hero,
   fading into the paper. Other pages: a pale strip behind the header.
   =================================================================== */
#root { position: relative; }
.site-banner {
  position: absolute; top: 0; left: 0; right: 0; height: 12rem;
  background: url("https://unoccult.org/assets/img/banner-strip.jpg") center 40% / cover no-repeat;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  pointer-events: none; z-index: 0;
}
.site-header { position: relative; z-index: 2; background: linear-gradient(to bottom, rgba(245,241,232,.86), rgba(245,241,232,.55)); }
body.home .site-header { background: transparent; }
.site-main { position: relative; z-index: 1; }

body.home .site-banner {
  left: auto; right: 0; top: 3.5rem; height: 36rem; width: auto; max-width: 56%;
  background-size: cover; background-position: center; opacity: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40%), linear-gradient(to bottom, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 40%), linear-gradient(to bottom, #000 70%, transparent 100%);
          mask-composite: intersect;
}
body.home .site-header { border-bottom-color: transparent; }
body.home .site-banner { background-image: url("https://unoccult.org/assets/img/banner-home.jpg"); aspect-ratio: 1400 / 1046; }
body.home .hero { min-height: 34rem; }
body.home .hero .container > * { max-width: 34rem; }
.hero-credit {
  margin: 2.5rem 0 0; font-style: italic; font-size: .78rem; color: var(--ink-mute);
}

@media (max-width: 760px) {
  .site-banner { height: 9rem; background-image: url("https://unoccult.org/assets/img/banner-strip-small.jpg"); }
  body.home .site-banner { background-image: url("https://unoccult.org/assets/img/banner-home-small.jpg"); max-width: none;
    width: 100%; top: 4.25rem; height: 15rem; opacity: 1; background-position: center 40%;
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 65%, transparent 100%); }
  body.home .hero { padding-top: 15rem; }
  body.home .hero { min-height: 0; }
  .primary-nav { background: var(--bg); }
}

/* ===================================================================
   Tradition pictures (2026-12-03, ported from piratecodex): one period
   picture per entry, floated beside the intro, opening in a lightbox;
   square thumbnails on the traditions index, a 4:1 strip on home cards.
   =================================================================== */
.entry-head { overflow: hidden; }
.entry-picture { float: right; width: min(40%, 300px); margin: .25rem 0 1.25rem 2rem; }
.entry-picture img {
  width: 100%; height: auto; background: var(--bg-card);
  border: 1px solid var(--rule-strong); outline: 1px solid var(--rule-strong); outline-offset: 4px;
  box-shadow: 0 6px 18px rgba(28,31,36,.18);
}
.entry-picture figcaption { font-size: .78rem; line-height: 1.45; color: var(--ink-mute); font-style: italic; margin-top: .85rem; }
@media (max-width: 760px) {
  .entry-picture { float: none; width: auto; max-width: 300px; margin: 1rem auto 1.5rem; }
}

a.lightbox { display: block; cursor: zoom-in; }
a.lightbox:focus-visible img { outline-color: var(--accent); }
html.lightbox-open { overflow: hidden; }
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 1.25rem 1.5rem;
  background: rgba(20, 24, 32, .93);
  cursor: zoom-out;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: min(1600px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox-figure img {
  display: block; max-width: 100%; max-height: calc(100vh - 9rem); width: auto; height: auto;
  border: 1px solid rgba(245,241,232,.35); box-shadow: 0 10px 40px rgba(0,0,0,.6); cursor: default;
}
.lightbox-figure figcaption {
  max-width: 48rem; margin-top: .9rem; text-align: center;
  font-family: var(--font-serif); font-style: italic; font-size: .9rem; line-height: 1.5; color: #e2dccd;
}
.lightbox-close {
  position: absolute; top: .75rem; right: 1rem;
  width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%;
  background: rgba(245,241,232,.12); color: #f5f1e8; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover, .lightbox-close:focus-visible { background: rgba(245,241,232,.25); outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox-overlay:not([hidden]) { animation: lightbox-in .18s ease-out; }
  @keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
}

/* Traditions index and home cards: a strip of the picture inside the card, as on piratecodex (.card-banner) */
.index-thumb, .card-thumb { display: block; width: 100%; max-width: none; height: 76px; object-fit: cover; margin: 0 0 1rem; border: 1px solid var(--rule-strong); }
