/* Shared Mapzzle look for every page on mapzzle.com. Colours and type are the
   app's Fresh Mint theme (lib/resources/app_theme.dart + colors.dart), which is
   also what the store screenshots and the Play feature graphic use.
   landing.css adds the home page; style.css adds the written pages. */

@font-face {
  font-family: 'Fredoka';
  src: url('/fredoka.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Brand gradient, sampled from the Play feature graphic */
  --teal: #1b9d91;
  --teal-deep: #136a82;
  --teal-ink: #0f5a52;

  /* Fresh Mint theme */
  --mint: #e1f8f0;
  --sea: #d4f2ed;
  --surface: #f4fefb;
  --line: #beebe2;
  --accent: #168076;
  --title: #1b9588;
  --text: #1e4139;
  --text-soft: #15756b;
  --muted: #5d7d75;
  --primary: #34d399;
  --secondary: #38bdf8;

  /* Fruit stand piece palette */
  --p0: #4ade80;
  --p1: #facc15;
  --p2: #fb923c;
  --p3: #a78bfa;
  --p4: #22d3ee;
  --p5: #f472b6;
  --p6: #f87171;
  --slot: #bcd8d1;

  --radius-card: 24px;
  --radius-btn: 18px;
  --shell: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --mint: #0d2b2c;
    --surface: #123233;
    --line: #1d4a48;
    --text: #dff3ec;
    --text-soft: #8fd6c8;
    --muted: #8aada5;
    --accent: #5eead4;
    --title: #6ee7d5;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mint);
  color: var(--text);
  font: 400 17px/1.65 'Fredoka', ui-rounded, 'Segoe UI Variable Display',
        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 16px;
}

h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 600; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 0.75rem;
}

/* ── Top bar, always on the teal gradient ────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark img { width: 34px; height: 34px; border-radius: 9px; display: block; }

.topnav { display: flex; gap: 22px; font-size: 0.95rem; }
.topnav a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.topnav a:hover { color: #fff; text-decoration: underline; }
.topnav a[aria-current="page"] { color: #fff; text-decoration: underline; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--primary);
  color: #143a33;
  font: 500 1.02rem/1 'Fredoka', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--line);
  color: var(--text-soft);
}
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.94rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer {
  background: var(--mint);
  color: var(--muted);
  font-size: 0.92rem;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
}
footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
}
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--text-soft); }
footer p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .topnav { gap: 16px; font-size: 0.88rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .shell { padding: 0 14px; }
  .wordmark { font-size: 1.3rem; }
  .topnav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
