/* Bendball's website. Colours and the display font are the game's own. */
@font-face {
  font-family: "Rajdhani";
  src: url("fonts/Rajdhani-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #140f23;
  --ink-deep: #0c0614;
  --panel: #1f1736;
  --paper: #fff4d6;
  --yellow: #ffd21f;
  --pink: #ff3d9a;
  --lime: #b8ff3d;
  --text: #efe6d2;
  --muted: #b3a8c9;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

h1, h2, h3, .tag, .nav a, .button {
  font-family: "Rajdhani", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

/* ---------- top bar ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  max-width: 1040px;
  margin: 0 auto;
}
.nav .brand { display: flex; align-items: center; gap: 10px; color: var(--yellow); text-decoration: none; font-size: 22px; font-family: "Rajdhani", sans-serif; font-weight: 700; letter-spacing: 0.06em; }
.nav .brand img { width: 34px; height: 34px; border-radius: 8px; border: 2px solid var(--ink-deep); }
.nav .links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav .links a { color: var(--text); text-decoration: none; font-size: 17px; }
.nav .links a:hover, .nav .links a[aria-current] { color: var(--yellow); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--ink-deep) url("img/hero.jpg") center / cover no-repeat;
  border-top: 6px solid var(--ink-deep);
  border-bottom: 6px solid var(--ink-deep);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 6, 20, 0.55), rgba(12, 6, 20, 0.82)); }
.hero .wrap { position: relative; padding-top: 56px; padding-bottom: 60px; text-align: center; }
.hero img.logo { width: min(620px, 92%); height: auto; }
.hero p.pitch { max-width: 620px; margin: 18px auto 0; font-size: 20px; color: var(--paper); }

.tag {
  display: inline-block;
  background: var(--ink-deep);
  color: var(--yellow);
  padding: 4px 14px;
  font-size: 16px;
  transform: rotate(-2deg);
}

.badges { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-block;
  padding: 10px 22px;
  font-size: 20px;
  color: var(--ink-deep);
  background: var(--yellow);
  border: 4px solid var(--ink-deep);
  border-right-width: 9px;
  border-bottom-width: 9px;
  text-decoration: none;
}
.button.soon { background: var(--panel); color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 52px 0; }
h2 { font-size: 34px; color: var(--yellow); margin: 0 0 18px; line-height: 1.1; }
h3 { font-size: 23px; color: var(--paper); margin: 0 0 6px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--paper);
  color: var(--ink);
  padding: 18px 18px 20px;
  border: 5px solid var(--ink-deep);
  border-right-width: 11px;
  border-bottom-width: 11px;
}
.card h3 { color: var(--ink); }
.card p { margin: 0; }
.card:nth-child(odd) { transform: rotate(-0.8deg); }
.card:nth-child(even) { transform: rotate(0.7deg); }
.card .band { display: block; height: 10px; margin: -18px -18px 14px; background: var(--yellow); border-bottom: 4px solid var(--ink-deep); }
.card:nth-child(2) .band { background: var(--lime); }
.card:nth-child(3) .band { background: var(--pink); }
.card:nth-child(4) .band { background: #b266ff; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shots img { width: 100%; height: auto; display: block; border: 5px solid var(--ink-deep); border-radius: 22px; background: var(--ink-deep); }
@media (max-width: 640px) {
  .shots { grid-template-columns: repeat(3, 72%); overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
  .shots img { scroll-snap-align: center; }
  h2 { font-size: 28px; }
  .hero p.pitch { font-size: 18px; }
}

.stripe { height: 14px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink-deep) 18px 36px); border-top: 3px solid var(--ink-deep); border-bottom: 3px solid var(--ink-deep); }

/* ---------- text pages ---------- */
.doc { max-width: 760px; }
.doc h1 { font-size: 44px; color: var(--yellow); margin: 44px 0 6px; line-height: 1.05; }
.doc h2 { font-size: 26px; margin: 34px 0 8px; }
.doc .date { color: var(--muted); margin: 0 0 22px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.box { background: var(--panel); border-left: 8px solid var(--yellow); padding: 14px 18px; margin: 18px 0; }
.box p { margin: 0; }

footer { border-top: 4px solid var(--ink-deep); background: var(--ink-deep); color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 16px; }
