/* litterquest.fyi - the app's palette (app/src/theme.ts), Montserrat (the
   wordmark's face) and the owner's own illustrated scenes (scripts/site/art). */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #faf6ef;          /* cream, the app's light background */
  --sand: #f1e6d3;
  --sand-deep: #e4d3b6;
  --card: #ffffff;
  --border: #e7ddcd;
  --text: #1f1b17;
  --body: #4f4a44;
  --muted: #736c66;
  --primary: #15803d;
  --gold: #a16207;
  --hero: #0d3a2d;        /* eucalypt green, the store screenshots' backdrop */
  --hero-deep: #081f19;
  --night: #0a1a24;
  --on-dark: #f5f1e8;
  --on-dark-body: #d5ddd2;
  --wattle: #fbbf24;
  --wrap: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13110f;
    --sand: #1b1814;
    --sand-deep: #2a241d;
    --card: #1f1b17;
    --border: #312b24;
    --text: #f5f0e8;
    --body: #cfc6bb;
    --muted: #a8a29e;
    --primary: #4ade80;
    --gold: #fbbf24;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #13110f;
  --sand: #1b1814;
  --sand-deep: #2a241d;
  --card: #1f1b17;
  --border: #312b24;
  --text: #f5f0e8;
  --body: #cfc6bb;
  --muted: #a8a29e;
  --primary: #4ade80;
  --gold: #fbbf24;
  color-scheme: dark;
}

*, *::before, *::after { 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: var(--bg);
  color: var(--body);
  font: 400 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

h1, h2, h3 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.45em;
}
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); max-width: 18ch; }
h3 { font-size: 1.08rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, .shots:focus-visible { outline: 3px solid var(--wattle); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

.kicker {
  font-family: "Montserrat", sans-serif; font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section { padding: 88px 0; position: relative; }
.section-lede { max-width: 40em; font-size: 1.06rem; margin-bottom: 40px; }

/* ---------- Header: floats over the hero ---------- */
.top { position: absolute; inset: 0 0 auto 0; z-index: 10; color: var(--on-dark); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.15rem; }
.brand img { border-radius: 9px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: #fff; text-decoration: none; font-size: 0.95rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55); }
.top::before { /* keeps the menu legible over a bright sky */
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 31, 25, 0.55), rgba(8, 31, 25, 0));
}
.top nav a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 560px) { .top nav { display: none; } }

/* ---------- Hero: the foreshore crew, bleeding off the right ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-deep);
  color: var(--on-dark-body);
}
.hero-art { width: 100%; aspect-ratio: 1 / 0.9; object-fit: cover; object-position: 50% 30%; }
.hero::after { /* mobile: the picture melts into the green below it */
  content: ""; position: absolute; left: 0; right: 0; top: calc(100vw * 0.9 - 120px); height: 120px;
  background: linear-gradient(to bottom, rgba(8, 31, 25, 0), var(--hero-deep));
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; padding-top: 8px; padding-bottom: 56px; }
.eyebrow {
  font-family: "Montserrat", sans-serif; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase; font-size: 0.8rem;
  color: var(--wattle); margin-bottom: 16px;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem); margin-bottom: 20px; max-width: 12ch; }
.lede { font-size: 1.12rem; max-width: 30em; color: var(--on-dark-body); }

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 28px 0 14px; }
.play { display: inline-block; border-radius: 10px; line-height: 0; transition: transform 0.15s ease; }
.play:hover { transform: translateY(-2px); }
.play img { width: 188px; height: 56px; }
.soon {
  font-family: "Montserrat", sans-serif; font-weight: 700; color: #fff;
  font-size: 1rem; line-height: 1.15; padding: 8px 16px; min-height: 56px;
  display: inline-flex; flex-direction: column; justify-content: center;
  border-left: 2px solid rgba(251, 191, 36, 0.6);
}
.soon small { font-family: system-ui, sans-serif; font-weight: 400; font-size: 0.78rem; color: var(--on-dark-body); letter-spacing: 0.04em; }
.small-print { font-size: 0.88rem; color: #a9bbb0; margin: 0; }

@media (min-width: 900px) {
  .hero { min-height: min(88vh, 820px); display: flex; align-items: center; }
  .hero-art {
    position: absolute; top: 0; right: 0; bottom: 0; width: 62%; height: 100%;
    aspect-ratio: auto; object-position: 50% 32%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%);
    mask-image: linear-gradient(to right, transparent 0%, #000 24%);
  }
  .hero::after { display: none; }
  .hero::before { /* a soft wattle-gold light on the left, where the copy sits */
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(60% 70% at 12% 40%, rgba(251, 191, 36, 0.09), transparent 70%);
    pointer-events: none;
  }
  .hero-copy { width: 100%; padding-top: 120px; padding-bottom: 96px; }
  .hero-copy > * { max-width: 520px; }
}

/* ---------- How it works: a walking track with four stops ---------- */
.how { background: var(--bg); }
.trail { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 28px; position: relative; }
.trail li { position: relative; padding-left: 84px; min-height: 64px; }
.trail li::before { /* the dashed track, stop to stop */
  content: ""; position: absolute; left: 31px; top: 64px; bottom: -28px;
  border-left: 3px dashed var(--sand-deep);
}
.trail li:last-child::before { display: none; }
.stop {
  position: absolute; left: 0; top: 0; width: 64px; height: 64px; border-radius: 50%;
  background: var(--sand); display: grid; place-items: center;
  box-shadow: 0 0 0 6px var(--bg);
}
.stop img { width: 42px; height: 42px; object-fit: contain; }
.trail h3 { margin: 8px 0 4px; }
.trail p { margin: 0; max-width: 28em; }
@media (min-width: 900px) {
  .trail { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .trail li { padding: 92px 8px 0 0; }
  .trail li::before { left: 64px; right: -32px; top: 31px; bottom: auto; border-left: 0; border-top: 3px dashed var(--sand-deep); }
  .stop { width: 72px; height: 72px; top: 0; }
  .stop img { width: 46px; height: 46px; }
}

/* ---------- Postcards from around the country ---------- */
.postcards { background: var(--sand); }
.wall { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .wall { grid-template-columns: repeat(4, 1fr); gap: 40px 32px; } }
.wall figure {
  background: #fffdf8; padding: 10px 10px 0; border-radius: 4px;
  box-shadow: 0 1px 2px rgba(60, 40, 20, 0.12), 0 14px 30px -12px rgba(60, 40, 20, 0.35);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s ease;
}
.wall li:nth-child(4n + 1) figure { --tilt: -2.2deg; }
.wall li:nth-child(4n + 2) figure { --tilt: 1.6deg; }
.wall li:nth-child(4n + 3) figure { --tilt: -0.8deg; }
.wall li:nth-child(4n + 4) figure { --tilt: 2.4deg; }
@media (prefers-reduced-motion: no-preference) {
  .wall figure:hover { transform: rotate(0deg) translateY(-4px) scale(1.02); }
}
.wall img { border-radius: 2px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.wall figcaption {
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.04em; color: #4a3f33; padding: 10px 2px 12px; line-height: 1.3;
}
:root[data-theme="dark"] .wall figure { background: #f4ecdf; }

/* ---------- Inside the app: dusk over the river ---------- */
.dusk { background: var(--night); color: var(--on-dark-body); overflow: hidden; padding-bottom: 72px; }
.dusk .bg, .cta .bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.dusk .bg { object-position: 50% 30%; filter: saturate(1.05); }
.dusk::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(10, 26, 36, 0.82) 0%, rgba(10, 26, 36, 0.55) 40%, rgba(10, 26, 36, 0.35) 70%, rgba(10, 26, 36, 0.8) 100%);
}
.dusk > * { position: relative; z-index: 1; }
.dusk h2 { color: #fff; }
.dusk .kicker { color: var(--wattle); }
.shots {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 12px 16px 24px; margin-top: 28px; scroll-padding-inline: 16px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
@media (min-width: 720px) {
  .shots {
    padding-inline: max(32px, calc((100vw - var(--wrap)) / 2 + 32px));
    scroll-padding-inline: max(32px, calc((100vw - var(--wrap)) / 2 + 32px));
  }
}
.shots img {
  flex: 0 0 auto; width: 240px; border-radius: 22px; scroll-snap-align: start;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ---------- Buddies: standing on the sand, no boxes ---------- */
.buddies-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 30%, var(--sand) 100%); padding-bottom: 72px; }
.parade {
  list-style: none; margin: 0 auto; padding: 0 16px; max-width: var(--wrap);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 26px 10px;
}
@media (min-width: 720px) { .parade { padding: 0 32px; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); } }
.parade li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.parade img {
  width: 92px; height: 92px; object-fit: contain;
  filter: drop-shadow(0 10px 6px rgba(60, 40, 20, 0.22));
}
@media (prefers-reduced-motion: no-preference) {
  .parade img { transition: transform 0.2s ease; }
  .parade li:hover img { transform: translateY(-6px) rotate(-3deg); }
}
.parade span { font-size: 0.8rem; line-height: 1.25; color: var(--text); margin-top: 6px; }

/* ---------- Every day ---------- */
.daily { background: var(--sand); padding-top: 24px; }
.daily-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .daily-grid { grid-template-columns: 440px 1fr; gap: 72px; } }
.daily-art img { border-radius: 28px; box-shadow: 0 30px 60px -25px rgba(60, 40, 20, 0.5); aspect-ratio: 4 / 5; object-fit: cover; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px;
  border-left: 3px solid var(--primary); border-bottom: 3px solid var(--primary);
  transform: rotate(-45deg);
}

/* ---------- Privacy and safety ---------- */
.trust { background: var(--bg); }
.two-col { display: grid; gap: 48px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 72px; } }
.trust h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.more { margin-top: 8px; font-weight: 600; }

/* ---------- Closing: sunset walk ---------- */
/* Phone: copy first, then the whole sunset fading in beneath it.
   Desktop: the picture stands on the right like the hero, copy on the left. */
.cta { position: relative; overflow: hidden; background: #2b1206; color: #fff3e6; display: flex; flex-direction: column; }
.cta .bg {
  position: relative; order: 2; height: auto; aspect-ratio: 4 / 5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%);
}
.cta-copy { position: relative; z-index: 1; order: 1; padding-top: 72px; padding-bottom: 8px; }
.cta h2 { color: #fff; max-width: 12ch; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.cta p { max-width: 30em; margin: 0 0 26px; font-size: 1.08rem; color: #fde7cf; }
@media (min-width: 900px) {
  .cta { min-height: 720px; flex-direction: row; align-items: center; }
  .cta::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
  }
  .cta .bg {
    position: absolute; top: 0; right: 0; bottom: 0; left: auto;
    width: 58%; height: 100%; aspect-ratio: auto; object-position: 50% 45%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%);
    mask-image: linear-gradient(to right, transparent 0%, #000 30%);
  }
  .cta::before { background: radial-gradient(70% 80% at 15% 50%, rgba(251, 146, 60, 0.16), transparent 70%); }
  .cta-copy { width: 100%; padding-top: 96px; padding-bottom: 96px; }
  .cta-copy > * { max-width: 480px; }
}

/* ---------- Footer ---------- */
.foot { background: var(--night); color: #9fb0a8; padding: 30px 0 38px; font-size: 0.92rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: #d6e2da; }

/* 404 (no inline styles: the CSP allows only this stylesheet) */
.notfound { min-height: 100vh; display: grid; place-items: center; background: var(--hero-deep); color: var(--on-dark-body); text-align: center; }
.notfound h1 { color: #fff; }
.notfound a { color: var(--wattle); }
