/* ==========================================================================
   Wulfmere theme — loaded after style.css on the /wulfmere pages only.
   Parchment, ink & gold on dark walnut, from Visual Assets/wulfmere-visual-spec.md.
   The game is dark-themed, so these pages stay dark in both light and dark mode.
   ========================================================================== */

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/Cinzel.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/EBGaramond.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/EBGaramond-Italic.woff2") format("woff2");
  font-weight: 400 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("../fonts/IMFellEnglish-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

body.wm {
  --wm-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --wm-body: "EB Garamond", Garamond, "Times New Roman", serif;
  --wm-flavour: "IM Fell English", "EB Garamond", Georgia, serif;

  --bg: #1a120c;
  --bg-alt: #221810;
  --bg-card: #1c140d;
  --text: #f0e3c7;
  --text-muted: #c4b28c;
  --text-faint: #a3906a;
  --border: rgba(140, 107, 28, .30);
  --border-strong: rgba(140, 107, 28, .55);
  --accent: #e6b53f;
  --accent-hover: #f3cb64;
  --accent-soft: rgba(199, 154, 46, .12);
  --green: #8fc48f;
  --green-soft: rgba(59, 107, 59, .35);
  --amber: #e6b53f;
  --amber-soft: rgba(199, 154, 46, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 14px 34px rgba(0, 0, 0, .45);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .55), 0 26px 60px rgba(0, 0, 0, .6);

  --parchment: radial-gradient(140% 130% at 0% 0%, #f4e8ca, #e7d5ad 60%, #dcc99b);
  --ink: #2b2117;
  --ink-soft: #5a4a30;
  --gold: #8c6b1c;

  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
  font-family: var(--wm-body);
  font-size: 19px;
  line-height: 1.6;
}

body.wm h1, body.wm h2, body.wm h3 {
  font-family: var(--wm-display);
  color: #f4e8c8;
  font-weight: 600;
  letter-spacing: .01em;
}
body.wm h1 { letter-spacing: .03em; }
body.wm .eyebrow {
  font-family: var(--wm-display);
  color: #a98a45;
  letter-spacing: .22em;
  font-size: .78rem;
}
body.wm .lede { color: var(--text-muted); }
body.wm .meta { color: var(--text-faint); }

/* Site chrome keeps its system font so the company frame stays consistent. */
body.wm .site-header,
body.wm .subnav,
body.wm .site-footer { font-family: var(--font-sans); font-size: 17px; }
body.wm .site-header { background: color-mix(in srgb, #140d08 86%, transparent); }
body.wm .subnav { background: #140d08; }
body.wm .subnav nav a:hover,
body.wm .subnav nav a[aria-current="page"],
body.wm .site-nav a:hover,
body.wm .site-nav a[aria-current="page"] { background: rgba(199, 154, 46, .14); }
body.wm .site-footer { background: #140d08; margin-top: 0; }

/* ---------- buttons (spec: primary gold, secondary gold hairline) ---------- */

body.wm .btn { font-family: var(--wm-display); font-weight: 600; letter-spacing: .04em; font-size: .9rem; padding: 12px 24px; }
body.wm .btn-primary {
  color: #2a1e0d;
  background: linear-gradient(180deg, #e6b53f, #b98518);
  border: 1px solid #7c5e1c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 7px rgba(0, 0, 0, .4);
}
body.wm .btn-primary:hover { color: #2a1e0d; background: linear-gradient(180deg, #efc457, #c79424); }
body.wm .btn-secondary { color: #e8d6a8; border: 1px solid #8c6b1c; background: rgba(20, 13, 8, .35); }
body.wm .btn-secondary:hover { background: rgba(199, 154, 46, .14); color: #f4e8c8; }

body.wm .pill { font-family: var(--font-sans); }

/* Official Apple "Download on the App Store" badge (assets/img/app-store-badge-black-en-us.svg).
   Shown unmodified, at least 40px tall, with clear space of a quarter of its height around it. */
body.wm .btn-row { align-items: center; }
.wm-hero-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 22px; }
.wm-hero-top .wm-icon { margin-bottom: 0; }
.appstore-badge { display: inline-block; line-height: 0; border-radius: 9px; }
.appstore-badge img { height: 54px; width: auto; }
.appstore-badge:hover { opacity: .88; }
body.wm .pill-live { color: #b9e0b0; background: rgba(59, 107, 59, .45); border: 1px solid rgba(143, 196, 143, .4); }
body.wm .pill-soon { color: #f0cf7a; background: rgba(140, 107, 28, .35); border: 1px solid rgba(230, 181, 63, .35); }

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

.wm-hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 760px);
  display: flex; align-items: flex-end;
  padding: 120px 0 64px;
  overflow: hidden;
}
.wm-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 30%;
}
.wm-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 13, 8, .88) 0%, rgba(20, 13, 8, .62) 42%, rgba(20, 13, 8, .08) 78%),
    linear-gradient(0deg, #1a120c 0%, rgba(26, 18, 12, .0) 38%);
}
@media (max-width: 760px) {
  .wm-hero { min-height: 0; padding-top: 220px; }
  .wm-hero::before {
    background: linear-gradient(0deg, #1a120c 8%, rgba(26, 18, 12, .82) 52%, rgba(26, 18, 12, .2) 100%);
  }
}
.wm-hero .wm-icon {
  width: 84px; height: 84px; border-radius: 20px; margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(230, 181, 63, .35);
}
.wm-hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 700; letter-spacing: .06em; margin-bottom: .1em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
.wm-tagline {
  font-family: var(--wm-flavour); font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); color: #f0cf7a; margin: 0 0 .7em;
}
.wm-hero .lede { max-width: 46ch; color: #e8dcc0; font-size: 1.22rem; }
.wm-facts {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; list-style: none;
  font-family: var(--font-sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #c4b28c;
}
.wm-facts li { display: inline-flex; align-items: center; gap: 18px; }
.wm-facts li + li::before { content: "\2726"; color: #8c6b1c; font-size: .8em; margin-left: -9px; margin-right: -9px; }

/* ---------- section rhythm ---------- */

body.wm .section { padding: 84px 0; }
body.wm .section-alt { background: #140d08; border-top: 1px solid rgba(140, 107, 28, .18); border-bottom: 1px solid rgba(140, 107, 28, .18); }

.wm-rule {
  display: flex; align-items: center; gap: 14px; color: #8c6b1c; margin: 0 0 22px;
}
.wm-rule::before, .wm-rule::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(140, 107, 28, .7), transparent); }

.wm-quote {
  font-family: var(--wm-flavour); font-style: italic;
  font-size: 1.32rem; line-height: 1.5; color: #f0e3c7;
  border-left: 2px solid #8c6b1c; padding: 4px 0 4px 22px; margin: 30px 0;
}

/* ---------- stats band on parchment ---------- */

.wm-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--parchment);
  border: 1px solid rgba(140, 107, 28, .45);
  border-radius: 16px;
  box-shadow: inset 0 0 22px rgba(120, 90, 40, .25), 0 14px 34px rgba(0, 0, 0, .4);
  color: var(--ink);
  overflow: hidden;
}
.wm-stats div { padding: 26px 18px; text-align: center; }
.wm-stats div + div { border-left: 1px solid rgba(140, 107, 28, .3); }
.wm-stats strong { display: block; font-family: var(--wm-display); font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.1; color: #6b4f12; }
.wm-stats span { font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 640px) {
  .wm-stats { grid-template-columns: 1fr 1fr; }
  .wm-stats div:nth-child(3) { border-left: 0; }
  .wm-stats div:nth-child(n+3) { border-top: 1px solid rgba(140, 107, 28, .3); }
}

/* ---------- screenshot gallery tweaks ---------- */

body.wm .shots { grid-auto-columns: minmax(200px, 236px); }
body.wm .shots img { border-radius: 22px; border-color: rgba(140, 107, 28, .35); background: #100c08; }

/* ---------- alternating feature rows ---------- */

.wm-feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 270px);
  gap: 56px; align-items: center;
  padding: 44px 0;
}
.wm-feature + .wm-feature { border-top: 1px solid rgba(140, 107, 28, .18); }
.wm-feature:nth-child(even) { grid-template-columns: minmax(0, 270px) minmax(0, 1fr); }
.wm-feature:nth-child(even) .wm-feature-media { order: -1; }
.wm-feature h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: .45em; }
.wm-feature p { color: var(--text-muted); }
.wm-feature ul { margin: 0; padding-left: 1.1em; color: var(--text-muted); }
.wm-feature li { margin-bottom: .35em; }
.wm-feature li::marker { content: "\2726  "; color: #8c6b1c; font-size: .75em; }
.wm-feature-media img {
  width: 100%; border-radius: 26px;
  border: 1px solid rgba(140, 107, 28, .4);
  box-shadow: var(--shadow-lg);
  background: #100c08;
}
@media (max-width: 760px) {
  .wm-feature, .wm-feature:nth-child(even) { grid-template-columns: 1fr; gap: 26px; }
  .wm-feature:nth-child(even) .wm-feature-media { order: 0; }
  .wm-feature-media { max-width: 260px; margin: 0 auto; }
}

/* ---------- cast ---------- */

.wm-cast {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
  margin-top: 36px;
}
.wm-cast figure { margin: 0; }
.wm-cast img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 10px; border: 1px solid rgba(140, 107, 28, .35);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .6); background: #100c08;
}
.wm-cast figcaption { margin-top: 10px; text-align: center; font-size: .95rem; color: var(--text-muted); line-height: 1.35; }
.wm-cast figcaption b { display: block; font-family: var(--wm-display); font-weight: 600; color: #f4e8c8; font-size: .9rem; letter-spacing: .06em; }
@media (max-width: 860px) {
  .wm-cast { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .wm-cast figure { scroll-snap-align: start; }
}

/* ---------- endings split ---------- */

body.wm .split img { aspect-ratio: 4 / 5; object-position: 50% 30%; border: 1px solid rgba(140, 107, 28, .4); }
.wm-endings { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wm-endings li {
  font-family: var(--wm-display); font-size: .78rem; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 20px;
  color: var(--ink); background: #e2cfa4; border: 1px solid #8c6b1c;
}

/* ---------- parchment card (promises, policy text) ---------- */

.parchment {
  background: var(--parchment);
  border: 1px solid rgba(140, 107, 28, .45);
  border-radius: 16px;
  box-shadow: inset 0 0 22px rgba(120, 90, 40, .22), 0 14px 34px rgba(0, 0, 0, .4);
  color: var(--ink);
  padding: 34px clamp(22px, 5vw, 48px);
}
body.wm .parchment h2, body.wm .parchment h3 { color: #4a3510; }
.parchment p, .parchment li, .parchment td { color: #4a3c26; }
.parchment a { color: #7a2a1d; text-decoration: underline; text-decoration-color: rgba(122, 42, 29, .35); text-underline-offset: 2px; }
.parchment a:hover { color: #a8352b; }
.parchment .prose li::marker { color: #8c6b1c; }
.parchment strong { color: var(--ink); }

.wm-promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 4px 0 0; padding: 0; list-style: none; }
.wm-promises li { text-align: center; }
.wm-promises .seal {
  width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--wm-display); font-weight: 700; font-size: 1.15rem; color: #f4dad4;
  background: radial-gradient(circle at 40% 32%, #b4472f, #7c1f16 72%);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, .3), inset 0 -5px 9px rgba(0, 0, 0, .45), 0 3px 8px rgba(0, 0, 0, .25);
}
.wm-promises b { display: block; font-family: var(--wm-display); font-size: .92rem; letter-spacing: .04em; color: var(--ink); }
.wm-promises span { display: block; font-size: .95rem; line-height: 1.4; color: var(--ink-soft); }

@media (max-width: 640px) { .wm-promises { grid-template-columns: 1fr 1fr; gap: 22px 14px; } }

body.wm .link-list li { background: var(--bg-card); }
body.wm .link-list .link-title { font-family: var(--wm-display); font-weight: 600; letter-spacing: .03em; }

/* ---------- policy / support pages ---------- */

.wm-page-hero { padding: 84px 0 36px; }
.wm-page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.parchment.prose h2 { font-size: 1.25rem; margin-top: 1.9em; letter-spacing: .03em; }
.parchment.prose h2:first-child { margin-top: 0; }
body.wm .parchment.prose h3 { font-family: var(--wm-body); font-weight: 700; font-size: 1.12rem; letter-spacing: 0; color: var(--ink); margin-top: 1.5em; }
.parchment .summary {
  background: rgba(140, 107, 28, .1);
  border: 1px solid rgba(140, 107, 28, .35);
  border-radius: 12px; padding: 18px 22px; margin: 0 0 8px;
}
.parchment .summary ul { margin: 0; }

.data-table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: .97rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(140, 107, 28, .3); }
.data-table th { font-family: var(--wm-display); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #6b4f12; font-weight: 600; }
.data-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.data-table code { font-family: ui-monospace, Menlo, monospace; font-size: .82em; background: rgba(140, 107, 28, .14); padding: 1px 5px; border-radius: 4px; color: #4a3510; }
@media (max-width: 600px) {
  .data-table thead { display: none; }
  .data-table tr { display: block; padding: 10px 0; border-bottom: 1px solid rgba(140, 107, 28, .3); }
  .data-table td { display: block; border: 0; padding: 2px 0; white-space: normal; }
}
