/* LIAR — liar-app.com
   One page, five bands, alternating night and paper. The palette is the game's own:
   every value below is lifted from lib/theme.dart's Ink0. Panels are celBox, the shape
   the game paints everywhere — a flat fill, a three-pixel ink edge and a hard shadow
   with no blur. The game never blurs one, so neither does this. */

:root {
  --surface: #FBF3DF;  /* Ink0.surface */
  --sunk:    #EAD9B4;  /* Ink0.sunk    */
  --ink:     #141414;  /* Ink0.ink     */
  --mid:     #3A3630;  /* Ink0.mid     */
  --faint:   #6E6658;  /* Ink0.faint   */
  --red:     #E0563F;  /* Ink0.red     */
  --gold:    #F2C744;  /* Ink0.gold    */

  --night:   #17120C;  /* the dark the boards sit on */
  --edge:    rgba(242,230,200,.16);

  --pad:     clamp(56px, 8vw, 92px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #F2E6C8;
  background-image: radial-gradient(rgba(20,20,20,.07) 1.3px, transparent 1.4px);
  background-size: 12px 12px;
  color: var(--ink);
  font-family: Karla, ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: Bangers, "Arial Black", Impact, sans-serif;
  font-weight: 400; letter-spacing: 1.1px; line-height: 1.06;
  text-wrap: balance; margin: 0;
}

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

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

.band { padding: var(--pad) 0; }
.band.dark  { background: transparent; color: var(--mid); }

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

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

.hero { padding-top: clamp(44px, 7vw, 76px); border-bottom: 3px solid #000; }
.hero-grid {
  display: grid; gap: clamp(28px, 5vw, 56px); align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.eyebrow {
  margin: 0; font-size: 12px; font-weight: 800;
  letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold);
}
.wordmark {
  margin: 12px 0 0;
  font-size: clamp(74px, 12vw, 132px); line-height: .84; letter-spacing: 4px;
  color: var(--gold);
  text-shadow: 5px 5px 0 #000;
}
.hook {
  font-family: Bangers, "Arial Black", Impact, sans-serif;
  font-size: clamp(21px, 3.2vw, 30px); letter-spacing: 1px; line-height: 1.18;
  margin: 20px 0 0; color: var(--surface);
}
.hook em { font-style: normal; color: var(--red); }
.lede { max-width: 46ch; margin: 16px 0 0; font-size: 16.5px; color: var(--sunk); }

.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block; padding: 13px 22px;
  border: 3px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--ink);
  background: var(--gold); color: var(--ink); text-decoration: none;
  font-family: Bangers, Impact, sans-serif; font-size: 20px; letter-spacing: 1px;
}
.btn.ghost {
  background: transparent; color: var(--sunk);
  border-color: var(--edge); box-shadow: none;
}

/* the phone the board is seen through */
.hero-shot { display: flex; justify-content: center; }
.phone {
  width: min(100%, 300px); padding: 9px;
  background: var(--ink); border: 3px solid #000; border-radius: 30px;
  box-shadow: 8px 10px 0 rgba(0,0,0,.55);
}
.phone img { display: block; width: 100%; border-radius: 22px; background: var(--sunk); }

/* ---------- footer ---------- */

footer { padding: 52px 0 46px; text-align: center; }
footer nav { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
footer nav a { font-weight: 700; font-size: 15px; color: var(--ink); }

/* ---------- inner pages ---------- */

.page { margin: 0 auto; padding: clamp(34px, 6vw, 60px) 22px clamp(56px, 8vw, 84px); max-width: 760px; }
.topnav { margin: 0 0 22px; }
.topnav a { display: inline-flex; align-items: center; gap: 12px; }
.topnav img { display: inline-block; width: 40px; height: 40px; border-radius: 10px;
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); background: var(--ink); }
.topnav span { font-size: 34px; }
.topnav a {
  font-family: Bangers, Impact, sans-serif; font-size: 27px; letter-spacing: 2px;
  color: var(--gold); text-decoration: none;
  text-shadow: 2px 0 0 #141414, -2px 0 0 #141414, 0 2px 0 #141414, 0 -2px 0 #141414, 2px 2px 0 #141414, -2px -2px 0 #141414, 2px -2px 0 #141414, -2px 2px 0 #141414, 4px 4px 0 #141414;
}
.sheet {
  background: var(--surface); color: var(--mid);
  border: 3px solid var(--ink); border-radius: 14px; box-shadow: 7px 7px 0 var(--ink);
  padding: clamp(24px, 4vw, 36px) clamp(20px, 3.5vw, 34px) clamp(28px, 4vw, 38px);
}
.page h1 { font-size: clamp(34px, 7vw, 48px); color: var(--ink); }
.page .when { margin: 9px 0 0; color: var(--faint); font-size: 13.5px; }
.page h2 { font-size: 24px; color: var(--red); margin: 32px 0 0; }
.page h3 {
  font-family: Karla, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800; font-size: 16px; letter-spacing: 0; color: var(--ink);
  margin: 22px 0 0;
}
.sheetnav {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 38px; padding-top: 20px; border-top: 2px solid var(--sunk);
  font-size: 14px; font-weight: 700;
}
.page p, .page li { font-size: 16px; }
.page p { margin: 10px 0 0; }
.page ul { margin: 11px 0 0; padding-left: 20px; }
.page li { margin: 7px 0; }
.page strong { color: var(--ink); }

/* ---------- 404 ---------- */

.lost {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 56px 22px;
}
.lost-code {
  font-family: Bangers, "Arial Black", Impact, sans-serif;
  font-weight: 400; font-size: clamp(104px, 26vw, 200px); line-height: .8;
  letter-spacing: 6px; color: var(--gold); text-shadow: 3px 0 0 #141414, -3px 0 0 #141414, 0 3px 0 #141414, 0 -3px 0 #141414, 3px 3px 0 #141414, -3px -3px 0 #141414, 3px -3px 0 #141414, -3px 3px 0 #141414, 6px 6px 0 #141414;
  margin: 0;
}
.lost-title {
  font-family: Bangers, "Arial Black", Impact, sans-serif;
  font-size: clamp(25px, 5.4vw, 38px); letter-spacing: 1px; line-height: 1.1;
  color: var(--ink); margin: 20px 0 0;
}
.lost-note { max-width: 40ch; margin: 13px 0 0; font-size: 16px; color: var(--mid); }
.lost .btn { margin-top: 32px; }
.lost-nav {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
  margin-top: 34px; font-size: 14px; font-weight: 700; color: var(--ink);
}

/* ---------- narrow ---------- */

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero-copy { display: contents; }
  .eyebrow   { order: 1; }
  .wordmark  { order: 2; }
  .hook      { order: 3; }
  .hero-shot { order: 4; margin-top: 8px; }
  .lede      { order: 5; }
  .stores    { order: 6; justify-content: center; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
}
