/* Theme: refined dark — charcoal, warm off-white text, claret accent, Inter body */

@font-face {
  font-family: "Inter";
  src: url("inter.woff2") format("woff2-variations"), url("inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body-size: 1.0625rem;

  --bg: #111214;
  --bg-alt: #16171a;
  --surface: #1b1c20;
  --nav-bg: rgba(17, 18, 20, 0.86);

  --heading: #f1efea;
  --text: rgba(241, 239, 234, 0.74);
  --muted: rgba(241, 239, 234, 0.5);
  --muted-strong: rgba(241, 239, 234, 0.68);

  --line: rgba(241, 239, 234, 0.09);
  --line-strong: rgba(241, 239, 234, 0.24);

  --accent: #b4232c;
  --accent-hover: #c92c36;

  --footer-bg: #0c0d0e;
  --footer-text: rgba(241, 239, 234, 0.55);
  --footer-heading: #f1efea;
}

/* a quiet glow behind the raven, nothing more */
.hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: 50%;
  width: 70vw;
  max-width: 900px;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(180, 35, 44, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; }
.hero-mark img { opacity: 0.96; }

/* ===================================================================
   BLENDED: dark sections (refined) alternate with light sections
   (editorial). Add class="section-light" to any section to make it light.
   =================================================================== */
@font-face {
  font-family: "Newsreader";
  src: url("newsreader-italic.woff2") format("woff2-variations"), url("newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

.section-light {
  --bg: #f4f2ee;
  --bg-alt: #f4f2ee;
  --surface: #f9f8f5;
  --heading: #141414;
  --text: #3b3a37;
  --muted: #7a776f;
  --muted-strong: #55534e;
  --line: rgba(20, 20, 20, 0.12);
  --line-strong: rgba(20, 20, 20, 0.3);
  --accent: #8e1b22;
  --accent-hover: #a5222a;
  background: var(--bg);
  color: var(--text);
  border-top-color: transparent;
}
.section-light + .section,
.section + .section-light { border-top-color: transparent; }

/* a touch of the editorial serif for the reflective lines */
.section-light .story-lead,
.section-light .section-intro {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.section-light .story-lead { font-size: 1.55rem; line-height: 1.45; }
.section-light .section-intro { font-size: 1.35rem; line-height: 1.5; }
.section-light .story-lead em { font-style: normal; }

/* one faint raven, bleeding off the right edge */
.has-watermark { position: relative; overflow: hidden; }
.has-watermark .wrap { position: relative; z-index: 1; }
.watermark {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  height: 135%;
  width: auto;
  max-width: none;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 900px) {
  .watermark { height: 70%; right: -20%; opacity: 0.03; }
}

/* About pillars: short tagline after each title */
.pillars h4 .tag { display: inline-block; font-weight: 400; color: var(--muted-strong); }
.pillars h4 .tag .sep { color: var(--accent); margin: 0 0.55em; }
@media (max-width: 640px) {
  .pillars h4 .tag { display: block; margin-top: 2px; }
  .pillars h4 .tag .sep { display: none; }
}

/* footer easter egg: two faint runes (Huginn, Muninn) that unfold the story */
.egg { grid-column: 1 / -1; margin-top: 4px; }
.egg summary { list-style: none; cursor: pointer; display: inline-block; font-size: 1.35rem; letter-spacing: 0.4em;
               color: var(--footer-text); opacity: 0.45; }
.egg summary::-webkit-details-marker { display: none; }
.egg summary:hover, .egg summary:focus-visible, .egg[open] summary { opacity: 1; }
.egg p { max-width: 40em; margin-top: 12px; font-family: "Newsreader", Georgia, serif; font-style: italic;
         font-size: 1.05rem; line-height: 1.6; color: var(--footer-text); }
.egg p + p { margin-top: 0.6em; }
.egg em { font-style: normal; }

/* phones and narrow screens: the raven sits above the words, so the glow follows it */
@media (max-width: 900px) {
  .hero::before { display: none; }
  .hero-mark { position: relative; }
  .hero-mark::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(110vw, 520px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(180, 35, 44, 0.16), transparent 70%);
    pointer-events: none;
    z-index: 0;
  }
  .hero-mark img { position: relative; z-index: 1; }
}
