/* Sight Step: paper, ink and map inks, like a printed city guide. */
:root {
  --paper: #F3EFE6;
  --surface: #FBF9F4;
  --ink: #1E2328;
  --ink-soft: #6B6A63;
  --rule: #DDD6C8;
  --blue: #23506B;
  --moss: #4E6B3C;
  --oxblood: #8C3B32;
  --ochre: #B08328;
  --park: #DDE3D2;
  --water: #C9D8DF;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1B1A17;
    --surface: #262420;
    --ink: #EEE9DF;
    --ink-soft: #A9A396;
    --rule: #3D3933;
    --blue: #86B5D3;
    --moss: #96B67F;
    --oxblood: #D68B80;
    --ochre: #D9B15A;
    --park: #2C3827;
    --water: #23343D;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.page {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

/* Header */
.masthead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.masthead img { width: 40px; height: 40px; border-radius: 9px; }
.masthead a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.25rem; }

/* Hero: the headline next to the map plate */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 2rem;
}
@media (min-width: 52rem) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; padding: 4.5rem 0 3rem; }
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}
.lead { font-size: 1.3rem; line-height: 1.55; color: var(--ink); margin: 0 0 1.5rem; max-width: 34rem; }
.availability {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
}

.plate {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 0.75rem;
}
.plate svg { display: block; width: 100%; height: auto; }
.plate figcaption {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 0.5rem 0.25rem 0.1rem;
}

/* The loops draw themselves once when the page opens */
.loop { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.loop.balanced { stroke: var(--blue); }
.loop.nature { stroke: var(--moss); }
.loop.heritage { stroke: var(--oxblood); }
@media (prefers-reduced-motion: no-preference) {
  .loop { stroke-dasharray: 900; stroke-dashoffset: 900; animation: walk 2.4s ease-in-out forwards; }
  .loop.nature { animation-delay: 0.5s; }
  .loop.heritage { animation-delay: 1s; }
}
@keyframes walk { to { stroke-dashoffset: 0; } }

/* Sections */
section { padding: 2.5rem 0; border-top: 1px solid var(--rule); }
section h2 {
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 1.25rem;
}
.prose { max-width: 40rem; }
.prose p { margin: 0 0 1rem; }

/* How it works: a real sequence */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--ochre);
  margin-bottom: 0.5rem;
}
.steps h3 { font-size: 1.2rem; margin: 0 0 0.35rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* The three kinds of loop, as a map legend */
.legend { margin: 0; padding: 0; list-style: none; max-width: 42rem; }
.legend li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.legend li:last-child { border-bottom: 0; }
.swatch { display: block; height: 5px; border-radius: 3px; transform: translateY(-0.3em); }
.swatch.balanced { background: var(--blue); }
.swatch.nature { background: var(--moss); }
.swatch.heritage { background: var(--oxblood); }
.legend strong { font-weight: 600; }

.features { margin: 0; padding: 0; list-style: none; max-width: 40rem; }
.features li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; }
.features li::before { content: "★"; position: absolute; left: 0; color: var(--ochre); }

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 0.75rem; }
footer p { margin: 0.25rem 0; }

/* Text pages: privacy and support */
.document { max-width: 42rem; padding: 2.5rem 0 1rem; }
.document h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.15; margin: 0 0 0.5rem; font-weight: 600; }
.document .updated { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 2rem; }
.document h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; font-weight: 600; }
.document p, .document li { margin: 0 0 0.8rem; }
.document ul { padding-left: 1.2rem; }
