/* Iväg — ljust tema, hela vägen. Grunden är appens egna färger: samma
   papper, samma bläck, samma gröna. */

:root {
  color-scheme: light;

  --paper:   #EDEFEC;
  --surface: #FFFFFF;
  --inset:   #F3F5F2;
  --line:    #E1E5DF;
  --ink:     #10140F;
  --muted:   #565D57;
  --faded:   #828A82;
  --accent:  #0F6B45;
  --accent-soft: #E2EFE8;

  --rail: 13px;
}

*, *::before, *::after { box-sizing: border-box; }

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

.page {
  max-width: 660px;
  margin: 0 auto;
  padding-inline: 20px;
  padding-block: 56px 72px;
}

/* Display type: Archivo narrowed, the closest free relative to the condensed
   grotesque on Västtrafik's own signage, and to the app's SF Pro condensed. */
h1, h2, .lead strong, .badge {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-variation-settings: "wdth" 86;
  letter-spacing: 0.005em;
}

h1 {
  font-weight: 800;
  font-size: clamp(44px, 12vw, 72px);
  line-height: 0.95;
  margin: 0 0 14px;
  text-wrap: balance;
}

h2 {
  font-weight: 800;
  font-size: 25px;
  line-height: 1.1;
  margin: 0 0 12px;
  text-wrap: balance;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 26px 0 6px;
}

p { margin: 0 0 14px; max-width: 60ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

code {
  font: 0.9em ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 5px;
  white-space: nowrap;
}
a code { color: var(--accent); }

.lead {
  font-size: 21px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 0;
}
.lead strong { color: var(--ink); font-weight: 800; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faded);
  margin: 0 0 10px;
}

/* Sidan som en reselinje: varje avsnitt är en hållplats på vägen ned, samma
   obrutna streck som i appens detaljvy. */
.rail { margin-top: 52px; }

.stop {
  position: relative;
  padding-left: 34px;
  padding-bottom: 40px;
}
.stop::before {
  content: "";
  position: absolute;
  left: calc(var(--rail) / 2 - 1px);
  top: 12px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.stop:last-child::before { bottom: auto; height: 0; }
.stop::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: var(--rail);
  height: var(--rail);
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--accent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
}
.card + .card { margin-top: 14px; }

dl { margin: 0; }
dt {
  font-weight: 700;
  margin-top: 18px;
}
dt:first-child { margin-top: 0; }
dd { margin: 4px 0 0; color: var(--muted); max-width: 60ch; }

ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 6px; color: var(--muted); }
li strong { color: var(--ink); font-weight: 650; }

.badge {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 4px 10px;
}

footer {
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--faded);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
footer a { color: var(--muted); }

.updated { font-size: 15px; color: var(--faded); margin-top: 0; }

@media (max-width: 460px) {
  .card { padding: 18px 18px; border-radius: 16px; }
  .stop { padding-left: 28px; }
}

/* Skärmarna. Två i bredd som står i samma format, och detaljvyn för sig
   under dem eftersom den är ett urklipp och inte en hel skärm. */
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
}

figure {
  margin: 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.shot-wide {
  margin-top: 18px;
}
.shot-wide img {
  max-width: 420px;
  margin-inline: auto;
}
.shot-wide figcaption {
  max-width: 420px;
  margin-inline: auto;
}

@media (max-width: 460px) {
  .shots { gap: 14px; }
  figure img { border-radius: 14px; }
  figcaption { font-size: 13px; }
}
