/* Warband Survivors website (web/). Colours from the key art: dusk purple, sunset orange, gold. */
:root {
  --night: #1a1030;
  --night-2: #241640;
  --panel: #2c1d4d;
  --line: #45306e;
  --ink: #f4ecff;
  --muted: #c3b3e0;
  --gold: #ffc85a;
  --sunset: #ff8a3d;
  --grass: #7fcf62;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 17px/1.6 "Atkinson Hyperlegible", system-ui, sans-serif;
}
img, video { display: block; max-width: 100%; }
a { color: var(--gold); }
h1, h2, h3 { font-family: "Pixelify Sans", system-ui, sans-serif; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.bar { position: absolute; inset: 0 0 auto; z-index: 3; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: "Pixelify Sans", system-ui, sans-serif; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.bar nav { display: flex; gap: 22px; font-size: 15px; }
.bar nav a { color: var(--ink); text-decoration: none; opacity: .85; }
.bar nav a:hover { opacity: 1; color: var(--gold); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: url(img/key-art.jpg) center 62% / cover no-repeat; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(26 16 48 / .92) 0%, rgb(26 16 48 / .7) 38%, rgb(26 16 48 / 0) 70%),
    linear-gradient(0deg, var(--night) 0%, rgb(26 16 48 / 0) 30%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 90px; padding-bottom: 70px; width: 100%; }
.hero-text { display: flex; flex-direction: column; gap: 22px; max-width: 34rem; }
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero h1 { font-size: clamp(46px, 8vw, 88px); color: #fff; text-shadow: 0 4px 0 #6a2c12, 0 10px 30px rgb(0 0 0 / .5); }
.hero h1 span { display: block; color: var(--gold); }
.lead { font-size: 20px; color: #fff; text-shadow: 0 2px 12px rgb(0 0 0 / .6); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 200px; padding: 10px 18px 10px 14px;
  border-radius: 12px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgb(255 255 255 / .35);
}
.store svg { width: 28px; height: 28px; flex: none; fill: #fff; }
.store small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.store b { display: block; font-size: 19px; line-height: 1.1; }
.store[aria-disabled="true"] { cursor: default; opacity: .78; }
.store[aria-disabled="true"] small { color: var(--gold); opacity: 1; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.facts li { padding: 4px 12px; border-radius: 999px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .18); font-size: 14px; backdrop-filter: blur(4px); }

.phone { justify-self: end; width: min(300px, 100%); background: #0b0716; padding: 10px; border-radius: 30px; box-shadow: 0 20px 60px rgb(0 0 0 / .55), 0 0 0 2px rgb(255 200 90 / .25); }
.phone video, .phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 21px; background: #000; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 42rem; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 5vw, 46px); }
.section-head p { color: var(--muted); font-size: 19px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; }
.feature div { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.feature h3 { font-size: 20px; color: var(--gold); }
.feature p { color: var(--muted); font-size: 16px; }

.classes { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.class-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.class { border-radius: 16px; padding: 24px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.class h3 { font-size: 26px; }
.class .tag { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.class.knight { border-top: 4px solid #e0503a; }
.class.ranger { border-top: 4px solid var(--grass); }
.class.mage { border-top: 4px solid #6c8cff; }
.note { margin-top: 18px; color: var(--muted); font-size: 15px; }

.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.shots figure { margin: 0; flex: 0 0 min(230px, 62vw); scroll-snap-align: start; }
.shots img { border-radius: 16px; aspect-ratio: 9 / 16; object-fit: cover; border: 1px solid var(--line); }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.world { position: relative; isolation: isolate; overflow: hidden; }
.world::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--night) 20%, rgb(26 16 48 / .55)), url(img/camp-art.jpg) right center / cover; }
.regions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 34rem; }
.regions li { display: flex; gap: 14px; align-items: baseline; padding: 12px 16px; background: rgb(44 29 77 / .8); border: 1px solid var(--line); border-radius: 12px; }
.regions b { font-family: "Pixelify Sans", system-ui, sans-serif; font-size: 20px; color: var(--gold); min-width: 8.5rem; }
.regions span { color: var(--muted); font-size: 15px; }

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.faq div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.faq h3 { font-family: "Atkinson Hyperlegible", system-ui, sans-serif; font-size: 18px; color: var(--gold); }
.faq p { color: var(--muted); font-size: 16px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- plain pages (privacy) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 110px 20px 70px; display: flex; flex-direction: column; gap: 16px; }
.page h1 { font-size: 44px; color: var(--gold); }
.page h2 { font-family: "Atkinson Hyperlegible", system-ui, sans-serif; font-size: 22px; margin-top: 18px; }
.page ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.page .muted { color: var(--muted); }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15.5px; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 820px) {
  .bar nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 96px; }
  .hero::after { background: linear-gradient(0deg, var(--night) 0%, rgb(26 16 48 / .82) 45%, rgb(26 16 48 / .35) 100%); }
  .phone { justify-self: center; width: min(260px, 80vw); }
  .class-grid, .faq { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
