/* Rando facile / Station Walks — brand palette, taken from the app icon.
   #BC5034 is the exact colour of AccentColor.colorset, so the site and the app
   agree without anyone having to remember to keep them in step. */
:root {
  --terracotta: #BC5034;
  --terracotta-dark: #9E4029;
  --cream: #F8ECDE;
  --ink: #2A1D18;
  --muted: #6B564C;
  --rule: rgba(42, 29, 24, 0.14);
  --page: var(--cream);
  --card: #FFFFFF;
  --accent: var(--terracotta);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #1B1310;
    --card: #241A16;
    --ink: #F3E7DA;
    --muted: #B7A092;
    --rule: rgba(243, 231, 218, 0.16);
    /* The light-mode terracotta goes muddy on a dark ground; this is the
       AccentColor dark variant, not a guess. */
    --accent: #D97150;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

header.hero { text-align: center; padding: 3rem 0 2.5rem; }
.mark { width: 108px; height: 108px; border-radius: 24%; display: block; margin: 0 auto 1.25rem; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -0.02em; }
.tagline { font-size: 1.15rem; color: var(--muted); margin: 0 auto; max-width: 30rem; }

h2 { font-size: 1.15rem; margin: 2.5rem 0 .75rem; letter-spacing: -0.01em; }

.cta {
  display: inline-block; margin-top: 1.75rem; padding: .85rem 1.6rem;
  background: var(--accent); color: #fff; text-decoration: none;
  border-radius: 999px; font-weight: 600;
}
.cta:hover { background: var(--terracotta-dark); }
@media (prefers-color-scheme: dark) { .cta { color: #1B1310; } .cta:hover { background: #E8886A; } }

ul.points { list-style: none; padding: 0; margin: 1rem 0; }
ul.points li { padding: .55rem 0 .55rem 1.6rem; position: relative; border-bottom: 1px solid var(--rule); }
ul.points li::before { content: "›"; position: absolute; left: .3rem; color: var(--accent); font-weight: 700; }

/* Route fallback card: what a QR code opens when the app is not installed. */
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 18px;
  padding: 1.5rem; margin: 1.5rem 0;
}
.card h1 { font-size: 1.45rem; margin-bottom: 1rem; }
.stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.stats div { min-width: 5.5rem; }
.stats dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stats dd { margin: .15rem 0 0; font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.map { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--rule); display: block; }
.confirmed { font-size: .9rem; color: var(--muted); margin-top: 1rem; }

footer { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
         font-size: .85rem; color: var(--muted); }
footer a { color: inherit; }

/* Apple's official badge artwork, self-hosted and localized. Its proportions are
   fixed by Apple's guidelines, so it is sized rather than restyled. */
.badge { display: inline-block; margin-top: 1.75rem; line-height: 0; }
.badge img { width: 200px; height: auto; }
.badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 10px; }

/* Language switcher. An explicit choice, never an automatic redirect: a QR code
   is scanned by whoever is standing there, and silently bouncing them to another
   domain because of their phone's locale would be the wrong call on a route
   somebody handed them deliberately. */
.langswitch { display: flex; justify-content: flex-end; gap: .25rem; padding-top: 1rem; }
.langswitch a, .langswitch span {
  font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--rule); color: var(--muted);
}
.langswitch a:hover { border-color: var(--accent); color: var(--accent); }
.langswitch [aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .langswitch [aria-current="true"] { color: #1B1310; } }
