/* The guided tour (tour.html): one renewal, step by step, as a swipeable row of slides.
   No JavaScript, like the rest of the site. The row is a horizontal scroll-snap container and every
   Back/Next is a plain #step-N link: following one scrolls that slide into view, so the tour works
   with a click, a swipe, a trackpad, or the keyboard, and each step has its own URL. */

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ledger); color: var(--ink); font-family: 'Public Sans', system-ui, -apple-system, sans-serif; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html, .track { scroll-behavior: auto; } }
body { font-size: 16.5px; line-height: 1.6; }
a { color: var(--ink-blue); }

.page { max-width: 1040px; margin: 0 auto; padding: 2.5rem 1.75rem 6rem; }

/* Hero banner: pinned dark in both themes, matching the other pages. */
.hero {
  background-color: #1E2A3A;
  background-image: radial-gradient(120% 150% at 88% -30%, #2C3E58 0%, #1E2A3A 60%);
  color: #EEF1F4;
  padding: 3.25rem 1.75rem 2.75rem;
}
.hero__inner { max-width: 1040px; margin: 0 auto; }
.hero__brand { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 1.4rem; }
.hero__icon { display: block; flex: none; }
a.hero__brand { text-decoration: none; color: inherit; cursor: pointer; }
a.hero__brand:hover .hero__kicker,
a.hero__brand:focus-visible .hero__kicker { color: #C6D0DC; }
.hero__kicker { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem;
  letter-spacing: 0.09em; text-transform: uppercase; color: #8FB0D9; margin: 0; }
.hero h1 { font-family: 'Bitter', Georgia, serif; font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.45rem); line-height: 1.12; letter-spacing: -0.005em;
  margin: 0; text-wrap: balance; max-width: 26ch; }
.hero__lede { font-size: 1.15rem; line-height: 1.5; color: #C6D0DC; margin: 1.1rem 0 0; max-width: 60ch; }
.hero__start { display: inline-block; margin-top: 1.6rem; padding: 0.6rem 1.1rem; border-radius: 4px;
  background: #EEF1F4; color: #1E2A3A; font-weight: 600; text-decoration: none; }
.hero__start:hover, .hero__start:focus-visible { background: #FFFFFF; }

/* Step index: jump to any step. */
.index { margin: 0 0 1.25rem; }
.index ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.index a { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem;
  padding: 0.3rem 0.65rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--sheet);
  color: var(--graphite); text-decoration: none; }
.index a:hover, .index a:focus-visible { color: var(--ink-blue); border-color: var(--ink-blue); }

/* The slides. */
.track { display: flex; align-items: flex-start; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; }
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: 2px solid var(--ink-blue); outline-offset: 3px; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-margin-top: 1rem;
  padding: 1.75rem 2rem 2rem; }

.slide__label { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-blue); margin: 0 0 0.45rem; }
.slide h2 { font-family: 'Bitter', Georgia, serif; font-weight: 700; font-size: 1.55rem; line-height: 1.25;
  margin: 0 0 0.7rem; text-wrap: balance; max-width: 30ch; }
.slide__text { max-width: 68ch; margin: 0 0 1rem; }

.slide__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 0 1.4rem; }
.slide__nav a, .slide__nav span { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; }
.slide__nav a { text-decoration: none; padding: 0.45rem 0.9rem; border-radius: 4px; border: 1px solid var(--rule); color: var(--ink-blue); }
.slide__nav a:hover, .slide__nav a:focus-visible { border-color: var(--ink-blue); }
.slide__nav .next { background: var(--ink-blue); border-color: var(--ink-blue); color: var(--sheet); font-weight: 600; }
.slide__nav .next:hover, .slide__nav .next:focus-visible { background: var(--ink); border-color: var(--ink); }
.slide__nav .off { color: var(--muted-gray); padding: 0.45rem 0; }

/* Screenshots: framed like a window. Phone screens are shown at phone size, centered. */
.slide figure { margin: 0; }
.slide figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 1px 3px rgba(30,42,58,0.08); }
.slide figure.narrow img { max-width: 600px; margin: 0 auto; }
/* Kept small on purpose: every slide shares the row's height, so a tall phone shot would leave a
   gap under every other step. */
.slide figure.phone img { max-width: 250px; margin: 0 auto; border-radius: 18px; border-width: 6px; border-color: #1E2A3A; }

/* The closing card. */
.slide--end h2 { max-width: none; }
.end__links { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.75rem; max-width: 60ch; }
.end__links a { display: block; padding: 0.9rem 1.1rem; border: 1px solid var(--rule); border-radius: 4px;
  text-decoration: none; color: var(--ink); background: var(--ledger); }
.end__links a:hover, .end__links a:focus-visible { border-color: var(--ink-blue); }
.end__links strong { display: block; color: var(--ink-blue); }

.note { font-size: 0.9rem; color: var(--graphite); margin: 1rem 0 0; max-width: 68ch; }

.back-link { display: inline-block; margin-top: 3rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--ink-blue); text-decoration: none; }
.back-link:hover, .back-link:focus-visible { text-decoration: underline; }
footer { margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--graphite); }
footer a { color: var(--ink-blue); text-decoration: none; border-bottom: 1px solid currentColor; }
footer a:hover, footer a:focus-visible { color: var(--ink); }

@media (max-width: 620px) {
  .page { padding: 2rem 1rem 4rem; }
  .slide { padding: 1.25rem 1.1rem 1.5rem; }
  .slide h2 { font-size: 1.3rem; }
  .slide figure.phone img { max-width: 220px; }
}
