/* Andre's Adventures. Colours are the game's own (Tools/video/youtube/yt.py): night, indigo, gold, red, orange. */

@font-face {
  font-family: "Press Start 2P";
  src: url("/fonts/PressStart2P-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #1a1026;
  --indigo: #2a2050;
  --ink: #140c1e;
  --gold: #ffe680;
  --red: #c9281f;
  --red-deep: #7d1612;
  --burst-red: #d6312b;
  --burst-orange: #f58a1f;
  --text: #f6f1ff;
  --soft: #d9d0ee;
  --line: #5a4a96;
  --pixel: "Press Start 2P", "Courier New", monospace;
  --body: "Atkinson Hyperlegible", Verdana, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
.pixel { image-rendering: pixelated; }

p, ul, figure { margin: 0 0 1.25rem; }
strong { color: #fff; }

a { color: var(--gold); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
a:hover { color: #fff; }

:focus-visible { outline: 4px solid var(--gold); outline-offset: 4px; }
.btn:focus-visible, .player__play:focus-visible { outline-color: #fff; box-shadow: 0 0 0 8px var(--ink); }

.wrap { width: 100%; max-width: 60rem; margin: 0 auto; padding: 0 1rem; }
.center { text-align: center; }

.skip {
  position: absolute; left: 0.5rem; top: -6rem; z-index: 10;
  padding: 0.75rem 1rem; background: var(--gold); color: var(--ink); font-weight: 700;
}
.skip:focus { top: 0.5rem; color: var(--ink); }

/* ---------------------------------------------------------------- headings */

h1 { margin: 0; }

h2, .kicker {
  font-family: var(--pixel);
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--ink);
}
h2 { font-size: clamp(1.25rem, 5.4vw, 2rem); line-height: 1.5; margin: 0 0 2rem; overflow-wrap: break-word; }
.kicker { font-size: clamp(0.875rem, 3.4vw, 1.125rem); color: #fff; margin: 0 0 0.75rem; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem 0.75rem;
  min-height: 3.75rem; max-width: 100%;
  padding: 1rem 1.25rem;
  border: 4px solid var(--ink);
  font-family: var(--pixel); font-size: clamp(0.8125rem, 3.5vw, 1rem); line-height: 1.5;
  text-transform: uppercase; text-decoration: none; text-align: center;
  transition: transform 0.08s steps(2), box-shadow 0.08s steps(2);
}
.btn--red { background: var(--red); color: #fff; box-shadow: 0 6px 0 var(--red-deep), 0 6px 0 4px var(--ink); }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 0 #b98a1c, 0 6px 0 4px var(--ink); }
.btn--red:hover { color: #fff; background: #b3211a; }
.btn--gold:hover { color: var(--ink); background: #fff3b8; }
.btn:active { transform: translateY(4px); }
.btn--big { min-height: 4.5rem; padding: 1.25rem 1.5rem; }
.btn__icon { fill: currentColor; flex: none; }
.btn__sub { font-family: var(--body); font-size: 1.0625rem; font-weight: 700; text-transform: none; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden;
  padding: 2rem 0 3rem;
  border-bottom: 4px solid var(--ink);
  background-color: var(--night);
  background-image:
    radial-gradient(#fff 1.5px, transparent 2px),
    radial-gradient(#c9c2ff 1.5px, transparent 2px),
    linear-gradient(var(--night), var(--indigo));
  background-size: 190px 170px, 130px 210px, auto;
  background-position: 20px 30px, 90px 110px, 0 0;
}
.hero__burst {
  position: absolute; left: 50%; top: 50%;
  width: max(125vw, 44rem); height: 88%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-conic-gradient(from -7.5deg, var(--burst-red) 0 15deg, var(--burst-orange) 15deg 30deg);
}
.hero__grid { position: relative; display: grid; gap: 1.5rem; justify-items: center; }
.hero__text { display: grid; gap: 2rem; justify-items: center; width: 100%; }
.plate { background: rgba(20, 12, 30, 0.9); padding: 1.25rem 1rem 1rem; width: 100%; max-width: 36rem; }
.hero__logo img { width: 100%; }
.hero__tag {
  margin: 1rem 0 0; text-align: center;
  font-family: var(--pixel); font-size: clamp(1rem, 5vw, 1.75rem); line-height: 1.4;
  color: #fff; text-shadow: 3px 3px 0 var(--ink);
}
.hero__andre img { width: auto; height: min(21rem, 42vh); min-height: 14rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero__andre img { animation: bob 1.2s steps(2, jump-none) infinite alternate; }
  @keyframes bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
}

@media (min-width: 56rem) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero__burst { width: 70rem; height: 92%; }
  .hero__grid { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .hero__andre img { height: 30rem; }
}

/* ---------------------------------------------------------------- bands */

.band { padding: 3.5rem 0; border-bottom: 4px solid var(--ink); }
.band--indigo { background: var(--indigo); }

/* watch */
.player {
  position: relative; aspect-ratio: 16 / 9; max-width: 56rem; margin: 0 auto 1rem;
  background: var(--ink); border: 4px solid var(--gold); overflow: hidden;
}
.player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.player__soon {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 0.875rem 0.5rem;
  background: rgba(20, 12, 30, 0.94); color: var(--gold); text-align: center;
  font-family: var(--pixel); font-size: clamp(0.75rem, 3.2vw, 1.125rem); line-height: 1.5; text-transform: uppercase;
}
.player__play {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(20, 12, 30, 0.25); color: #fff;
}
.player__badge {
  display: inline-flex; align-items: center; gap: 0.75rem; padding: 1rem 1.5rem;
  background: var(--red); border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--red-deep);
  font-family: var(--pixel); font-size: clamp(1rem, 4vw, 1.5rem); text-transform: uppercase;
}
.player__badge svg { fill: currentColor; }
.player__play:hover .player__badge { background: #b3211a; }
.player__note { max-width: 56rem; margin: 0 auto 2rem; color: var(--soft); text-align: center; }
.goal {
  max-width: 44rem; margin: 0 auto 2rem; padding: 1.25rem 1rem;
  background: var(--ink); border: 4px solid var(--gold); text-align: center; font-size: 1.3125rem; line-height: 1.5;
}
.goal strong { color: var(--gold); }

/* story */
.story { display: grid; gap: 2rem; align-items: center; }
.story__cast { display: flex; justify-content: center; align-items: flex-end; gap: 1.5rem; }
.story__manmeat { width: 10rem; }
.story__thief {
  width: 7.5rem; padding: 1rem 1rem 0; border: 4px solid var(--ink);
  background: repeating-conic-gradient(from -7.5deg at 50% 100%, var(--burst-red) 0 15deg, var(--burst-orange) 15deg 30deg);
}
.story__text p { font-size: 1.3125rem; max-width: 34rem; margin-left: auto; margin-right: auto; }
@media (min-width: 48rem) {
  .story { grid-template-columns: auto 1fr; gap: 3rem; }
  .story__manmeat { width: 13.5rem; }
  .story__thief { width: 10rem; }
}

/* stage 1 */
.band--stage { padding-top: 0; }
.stage__strip {
  height: 204px; margin-bottom: 2.5rem; border-bottom: 4px solid var(--ink);
  background: #1f3a3a url("/img/forest.png") repeat-x center bottom / auto 204px;
  background-image: image-set(url("/img/forest.webp") type("image/webp"), url("/img/forest.png") type("image/png"));
  image-rendering: pixelated;
}
@media (min-width: 56rem) { .stage__strip { height: 306px; background-size: auto 306px; } }

.stage__intro { display: grid; gap: 1.5rem; align-items: center; justify-items: center; margin-bottom: 2rem; }
.quest { list-style: none; padding: 0; margin: 0; max-width: 34rem; font-size: 1.3125rem; }
.quest li { position: relative; padding: 0.5rem 0 0.5rem 2.25rem; }
.quest li::before {
  content: ""; position: absolute; left: 0.25rem; top: 1.1rem; width: 0.875rem; height: 0.875rem;
  background: var(--gold); box-shadow: 3px 3px 0 var(--ink);
}
.stage__boss { display: flex; align-items: flex-end; gap: 1rem; }
.stage__boss img { width: 9.5rem; }
.stage__boss .stage__tattoo { width: 5rem; padding: 0.5rem; background: #f3c9a0; border: 4px solid var(--ink); }
.stage__bandits { width: min(100%, 54rem); margin: 0 auto 2.5rem; }
@media (min-width: 48rem) { .stage__intro { grid-template-columns: 1fr auto; justify-items: start; } }

.shots { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.shots figure { margin: 0; background: var(--ink); border: 4px solid var(--ink); }
.shots img { width: 100%; }
.shots figcaption { padding: 0.75rem 0.875rem; color: var(--text); }
@media (min-width: 48rem) { .shots { grid-template-columns: 1fr 1fr; } }

/* music */
.nowplaying {
  max-width: 40rem; margin: 0 auto 2rem; padding: 1.5rem 1.25rem;
  background: #3d1740; border-left: 8px solid var(--gold); text-align: center;
}
.nowplaying p { margin: 0; }
.nowplaying__label { font-family: var(--pixel); font-size: 0.875rem; text-transform: uppercase; color: var(--gold); }
.nowplaying__song { font-size: clamp(1.5rem, 6.5vw, 2.25rem); font-weight: 700; line-height: 1.3; padding: 0.75rem 0 0.25rem; color: #fff; }
.nowplaying__artist { font-size: 1.3125rem; }
.btn--long { max-width: min(100%, 48rem); text-wrap: balance; overflow-wrap: break-word; } /* long wording: wraps inside the box, lines even */

/* follow */
.follow { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 1.25rem; }
.follow li { max-width: 100%; }

/* footer */
.foot { padding: 3rem 0 4rem; background: var(--ink); color: var(--soft); font-size: 1.125rem; }
.foot p { max-width: 46rem; }
.foot__logo { width: 223px; margin-bottom: 1.5rem; }

/* ---------------------------------------------------------------- plain pages (privacy, 404) */

.page { padding: 2.5rem 0 4rem; min-height: 70vh; }
.page h1 {
  font-family: var(--pixel); font-weight: 400; font-size: clamp(1.25rem, 5.4vw, 2rem); line-height: 1.5;
  text-transform: uppercase; color: var(--gold); text-shadow: 3px 3px 0 var(--ink); margin: 0 0 1.5rem;
}
.page h2 { text-align: left; font-size: clamp(0.9375rem, 4vw, 1.125rem); margin: 2.5rem 0 1rem; }
.page p, .page li { max-width: 40rem; }
.page__home { display: inline-block; width: min(18rem, 70%); margin-bottom: 2rem; }
.page__andre { width: 11rem; margin-bottom: 1.5rem; }
