/* playsendit.com: the game's homepage. The look is the game's own (src/ui/ui.css and the brand kit):
   night, ink and amber, Press Start 2P for display, VT323 for reading, hard pixel shadows, no blends. */

@font-face { font-family: 'Press Start 2P'; src: url('fonts/press-start-2p.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'VT323'; src: url('fonts/vt323.woff2') format('woff2'); font-display: swap; }

:root {
  --night: #0b0d16;
  --night2: #10121e;
  --slate: #2b2f45;
  --ink: #f4efe2;
  --dim: #b9b3a3;
  --amber: #ffb43a;
  --amber-deep: #a8641a;
  --ember: #e2562b;
  --panel: rgba(16, 18, 30, 0.85);
  --head: 'Press Start 2P', ui-monospace, monospace;
  --body: 'VT323', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 24px/1.15 var(--body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--amber); }
a:hover { color: #ffd23a; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.px { image-rendering: pixelated; }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 8px; top: -60px; z-index: 20; padding: 10px 12px; background: var(--ink); color: var(--night); font-family: var(--head); font-size: 10px; }
.skip:focus { top: 8px; }

/* ---- type ---- */
.logo {
  margin: 0; font-family: var(--head); font-weight: 400; line-height: 1; color: #fff;
  font-size: clamp(44px, 9.5vw, 124px); letter-spacing: 0.08em;
  text-shadow: 0.05em 0.05em 0 var(--ember), 0.1em 0.1em 0 #000;
}
.logo-mid { font-size: clamp(36px, 7vw, 84px); }
.kicker { margin: 0.9em 0 0; font-family: var(--head); font-size: clamp(11px, 1.6vw, 20px); letter-spacing: 0.32em; color: #fff; text-shadow: 3px 3px 0 #000; }
.lede { margin: 0.8em 0 0; max-width: 18em; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; color: #fff; text-shadow: 3px 3px 0 #000; }
.h2 {
  margin: 0; font-family: var(--head); font-weight: 400; line-height: 1.2; color: #fff;
  font-size: clamp(20px, 3.4vw, 40px); letter-spacing: 0.06em; text-transform: uppercase;
  text-shadow: 0.08em 0.08em 0 var(--ember), 0.16em 0.16em 0 #000;
}
.h3 {
  margin: 0; font-family: var(--head); font-weight: 400; line-height: 1.1; color: #fff;
  font-size: clamp(22px, 3vw, 40px); letter-spacing: 0.06em; text-transform: uppercase;
  text-shadow: 0.08em 0.08em 0 var(--ember), 0.16em 0.16em 0 #000;
}
.h4 { margin: 0; font-family: var(--head); font-weight: 400; font-size: 13px; line-height: 1.4; letter-spacing: 0.12em; color: var(--amber); text-transform: uppercase; }
.intro { margin: 18px 0 0; max-width: 34em; font-size: clamp(24px, 2.4vw, 30px); color: var(--dim); }

/* ---- the button: the game's amber block with a stepped shadow ---- */
.btn {
  display: inline-block; padding: 18px 22px 16px; background: var(--amber); color: var(--night);
  font-family: var(--head); font-size: clamp(13px, 1.4vw, 17px); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 6px 0 var(--amber-deep), 0 6px 0 3px #000, 0 0 0 3px #000;
  transition: transform 80ms steps(2), box-shadow 80ms steps(2);
}
.btn:hover { color: var(--night); background: #ffc35c; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--amber-deep), 0 2px 0 3px #000, 0 0 0 3px #000; }
.btn-small { padding: 11px 14px 9px; font-size: 11px; box-shadow: 0 4px 0 var(--amber-deep), 0 4px 0 3px #000, 0 0 0 3px #000; }

/* ---- the chip: a place name on a frame, the game's panel ---- */
.chip {
  display: inline-flex; flex-direction: column; gap: 4px; padding: 8px 10px 6px; background: var(--panel);
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #000;
  font-family: var(--head); font-size: 10px; letter-spacing: 0.06em; color: var(--ink); text-transform: uppercase;
}
.chip b { font-weight: 400; }
.chip span { font-family: var(--body); font-size: 22px; letter-spacing: 0; text-transform: none; color: var(--dim); }

/* ---- header ---- */
.top {
  position: absolute; z-index: 5; inset: 0 0 auto 0; display: flex; align-items: center; gap: 24px;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 16px;
}
.top-logo { font-family: var(--head); font-size: 14px; letter-spacing: 0.1em; color: #fff; text-decoration: none; text-shadow: 2px 2px 0 var(--ember), 4px 4px 0 #000; }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { font-family: var(--head); font-size: 10px; letter-spacing: 0.1em; color: #fff; text-decoration: none; text-transform: uppercase; text-shadow: 2px 2px 0 #000; }
.top-nav a:hover { color: var(--amber); }
@media (max-width: 720px) {
  .top-nav { display: none; }
  .top .btn-small { margin-left: auto; }
}

/* ---- hero ---- */
/* the words at the top and the button at the bottom, as on the brand kit's hero: the pilot flies through the middle */
.hero { position: relative; display: flex; overflow: hidden; background: var(--night); }
.hero-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-text {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: 100vh; min-height: 100svh; padding-top: clamp(96px, 13vh, 140px); padding-bottom: clamp(40px, 8vh, 88px);
}
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.cta-note { margin: 0; font-size: 26px; color: #fff; text-shadow: 3px 3px 0 #000; }
.hero-chip { position: absolute; right: var(--gutter); bottom: clamp(40px, 8vh, 88px); }
@media (max-width: 960px) { .hero-chip { display: none; } }
@media (max-width: 720px) {
  .hero-shot { object-position: 46% 50%; }
  .lede { max-width: 12em; }
}

/* ---- sections ---- */
.band { padding: clamp(64px, 9vw, 120px) 0; background: var(--night); }
.band-alt { background: var(--night2); box-shadow: inset 0 6px 0 var(--ember), inset 0 12px 0 #000; }
.frame { position: relative; margin: 0; background: #05060c; box-shadow: 0 0 0 3px #000, 0 0 0 6px rgba(244, 239, 226, 0.2); }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.frame .chip { position: absolute; left: 12px; bottom: 12px; }

/* the sports: shot and words side by side, swapping sides down the page */
.sport { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: clamp(48px, 7vw, 88px); }
.sport:nth-of-type(even) { grid-template-columns: 2fr 3fr; }
.sport:nth-of-type(even) .frame { order: 2; }
.sport-text p { margin: 18px 0 0; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.1; }
@media (max-width: 760px) {
  .sport, .sport:nth-of-type(even) { grid-template-columns: 1fr; gap: 22px; }
  .sport:nth-of-type(even) .frame { order: 0; }
}

/* the places */
.places { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.places li { position: relative; overflow: hidden; background: #05060c; }
.places img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.places .chip { position: absolute; left: 8px; bottom: 8px; padding: 6px 8px 5px; font-size: 9px; box-shadow: none; }
/* two across on a phone: eight tiles, so the last row isn't one alone (Baffin is the hero anyway) */
@media (max-width: 760px) {
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .places li:nth-child(9) { display: none; }
}
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; margin-top: 48px; }
.lists p { margin: 12px 0 0; font-size: 26px; line-height: 1.2; }
@media (max-width: 760px) { .lists { grid-template-columns: 1fr; } }

/* what's in it */
.features { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.features li { padding: 22px 22px 20px; background: var(--night2); box-shadow: 0 0 0 2px var(--slate); }
.features p { margin: 12px 0 0; font-size: 26px; line-height: 1.1; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* the last call: the boot screen's evening sky, in hard bands */
.sky {
  padding: clamp(80px, 12vw, 160px) 0 clamp(96px, 14vw, 180px); text-align: center;
  background: linear-gradient(to bottom, #0c1430 0 16%, #13204a 16% 30%, #1d2f62 30% 44%, #2f3f74 44% 56%, #4e4a7c 56% 66%,
    #7a5674 66% 76%, #b06a5e 76% 85%, #e08a52 85% 92%, var(--night) 92%);
}
.sky-inner { display: flex; flex-direction: column; align-items: center; }
.sky .lede { margin: 30px auto 40px; max-width: 20em; font-size: clamp(26px, 3vw, 36px); }

/* footer */
.foot { padding: 28px 0 max(28px, env(safe-area-inset-bottom)); background: var(--night); border-top: 2px solid var(--slate); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.foot p { margin: 0; font-size: 22px; color: var(--dim); }
