/* Tokens copied from the game's UI theme (Assets/_Emberfrost/UI/Theme/EmberfrostTheme.uss). */
:root {
  --color-bg: rgb(18, 14, 11);
  --color-bg-panel: rgba(28, 20, 14, 0.86);
  --color-surface: rgb(43, 31, 22);
  --color-surface-hi: rgb(74, 52, 33);
  --color-gold: rgb(197, 160, 86);
  --color-gold-bright: rgb(236, 206, 140);
  --color-bronze: rgb(110, 84, 50);
  --edge-dark: rgb(44, 32, 19);
  --edge-line: rgb(85, 64, 38);
  --color-text: rgb(242, 235, 222);
  --color-text-title: rgb(236, 206, 140);
  --color-text-muted: rgb(150, 134, 112);
  --class-warrior: rgb(180, 157, 126);
  --class-paladin: rgb(242, 139, 120);
  --class-wizard: rgb(142, 134, 240);
  --class-cultist: rgb(143, 217, 166);
  --serif: "EB Garamond", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font: 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--color-gold-bright); }
a:hover { color: #fff; }
h2, h3 { font-family: var(--serif); color: var(--color-text-title); font-weight: 600; line-height: 1.15; }
.muted { color: var(--color-text-muted); font-size: 0.92rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--color-surface); padding: .5rem 1rem; }

/* The game's double border: 3 px dark with a 1 px lighter line down its middle. */
.frame {
  border: 1px solid var(--edge-line);
  box-shadow: 0 0 0 1px var(--edge-dark), inset 0 0 0 1px var(--edge-dark);
  border-radius: 8px;
  background: var(--color-bg-panel);
}

/* Buttons */
.btn {
  display: inline-block; padding: .8rem 1.6rem; border-radius: 6px; text-decoration: none;
  font: 600 1.05rem/1 var(--serif); letter-spacing: .04em; text-transform: uppercase;
  color: var(--color-text); background: rgba(28, 20, 14, .75);
  border: 1px solid var(--edge-line); box-shadow: 0 0 0 1px var(--edge-dark), inset 0 0 0 1px var(--edge-dark);
  transition: border-color .15s, box-shadow .15s, color .15s;
}
.btn:hover { color: #fff; border-color: var(--color-gold); box-shadow: 0 0 0 1px var(--color-bronze), inset 0 0 0 1px var(--edge-dark), 0 0 18px rgba(197,160,86,.25); }
.btn--gold { color: #1b130b; background: linear-gradient(var(--color-gold-bright), var(--color-gold)); border-color: var(--color-gold-bright); box-shadow: 0 0 0 1px var(--color-bronze), 0 0 22px rgba(236,206,140,.25); }
.btn--gold:hover { color: #000; background: linear-gradient(#f6e3b5, var(--color-gold-bright)); }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--color-gold-bright); outline-offset: 3px; }

/* Sticky header */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 2rem;
  padding: .7rem clamp(1rem, 4vw, 3rem); background: rgba(18, 14, 11, .88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--edge-line);
}
.nav__brand { margin-right: auto; }
.nav__brand img { height: 28px; width: auto; }

/* Hero */
.hero {
  min-height: 88vh; display: grid; place-items: center; text-align: center; padding: 4rem 1.5rem 6rem;
  background:
    linear-gradient(to bottom, rgba(18,14,11,.25), rgba(18,14,11,.35) 55%, var(--color-bg)),
    url("assets/img/hero.webp") center 35% / cover no-repeat;
}
.hero__inner { max-width: 880px; }
.hero__logo { width: min(914px, 100vw); height: auto; margin: -4% auto -3%; }
.hero__tag { font: 500 clamp(1.2rem, 2.4vw, 1.6rem)/1.4 var(--serif); margin: 1.5rem auto 2rem; text-shadow: 0 2px 8px #000; }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 1.2rem; color: var(--color-text-muted); font-size: .9rem; text-shadow: 0 1px 4px #000; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 5rem 1.5rem 1rem; }
.title { font-size: clamp(2rem, 4vw, 2.8rem); text-align: center; margin: 0 0 2rem; }
.title::after { content: ""; display: block; width: 120px; height: 1px; margin: .9rem auto 0; background: linear-gradient(90deg, transparent, var(--color-gold), transparent); }

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.video { aspect-ratio: 16 / 9; overflow: hidden; padding: 3px; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; border-radius: 5px; }

/* Class cards */
.class { overflow: hidden; position: relative; transition: transform .2s, box-shadow .2s; }
.class img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 8%; opacity: .9; }
.class__text { padding: 1.1rem 1.3rem 1.4rem; border-top: 2px solid var(--c); }
.class h3 { color: var(--c); font-size: 1.6rem; margin: 0 0 .4rem; }
.class p { margin: 0; color: var(--color-text-muted); font-size: .95rem; }
.class:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--edge-dark), inset 0 0 0 1px var(--edge-dark), 0 10px 30px -10px var(--c); }
.class:hover img { opacity: 1; }

/* Download */
.download { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; padding: 2rem 2.2rem; }
.steps { margin: 0; padding-left: 1.3rem; }
.steps li { margin: .5rem 0; color: var(--color-text-muted); }
.steps strong { color: var(--color-text); }
.download__cta { text-align: center; }

/* Community */
.social { display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 1.6rem; text-decoration: none; color: var(--color-text); transition: border-color .15s, background .15s; }
.social img { width: 48px; height: auto; flex: none; }
.social strong { display: block; font: 600 1.4rem/1.2 var(--serif); color: var(--color-text-title); }
.social small { color: var(--color-text-muted); font-size: .9rem; }
.social:hover { border-color: var(--color-gold); background: rgba(74, 52, 33, .55); color: var(--color-text); }

/* Footer */
.footer { margin-top: 5rem; padding: 2.5rem 1.5rem; text-align: center; border-top: 1px solid var(--edge-line); color: var(--color-text-muted); font-size: .85rem; }
.footer__links { display: flex; gap: 1.6rem; justify-content: center; align-items: center; margin-bottom: 1rem; }
.footer__links img { height: 22px; width: auto; opacity: .75; transition: opacity .15s; }
.footer__links a:hover img { opacity: 1; }

@media (max-width: 900px) {
  .grid--3, .download { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .grid--4 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
