/* Golden Hour: Lofi NYC - the site. Screenprint inks from marketing/brand/README.md (the game repo):
   flat plum grounds, cream and gold type, the logo's rose as an out-of-register second print. No gradients,
   no rounded corners, no soft shadows. */

@font-face {
  font-family: "Pixelify Sans";
  src: url("/fonts/PixelifySans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --plum-0: #231c30;   /* the glow's outermost ring */
  --plum-1: #2b2237;
  --plum-2: #3a2a42;
  --plum-3: #4f3248;
  --key: #2b1a2e;      /* the logo's dark key line */
  --cream: #fff0b2;
  --gold: #ffcc6b;
  --orange: #ff9466;
  --rose: #e35c73;
  --peach: #ffbe78;
  --text: #f3e6c4;
  --muted: #c7b39a;
  --col: 780px;        /* the clips are 1560 wide: one clip pixel per screen pixel on a 2x display */
}

* { box-sizing: border-box; }

html { background: var(--plum-0); scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--plum-0);
  font: 400 19px/1.55 "Pixelify Sans", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: none;      /* Pixelify Sans joins "fi" into one glyph that reads as "A" */
  font-feature-settings: "liga" 0, "clig" 0;
}
input, button { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }

img, video { display: block; max-width: 100%; height: auto; }
.px, .clip video, .gallery img, .lightbox img, .foot-logo { image-rendering: pixelated; }

a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--cream); color: var(--key); padding: 8px 12px; }
.skip:focus { top: 8px; }

h1, h2 { font-weight: 700; line-height: 1.15; margin: 0 0 .6em; }
h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--cream);
  text-shadow: 2px 2px 0 var(--rose);   /* the subtitle's red second print */
  letter-spacing: .01em;
}
p { margin: 0 0 1em; }

/* ---------- buttons and the plate: a screenprint block with its second print one step down-right */
.btn, .plate {
  display: inline-block;
  font: 700 20px/1 "Pixelify Sans", ui-monospace, monospace;
  padding: 14px 22px 15px;
  border: 3px solid var(--key);
  box-shadow: 5px 5px 0 var(--rose);
  text-decoration: none;
  white-space: nowrap;
}
.btn {
  background: var(--gold);
  color: var(--key);
  cursor: pointer;
  transition: transform .08s steps(2), box-shadow .08s steps(2);
}
.btn:hover { color: var(--key); background: var(--cream); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--rose); }
.plate { background: var(--key); color: var(--cream); border-color: var(--key); }
.btn .arrow { display: inline-block; width: 12px; height: 12px; margin-left: 10px; vertical-align: 0; }

/* ---------- the hero: the brand art at whole-pixel scales (js/site.js sets --s, CSS pixels per art pixel) */
.hero {
  --s: 1;
  --art-w: 2880; --art-h: 960; --crop: 64;     /* hero_wide.png; the top --crop rows of sky are left out */
  --cta-y: 548;                                  /* art row the button block starts at: in the gold under the subtitle */
  position: relative;
  height: calc((var(--art-h) - var(--crop)) * var(--s) * 1px);
  background: var(--plum-0) url("/img/hero_wide.png") no-repeat;
  background-size: calc(var(--art-w) * var(--s) * 1px) auto;
  background-position: center calc(var(--crop) * var(--s) * -1px);
  image-rendering: pixelated;
  overflow: hidden;
}
@media (max-width: 599px) {
  .hero {
    --art-w: 760; --art-h: 800; --crop: 30; --cta-y: 292;
    background-image: url("/img/hero_tall.png");
  }
}
.topnav { position: absolute; top: 0; right: 0; padding: 18px 24px; z-index: 2; }
.topnav a {
  color: var(--cream); text-decoration: none; font-weight: 700; font-size: 17px;
  background: var(--key); padding: 7px 12px 8px; box-shadow: 3px 3px 0 var(--rose);
}
.topnav a:hover { background: var(--plum-3); }
.hero-cta {
  position: absolute; left: 0; right: 0;
  top: calc((var(--cta-y) - var(--crop)) * var(--s) * 1px);
  text-align: center;
  padding: 0 16px;
}
.tagline {
  display: inline-block;
  font-size: clamp(17px, 2vw, 22px); font-weight: 700;
  color: var(--key);
  margin: 0 0 18px;
}
.cta-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.platforms {
  display: inline-block; margin: 18px 0 0; padding: 4px 10px 5px;
  color: var(--cream); background: var(--key); font-weight: 700; font-size: 15px;
}
@media (max-width: 599px) {
  .tagline { font-size: 16px; max-width: 18em; margin-bottom: 14px; }
  .btn, .plate { font-size: 17px; padding: 12px 16px 13px; box-shadow: 4px 4px 0 var(--rose); }
  .cta-row { gap: 12px; flex-direction: column; align-items: center; }
  .topnav { padding: 12px 12px; }
  .topnav a { font-size: 15px; padding: 5px 9px 6px; }
}

/* ---------- sections */
main { overflow: hidden; }
.band { padding: 60px 20px; max-width: 1280px; margin: 0 auto; }
.band .text { max-width: 640px; }
.clip { margin: 0; width: min(100%, var(--col)); }
.clip .shot-link { display: block; border: 3px solid var(--key); box-shadow: 8px 8px 0 var(--plum-3); }
.clip .shot-link img { width: 100%; image-rendering: pixelated; }
.clip video {
  width: 100%;
  background: var(--key);
  border: 3px solid var(--key);
  box-shadow: 8px 8px 0 var(--plum-3);
}

.intro { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: 48px; }
.intro h2 { margin: 0; text-align: center; }
.intro .text { text-align: center; }
/* the desktop: the lower part of a made-up screen (screenshot 11, rows 480-1080) with the real strip playing in its
   slot (rows 787-1002) */
.desk { margin: 0; width: min(100%, 1240px); }
.desk-screen {
  position: relative; overflow: hidden;
  aspect-ratio: 1920 / 600;
  border: 3px solid var(--key);
  box-shadow: 8px 8px 0 var(--plum-3);
  background: var(--key);
}
.desk-screen img { position: absolute; left: 0; top: -80%; width: 100%; max-width: none; }
.desk-strip {
  position: absolute; left: 0; width: 100%;
  top: calc((787 - 480) / 600 * 100%); height: calc(216 / 600 * 100%);
  object-fit: fill;
  image-rendering: pixelated;
}
.desk figcaption { margin-top: 18px; text-align: center; color: var(--muted); font-size: 16px; }

.split { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.split .text { width: 100%; max-width: var(--col); }
@media (min-width: 1240px) {
  .split { flex-direction: row; align-items: center; justify-content: center; gap: 56px; }
  .split .text { max-width: 400px; }
  .split.flip { flex-direction: row-reverse; }
  .split .clip { flex: 0 0 auto; }
}

/* the sun's slits, as a divider */
.slits { display: grid; gap: 7px; justify-items: center; padding: 8px 0; }
.slits i { display: block; height: 10px; width: min(340px, 60vw); background: var(--orange); }
.slits i:nth-child(2) { height: 7px; width: min(300px, 52vw); }
.slits i:nth-child(3) { height: 5px; width: min(250px, 44vw); background: var(--rose); }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .8em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 12px; height: 12px; background: var(--gold); box-shadow: 3px 3px 0 var(--rose);
}

/* ---------- Listen: a wide panel, the play key and a row of gold pips (the game's volume bar), and the game's own loop
   station beside it, lighting the loops that are playing */
.listen { padding-top: 20px; }
.listen-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  max-width: 1180px; margin: 0 auto; padding: 40px 48px;
  background: var(--plum-1);
  border: 3px solid var(--key);
  box-shadow: 10px 10px 0 var(--plum-3);
}
.listen-main { flex: 1 1 420px; min-width: 0; }
.listen-kicker { margin: 0 0 6px; color: var(--gold); font-weight: 700; font-size: 18px; }
.listen-main h2 { font-size: clamp(34px, 5vw, 56px); margin: 0; }
.listen-by { margin: 6px 0 26px; color: var(--muted); font-size: 18px; }
.listen-row { display: flex; align-items: center; gap: 22px; }
.play {
  flex: 0 0 auto; width: 96px; height: 96px;
  display: grid; place-items: center;
  background: var(--gold); border: 3px solid var(--key); box-shadow: 6px 6px 0 var(--rose);
  cursor: pointer; padding: 0;
}
.play:hover { background: var(--cream); }
.play:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--rose); }
.play svg { width: 48px; height: 48px; fill: var(--key); shape-rendering: crispEdges; }
.play .i-pause, .playing .play .i-play { display: none; }
.playing .play .i-pause { display: block; }
.listen-bar { flex: 1; min-width: 0; }
.pips { display: flex; gap: 5px; height: 18px; cursor: pointer; }
.pips i { flex: 1; background: var(--plum-3); }
.pips i.on { background: var(--gold); }
.listen-time { margin: 10px 0 0; color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.now { margin: 26px 0 8px; color: var(--cream); font-weight: 700; min-height: 3em; }
.hint { margin: 0; font-size: 15px; color: var(--muted); }
.listen-station { flex: 0 0 auto; margin: 0; text-align: center; }
.listen-station canvas {
  display: block; width: 432px; height: 432px;     /* js/site.js sets whole screen pixels per station pixel */
  image-rendering: pixelated;
  box-shadow: 8px 8px 0 var(--key);
}
.listen-station figcaption { margin-top: 16px; color: var(--muted); font-size: 15px; }
@media (max-width: 1023px) {
  .listen-panel { flex-direction: column; align-items: stretch; padding: 28px 22px; gap: 28px; }
  .listen-station { align-self: center; }
}
@media (max-width: 599px) {
  .play { width: 72px; height: 72px; box-shadow: 4px 4px 0 var(--rose); }
  .play svg { width: 36px; height: 36px; }
  .listen-row { gap: 16px; }
}

/* ---------- screenshots */
.shots { text-align: center; }
.gallery {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  max-width: 1200px;
}
.gallery a { display: block; border: 3px solid var(--key); box-shadow: 6px 6px 0 var(--plum-3); }
.gallery a:hover { box-shadow: 6px 6px 0 var(--rose); }
.gallery img { width: 100%; }
.more { margin-top: 28px; }

/* ---------- signup */
.news { text-align: center; max-width: 820px; }
.news .cta-row { margin-bottom: 28px; }
.signup {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: stretch;
  margin: 8px auto 18px;
}
.signup input[type=email] {
  flex: 1 1 280px; max-width: 420px;
  font: 400 19px/1 "Pixelify Sans", ui-monospace, monospace;
  padding: 13px 14px;
  color: var(--key); background: var(--cream);
  border: 3px solid var(--key); border-radius: 0;
  box-shadow: 5px 5px 0 var(--plum-3);
}
.signup input::placeholder { color: #8d7a6a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { flex-basis: 100%; margin: 6px 0 0; min-height: 1.5em; color: var(--gold); font-weight: 700; }
.form-msg.err { color: var(--orange); }
.fine { font-size: 15px; color: var(--muted); }

/* ---------- footer */
.foot { background: var(--key); padding: 56px 20px 40px; text-align: center; }
.foot-in { max-width: 900px; margin: 0 auto; }
.foot-logo { width: 336px; margin: 0 auto 28px; }   /* the lockup at k = 0.5, one image pixel per CSS pixel */
.links { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.links a { font-weight: 700; }
.credits { color: var(--text); margin: 0 0 6px; }
.credits.small { color: var(--muted); font-size: 14px; }

/* ---------- lightbox */
.lightbox { padding: 0; border: 3px solid var(--key); background: var(--key); max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(20, 15, 28, .92); }
.lightbox img { max-width: 94vw; max-height: 90vh; width: auto; }
.lightbox .close {
  position: absolute; top: 8px; right: 8px;
  font: 700 16px/1 "Pixelify Sans", ui-monospace, monospace;
  background: var(--cream); color: var(--key); border: 3px solid var(--key); padding: 8px 12px; cursor: pointer;
}

/* ---------- press kit */
.page-head {
  background: var(--plum-0) url("/img/hero_wide.png") no-repeat;
  background-size: 2880px auto;
  background-position: center -560px;
  image-rendering: pixelated;
  padding: 0 20px;
  height: 340px;
  position: relative;
}
.page-head .topnav a { margin-left: 10px; }
.press { max-width: 980px; margin: 0 auto; padding: 56px 20px 80px; }
.press h1 { font-size: clamp(32px, 5vw, 48px); color: var(--cream); text-shadow: 3px 3px 0 var(--rose); }
.press section { margin: 0 0 64px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--cream); }
@media (max-width: 599px) {
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 12px; }
  .page-head { height: 220px; background-position: center -700px; }
}
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.downloads li { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
  background: var(--plum-1); border: 3px solid var(--key); padding: 16px 18px; }
.downloads .what { flex: 1 1 300px; }
.downloads .what b { color: var(--cream); display: block; }
.downloads .what span { color: var(--muted); font-size: 16px; }
.press .gallery { max-width: none; }
.press blockquote { margin: 0; padding: 18px 22px; background: var(--plum-1); border-left: 6px solid var(--gold); }

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