/* Son of Him: warm obsidian ground, Berea's burnished gold, Cormorant Garamond for display & Scripture,
   Cinzel for micro-eyebrows, and locally hosted Source Serif 4 WOFF2 (loaded via fonts.css) for UI text. */

:root {
  --accent: #d4a857;
  --accent-hi: #f2d79a;
  --accent-lo: #8a6327;
  --sky: #1a1912;
  --line: rgba(212, 168, 87, .24);
  --ui-font: 'Source Serif 4', Georgia, serif;
}

/* Accessibility: skip link, crisp 2px focus ring, WCAG AAA button hover contrast */
.skip { position: fixed; left: 16px; top: -100px; z-index: 200; padding: 12px 18px; background: var(--accent); color: #170e02;
  font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; border-radius: 6px; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 4px; }
.btn::before { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hi) 100%); }
.soh-btn-quiet { border-color: var(--line); color: var(--text); }

/* Studio mark in header & footer */
.brand { letter-spacing: .28em; display: inline-flex; align-items: center; gap: 11px; }
.brand::before { display: none; }
.soh-nav-mark { width: 24px; height: 24px; border-radius: 6px; flex: none; }

/* Quieter, unhurried panel border sheen (18s instead of 9s, softer opacity) */
.panel::before { animation-duration: 18s; opacity: .42; }

/* Hero */
.soh-hero .hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.2vh, 26px); }
.soh-hero .hero-sky { background: radial-gradient(ellipse 60% 52% at 50% 36%, rgba(212, 168, 87, .20) 0%, rgba(120, 86, 34, .14) 28%, #0d0b08 60%, var(--bg) 88%); }
.soh-kicker::before { display: none; }
.soh-hero-mark { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.soh-title { font-family: var(--serif); font-weight: 500; font-size: clamp(64px, 13vw, 210px); line-height: .95; letter-spacing: -.01em; color: var(--text);
  text-shadow: 0 0 60px rgba(212, 168, 87, .18); }
.soh-sub { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.1vw, 32px); color: #d9cfbb; max-width: 42ch; text-wrap: balance; }
.soh-cta { margin-top: 10px; }

.soh-narrow { max-width: 980px; }
.soh-verse { font-family: var(--serif); font-size: clamp(30px, 4.2vw, 62px); line-height: 1.22; margin: 22px 0 12px; }
.soh-ref { font-family: var(--display); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 34px; }

.soh-h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 6vw, 96px); line-height: 1.02; color: var(--text); }
.soh-h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.1; margin: 12px 0 14px; color: var(--text); }

/* App / Game header & crisp small-text UI metadata */
.soh-app { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.soh-app > div { min-width: 0; }
.soh-icon { width: clamp(64px, 9vw, 128px); height: auto; flex: none; border-radius: 24%; box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 168, 87, .18); }
.soh-lede { margin-top: 26px; font-size: clamp(20px, 1.6vw, 26px); }
.soh-facts { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 14px 36px; font-family: var(--ui-font); font-size: 15.5px; line-height: 1.5; color: #d9cfbb; }
.soh-facts b { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-right: 10px; }

/* ---------- Berea horizontal track cards: clean top media stage + solid caption block (zero sliced text) ---------- */
.track-card { justify-content: flex-start; padding: 0; border-radius: 18px; border: 1px solid rgba(212, 168, 87, .22); background: #0d0c09;
  width: clamp(300px, 31vw, 440px); height: auto; min-height: clamp(430px, 58vh, 560px); }
.track-card::before { display: none; }
.track-img { position: relative; inset: auto; z-index: 1; height: clamp(250px, 34vh, 330px); padding: 14px; background: radial-gradient(circle at 50% 25%, rgba(212, 168, 87, .10), #090806 78%);
  display: flex; align-items: center; justify-content: center; filter: none; border-bottom: 1px solid rgba(212, 168, 87, .16); }
.track-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .55); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.soh-card-trigger { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; position: relative; }
.soh-card-trigger:hover img { transform: scale(1.02); }
.soh-zoom-hint { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(6, 7, 10, .82); border: 1px solid rgba(212, 168, 87, .35);
  font-family: var(--display); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-hi); opacity: .82; pointer-events: none; }
.soh-card-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.soh-card-h { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.08; margin: 0; color: #fbf3e2; }
.track-card p { font-family: var(--ui-font); font-size: 15px; line-height: 1.55; color: #d5cab6; margin: 0; }

/* ---------- Interactive "Tap a Greek Word" live Berea preview ---------- */
.soh-greek-card { margin-top: 28px; border: 1px solid rgba(212, 168, 87, .28); border-radius: 20px; background: linear-gradient(180deg, #16130e, #0e0c09);
  padding: clamp(22px, 3vw, 38px); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.soh-greek-verse { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.38; color: #f6eedc; margin: 0 0 8px; }
.soh-greek-vnum { color: var(--accent); font-size: .72em; vertical-align: super; margin-right: 6px; font-weight: 600; }
.soh-greek-prompt { font-family: var(--ui-font); font-size: 14.5px; color: var(--muted); margin: 0 0 20px; }
.soh-greek-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.soh-gword { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(212, 168, 87, .24); background: rgba(255, 245, 224, .03); transition: border-color .25s, background .25s, transform .2s; text-align: left; }
.soh-gword:hover { border-color: rgba(212, 168, 87, .65); background: rgba(212, 168, 87, .09); transform: translateY(-1px); }
.soh-gword[aria-pressed="true"] { border-color: var(--accent-hi); background: rgba(212, 168, 87, .17); box-shadow: 0 0 0 1px rgba(242, 215, 154, .35); }
.soh-gword-gr { font-family: var(--serif); font-size: 22px; line-height: 1.1; color: #fbf3e2; }
.soh-gword-gl { font-family: var(--ui-font); font-size: 12.5px; color: #bfb29a; }
.soh-greek-sheet { border-top: 1px solid rgba(212, 168, 87, .2); padding-top: 20px; display: grid; gap: 8px; }
.soh-greek-sheet-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; }
.soh-greek-sheet-head strong { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--accent-hi); line-height: 1; }
.soh-greek-sheet-head em { font-family: var(--serif); font-size: 20px; color: #d9cfbb; }
.soh-greek-badge { font-family: var(--display); font-size: 11px; letter-spacing: .2em; color: var(--accent); padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(212, 168, 87, .32); }
.soh-greek-gloss { font-family: var(--ui-font); font-size: 17px; color: #f4ebda; margin: 2px 0 0; }
.soh-greek-meta { font-family: var(--ui-font); font-size: 14.5px; color: #b7aa92; margin: 0; }

/* ---------- Dated "From the Workshop" milestone strip ---------- */
.soh-log { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--line); }
.soh-log li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(212, 168, 87, .14);
  font-family: var(--ui-font); font-size: 15.5px; line-height: 1.55; color: #d9cfbb; }
.soh-log time { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); padding-top: 4px; }
@media (max-width: 560px) { .soh-log li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Zero-spam Release Notify + Early Tester form ---------- */
.soh-notify-form { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.soh-notify-row { display: flex; flex-wrap: wrap; gap: 10px; }
.soh-notify-input { flex: 1 1 240px; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 4px;
  background: rgba(6, 7, 10, .65); color: var(--text); font-family: var(--ui-font); font-size: 16px; }
.soh-notify-input::placeholder { color: #8c806c; }
.soh-notify-check { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ui-font); font-size: 14.5px; color: #cec2ac; cursor: pointer; }
.soh-notify-check input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.soh-notify-msg { font-family: var(--ui-font); font-size: 14.5px; min-height: 1.4em; margin: 0; color: var(--accent-hi); }
.soh-notify-msg[data-state="err"] { color: #f09c82; }
.soh-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Panels & status pill */
.soh-panel p { font-family: var(--ui-font); font-size: 16.5px; line-height: 1.65; color: #d9cfbb; max-width: 58ch; }
.soh-pill-note { display: inline-block; margin-top: 20px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(212, 168, 87, .26);
  font-family: var(--ui-font); font-size: 14px; font-style: italic; color: #c7ba9f; background: rgba(212, 168, 87, .05); }
.soh-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.soh-mail { font-size: clamp(30px, 5vw, 76px); margin-top: 16px; word-break: break-word; }
.soh-contact-note { font-family: var(--ui-font); font-size: 16.5px; color: #cfc3ad; max-width: 54ch; margin-top: 14px; line-height: 1.6; }
.soh-note { font-family: var(--ui-font); font-size: 14.5px; color: var(--muted); font-style: italic; margin-top: 14px; }

.soh-foot-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.soh-foot-mark { width: 38px; height: 38px; border-radius: 10px; opacity: .92; }
.soh-foot-title { font-family: var(--serif); font-size: clamp(38px, 5.4vw, 76px); font-weight: 500; color: var(--text); opacity: .9; margin: 0; line-height: 1; }
.footer-base { font-family: var(--ui-font); font-size: 14.5px; }

/* ---------- The hub: one card per project, with tactile warm-gold hover spotlight ---------- */
.soh-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(18px, 2.4vw, 34px); margin-top: 36px; }
.soh-proj { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 20%), rgba(212, 168, 87, .12), transparent 60%), linear-gradient(180deg, rgba(30, 26, 18, .55), rgba(12, 11, 8, .88));
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), border-color .45s; }
.soh-proj:hover, .soh-proj:focus-visible { transform: translateY(-4px); border-color: rgba(212, 168, 87, .58); }
.rm .soh-proj, .rm .soh-proj:hover { transition: none; transform: none; }
.soh-proj-img { aspect-ratio: 16 / 9; overflow: hidden; background: #0b0a08; }
.soh-proj-img img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.soh-proj:hover .soh-proj-img img { transform: scale(1.03); }
.rm .soh-proj:hover .soh-proj-img img { transform: none; }
.soh-proj-body { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px 26px; }
.soh-proj-icon { width: 58px; height: 58px; border-radius: 24%; flex: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.soh-kind { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.soh-proj-name { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; margin: 6px 0 8px; color: var(--text); }
.soh-proj p { font-family: var(--ui-font); font-size: 15.5px; line-height: 1.55; color: #d9cfbb; margin: 0 0 8px; }
.soh-status { color: var(--muted) !important; font-size: 14px !important; }
.soh-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--ui-font); font-size: 15px; color: var(--accent-hi); font-weight: 600; }
.soh-more span { display: inline-block; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.soh-proj:hover .soh-more span { transform: translateX(4px); }

/* ---------- A project's own page ---------- */
.soh-page-top { padding-top: clamp(120px, 18vh, 180px); }
.soh-back { display: inline-block; margin-bottom: 22px; color: var(--muted); text-decoration: none; font-family: var(--display); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.soh-back:hover { color: var(--accent); }
.soh-tight { padding-block: clamp(40px, 8vh, 90px); }
.soh-verse-sm { font-size: clamp(24px, 3.2vw, 40px); }

/* The game's banner */
.soh-banner { position: relative; min-height: min(84vh, 840px); display: flex; align-items: flex-end; overflow: hidden; }
.soh-banner-img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; object-position: center 35%; }
.soh-banner-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 7, 10, .55) 0%, rgba(6, 7, 10, .06) 30%, rgba(6, 7, 10, .35) 60%, var(--bg) 100%); }
.soh-banner-text { position: relative; width: 100%; padding-bottom: clamp(28px, 6vh, 64px); }
.soh-banner .soh-back { color: #e9dcc2; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.soh-kote-title { text-shadow: 0 2px 30px rgba(0, 0, 0, .65); }
.soh-banner .eyebrow { text-shadow: 0 1px 10px rgba(0, 0, 0, .85); }

.soh-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 30px; }
.soh-gallery figure { margin: 0; }
.soh-gallery-trigger { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; border-radius: 14px; overflow: hidden; }
.soh-gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); display: block; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.soh-gallery-trigger:hover img { transform: scale(1.025); }
.soh-gallery figcaption { font-family: var(--ui-font); color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 9px; }

/* ---------- Native <dialog> full-screen lightbox ---------- */
.soh-lightbox { width: min(94vw, 1180px); max-width: none; max-height: 92vh; margin: auto; padding: 18px 20px 22px;
  border: 1px solid rgba(212, 168, 87, .35); border-radius: 18px; background: #0b0a08; color: var(--text); box-shadow: 0 30px 90px rgba(0, 0, 0, .85); }
.soh-lightbox::backdrop { background: rgba(4, 5, 8, .86); backdrop-filter: blur(8px); }
.soh-lb-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.soh-lb-count { font-family: var(--display); font-size: 11px; letter-spacing: .24em; color: var(--accent); }
.soh-lb-actions { display: flex; gap: 8px; }
.soh-lb-btn { min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .04);
  color: var(--accent-hi); cursor: pointer; font-size: 18px; line-height: 1; }
.soh-lb-btn:hover { background: rgba(212, 168, 87, .18); border-color: var(--accent); }
.soh-lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.soh-lb-stage img { max-height: 74vh; width: auto; max-width: 100%; object-fit: contain; border-radius: 10px; border: 1px solid rgba(212, 168, 87, .18); }
.soh-lb-stage figcaption { font-family: var(--ui-font); font-size: 15px; color: #d5cab6; text-align: center; max-width: 68ch; }

/* ---------- 404 page ---------- */
.soh-404 { min-height: 100svh; display: grid; place-items: center; padding: 48px 0; }
.soh-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Mobile polish (375px safe, zero orphan eyebrow wraps, tighter banner transition) ---------- */
@media (max-width: 700px) {
  .soh-banner { min-height: 62vh; }
  .soh-banner-img { object-position: 36% 40%; }
  .soh-banner .eyebrow { font-size: 10.5px; letter-spacing: .2em; gap: 10px; }
  .soh-banner .eyebrow::before { display: none; }
  .track-card { width: min(86vw, 340px); min-height: 410px; }
}


/* ---------- Header actions & Sepia/Dark theme toggle ---------- */
.soh-nav-actions { display: flex; align-items: center; gap: 12px; }
.soh-theme-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(6, 7, 10, .48); color: #e2d5bc; cursor: pointer;
  font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  transition: border-color .25s, background .25s, color .25s; }
.soh-theme-btn:hover, .soh-theme-btn:focus-visible { border-color: var(--accent); color: var(--accent-hi); background: rgba(212, 168, 87, .12); }
.soh-theme-btn svg { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.soh-theme-icon-moon { display: none; }

/* ---------- Muted looping showcase reel ---------- */
.soh-reel-wrap { margin-top: 28px; position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: #0b0a08; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.soh-reel { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0b0a08; }
.soh-reel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px;
  border-top: 1px solid rgba(212, 168, 87, .16); background: rgba(13, 12, 9, .92); }
.soh-reel-cap { font-family: var(--ui-font); font-size: 14px; color: #c7ba9f; margin: 0; }
.soh-reel-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--accent-hi); cursor: pointer;
  font-family: var(--display); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.soh-reel-btn:hover { background: rgba(212, 168, 87, .16); border-color: var(--accent); }

/* ---------- Workshop journal page ---------- */
.soh-ws-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; }
.soh-filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.soh-filter-btn { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 245, 224, .03);
  color: #d6c9ae; font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
.soh-filter-btn:hover { border-color: var(--accent); color: var(--accent-hi); }
.soh-filter-btn[aria-pressed="true"] { border-color: var(--accent); background: rgba(212, 168, 87, .18); color: var(--accent-hi); }
.soh-rss-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); transition: border-color .25s, background .25s, color .25s; }
.soh-rss-pill:hover { border-color: var(--accent-hi); background: rgba(212, 168, 87, .12); color: var(--accent-hi); }
.soh-entries { display: grid; gap: 22px; margin-top: 30px; }
.soh-entry { padding: clamp(22px, 3vw, 34px); border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 22, 16, .68), rgba(12, 11, 8, .92)); }
.soh-entry[hidden] { display: none; }
.soh-entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.soh-entry-meta time { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.soh-entry-tag { padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(212, 168, 87, .3); background: rgba(212, 168, 87, .08);
  font-family: var(--display); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.soh-entry h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; color: var(--text); margin: 0 0 10px; }
.soh-entry p { font-family: var(--ui-font); font-size: 16px; line-height: 1.65; color: #d9cfbb; margin: 0 0 10px; max-width: 64ch; }
.soh-entry p:last-child { margin-bottom: 0; }
.soh-entry a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.soh-log-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-family: var(--display); font-size: 11.5px;
  font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.soh-log-more:hover { color: var(--accent-hi); }

/* ==========================================================================
   SEPIA PARCHMENT LIGHT THEME (html[data-theme="sepia"])
   Warm vellum paper (#f3e8d6), iron-gall espresso ink (#241b12), antique bronze (#8c5c10).
   Matches Berea Live's daylight parchment palette across every page.
   ========================================================================== */
html[data-theme="sepia"] {
  --bg: #f3e8d6;
  --bg-2: #e9dcc4;
  --sky: #e4d3b5;
  --accent: #8c5c10;
  --accent-hi: #664007;
  --accent-lo: #b4822e;
  --text: #241b12;
  --muted: #665643;
  --line: rgba(140, 92, 16, .24);
  color-scheme: light;
}

html[data-theme="sepia"] .soh-theme-icon-sun { display: none; }
html[data-theme="sepia"] .soh-theme-icon-moon { display: block; }
html[data-theme="sepia"] .grain { opacity: .035; mix-blend-mode: multiply; }
html[data-theme="sepia"] .cursor-glow { background: radial-gradient(circle, rgba(140, 92, 16, .08), rgba(140, 92, 16, .03) 38%, transparent 70%); }

/* Nav & menu */
html[data-theme="sepia"] .nav.scrolled { background: linear-gradient(180deg, rgba(243, 232, 214, .95), rgba(243, 232, 214, .84)); border-bottom: 1px solid rgba(140, 92, 16, .14); }
html[data-theme="sepia"] .no-js .nav { background: rgba(243, 232, 214, .95); }
html[data-theme="sepia"] .nav-links a { color: #4a3c2b; }
html[data-theme="sepia"] .nav-links a.active,
html[data-theme="sepia"] .nav-links a:hover { color: var(--accent-hi); }
html[data-theme="sepia"] .menu-btn { background: rgba(243, 232, 214, .8); border-color: rgba(140, 92, 16, .32); }
html[data-theme="sepia"] .menu-btn span { background: #3b2d1d; }
html[data-theme="sepia"] .menu { background: var(--bg); }
html[data-theme="sepia"] .menu a { color: var(--text); }
html[data-theme="sepia"] .soh-theme-btn { background: rgba(251, 245, 234, .82); color: #3c2e1e; border-color: rgba(140, 92, 16, .32); }
html[data-theme="sepia"] .soh-theme-btn:hover,
html[data-theme="sepia"] .soh-theme-btn:focus-visible { background: rgba(140, 92, 16, .12); border-color: var(--accent); color: var(--accent-hi); }

/* Keep header legible over KotE's full-bleed dark-topped banner until scrolled */
html[data-theme="sepia"] body.kote .nav:not(.scrolled) .brand,
html[data-theme="sepia"] body.kote .nav:not(.scrolled) .nav-links a { color: #f4ebd8; text-shadow: 0 1px 8px rgba(0, 0, 0, .65); }
html[data-theme="sepia"] body.kote .nav:not(.scrolled) .soh-theme-btn { background: rgba(18, 15, 11, .58); color: #f4ebd8; border-color: rgba(242, 215, 154, .36); }
html[data-theme="sepia"] body.kote .nav:not(.scrolled) .menu-btn { background: rgba(18, 15, 11, .58); border-color: rgba(242, 215, 154, .36); }
html[data-theme="sepia"] body.kote .nav:not(.scrolled) .menu-btn span { background: #f4ebd8; }

/* Hero & typography */
html[data-theme="sepia"] .soh-hero .hero-sky { background: radial-gradient(ellipse 64% 56% at 50% 34%, rgba(212, 168, 87, .28) 0%, rgba(226, 208, 176, .55) 36%, #efe3ce 68%, var(--bg) 92%); }
html[data-theme="sepia"] .intro-rays { background: repeating-conic-gradient(from 90deg at 50% 0%, rgba(140, 92, 16, 0) 0deg, rgba(140, 92, 16, .06) 1.6deg, rgba(140, 92, 16, 0) 4.5deg, rgba(140, 92, 16, 0) 8deg); }
html[data-theme="sepia"] .soh-hero-mark { box-shadow: 0 10px 26px rgba(46, 36, 24, .22); }
html[data-theme="sepia"] .soh-title { color: #241b12; text-shadow: 0 2px 34px rgba(140, 92, 16, .16); }
html[data-theme="sepia"] .soh-sub { color: #4e4030; }
html[data-theme="sepia"] .lede,
html[data-theme="sepia"] .soh-facts,
html[data-theme="sepia"] .soh-contact-note { color: #3c3023; }
html[data-theme="sepia"] .scrub .hi { color: var(--accent); }
html[data-theme="sepia"] .soh-icon { box-shadow: 0 16px 38px rgba(46, 36, 24, .22), 0 0 0 1px rgba(140, 92, 16, .22); }

/* Buttons */
html[data-theme="sepia"] .btn { border-color: var(--accent); color: #5c3906; background: rgba(251, 245, 234, .78); }
html[data-theme="sepia"] .btn::before { background: linear-gradient(90deg, #744a0a 0%, #9b6714 100%); }
html[data-theme="sepia"] .btn:hover,
html[data-theme="sepia"] .btn:focus-visible { color: #fbf5e8; }
html[data-theme="sepia"] .soh-btn-quiet { border-color: rgba(140, 92, 16, .34); color: #2e2418; background: rgba(251, 245, 234, .55); }
html[data-theme="sepia"] .soh-btn-quiet:hover,
html[data-theme="sepia"] .soh-btn-quiet:focus-visible { color: #fbf5e8; border-color: var(--accent); }
html[data-theme="sepia"] .skip { background: var(--accent); color: #fbf5e8; }

/* Hub project cards */
html[data-theme="sepia"] .soh-proj { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 20%), rgba(180, 130, 46, .12), transparent 60%), linear-gradient(180deg, #faf3e6, #efe2cb);
  border-color: rgba(140, 92, 16, .24); box-shadow: 0 14px 36px rgba(46, 36, 24, .08); }
html[data-theme="sepia"] .soh-proj:hover,
html[data-theme="sepia"] .soh-proj:focus-visible { border-color: rgba(140, 92, 16, .58); box-shadow: 0 20px 44px rgba(46, 36, 24, .13); }
html[data-theme="sepia"] .soh-proj-icon { box-shadow: 0 8px 22px rgba(46, 36, 24, .22); }
html[data-theme="sepia"] .soh-proj p { color: #413426; }
html[data-theme="sepia"] .soh-more { color: var(--accent-hi); }

/* Berea track cards & interactive Greek preview */
html[data-theme="sepia"] .track-card { background: #faf3e6; border-color: rgba(140, 92, 16, .24); box-shadow: 0 12px 32px rgba(46, 36, 24, .09); }
html[data-theme="sepia"] .track-img { background: radial-gradient(circle at 50% 25%, rgba(212, 168, 87, .14), #18140e 82%); border-bottom-color: rgba(140, 92, 16, .22); }
html[data-theme="sepia"] .soh-card-h { color: #241b12; }
html[data-theme="sepia"] .track-card p { color: #47392a; }
html[data-theme="sepia"] .soh-greek-card { background: linear-gradient(180deg, #faf3e6, #efe2cb); border-color: rgba(140, 92, 16, .28); box-shadow: 0 18px 46px rgba(46, 36, 24, .10); }
html[data-theme="sepia"] .soh-greek-verse { color: #241b12; }
html[data-theme="sepia"] .soh-gword { background: rgba(255, 252, 245, .65); border-color: rgba(140, 92, 16, .25); }
html[data-theme="sepia"] .soh-gword:hover { background: rgba(140, 92, 16, .10); border-color: rgba(140, 92, 16, .58); }
html[data-theme="sepia"] .soh-gword[aria-pressed="true"] { background: rgba(140, 92, 16, .16); border-color: var(--accent-hi); box-shadow: 0 0 0 1px rgba(140, 92, 16, .32); }
html[data-theme="sepia"] .soh-gword-gr { color: #241b12; }
html[data-theme="sepia"] .soh-gword-gl { color: #5f4f3c; }
html[data-theme="sepia"] .soh-greek-sheet { border-top-color: rgba(140, 92, 16, .2); }
html[data-theme="sepia"] .soh-greek-sheet-head strong { color: var(--accent-hi); }
html[data-theme="sepia"] .soh-greek-sheet-head em { color: #4a3b2a; }
html[data-theme="sepia"] .soh-greek-gloss { color: #241b12; }
html[data-theme="sepia"] .soh-greek-meta { color: #5b4b38; }

/* Panels, logs, forms, reels, workshop entries */
html[data-theme="sepia"] .panel { background: linear-gradient(180deg, #faf3e6, #efe2cb); border-color: rgba(140, 92, 16, .24); box-shadow: 0 16px 40px rgba(46, 36, 24, .08); }
html[data-theme="sepia"] .panel::before { background: conic-gradient(from var(--a), transparent 0 64%, rgba(140, 92, 16, .55) 76%, transparent 88%); opacity: .35; }
html[data-theme="sepia"] .soh-panel p,
html[data-theme="sepia"] .soh-log li,
html[data-theme="sepia"] .soh-entry p { color: #3c3023; }
html[data-theme="sepia"] .soh-log li { border-bottom-color: rgba(140, 92, 16, .16); }
html[data-theme="sepia"] .soh-pill-note { color: #564532; background: rgba(140, 92, 16, .08); border-color: rgba(140, 92, 16, .24); }
html[data-theme="sepia"] .soh-notify-input { background: #fbf6ec; color: #241b12; border-color: rgba(140, 92, 16, .34); }
html[data-theme="sepia"] .soh-notify-input::placeholder { color: #8b7a64; }
html[data-theme="sepia"] .soh-notify-check { color: #433526; }
html[data-theme="sepia"] .soh-notify-msg[data-state="err"] { color: #a33219; }
html[data-theme="sepia"] .soh-reel-wrap { box-shadow: 0 18px 44px rgba(46, 36, 24, .16); border-color: rgba(140, 92, 16, .28); }
html[data-theme="sepia"] .soh-reel-bar { background: #faf3e6; border-top-color: rgba(140, 92, 16, .18); }
html[data-theme="sepia"] .soh-reel-cap { color: #4a3c2c; }
html[data-theme="sepia"] .soh-reel-btn { background: rgba(140, 92, 16, .08); color: var(--accent-hi); border-color: rgba(140, 92, 16, .32); }
html[data-theme="sepia"] .soh-reel-btn:hover { background: rgba(140, 92, 16, .18); }
html[data-theme="sepia"] .soh-filter-btn { background: rgba(251, 245, 234, .75); color: #4a3c2b; border-color: rgba(140, 92, 16, .26); }
html[data-theme="sepia"] .soh-filter-btn[aria-pressed="true"] { background: rgba(140, 92, 16, .16); border-color: var(--accent); color: var(--accent-hi); }
html[data-theme="sepia"] .soh-entry { background: linear-gradient(180deg, #faf3e6, #efe2cb); border-color: rgba(140, 92, 16, .22); box-shadow: 0 10px 28px rgba(46, 36, 24, .06); }
html[data-theme="sepia"] .soh-entry-tag { background: rgba(140, 92, 16, .1); border-color: rgba(140, 92, 16, .28); }

/* Keep KotE banner overlay legible over the sunlit castle image, fading cleanly into parchment at bottom */
html[data-theme="sepia"] .soh-banner-shade { background: linear-gradient(180deg, rgba(16, 13, 9, .55) 0%, rgba(16, 13, 9, .10) 32%, rgba(16, 13, 9, .58) 72%, rgba(16, 13, 9, .80) 90%, var(--bg) 100%); }
html[data-theme="sepia"] .soh-banner .soh-back { color: #f5ebd6; }
html[data-theme="sepia"] .soh-banner .eyebrow { color: #f2d79a; }
html[data-theme="sepia"] .soh-banner .soh-kote-title { color: #fbf5e8; }

/* Lightbox */
html[data-theme="sepia"] .soh-lightbox { background: #faf3e6; border-color: rgba(140, 92, 16, .35); box-shadow: 0 30px 90px rgba(36, 27, 18, .42); }
html[data-theme="sepia"] .soh-lightbox::backdrop { background: rgba(36, 27, 18, .66); }
html[data-theme="sepia"] .soh-lb-btn { background: rgba(140, 92, 16, .08); border-color: rgba(140, 92, 16, .3); color: var(--accent-hi); }
html[data-theme="sepia"] .soh-lb-btn:hover { background: rgba(140, 92, 16, .18); }
html[data-theme="sepia"] .soh-lb-stage figcaption { color: #3c3023; }
html[data-theme="sepia"] .footer-base { border-top-color: rgba(140, 92, 16, .18); }

@media (max-width: 560px) {
  .soh-theme-btn span { display: none; }
  .soh-theme-btn { width: 40px; padding: 0; justify-content: center; }
  .soh-reel-bar { flex-direction: column; align-items: flex-start; }
}
