/* Flash and Thunder: Demons of Carentan — site styles */

@font-face {
  font-family: "Pixel";
  src: url("fonts/unifont-latin.woff") format("woff");
  font-display: swap;
}

:root {
  --bg: #120f0f;
  --panel: #191515;
  --line: #8f8f8f;
  --line-dim: #3a3535;
  --text: #e8e6e3;
  --muted: #a39d98;
  --red: #d61f1f;
  --rust: #8e2a17;
  --blue: #2a86f5;
  --yellow: #f2c80f;
  --green: #2f9a3a;
  --purple: #a63fc7;
  --orange: #f59a1b;
  --pixel: "Pixel", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--pixel);
  font-size: 20px;
  line-height: 1.5;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

img.px { image-rendering: pixelated; image-rendering: crisp-edges; }

a { color: var(--yellow); }
a:hover { color: #fff; }

.skip {
  position: absolute; left: -9999px;
}
.skip:focus { left: 1rem; top: 1rem; background: var(--yellow); color: #000; padding: .25rem .5rem; z-index: 10; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 2px solid var(--line-dim);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  color: var(--text); text-decoration: none; font-size: 22px;
}
.brand img { width: 44px; height: 30px; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 1.5rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--yellow); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 3.5rem 0 2rem; }
.hero .demon { width: 176px; height: 120px; margin: 0 auto 1.5rem; display: block; }
.title {
  margin: 0; font-weight: normal; line-height: 1;
  font-size: clamp(34px, 8.5vw, 88px);
  letter-spacing: .02em;
  text-shadow: 4px 4px 0 var(--rust);
}
.subtitle {
  margin: .6rem 0 0; font-weight: normal;
  font-size: clamp(24px, 4.2vw, 40px);
  color: var(--red); letter-spacing: .12em; text-transform: uppercase;
}
.tagline {
  margin: 2rem auto 0; max-width: 34ch;
  font-size: clamp(22px, 3vw, 28px);
}

/* ---------- Panels (in-game UI frame) ---------- */
.panel {
  background: var(--panel);
  border: 3px solid var(--line);
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 5px var(--line-dim);
  padding: 1.75rem 2rem;
}
.panel h2 {
  margin: 0 0 1rem; font-weight: normal; font-size: 28px; color: var(--blue);
}

/* ---------- Carousel ---------- */
.gallery { margin: 1rem 0 3rem; }
.carousel { position: relative; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none;
  border: 3px solid var(--line); background: #000;
}
.slides::-webkit-scrollbar { display: none; }
.slides figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.slides img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--bg); }
.carousel-controls {
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem;
}
.btn-sq {
  font-family: var(--pixel); font-size: 22px; line-height: 1;
  width: 48px; height: 44px; cursor: pointer;
  background: #2a2626; color: var(--text);
  border: 3px solid var(--line);
}
.btn-sq:hover, .btn-sq:focus-visible { border-color: var(--yellow); color: var(--yellow); outline: none; }
.dots { display: flex; gap: .6rem; }
.dots button {
  width: 18px; height: 18px; padding: 0; cursor: pointer;
  background: transparent; border: 3px solid var(--line);
}
.dots button[aria-current="true"] { background: var(--yellow); border-color: var(--yellow); }
.caption { text-align: center; color: var(--muted); margin-top: .5rem; min-height: 1.5em; }

/* ---------- About ---------- */
.about { display: grid; gap: 2rem; margin-bottom: 3rem; }
.about p { margin: 0 0 1rem; }
.about p:last-child { margin-bottom: 0; }
.lead { font-size: 24px; color: #fff; }
.motto {
  text-align: center; font-size: clamp(24px, 3.4vw, 32px); color: var(--yellow);
  margin: 0 0 3rem;
}

.features ul { list-style: none; margin: 0; padding: 0; }
.features li { padding-left: 1.6em; position: relative; margin-bottom: .55rem; }
.features li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: .6em; height: .6em; background: var(--c, var(--red));
}
.features li:nth-child(5n+1) { --c: var(--red); }
.features li:nth-child(5n+2) { --c: var(--blue); }
.features li:nth-child(5n+3) { --c: var(--purple); }
.features li:nth-child(5n+4) { --c: var(--green); }
.features li:nth-child(5n+5) { --c: var(--orange); }

/* ---------- CTA ---------- */
.cta { text-align: center; margin: 0 0 3.5rem; }
.squad { width: 528px; max-width: 90%; height: auto; margin: 0 auto 2rem; display: block; }
.btn {
  display: inline-block; text-decoration: none;
  font-size: 26px; padding: .55rem 1.6rem;
  background: #2a2626; color: var(--text);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 #000;
}
.btn:hover, .btn:focus-visible { color: var(--yellow); border-color: var(--yellow); outline: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.cta .small { color: var(--muted); margin-top: 1rem; }

/* ---------- Sysreqs ---------- */
.reqs { margin-bottom: 3.5rem; }
.reqs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.reqs h3 { margin: 0 0 .5rem; font-weight: normal; color: var(--orange); font-size: 22px; }
.reqs dl { margin: 0; }
.reqs dt { color: var(--muted); }
.reqs dd { margin: 0 0 .6rem; }

/* ---------- Privacy page ---------- */
.doc { padding: 3rem 0 3.5rem; }
.doc h1 { font-weight: normal; font-size: clamp(32px, 5vw, 48px); margin: 0 0 .25rem; }
.doc .updated { color: var(--muted); margin: 0 0 2rem; }
.doc h2 { font-size: 26px; color: var(--blue); margin: 2rem 0 .5rem; font-weight: normal; }
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { max-width: 70ch; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 2px solid var(--line-dim); color: var(--muted);
  padding: 1.5rem 0 2rem; font-size: 18px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--yellow); }

@media (max-width: 700px) {
  body { font-size: 18px; }
  .panel { padding: 1.25rem 1.1rem; }
  .reqs-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hero { padding-top: 2.5rem; }
  .lead { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .slides { scroll-behavior: auto; }
}
