/* Rasquache / El Guardián del Barrio Bravo
   Palette sampled from the game: the barrio's night sky, the HUD's cream
   lettering, the combo counter's red, the torn-paper banner and the mask's teal.
   Headings use Ultra, a heavy wood-type slab close to the game's own GuardianFont. */
:root {
  --night: #232838;      /* page background: the barrio's night sky */
  --night-2: #2E3447;    /* raised panels */
  --night-3: #3A4158;    /* borders */
  --cream: #F3E7CF;      /* text: the HUD's cream lettering */
  --cream-dim: #CFC6B4;  /* secondary text */
  --paper: #EDD19B;      /* torn-paper banner */
  --red: #9A2A1C;        /* combo-counter red */
  --red-hi: #B53624;
  --outline: #2A1410;    /* dark outline under lettering, like the HUD */
  --teal: #2E9E9A;       /* the mask's teal */
  --teal-hi: #5CC2BD;
  --heading: 'Ultra', 'Rockwell Extra Bold', Georgia, serif;
  --body: 'Rubik', Arial, sans-serif;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
/* Film grain over everything, like the trailer */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-hi); }
a:hover { color: var(--cream); }
b { color: var(--cream); }

/* HUD-style lettering: cream letters with a dark outline */
.lettering {
  font-family: var(--heading);
  color: var(--cream);
  text-shadow:
    -2px -2px 0 var(--outline), 2px -2px 0 var(--outline),
    -2px 2px 0 var(--outline), 2px 2px 0 var(--outline),
    3px 4px 0 var(--outline);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 24px 16px 56px;
  background: radial-gradient(ellipse 70% 55% at 50% 40%, #2F3550 0%, rgba(35,40,56,0) 100%);
}
.hero-title {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  border-radius: 6px;
}
.hook {
  font-size: clamp(22px, 4vw, 36px);
  line-height: 1.25;
  margin: 28px 0 10px;
}
.tagline {
  font-family: var(--heading);
  font-size: clamp(16px, 2.4vw, 22px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-hi);
  margin: 0 0 30px;
}
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--heading);
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border: 3px solid var(--cream);
  border-radius: 4px;
  cursor: pointer;
  color: var(--cream);
  box-shadow: 4px 4px 0 var(--outline);
  transition: transform .1s, box-shadow .1s, background .15s;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--outline); }
.btn-red { background: var(--red); }
.btn-red:hover { background: var(--red-hi); color: var(--cream); }
.btn-teal { background: var(--teal); }
.btn-teal:hover { background: #38B3AE; color: var(--cream); }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 16px;
}
/* Torn-paper banner headings, like the combo counter */
.banner {
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(22px, 3.6vw, 34px);
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--red);
  text-align: center;
  width: fit-content;
  min-width: min(100%, 420px);
  margin: 0 auto 36px;
  padding: 26px 56px 22px;
  background: url("assets/img/banner.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(3px 4px 0 rgba(0,0,0,.45));
}

/* Trailer */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--cream);
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* About */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about img { border-radius: 6px; border: 3px solid var(--night-3); }
.about-text p { margin: 0 0 16px; color: var(--cream-dim); }
.about-text .meta {
  margin-top: 24px;
  font-family: var(--heading);
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--teal-hi);
  text-transform: uppercase;
  line-height: 1.7;
}

/* Screenshots */
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.shots figure { margin: 0; }
.shots img { border-radius: 6px; border: 3px solid var(--night-3); }
.shots figcaption {
  font-family: var(--heading);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cream);
  margin-top: 10px;
}

/* Showcase */
.showcase {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
}
.showcase img { border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.55); }
.showcase-text p { margin: 0 0 14px; color: var(--cream-dim); }
.showcase-text .event {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.3;
}

/* Signup */
.updates-intro { text-align: center; max-width: 620px; margin: 0 auto 28px; color: var(--cream-dim); }
.signup {
  max-width: 560px;
  margin: 0 auto;
  background: var(--night-2);
  border: 2px solid var(--night-3);
  border-radius: 6px;
  padding: 24px;
}
.signup label {
  display: block;
  font-family: var(--heading);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 10px;
}
.signup-row { display: flex; gap: 12px; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  font: 18px var(--body);
  padding: 14px 16px;
  color: var(--night);
  background: var(--cream);
  border: 3px solid var(--cream);
  border-radius: 4px;
}
.signup input[type="email"]:focus { outline: 3px solid var(--teal-hi); outline-offset: 2px; }
.signup .btn { flex: 0 0 auto; }
.fine { font-size: 14px; color: #A9A497; margin: 14px 0 0; }

/* Footer */
.footer {
  text-align: center;
  padding: 48px 16px 56px;
  border-top: 1px solid var(--night-3);
  color: var(--cream-dim);
  background: #1C2030;
}
.footer p { margin: 6px 0; }
.footer .studio {
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Focus visible for keyboard users */
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--teal-hi); outline-offset: 3px; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .section { padding: 40px 16px; }
  .about, .showcase, .shots { grid-template-columns: 1fr; }
  .showcase img { max-width: 300px; margin: 0 auto; }
  .showcase-text { text-align: center; }
  .banner { padding: 22px 32px 18px; margin-bottom: 28px; }
  .btn { padding: 13px 20px; font-size: 15px; }
  .signup .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
