/* Stroller quick guide — auto light/dark from the OS preference, no toggle */

:root {
  color-scheme: light dark;
  --bg: #f6f4f0;
  --bg-soft: #efece6;
  --card: #ffffff;
  --text: #1b211e;
  --muted: #5f6b65;
  --line: #e3ded6;
  --accent: #17695c;
  --accent-soft: #e2efe9;
  --amber: #8a5a12;
  --amber-soft: #fbf1dd;
  --danger: #a3341f;
  --danger-soft: #fbeae5;
  --shadow: 0 1px 2px rgba(30, 40, 35, .05), 0 10px 28px rgba(30, 40, 35, .06);
  --radius: 16px;
  --wrap: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101413;
    --bg-soft: #161c1a;
    --card: #18211e;
    --text: #e8ece9;
    --muted: #9aa6a1;
    --line: #2a3531;
    --accent: #63cbb4;
    --accent-soft: #172e29;
    --amber: #e5b565;
    --amber-soft: #2c2416;
    --danger: #f0917b;
    --danger-soft: #2e1c17;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 18px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 60;
}
.skip:focus { left: 12px; top: 12px; }

/* ── hero ───────────────────────────────────────────── */
.hero {
  padding: 36px 0 22px;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--accent-soft) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 10px;
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 62ch;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .82rem;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.pill strong { color: var(--text); font-weight: 650; }

/* ── sticky chips nav ───────────────────────────────── */
.chips {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 10px 18px;
  overflow-x: auto;
  scrollbar-width: none;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.chips::-webkit-scrollbar { display: none; }

.chips a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 550;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  white-space: nowrap;
}
.chips a:hover { color: var(--text); }
.chips a.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ── sections ───────────────────────────────────────── */
main { padding-bottom: 40px; }

section {
  padding: 32px 0 6px;
  scroll-margin-top: 62px;
}
section + section { border-top: 1px solid var(--line); }

h2 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 4.6vw, 1.55rem);
  letter-spacing: -.01em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.section-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .95rem;
  max-width: 66ch;
}

.tiny { font-size: .82rem; color: var(--muted); }
.hint {
  margin: 12px 0 0;
  font-size: .88rem;
  color: var(--muted);
  background: var(--bg-soft);
  border-left: 3px solid var(--line);
  border-radius: 0 10px 10px 0;
  padding: 10px 12px;
}

.warn-inline {
  margin: 12px 0 0;
  font-size: .88rem;
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: 10px;
  padding: 10px 12px;
}

.note {
  margin-top: 16px;
  background: var(--amber-soft);
  color: var(--amber);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .9rem;
}
.note strong { color: var(--amber); }

.callout {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
}
.callout p { margin: 0; font-size: .93rem; }
.callout strong { color: var(--accent); }

/* ── specs grid ─────────────────────────────────────── */
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spec {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-label {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 600;
}
.spec-value {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -.01em;
}
.spec-sub { font-size: .8rem; color: var(--muted); }

/* ── record form ────────────────────────────────────── */
.record {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  max-width: 520px;
}
.record label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 650;
  margin-top: 6px;
}
.record input {
  font: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}
.record input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.record-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.saved { font-size: .82rem; color: var(--accent); }

.btn {
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark) {
  .btn { color: #0b1512; }
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }

/* ── mode chooser ───────────────────────────────────── */
.chooser {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.chooser-q { margin: 0 0 12px; font-weight: 600; }
.chooser-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.chooser-btns .btn[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.chooser-out {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: .94rem;
}
.chooser-out strong { color: var(--accent); }
.chooser-out p { margin: 0 0 6px; }
.chooser-out p:last-child { margin-bottom: 0; color: var(--muted); font-size: .88rem; }

/* ── cards ──────────────────────────────────────────── */
.cards { display: grid; gap: 12px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card p { margin: 0 0 8px; font-size: .93rem; }
.card p:last-child { margin-bottom: 0; }

ul.tight { margin: 0; padding-left: 1.1em; }
ul.tight li { font-size: .92rem; margin-bottom: 4px; }
ul.tight li:last-child { margin-bottom: 0; }

/* ── steps / accordions ─────────────────────────────── */
details.steps {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  overflow: clip;
}

details.steps > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 600;
  font-size: .98rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
}
details.steps > summary::-webkit-details-marker { display: none; }
details.steps > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
}
details.steps[open] > summary::after { content: "–"; }

details.steps > summary .pg {
  margin-left: auto;
  font-size: .74rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
details.steps > summary::after { margin-left: 10px; }

details.steps > summary:hover { background: var(--bg-soft); }

details.steps > ol,
details.steps > ul,
details.steps > p,
details.steps > figure {
  margin-left: 16px;
  margin-right: 16px;
}
details.steps > ol { padding-left: 1.2em; margin-bottom: 6px; }
details.steps > ol li { margin-bottom: 8px; font-size: .94rem; }
details.steps > ol li:last-child { margin-bottom: 0; }
details.steps > p { margin-top: 10px; margin-bottom: 14px; }
details.steps > .hint,
details.steps > .warn-inline { margin-left: 16px; margin-right: 16px; }
details.steps[open] > summary { border-bottom: 1px solid var(--line); }
details.steps > ol,
details.steps > ul.tight { padding-top: 12px; }

/* figures */
.fig {
  margin: 14px 16px 16px;
  text-align: center;
}
.fig img {
  width: 100%;
  height: auto;
  max-width: 420px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: block;
  margin: 0 auto;
}
.fig figcaption {
  font-size: .76rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ── rules & warnings ───────────────────────────────── */
.rules {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.rules li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--danger);
  border-radius: 0 10px 10px 0;
  padding: 10px 12px;
  font-size: .93rem;
}

.warnings-full {
  margin: 0 16px 16px;
  padding-left: 1.1em;
}
.warnings-full li {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 7px;
}

/* ── gallery ────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.thumb {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: var(--muted);
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
}
.thumb img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}
.thumb span {
  display: block;
  padding: 7px 10px;
  font-size: .76rem;
  font-weight: 600;
  background: var(--card);
  color: var(--text);
  border-top: 1px solid var(--line);
}
.thumb:hover, .thumb:focus-visible { border-color: var(--accent); }
.thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── lightbox ───────────────────────────────────────── */
.lightbox {
  border: none;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  border-radius: 14px;
  max-width: min(720px, 94vw);
  max-height: 94vh;
  width: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(8, 12, 10, .72); }
.lb-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .84rem;
  color: var(--muted);
}
.lb-close {
  margin-left: auto;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(94vh - 52px);
  object-fit: contain;
  background: #fff;
}

/* ── contact & footer ───────────────────────────────── */
.contact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
  box-shadow: var(--shadow);
}
.contact h3 { margin-top: 0; }
.contact li { font-size: .92rem; }

a { color: var(--accent); }

.foot {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 20px 0 8px;
  font-size: .8rem;
  color: var(--muted);
}
.foot p { margin: 0; max-width: 70ch; }

/* ── wider screens ──────────────────────────────────── */
@media (min-width: 620px) {
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .record { grid-template-columns: 1fr; }
}

@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { padding: 52px 0 30px; }
  .chips { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
}

@media print {
  .chips, .lightbox, .thumb, .record-actions { display: none !important; }
  details { open: true; }
  body { background: #fff; color: #000; font-size: 11pt; }
  section { break-inside: avoid; }
}
