/* CardBound TCG — marketing site. Plain CSS, no build step. */

/* Self-hosted fonts (SIL Open Font License; see assets/fonts/OFL-*.txt).
   Both are variable fonts: one file covers every weight used below. */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/cinzel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #07060c;
  --ink-2: #0e0c17;
  --panel: #14111f;
  --panel-2: #1b1729;
  --line: rgba(201, 164, 92, 0.28);
  --gold: #c9a45c;
  --gold-bright: #e8c77d;
  --parchment: #f3e6c4;
  --text: #e9e4f2;
  --muted: #a69fb8;
  --ember: #e2603a;
  --root: #6fae5a;
  --storm: #5cb8d6;
  --void: #9a6be0;
  --crystal: #7fa6f0;
  --radius: 14px;
  --max: 1160px;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); }
a:hover { color: var(--parchment); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--panel); padding: 8px 14px; }

h1, h2, h3 { font-family: var(--display); color: var(--parchment); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(28px, 4.5vw, 44px); letter-spacing: .01em; }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 6, 12, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 164, 92, 0.14);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--parchment); font: 700 20px/1 var(--display); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--gold-bright); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav .btn { margin-top: 12px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font: 700 16px/1 var(--body); text-decoration: none; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-gold { background: linear-gradient(180deg, #f0d48f, #c9a45c 55%, #a7823d); color: #1a1206; box-shadow: 0 6px 24px rgba(201, 164, 92, .28); }
.btn-gold:hover { color: #1a1206; transform: translateY(-1px); box-shadow: 0 10px 32px rgba(201, 164, 92, .42); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--parchment); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--parchment); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 96px 0 110px; min-height: min(92vh, 860px); display: flex; align-items: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/backdrop.webp") center 30% / cover no-repeat;
}
@media (max-width: 720px) { .hero::before { background-image: url("../img/backdrop-sm.webp"); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(7,6,12,.2), rgba(7,6,12,.75) 70%),
    linear-gradient(180deg, rgba(7,6,12,.55) 0%, rgba(7,6,12,.35) 40%, var(--ink) 100%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.2vw, 80px); margin-bottom: 6px; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero .tag { font: 600 clamp(13px, 1.6vw, 16px)/1 var(--body); letter-spacing: .3em; color: var(--gold); text-transform: uppercase; margin-bottom: 28px; }
.hero .motto { font: italic 400 clamp(20px, 2.6vw, 26px)/1.4 Georgia, serif; color: var(--parchment); margin-bottom: 16px; }
.hero .pitch { color: #d6d0e3; max-width: 540px; margin-bottom: 30px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fine { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero .fine { margin-top: 16px; }
.badge-beta { display: inline-block; font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--gold-bright); padding: 6px 10px; border-radius: 6px; margin-bottom: 18px; }

.fan { position: relative; height: 440px; }
.fan .card { position: absolute; width: 52%; top: 50%; left: 50%; }
.fan .card:nth-child(1) { transform: translate(-88%, -46%) rotate(-11deg); }
.fan .card:nth-child(2) { transform: translate(-50%, -56%); z-index: 2; }
.fan .card:nth-child(3) { transform: translate(-12%, -46%) rotate(11deg); }
@media (max-width: 860px) {
  .hero { padding: 64px 0 80px; min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  .fan { height: 300px; max-width: 420px; width: 100%; margin: 10px auto 0; }
}

/* Card frame used by the hero fan and the gallery */
.card {
  position: relative; aspect-ratio: 5 / 7; border-radius: 12px; overflow: hidden;
  background: var(--panel); border: 2px solid var(--gold);
  box-shadow: 0 18px 50px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08);
}
.card img { width: 100%; height: 78%; object-fit: cover; }
.card .meta { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; padding: 8px 12px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(180deg, #1d1828, #120f1b); border-top: 1px solid var(--line); }
.card .name { font: 700 clamp(13px, 1.4vw, 16px)/1.2 var(--display); color: var(--parchment); }
.card .sub { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.card .lvl { position: absolute; top: 8px; right: 8px; font: 700 12px/1 var(--body); background: rgba(7,6,12,.78); color: var(--gold-bright); border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.alt { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 12%, var(--ink-2) 88%, var(--ink) 100%); }
@media (max-width: 720px) { section { padding: 70px 0; } }

.grid { display: grid; gap: 20px; }
.section-body { margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel p:last-child { margin-bottom: 0; }
.panel .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(201,164,92,.12); color: var(--gold-bright); margin-bottom: 16px; font: 700 18px/1 var(--display); }
.panel p { color: var(--muted); font-size: 16px; }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story blockquote { margin: 0 0 22px; padding-left: 18px; border-left: 3px solid var(--gold); font: italic 400 20px/1.5 Georgia, serif; color: var(--parchment); }
.story .portraits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story .portraits img { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 3 / 5; object-fit: cover; width: 100%; }
.story .portraits img:nth-child(2) { margin-top: 48px; }
.chapters { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chapters li { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 36px; } }

/* Rules */
.rule-num { font: 700 44px/1 var(--display); color: var(--gold-bright); margin-bottom: 8px; }

/* Archetypes */
.arch { border-top: 3px solid var(--c, var(--gold)); }
.arch-ember { --c: var(--ember); }
.arch-root { --c: var(--root); }
.arch-storm { --c: var(--storm); }
.arch-void { --c: var(--void); }
.arch-crystal { --c: var(--crystal); }
.arch h3 { color: var(--c); }
.arch .role { font: 600 12px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--parchment); margin-bottom: 10px; }
.archetypes { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1060px) { .archetypes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .archetypes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .archetypes { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.gallery .card { transition: transform .2s ease; }
.gallery .card:hover { transform: translateY(-6px) rotate(-.6deg); }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* Cast */
.cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.cast figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cast img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; width: 100%; }
.cast figcaption { padding: 14px 16px 18px; }
.cast .who { font: 700 18px/1.2 var(--display); color: var(--parchment); }
.cast .title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 4px 0 8px; }
.cast .bio { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 960px) { .cast { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .cast { grid-template-columns: 1fr; } }

/* Beta */
.beta { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px, 5vw, 60px); background:
  radial-gradient(ellipse at 100% 0%, rgba(201,164,92,.18), transparent 55%),
  radial-gradient(ellipse at 0% 100%, rgba(154,107,224,.16), transparent 55%),
  var(--panel); }
.beta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 28px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 18px; color: var(--muted); }
.steps li strong { color: var(--text); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 16px/1 var(--display); color: var(--ink); background: var(--gold-bright); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--muted); font-size: 16px; }
.checks li::before { content: "✦"; position: absolute; left: 4px; color: var(--gold-bright); }
@media (max-width: 860px) { .beta-grid { grid-template-columns: 1fr; gap: 28px; } }

/* FAQ */
.faq { max-width: 820px; margin: 36px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font: 600 18px/1.4 var(--body); color: var(--parchment); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-bright); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid rgba(201,164,92,.14); padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer .brand { margin-bottom: 10px; }

/* ---------- Document pages (legal, support) ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 64px 20px 96px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 18px; }
.doc h2 { font-size: 24px; margin-top: 2em; }
.doc h3 { font-size: 18px; margin-top: 1.6em; font-family: var(--body); }
.doc p, .doc li { color: #d3cde0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .note { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; color: var(--muted); font-size: 15px; }
