/* ParkArrow website. One stylesheet, no web fonts, no external requests. Light and dark follow the device. */
:root {
  color-scheme: light dark;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #e8f1f6;
  --text: #15202b;
  --muted: #4a5864;
  --line: #d3dde4;
  --accent: #0b5f87;
  --accent-text: #ffffff;
  --link: #075a80;
  --warn-bg: #fff4d6;
  --warn-line: #d9a400;
  --warn-text: #4a3700;
  --code-bg: #eef2f5;
  --radius: 14px;
  --wide: 68rem;
  --narrow: 44rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1418;
    --surface: #182027;
    --surface-2: #1d2c36;
    --text: #e6edf2;
    --muted: #a9b6c0;
    --line: #2c3a45;
    --accent: #7cc8f0;
    --accent-text: #08202d;
    --link: #8fd2f5;
    --warn-bg: #3a2f0d;
    --warn-line: #c99a1a;
    --warn-text: #f6e3a8;
    --code-bg: #212c34;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; margin: 1.6em 0 0.5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); margin-top: 0.4em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.65rem); }
h3 { font-size: 1.125rem; }
p, ul, ol, dl, table { margin: 0 0 1em; }
li + li { margin-top: 0.35em; }
code, kbd, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
small, .muted { color: var(--muted); }

.skip {
  position: absolute; left: 0.5rem; top: -4rem;
  background: var(--accent); color: var(--accent-text);
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 0.5rem; }

/* Header and navigation: wraps onto two lines at phone width, no script, no hamburger. */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar {
  max-width: var(--wide); margin: 0 auto; padding: 0.6rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none;
  min-height: 44px;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem;
  color: var(--text); text-decoration: none; border-radius: 8px;
}
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }

main { display: block; }
.wrap { max-width: var(--narrow); margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 1.25rem 1rem 3rem; }

/* Home */
.hero {
  display: grid; gap: 1.5rem; align-items: center;
  padding: 1.5rem 0 1rem;
}
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.hero-art { justify-self: center; width: min(260px, 70vw); }
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.3fr 1fr; padding-top: 2.5rem; }
}
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0.5rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.6rem 1.3rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-text); font-weight: 600; text-decoration: none;
  border: 2px solid var(--accent);
}
.button.secondary { background: transparent; color: var(--link); border-color: var(--line); }
.button:hover { filter: brightness(1.08); }

.cards { display: grid; gap: 1rem; padding: 0; margin: 0 0 1.5rem; list-style: none; }
.cards > li { margin: 0; }
@media (min-width: 760px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--surface-2); color: var(--link); font-weight: 700; margin-bottom: 0.5rem;
}

.note {
  border-left: 4px solid var(--accent); background: var(--surface-2);
  padding: 0.8rem 1rem; border-radius: 0 10px 10px 0; margin: 0 0 1.25rem;
}
.note > :last-child { margin-bottom: 0; }
.draft {
  border: 2px dashed var(--warn-line); background: var(--warn-bg); color: var(--warn-text);
  padding: 0.8rem 1rem; border-radius: 10px; margin: 0 0 1.5rem; font-weight: 600;
}
.draft p { margin: 0; }
.placeholder {
  background: var(--warn-bg); color: var(--warn-text); border: 1px dashed var(--warn-line);
  padding: 0 0.3em; border-radius: 4px;
}

/* Setup guide: text and phone picture side by side when there is room. */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step {
  display: grid; gap: 1rem 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.step h2 { margin-top: 0; }
@media (min-width: 760px) { .step { grid-template-columns: 1fr 300px; align-items: start; } }
.shot { margin: 0; justify-self: center; width: min(300px, 100%); }
.shot img {
  display: block; width: 100%; border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface);
}
.shot figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 0.4rem; text-align: center; }

/* Help: checklist rows */
.checks { display: grid; gap: 0.75rem; margin: 0 0 1.5rem; }
.check { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.check h3 { margin: 0 0 0.35rem; }
.check dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 0.75rem; }
.check dt { font-weight: 600; color: var(--muted); }
.check dd { margin: 0; }
@media (max-width: 420px) { .check dl { grid-template-columns: 1fr; } .check dd { margin-bottom: 0.4rem; } }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 0.75rem; }
summary { cursor: pointer; padding: 0.9rem 1.2rem; font-weight: 600; min-height: 44px; }
details > div { padding: 0 1.2rem 1rem; }
details > div > :last-child { margin-bottom: 0; }

/* Tables become stacked rows on a phone. */
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border-radius: 10px; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line); }
th { font-size: 0.95rem; }
@media (max-width: 560px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
  table.stack td { border: 0; padding: 0.2rem 0.75rem; }
  table.stack td::before { content: attr(data-label); display: block; font-weight: 600; font-size: 0.85rem; color: var(--muted); }
}

.download-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin: 0 0 1.5rem; }
.download-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; margin: 0 0 1rem; }
.download-box dt { font-weight: 600; }
.download-box dd { margin: 0; min-width: 0; }
@media (max-width: 420px) { .download-box dl { grid-template-columns: 1fr; } .download-box dd { margin-bottom: 0.5rem; } }
.button[aria-disabled="true"] { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .bar { padding-top: 1.25rem; padding-bottom: 1.5rem; display: block; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0 1rem; }
.site-footer li + li { margin-top: 0; }
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer p { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.5rem; max-width: 52rem; }

.center { text-align: center; }
.big-404 { font-size: clamp(3rem, 2rem + 6vw, 5rem); font-weight: 800; margin: 1rem 0 0; color: var(--accent); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  .site-header, .site-footer .bar ul, .skip { display: none; }
  body { background: #fff; color: #000; }
}

/* Mark and the watch drawing (inline SVG, coloured from the tokens above). */
.mark-bg { fill: var(--accent); }
.mark-fg { stroke: var(--accent-text); }
.w-case { fill: #20262b; }
.w-face { fill: #05080a; }
.w-ring { fill: none; stroke: #3b4650; stroke-width: 2; }
.w-arrow { fill: #7cc8f0; }
.w-big { fill: #ffffff; font: 700 40px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.w-small { fill: #b9c6cf; font: 500 15px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.w-button { fill: #3b4650; }
