/* ================================================================
   StreetWhiz Site — Design System
   Mirrors the Flutter app's hood_colors.dart, hood_spacing.dart,
   and hood_typography.dart tokens.
   ================================================================ */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Brand green */
  --green-100: #E8F5D4;
  --green-400: #78C83D;
  --green-500: #58A700;
  --green-600: #478700;

  /* Accent yellow */
  --yellow-100: #FFF3C2;
  --yellow-500: #FFC800;
  --yellow-600: #D9A900;

  /* Surfaces */
  --paper:  #FDFAF4;
  --card:   #FFFFFF;

  /* Borders */
  --border-subtle: #EDE6D5;
  --border-strong: #D7CCB3;

  /* Ink */
  --ink-1:      #2F2A24;
  --ink-2:      #7A7268;
  --ink-3:      #C4BDAF;
  --ink-on-dark: #FFFFFF;

  /* Focus */
  --focus: #1CB0F6;

  /* Typography */
  --font-display: 'Fredoka', sans-serif;
  --font-body:    'Nunito', sans-serif;

  /* Spacing */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  12px;
  --sp-lg:  16px;
  --sp-xl:  24px;
  --sp-2xl: 40px;
  --sp-3xl: 64px;

  /* Radius */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;

  /* Content widths */
  --max-prose:   65ch;
  --max-content: 720px;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-1);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-1);
}

p {
  color: var(--ink-2);
  line-height: 1.65;
}

a {
  color: var(--green-500);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

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

/* ── Layout helpers ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--sp-xl);
}

.section {
  padding-block: var(--sp-3xl);
}

/* ── Skip link ───────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -999px;
  left: var(--sp-lg);
  background: var(--green-500);
  color: var(--ink-on-dark);
  font-weight: 600;
  padding: var(--sp-sm) var(--sp-lg);
  border-radius: var(--r-md);
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus {
  top: var(--sp-lg);
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.site-nav {
  padding-block: var(--sp-lg);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink-on-dark);
  background: var(--green-500);
  padding: var(--sp-xs) var(--sp-md);
  border-radius: var(--r-sm);
  text-decoration: none;
  letter-spacing: 0.03em;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  padding-top: var(--sp-2xl);
  padding-bottom: var(--sp-3xl);
  background-image:
    linear-gradient(rgba(88, 167, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 167, 0, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  background-color: var(--paper);
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  margin-bottom: var(--sp-lg);
  max-width: 14ch;
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 50ch;
  margin-bottom: var(--sp-2xl);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.75rem 1.375rem;
  border-radius: var(--r-lg);
  transition: transform 80ms ease, box-shadow 80ms ease, background 80ms ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  color: var(--ink-on-dark);
  background: var(--green-500);
  box-shadow: 0 4px 0 var(--green-600);
}
.btn-primary:hover {
  background: var(--green-400);
  box-shadow: 0 3px 0 var(--green-600);
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--green-600);
}

.btn-secondary {
  color: var(--ink-1);
  background: var(--card);
  border: 2px solid var(--border-strong);
  box-shadow: 0 4px 0 var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--green-500);
  color: var(--green-500);
  box-shadow: 0 4px 0 var(--green-500);
}
.btn-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--border-strong);
}

/* ── The Why ─────────────────────────────────────────────────────── */
.why {
  background: var(--green-100);
  border-top: 1.5px solid var(--green-400);
  border-bottom: 1.5px solid var(--green-400);
}

.why__prose p + p {
  margin-top: var(--sp-lg);
}

.why__prose p {
  font-size: 1.0625rem;
  max-width: var(--max-prose);
}

.why__thesis {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--ink-1);
  margin-top: var(--sp-xl);
}

/* ── What it is ──────────────────────────────────────────────────── */
.what-is {
  border-top: 1.5px solid var(--border-subtle);
}

.what-is h2 {
  font-size: 1.75rem;
  margin-bottom: var(--sp-xl);
}

.what-is__body {
  display: grid;
  gap: var(--sp-2xl);
  align-items: center;
}

@media (min-width: 600px) {
  .what-is__body {
    grid-template-columns: 1fr 1fr;
  }
}

.what-is__copy p {
  font-size: 1.0625rem;
}

.what-is__screenshot {
  border-radius: var(--r-xl);
  border: 2px solid var(--border-subtle);
  box-shadow: 4px 4px 0 var(--border-strong);
  overflow: hidden;
}

/* ── Destinations ────────────────────────────────────────────────── */
.destinations {
  border-top: 1.5px solid var(--border-subtle);
}

.destinations h2 {
  font-size: 1.75rem;
  margin-bottom: var(--sp-2xl);
}

.destinations__grid {
  display: grid;
  gap: var(--sp-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .destinations__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dest-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  padding: var(--sp-xl);
  background: var(--card);
  border: 2.5px solid var(--green-500);
  border-radius: var(--r-xl);
  box-shadow: 4px 4px 0 var(--green-600);
  text-decoration: none;
  transition: transform 80ms ease, box-shadow 80ms ease;
}

.dest-card:hover {
  transform: translateY(-2px);
  box-shadow: 4px 6px 0 var(--green-600);
}

.dest-card:active {
  transform: translateY(2px);
  box-shadow: 4px 2px 0 var(--green-600);
}

.dest-card__location {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink-1);
}

.dest-card__hook {
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.55;
  flex: 1;
}

.dest-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--green-500);
  margin-top: var(--sp-sm);
}

.dest-card--coming-soon {
  border-color: var(--border-strong);
  box-shadow: 4px 4px 0 var(--border-strong);
  background: var(--paper);
  cursor: default;
}

.dest-card--coming-soon:hover {
  transform: none;
  box-shadow: 4px 4px 0 var(--border-strong);
}

.dest-card--coming-soon .dest-card__location {
  color: var(--ink-3);
}

/* ── Play your neighbourhood ─────────────────────────────────────── */
.play-own {
  border-top: 1.5px solid var(--border-subtle);
}

.play-own__inner {
  max-width: 44ch;
}

.play-own__lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink-1);
  margin-bottom: var(--sp-md);
}

.play-own__body {
  font-size: 1.0625rem;
  margin-bottom: var(--sp-xl);
}

/* ── What's next ─────────────────────────────────────────────────── */
.whats-next {
  border-top: 1.5px solid var(--border-subtle);
}

.whats-next p {
  font-size: 1.0625rem;
  max-width: var(--max-prose);
  line-height: 1.7;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1.5px solid var(--border-subtle);
  padding-block: var(--sp-2xl);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.site-footer__links {
  display: flex;
  gap: var(--sp-xl);
  list-style: none;
}

.site-footer__links a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--green-500);
}
