/* ==========================================================
   Mutineer Studios — site styles
   BRAND TOKENS: change these to re-skin the whole site.
   Palette: Peach #F6C992, Coral #F76D82, Sky #ACC0D3,
            Mauve #D396A6, Teal #09A1A1, Slate #5484A4
   Rule: palette colours are FILLS. Text sits in --text, or
   --teal-text / --slate-text where it needs colour, so it
   stays readable (WCAG AA contrast).
   ========================================================== */
:root {
  --bg: #fbf7f2;           /* page background (warm off-white) */
  --surface: #ffffff;      /* cards / panels */
  --surface-2: #f3ece3;    /* alternate section band */
  --line: #e6ddd1;         /* borders */
  --text: #1b2b38;         /* main text (deep slate) */
  --text-dim: #556676;     /* secondary text */

  --peach: #f6c992;
  --coral: #f76d82;        /* primary accent: buttons, flag */
  --coral-dark: #ec5a71;
  --sky: #acc0d3;
  --mauve: #d396a6;
  --teal: #09a1a1;
  --slate: #5484a4;
  --teal-text: #047878;    /* teal, darkened for text on light bg */
  --on-accent: #1b2b38;    /* text placed on palette fills */
  --header-bg: rgba(251, 247, 242, 0.88);
  --hero-bg: transparent;
  --hero-eyebrow: var(--teal-text);
  --accent-block: var(--coral);
  --blob-opacity: .55;
  --band-bg: var(--surface-2);

  --font-display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-text); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(3.2rem, 11vw, 8rem); }
h2 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 1rem;
}
.lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--text-dim); max-width: 38em; }

/* ==========================================================
   THEMES — live site uses data-theme="block" (chosen 2026-11-16). Others kept as alternatives.
   ========================================================== */
[data-theme="midnight"] {
  --bg: #121c24; --surface: #1a2731; --surface-2: #16222b; --line: #2a3a47;
  --text: #f3eee7; --text-dim: #a9b7c4;
  --teal-text: #3cc4c4; --on-accent: #121c24;
  --coral-dark: #ff8597;
  --header-bg: rgba(18, 28, 36, 0.85);
  --blob-opacity: .16;
}
[data-theme="block"] {
  --bg: #fbf7f2; --surface: #ffffff; --line: #1b2b38;
  --hero-bg: var(--teal); --hero-eyebrow: var(--text);
  --accent-block: var(--peach);
  --band-bg: var(--peach);
  --blob-opacity: 0;
  --radius: 4px;
}
[data-theme="block"] .game-card, [data-theme="block"] .panel, [data-theme="block"] .articles li { border-width: 2px; box-shadow: 6px 6px 0 var(--text); }
[data-theme="block"] .hero .lead, [data-theme="block"] .band .eyebrow, [data-theme="block"] .band .lead, [data-theme="block"] .page-hero .eyebrow, [data-theme="block"] .page-hero .lead { color: var(--text); }
[data-theme="block"] .btn-ghost:hover { background: var(--text); }
[data-theme="editorial"] {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f4f4f2; --line: #e4e4e0;
  --text: #111111; --text-dim: #555555;
  --peach: #f4f4f2; --sky: #f4f4f2; --mauve: #f4f4f2; --teal: var(--coral);
  --teal-text: #111111; --on-accent: #111111;
  --header-bg: rgba(255, 255, 255, 0.9);
  --blob-opacity: 0;
  --radius: 0px;
}
[data-theme="editorial"] .eyebrow { color: var(--text-dim); }
[data-theme="editorial"] .btn { border-radius: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand svg, .brand img { width: 34px; height: 34px; color: var(--text); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-name span { color: var(--coral); }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px var(--gutter); border-top: 1px solid var(--line); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.86rem;
  text-decoration: none; border: 2px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: var(--on-accent); }
.btn-primary:hover { background: var(--coral-dark); color: var(--on-accent); }
.btn-ghost { color: var(--text); border-color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(80px, 14vw, 160px) 0 clamp(70px, 10vw, 120px);
  background: var(--hero-bg);
}
.hero .eyebrow { color: var(--hero-eyebrow); }
.hero::before, .hero::after { /* soft colour blobs */
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; opacity: var(--blob-opacity);
}
.hero::before { width: 520px; height: 520px; right: -120px; top: -140px; background: var(--peach); }
.hero::after  { width: 420px; height: 420px; right: 220px; bottom: -220px; background: var(--sky); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 .accent {
  display: inline-block; margin-top: .08em;
  background: var(--accent-block); color: var(--on-accent);
  padding: .02em .18em .06em; border-radius: 10px; transform: rotate(-1.5deg);
}
.hero-flag {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%) rotate(-6deg);
  width: min(30vw, 340px); color: var(--text);
}
@media (max-width: 900px) { .hero-flag { display: none; } }

/* ---------- Sections ---------- */
section { padding: clamp(70px, 10vw, 120px) 0; }
section.band { background: var(--band-bg); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; }

/* ---------- Games ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.game-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.game-art {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: var(--peach); color: var(--on-accent);
  font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .1em;
}
.game-card:nth-child(2) .game-art { background: var(--sky); }
.game-card:nth-child(3) .game-art { background: var(--mauve); }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.game-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-dim);
}
.tag-hot { background: var(--teal); color: var(--on-accent); }
.game-body p { color: var(--text-dim); flex: 1; }
.game-body .btn { align-self: flex-start; margin-top: 8px; padding: 10px 18px; font-size: 0.8rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.articles { list-style: none; padding: 0; margin: 0; counter-reset: art; display: grid; gap: 12px; }
.articles li {
  counter-increment: art; padding: 18px 20px 18px 76px; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.articles li::before {
  content: counter(art, upper-roman); position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--on-accent);
  background: var(--peach);
}
.articles li:nth-child(2)::before { background: var(--coral); }
.articles li:nth-child(3)::before { background: var(--sky); }
.articles li:nth-child(4)::before { background: var(--teal); }
.articles strong { display: block; color: var(--text); font-size: 1.05rem; }
.articles span { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Press / Contact ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.panel.tinted { background: var(--sky); border-color: transparent; }
.panel.tinted, .panel.tinted h3 { color: var(--on-accent); }
.panel.tinted p { color: var(--on-accent); }
.panel p { color: var(--text-dim); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.contact-list li:first-child { border-top: 0; }
.contact-list .label { color: var(--text-dim); font-size: 0.85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.contact-list a { font-weight: 600; word-break: break-all; }

/* ---------- Press kit page ---------- */
.facts { display: grid; grid-template-columns: 200px 1fr; gap: 0; margin: 0; }
.facts dt, .facts dd { padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--text-dim); font-size: 0.82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; }
  .facts dd { border-top: 0; padding-top: 0; }
}
.asset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.asset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.asset .swatch { height: 120px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; }
.asset .swatch svg { height: 76px; width: auto; }
.asset .swatch.light { background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.asset .swatch.dark { background: var(--text); color: var(--bg); }
.asset a { font-size: 0.9rem; font-weight: 600; }
.palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.chip { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.chip div { height: 80px; }
.chip p { margin: 0; padding: 10px 12px; font-size: 0.85rem; }
.chip code { color: var(--text-dim); }
.page-hero { padding: clamp(60px, 10vw, 110px) 0 clamp(40px, 6vw, 70px); background: var(--band-bg); }
.todo { background: var(--peach); color: var(--on-accent); padding: 0 6px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 50px; color: var(--text-dim); font-size: 0.9rem; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.socials { display: flex; gap: 18px; }
.socials a { color: var(--text-dim); text-decoration: none; font-weight: 600; }
.socials a:hover { color: var(--teal-text); }
