/* Grey Paladin Studios — shared stylesheet. See reference.md before editing. */
:root {
  --ink: #0f1114;
  --panel: #171a1f;
  --panel-2: #1f232a;
  --line: #2c313a;
  --text: #e9e4d8;
  --muted: #a8a294;
  --gold: #d9a441;
  --gold-soft: #f0cf8a;
  --red: #a3312a;
  --jade: #3f9d7c;
  --max: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-soft); }
h1, h2, h3, .brand, .nav a, .btn, .eyebrow, .tag {
  font-family: "Cinzel", "Trajan Pro", Georgia, serif;
  letter-spacing: 0.04em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.1; margin: 0 0 0.4em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 0.5em; color: var(--gold-soft); font-weight: 600; }
h3 { font-size: 1.15rem; margin: 0 0 0.3em; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { color: var(--gold); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.22em; margin-bottom: 0.8em; }
.lead { font-size: 1.25rem; color: var(--text); max-width: 46em; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 17, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.14em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--gold-soft); border-bottom-color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,17,20,0.15) 0%, rgba(15,17,20,0.55) 55%, rgba(15,17,20,0.97) 100%);
}
.hero .wrap { position: relative; width: 100%; padding-top: 120px; padding-bottom: 56px; }
.hero h1 { text-shadow: 0 2px 18px rgba(0,0,0,0.7); }
.hero .lead { text-shadow: 0 1px 10px rgba(0,0,0,0.8); }
.hero-home { background-image: url("../images/silk-road-art-clean.jpg"); background-position: center top; min-height: min(90vh, 900px); }
.hero-home::before { background: linear-gradient(180deg, rgba(15,17,20,0) 0%, rgba(15,17,20,0.1) 45%, rgba(15,17,20,0.75) 78%, rgba(15,17,20,0.97) 100%); }
.split .fan { margin: 0 auto; padding: 30px 40px; }
.hero-board { background-image: url("../images/silk-road-art-clean.jpg"); background-position: center top; }
.hero-video { background-image: url("../images/screenshot-board.jpg"); }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 26px; margin: 6px 10px 6px 0;
  background: var(--gold); color: #1a1408; text-decoration: none;
  font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em;
  border: 2px solid var(--gold); border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn.ghost { background: transparent; color: var(--gold-soft); }
.btn.ghost:hover { background: rgba(217,164,65,0.15); }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.wide-img { grid-template-columns: 1.25fr 1fr; }
.frame { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,0.5); background: #000; }
.frame img { width: 100%; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 0.9rem; padding-top: 8px; font-style: italic; }

/* Games grid (home) */
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 28px; }
.game-card {
  display: flex; flex-direction: column;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  color: var(--text); text-decoration: none;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
.game-card .art { aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.game-card .body { padding: 22px 24px 26px; }
.game-card h3 { font-size: 1.35rem; color: var(--gold-soft); }
.game-card p { color: var(--muted); margin: 0 0 0.8em; }
.game-card .more { font-family: "Cinzel", Georgia, serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); }
.tag { display: inline-block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); border: 1px solid var(--gold); padding: 3px 10px; border-radius: 2px; margin-bottom: 12px; }
.tag.jade { color: #7fd0b3; border-color: var(--jade); }
.upcoming { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 28px; }
.upcoming .slot {
  border: 1px dashed var(--line); border-radius: 6px; padding: 44px 24px; text-align: center; color: var(--muted);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.015) 14px 28px);
}
.upcoming .slot strong { display: block; font-family: "Cinzel", Georgia, serif; color: var(--text); letter-spacing: 0.14em; text-transform: uppercase; font-size: 1rem; margin-bottom: 4px; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-top: 36px; }
.facts div { background: var(--panel-2); padding: 20px 16px; text-align: center; }
.facts b { display: block; font-family: "Cinzel", Georgia, serif; font-size: 1.6rem; color: var(--gold-soft); }
.facts span { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; }

/* Card rows */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 30px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards figure img { border-radius: 10px; box-shadow: 0 10px 26px rgba(0,0,0,0.55); width: 100%; transition: transform 0.18s; }
.cards figure:hover img { transform: translateY(-6px) rotate(-1deg); }
.cards figcaption { text-align: center; font-style: normal; }
.cards figcaption b { display: block; color: var(--text); font-family: "Cinzel", Georgia, serif; font-size: 0.85rem; letter-spacing: 0.08em; }
.cards.crop figure img { aspect-ratio: 5 / 7; object-fit: cover; object-position: center top; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.feature { background: var(--panel-2); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 4px; padding: 22px; }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.steps li { counter-increment: step; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 18px 16px; font-size: 0.98rem; color: var(--muted); }
.steps li::before { content: counter(step); display: block; font-family: "Cinzel", Georgia, serif; font-size: 1.5rem; color: var(--gold); }
.steps li b { display: block; color: var(--text); font-family: "Cinzel", Georgia, serif; letter-spacing: 0.08em; }

.portraits { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 540px; margin-top: 20px; }
.portraits img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--gold); object-fit: cover; background: #000; }
@media (max-width: 560px) { .portraits { grid-template-columns: repeat(3, 92px); gap: 14px; } }
.portraits img.h-red { border-color: #a3262a; }
.portraits img.h-blue { border-color: #2a5ba8; }
.portraits img.h-green { border-color: #24784a; }
.portraits img.h-purple { border-color: #6a3a9c; }
.portraits img.h-yellow { border-color: #d4a72c; }
.portraits img.h-white { border-color: #e6e0d2; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 30px; }
.tiger { max-width: 300px; margin: 0 auto; border-radius: 6px; }

/* Contact + footer */
.contact { text-align: center; }
.contact .lead { margin-left: auto; margin-right: auto; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 0.9rem; text-align: center; }
.site-footer a { color: var(--muted); }

@media (max-width: 860px) {
  body { font-size: 18px; }
  section { padding: 52px 0; }
  .split, .split.wide-img, .games, .upcoming, .shots { grid-template-columns: 1fr; gap: 28px; }
  .features { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .cards, .cards.four { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .site-header .wrap { justify-content: center; }
  .nav { justify-content: center; gap: 16px; }
  .hero { min-height: 62vh; }
}

/* Fan of partially overlapping card faces */
.fan { display: flex; justify-content: center; margin: 56px auto 10px; padding: 0 60px; max-width: 900px; }
.fan img { width: 30%; max-width: 250px; margin: 0 -7%; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,0.6); transition: transform 0.2s; }
.fan img:nth-child(1) { transform: rotate(-12deg) translateY(26px); }
.fan img:nth-child(2) { transform: rotate(-6deg) translateY(8px); }
.fan img:nth-child(3) { transform: rotate(0deg); z-index: 1; }
.fan img:nth-child(4) { transform: rotate(6deg) translateY(8px); z-index: 2; }
.fan img:nth-child(5) { transform: rotate(12deg) translateY(26px); z-index: 3; }
.fan img:hover { transform: translateY(-14px) scale(1.04); z-index: 5; }

/* Small-screen guards */
html, body { overflow-x: hidden; }
.btn { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .contact .btn { font-size: 0.72rem; letter-spacing: 0.06em; padding: 12px 14px; }
  .fan { padding: 0 30px; }
  .brand { font-size: 0.9rem; letter-spacing: 0.1em; }
}

/* Logo ring so the dark lower half of the logo stays visible on the dark header */
.brand img { width: 40px; height: 40px; box-shadow: 0 0 0 2px #c9c4b8; }

/* Phones and upright tablets: show the whole key art (with its title) across the
   top instead of cropping it to fill a tall box, and put the text underneath. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .hero-home, .hero-board {
    display: block; min-height: 0;
    background-color: var(--ink);
    background-size: 100% auto; background-repeat: no-repeat; background-position: top center;
  }
  .hero-home::before, .hero-board::before {
    background: linear-gradient(180deg, rgba(15,17,20,0) 0, rgba(15,17,20,0) 50vw, rgba(15,17,20,0.85) 72vw, #0f1114 82vw);
  }
  .hero-home .wrap, .hero-board .wrap { padding-top: 68vw; padding-bottom: 40px; }
  .hero-video { min-height: 0; }
  .hero-video .wrap { padding-top: 90px; padding-bottom: 40px; }
}

/* Wide screens: keep the rider visible. Darken only the left side (behind the text)
   and the very bottom, and keep the text in a narrow column on the left. */
@media (min-width: 861px) and (min-aspect-ratio: 1/1) {
  .hero-home, .hero-board { min-height: min(calc(100vh - 62px), 62vw, 980px); }
  .hero-home::before, .hero-board::before {
    background:
      radial-gradient(ellipse 48% 55% at 14% 68%, rgba(15,17,20,0.82) 0%, rgba(15,17,20,0.5) 55%, rgba(15,17,20,0) 100%),
      linear-gradient(180deg, rgba(15,17,20,0) 70%, rgba(15,17,20,0.95) 100%);
  }
  .hero-home h1, .hero-board h1, .hero-home .lead, .hero-board .lead { max-width: 470px; }
  .hero-home h1, .hero-board h1 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
}

/* Game title: a separate image laid over the title-free art, so its size can be set
   here. Desktop: about three quarters of the width. Phones: nearly full width. */
.hero-title { position: absolute; left: 50%; transform: translateX(-50%); top: 2.6vw; width: 78%; max-width: 1500px; z-index: 1; }
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .hero-title { width: 94%; top: 4vw; }
}

/* ---------- Monstrum Magnum page (build 13) ---------- */
:root { --frost: #8fb8e0; }
.tag.frost { color: var(--frost); border-color: #4f7aa3; }
.mm-title { font-family: "Pirata One", "Cinzel", Georgia, serif; font-weight: 400; letter-spacing: 0.02em; font-size: clamp(3rem, 8vw, 6rem); color: #f3ead6; }
.hero-mm { background-image: url("../images/mm-hero.jpg"); background-position: center; min-height: min(calc(100vh - 62px), 56vw, 900px); }
.hero-mm::before {
  background:
    radial-gradient(ellipse 52% 60% at 16% 66%, rgba(15,17,20,0.85) 0%, rgba(15,17,20,0.5) 55%, rgba(15,17,20,0) 100%),
    linear-gradient(180deg, rgba(15,17,20,0) 65%, rgba(15,17,20,0.97) 100%);
}
.hero-mm .lead { max-width: 520px; }
.mm-quote { margin: 1.4em 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--frost); font-style: italic; font-size: 1.2rem; color: var(--gold-soft); }
.mm-heroes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 34px; }
.mm-heroes figure { text-align: center; background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(143,184,224,0.12), rgba(15,17,20,0) 70%); }
.mm-heroes img { height: 300px; width: auto; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,0.6)); }
.mm-heroes figcaption { font-style: normal; }
.mm-heroes figcaption b { display: block; color: var(--text); font-family: "Cinzel", Georgia, serif; font-size: 0.85rem; letter-spacing: 0.08em; }
.mm-gear { margin-top: 48px; align-items: start; }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.tiers span { font-family: "Cinzel", Georgia, serif; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; padding: 5px 12px; border: 1px solid; border-radius: 2px; }
.t-basic { color: #c3c0b8; border-color: #6f6c66; }
.t-obscure { color: #8fb8e0; border-color: #3f6f9e; }
.t-relic { color: var(--gold-soft); border-color: var(--gold); }
.t-eldritch { color: #e0857c; border-color: #8e2a24; }
.mm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.mm-cards img { width: 100%; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(0,0,0,0.55); transition: transform 0.18s; }
.mm-cards figure:hover img { transform: translateY(-5px); }
.mm-cards figcaption { text-align: center; font-style: normal; font-family: "Cinzel", Georgia, serif; color: var(--text); font-size: 0.85rem; letter-spacing: 0.08em; }
#pc .shots { margin-top: 36px; }
.games.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) and (min-width: 861px) { .games.three .game-card h3 { font-size: 1.15rem; } }
@media (max-width: 860px) {
  .games.three { grid-template-columns: 1fr; }
  .mm-heroes { grid-template-columns: repeat(3, 1fr); }
  .mm-heroes img { height: 220px; }
  .mm-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .nav { gap: 6px 14px; }
}
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .hero-mm { display: block; min-height: 0; background-color: var(--ink); background-size: 100% auto; background-repeat: no-repeat; background-position: top center; }
  .hero-mm::before { background: linear-gradient(180deg, rgba(15,17,20,0) 0, rgba(15,17,20,0) 30vw, rgba(15,17,20,0.85) 50vw, #0f1114 58vw); }
  .hero-mm .wrap { padding-top: 34vw; padding-bottom: 40px; }
}
@media (max-width: 520px) {
  .mm-heroes { grid-template-columns: 1fr 1fr; }
  .mm-heroes img { height: 200px; }
  .mm-cards { grid-template-columns: 1fr; }
}

/* ---------- Two games per section (build 14) ---------- */
section[id] { scroll-margin-top: 72px; }
.hero-dual { background: var(--ink); }
.hero-dual .halves { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.hero-dual .halves div { background-size: cover; background-position: center; }
.hero-dual .halves::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,17,20,0.25), rgba(15,17,20,0.25)),
              linear-gradient(180deg, rgba(15,17,20,0.2) 0%, rgba(15,17,20,0.6) 55%, rgba(15,17,20,0.97) 100%); }
.hero-dual::before { display: none; }
.hero-dual .wrap { z-index: 1; }
.game-head { margin-bottom: 44px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.game-head .tag { margin-bottom: 14px; }
.game-title { font-size: clamp(2rem, 4.6vw, 3.2rem); color: var(--text); line-height: 1.15; }
.game-title.mm-title { font-size: clamp(2.6rem, 6vw, 4.2rem); color: #f3ead6; }
.game-head .lead { margin-bottom: 0.8em; }
@media (max-width: 860px) {
  .hero-dual { min-height: 0; }
  .hero-dual .halves { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .hero-dual .wrap { padding-top: 200px; }
}
.worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 30px; }
.world h3 { font-size: 1.35rem; color: var(--gold-soft); margin-top: 28px; }
.world .fan { margin: 10px auto 0; padding: 0 40px; height: auto; }
.world .frame { margin-top: 10px; }
.world .btn { font-size: 0.75rem; padding: 10px 18px; }
@media (max-width: 860px) { .worlds { grid-template-columns: 1fr; gap: 56px; } }
.world-art { height: 320px; display: flex; align-items: center; justify-content: center; }
.world-art .fan { margin: 0 auto; padding: 0 40px 30px; }
.world-art .frame { width: 100%; height: 100%; margin: 0; }
.world-art .frame img { height: 100%; object-fit: cover; }
@media (max-width: 520px) { .world-art { height: 220px; } }
