/* Brawl Racers website. One stylesheet for every page. */
:root {
  --bg: #0d0f14;
  --bg-card: #171a22;
  --line: #2a2f3b;
  --text: #e9ecf2;
  --text-dim: #9aa3b5;
  --accent: #ff5a1f;        /* Wasteland orange */
  --accent-2: #ffd23f;      /* F1 yellow */
  --radius: 10px;
  --gutter: 16px;           /* side margin on phones */
  --max: 1100px;            /* content width */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, "Segoe UI", Roboto, sans-serif;   /* system fonts: no request to a font server */
}
a { color: var(--accent-2); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Top bar */
.bar { display: flex; justify-content: flex-end; gap: 14px; padding: 12px var(--gutter); font-size: 15px; }
.bar a { color: var(--text-dim); text-decoration: none; }
.bar a:hover, .bar a[aria-current] { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid; place-items: center;
  text-align: center;
  background: url(img/hero.webp) center / cover no-repeat;
}
.hero::after {             /* darkens the photo under the text */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,15,20,.35) 0%, rgba(13,15,20,.55) 60%, var(--bg) 100%);
}
.hero-in { position: relative; z-index: 1; padding: 40px var(--gutter); }
.hero h1 { margin: 0; }
.hero .logo { width: min(640px, 88vw); margin: 0 auto; filter: drop-shadow(0 6px 20px rgba(0,0,0,.6)); }
.tagline { font-size: clamp(20px, 3vw, 26px); font-weight: 600; margin: 18px auto 26px; max-width: 760px; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.soon {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.demo {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: #fff; color: #111; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.45);
}
.demo:hover, .demo:focus-visible { background: var(--accent); color: #fff; }
.soon-note { margin-top: 12px; color: var(--text-dim); font-size: 15px; text-shadow: 0 1px 6px rgba(0,0,0,.8); }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 24px; letter-spacing: .02em; }
.lead { color: var(--text-dim); max-width: 760px; margin: 0 0 32px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; }   /* height: auto, or the height attribute wins over the ratio */
.card div { padding: 16px 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 21px; color: var(--accent-2); }
.card p { margin: 0; color: var(--text-dim); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.facts li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }

/* Text pages (privacy, legal) */
.doc { max-width: 780px; padding-top: 24px; padding-bottom: 56px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); margin: 0 0 6px; }
.doc .updated { color: var(--text-dim); margin: 0 0 28px; }
.doc h2 { font-size: 23px; margin: 32px 0 10px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
.todo { background: #5a1e00; color: #ffd9c7; padding: 0 4px; border-radius: 4px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--text-dim); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--text-dim); }
