/* raetae.com — one stylesheet for every page.
   Fonts: Barlow Semi Condensed (SIL OFL 1.1, fonts/OFL.txt), self-hosted: no request leaves this site. */

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("fonts/BarlowSemiCondensed-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("fonts/BarlowSemiCondensed-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("fonts/BarlowSemiCondensed-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-raised: #111317;
  --bg-sunk: #07080a;
  --line: #23262c;
  --line-strong: #3a3e46;
  --text: #eceef1;
  --silver: #c4c8ce;
  --muted: #9ba0a8;
  --dim: #6c7179;
  --red: #d8262f;
  --red-bright: #ff4a52;
  --red-wash: rgba(216, 38, 47, 0.13);
  --gutter: clamp(16px, 4vw, 40px);
  --wide: 72rem;
  --prose: 44rem;
  --font: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: #fff; text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 2px; }

p, li { overflow-wrap: break-word; }
.mail { overflow-wrap: anywhere; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 7.5vw, 5rem); letter-spacing: 0.08em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.15rem; letter-spacing: 0.06em; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--red); color: #fff; padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: var(--gutter); }

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

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; min-height: 4rem; padding-top: 0.6rem; padding-bottom: 0.6rem;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 0.45rem;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 700; font-size: 1.05rem;
}
.brand::before {
  content: ""; width: 0.55rem; height: 1.05rem; align-self: center;
  background: var(--red); transform: skewX(-20deg);
}
.brand span { color: var(--muted); font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.nav a {
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; font-size: 0.92rem; color: var(--silver);
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }

/* ---------- sections ---------- */
.section { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.kicker {
  display: inline-block; margin: 0 0 0.9rem; color: var(--red-bright);
  text-transform: uppercase; letter-spacing: 0.26em; font-weight: 700; font-size: 0.82rem;
}
.lead { font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.5; color: var(--silver); max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--bg-sunk); border-bottom: 1px solid var(--line); }
.hero img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 13, 0) 35%, rgba(10, 11, 13, 0.92) 100%);
  pointer-events: none;
}
.hero .hero-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding-bottom: clamp(1.2rem, 4vw, 3rem); }
.hero h1 { margin-bottom: 0.2em; }
.hero .lead { margin: 0; }
@media (max-width: 720px) {
  .hero img { aspect-ratio: 4 / 3; }
  .hero::after { background: linear-gradient(180deg, rgba(10, 11, 13, 0) 20%, rgba(10, 11, 13, 0.95) 100%); }
}

/* ---------- buttons and badges ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.3rem; border: 1px solid var(--red); background: var(--red); color: #fff;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; font-size: 0.95rem;
}
.btn:hover { background: var(--red-bright); border-color: var(--red-bright); color: #fff; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--silver); }
.btn.soon { background: transparent; color: var(--silver); border: 1px dashed var(--line-strong); cursor: default; }
.btn.soon::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--red); }

.facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.facts li {
  border: 1px solid var(--line-strong); padding: 0.25rem 0.7rem;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; color: var(--silver);
}

/* ---------- grids ---------- */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 0.9fr; } }

.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin-top: 1.5rem; }
.card { background: var(--bg-raised); padding: 1.4rem 1.3rem 1.5rem; position: relative; }
.card::before { content: ""; position: absolute; left: 1.3rem; top: 0; width: 2rem; height: 2px; background: var(--red); }
.card h3 { margin-top: 0.3rem; }
.card p { margin: 0; color: var(--silver); }

.shots { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); margin: 1.5rem 0 0; }
.shots figure { margin: 0; background: var(--bg-sunk); border: 1px solid var(--line); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shots figure:first-child { grid-column: 1 / -1; }

.feature-game {
  display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); background: var(--bg-raised);
  text-decoration: none; color: inherit;
}
.feature-game img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-game .body { padding: clamp(1.2rem, 3vw, 2rem); }
.feature-game:hover { border-color: var(--line-strong); }
.feature-game .more {
  margin: 1.3rem 0 0; color: var(--red-bright); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; font-size: 0.9rem;
}
@media (min-width: 860px) {
  .feature-game { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .feature-game img { height: 100%; aspect-ratio: auto; min-height: 20rem; }
}

/* ---------- long text (policies, legal, FAQ) ---------- */
.doc h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: 0.06em; }
.doc h2 { margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: clamp(1.2rem, 3vw, 1.5rem); }
.doc h3 { margin-top: 1.6rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: 0.35rem 0; }
.doc li::marker { color: var(--red); }
.meta-line { color: var(--muted); font-size: 0.95rem; margin-top: -0.2rem; }
.langs { display: flex; gap: 1rem; margin: 0.4rem 0 1.4rem; font-size: 0.95rem; }
.langs a[aria-current="page"] { text-decoration: none; color: var(--muted); }

.box { border: 1px solid var(--line-strong); border-left: 3px solid var(--red); background: var(--bg-raised); padding: 1rem 1.2rem; margin: 1.4rem 0; }
.box p:first-child { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }
.box.planned { border-left-style: dashed; background: var(--bg-sunk); }
.tag {
  display: inline-block; margin-bottom: 0.5rem; padding: 0.1rem 0.5rem; border: 1px solid var(--red);
  color: var(--red-bright); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700;
}

dl.ids { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.4rem 1.2rem; margin: 1rem 0; }
dl.ids dt { color: var(--muted); }
dl.ids dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  dl.ids { grid-template-columns: 1fr; gap: 0.1rem; }
  dl.ids dd { margin-bottom: 0.7rem; }
}

.faq details { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; padding-right: 2rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: -0.1rem; color: var(--red-bright); font-size: 1.4rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p, .faq details ul { color: var(--silver); }

/* ---------- placeholders: remove every .ph before going live ---------- */
.ph {
  background: var(--red-wash); color: #ffc2c5; outline: 1px dashed var(--red);
  padding: 0 0.3em; border-radius: 2px; font-weight: 600; overflow-wrap: anywhere;
}

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-sunk); color: var(--muted); font-size: 0.92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; padding-top: 1.6rem; padding-bottom: 1.8rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.site-foot a { color: var(--silver); }

/* ---------- 404 ---------- */
.lost { padding: clamp(4rem, 14vw, 9rem) 0; }
.lost .code { color: var(--red-bright); letter-spacing: 0.3em; font-weight: 700; }
