/* Zena: the app's own palette (Design.swift), light and dark. Structure after the Iväg site. */

:root {
  color-scheme: light dark;
  --paper:   #ECEFF1;
  --surface: #FFFFFF;
  --inset:   #F2F5F7;
  --line:    #DFE5E9;
  --ink:     #0E1418;
  --muted:   #545D64;
  --faded:   #6B767E;
  --accent:  #064870;
  --accent-soft: #E1ECF2;
  --live:    #008DA6;
  --rail: 13px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #0E1215;
    --surface: #171C20;
    --inset:   #20262B;
    --line:    #2A3238;
    --ink:     #F0F4F6;
    --muted:   #A0AAB1;
    --faded:   #8A949B;
    --accent:  #7FE3F0;
    --accent-soft: #10282E;
    --live:    #7FE3F0;
  }
}

*, *::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: 28px 72px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 44px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { width: 26px; height: auto; display: block; }
.lang { font-size: 14px; font-weight: 600; display: flex; gap: 4px; }
.lang a, .lang span { padding: 4px 10px; border-radius: 8px; text-decoration: none; }
.lang a { color: var(--muted); }
.lang span { background: var(--accent-soft); color: var(--accent); }

h1, h2 { font-stretch: condensed; letter-spacing: 0.005em; }
h1 { font-weight: 800; font-size: clamp(40px, 11vw, 64px); line-height: 1; margin: 0 0 14px; text-wrap: balance; }
h2 { font-weight: 800; font-size: 25px; line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }

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;
}

.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; }

.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: 14px; color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 5px 12px; }

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); }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
figcaption { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); }

@media (max-width: 460px) {
  .card { padding: 18px; border-radius: 16px; }
  .stop { padding-left: 28px; }
  .shots { gap: 8px; }
  figure img { border-radius: 10px; }
  figcaption { font-size: 12px; }
}

/* A long address stays on one line; on a narrow screen it scrolls inside its card instead of overflowing. */
.host { display: block; max-width: 100%; overflow-x: auto; margin: 6px 0; padding-bottom: 2px; }
.eyebrow a { color: inherit; text-decoration: none; }
.host { scrollbar-width: none; }
