/* Bomb Pass site: the game's night-purple palette and arcade type. Fonts are
   self-hosted so pages load nothing from third parties. */

@font-face {
  font-family: "Lilita One";
  src: url("/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --night: #140b2e;
  --night-mid: #221447;
  --night-light: #34206a;
  --surface: #2b1b59;
  --outline: #4f3b96;
  --orange: #ff7a2f;
  --orange-deep: #d9531a;
  --yellow: #ffd23f;
  --teal: #2ee6c5;
  --pink: #ff4f8b;
  --violet: #9b6bff;
  --text: #ffffff;
  --text-2: #c9bff0;
  --muted: #8c80bf;
  --radius: 22px;
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: linear-gradient(180deg, var(--night-light) 0%, var(--night-mid) 420px, var(--night) 100%) fixed;
  background-color: var(--night);
  color: var(--text);
  font: 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--yellow); }
a:hover { color: #fff; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 8px;
}

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, .display {
  font-family: "Lilita One", "Nunito", sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

/* ---------------------------------------------------------------- header */

.site-header {
  padding: 18px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Lilita One", sans-serif;
  font-size: 24px;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 700;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--yellow); }

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px 0 56px;
}
.hero-logo { width: 140px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.45)); }
.hero h1 {
  font-size: clamp(48px, 9vw, 86px);
  margin: 10px 0 0;
  color: #fff;
  text-shadow: 0 5px 0 var(--orange-deep);
}
.tagline {
  font-size: 22px;
  color: var(--text-2);
  margin: 10px 0 18px;
  font-weight: 700;
}
.lead { color: var(--text-2); margin: 0 0 26px; max-width: 34em; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 6px 0 var(--orange-deep);
  color: #fff;
  font-family: "Lilita One", sans-serif;
  font-size: 22px;
  text-decoration: none;
  transition: transform .08s ease, box-shadow .08s ease;
}
.button:hover { color: #fff; transform: translateY(2px); box-shadow: 0 4px 0 var(--orange-deep); }
.button small {
  display: block;
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .9;
}
.button-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

.hero-shot {
  border-radius: var(--radius);
  border: 3px solid var(--outline);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  transform: rotate(1.5deg);
}

/* -------------------------------------------------------------- sections */

section { padding: 40px 0; }
section > .wrap > h2 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 8px; }
.section-lead { color: var(--text-2); margin: 0 0 28px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 2px solid var(--outline);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 6px 0 rgba(0,0,0,.33);
}
.card .icon { font-size: 34px; line-height: 1; }
.card h3 { font-size: 22px; margin: 12px 0 6px; }
.card p { margin: 0; color: var(--text-2); }

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.shots figure { margin: 0; }
.shots img {
  border-radius: 16px;
  border: 2px solid var(--outline);
}
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

.support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ------------------------------------------------------------ legal docs */

.doc {
  background: var(--surface);
  border: 2px solid var(--outline);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 44px);
  margin: 8px 0 48px;
}
.doc h1 { font-size: clamp(34px, 6vw, 48px); margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 24px; }
.doc h2 { font-size: 26px; margin: 34px 0 8px; color: var(--yellow); }
.doc h3 { font-size: 20px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.summary {
  background: var(--night-mid);
  border-left: 5px solid var(--teal);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 8px;
}
.summary p { margin: 6px 0; }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--outline);
  color: var(--text-2);
}
th { color: var(--text); font-weight: 800; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--outline);
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--text-2); }

/* ----------------------------------------------------------- responsive */

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 12px; }
  .hero-shot { transform: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .support { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features, .shots { grid-template-columns: 1fr; }
  .hero-logo { width: 104px; }
  .button { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
