/* Aurorama prototype. Tokens and rules from the design concept of 23 October 2026 (sections 3 and 4). */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url(fonts/schibsted-latin.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url(fonts/sourceserif-latin.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
/* metric-matched fallbacks (computed from the font files with fontTools), so the font swap does not move text */
@font-face { font-family: "Grotesk fallback"; src: local("Arial"), local("Liberation Sans"); size-adjust: 105.2%; ascent-override: 92.8%; descent-override: 24.5%; line-gap-override: 0%; }
@font-face { font-family: "Serif fallback"; src: local("Times New Roman"), local("Liberation Serif"); size-adjust: 116.9%; ascent-override: 88.6%; descent-override: 28.7%; line-gap-override: 0%; }

:root {
  --surface: #F5F7F9;
  --ink: #142332;
  --ink-2: #4E5966;
  --ink-3: #5F6975;
  --rule: #E1E5EA;
  --baseline: #CCD2D7;
  --aurora: #0E9254;
  --cloud: #B8BEC5;
  --clear: #34508F;
  --seq: #5EC386;
  --seq-focus: #0B7643;
  --sea: #F5F7F9;
  --land: #E4E8EC;
  --coast: #7D8792;
  --wash: #7A848F;
  --wash-max: 0.78;
  --tip-bg: #142332;
  --tip-ink: #F5F7F9;
  --grotesk: "Schibsted Grotesk", "Grotesk fallback", Arial, sans-serif;
  --serif: "Source Serif 4", "Serif fallback", "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #142332; --ink: #E8ECF0; --ink-2: #B8BEC5; --ink-3: #8A939D; --rule: #2A394A; --baseline: #33424F;
    --aurora: #31AB6A; --cloud: #3F4955; --clear: #5777C1; --seq: #0E9254; --seq-focus: #8ED8A8;
    --sea: #142332; --land: #1E3044; --coast: #6B7A8A; --wash: #D3D9DF; --wash-max: 0.62;
    --tip-bg: #E8ECF0; --tip-ink: #142332; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #142332; --ink: #E8ECF0; --ink-2: #B8BEC5; --ink-3: #8A939D; --rule: #2A394A; --baseline: #33424F;
  --aurora: #31AB6A; --cloud: #3F4955; --clear: #5777C1; --seq: #0E9254; --seq-focus: #8ED8A8;
  --sea: #142332; --land: #1E3044; --coast: #6B7A8A; --wash: #D3D9DF; --wash-max: 0.62;
  --tip-bg: #E8ECF0; --tip-ink: #142332; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 18px/29px var(--serif);
  font-synthesis: none;
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; font: 600 16px/1 var(--grotesk); background: var(--ink); color: var(--surface); padding: 12px; border-radius: 4px; }
.skip:focus { top: 8px; }

/* header (48 px, not sticky) */
.site-head { height: 48px; border-bottom: 1px solid var(--rule); }
.head-in { max-width: 960px; height: 48px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.brand { margin: 0; display: flex; align-items: center; gap: 10px; }
.wordmark { font: 600 20px/1 var(--grotesk); letter-spacing: 0; }
.strip { width: 68px; height: 12px; }
.theme { font: 500 16px/1 var(--grotesk); color: var(--ink); background: none; border: 0; padding: 14px 0 14px 12px; min-height: 44px; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

main { max-width: 960px; margin: 0 auto; padding: 0 16px 48px; }
.top, .prose, section > h2, .tours { max-width: 680px; }
.crumbs ol { list-style: none; margin: 24px 0 0; padding: 0; display: flex; gap: 6px; font: 400 15px/20px var(--grotesk); color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-3); }
h1, h2, h3 { font-family: var(--grotesk); font-weight: 600; color: var(--ink); }
h1 { font-size: 28px; line-height: 34px; margin: 12px 0 8px; }
h2 { font-size: 24px; line-height: 30px; margin: 0 0 16px; }
h3 { font-size: 21px; line-height: 26px; margin: 0 0 8px; }
section { margin-top: 64px; }
p { margin: 0 0 16px; }

/* hero (V1): proportional figures, same grotesk as everything else */
.hero-num { font: 600 60px/1 var(--grotesk); margin: 16px 0 24px; text-align: center; font-variant-numeric: proportional-nums; }
.hero-text { font-size: 20px; line-height: 30px; }
.hero-sub, .hero-limits, .prov { font: 400 16px/24px var(--grotesk); color: var(--ink-2); }
.hero-sub { color: var(--ink); }
.prov { color: var(--ink-3); font-size: 15px; }

/* receipts: every number is a <data> element; tap shows its source */
data[data-src] { text-decoration: underline dotted var(--baseline); text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: help; }
data[data-src]:hover, data[data-src]:focus-visible { text-decoration-color: var(--ink); }
.hero-num data, h2 data, .t-meta data, .t-price data { text-decoration: none; }
.receipt { display: block; margin: 6px 0 10px; padding: 8px 10px; border-left: 2px solid var(--ink); font: 400 15px/21px var(--grotesk); color: var(--ink-2); }
.hero-num .receipt { font-size: 15px; }

/* figures */
.fig { margin: 0 0 24px; }
.fig svg { display: block; width: 100%; height: auto; overflow: visible; }
figcaption, .readout, .dl, .legend, .weights, details summary, .scale-legend { font: 400 15px/22px var(--grotesk); color: var(--ink-2); }
figcaption { color: var(--ink-3); margin-top: 8px; max-width: 680px; }
figcaption.title { font: 600 18px/24px var(--grotesk); color: var(--ink); margin: 8px 0 8px; }
.readout { color: var(--ink); min-height: 44px; margin: 8px 0 0; }
.legend, .scale-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 0 0 10px; }
.li { white-space: nowrap; display: inline-flex; align-items: center; }
.k { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.k-aurora { background: var(--aurora); } .k-cloud { background: var(--cloud); } .k-clear { background: var(--clear); }
.k-bright { border: 1px solid var(--baseline); }
.k-oval { width: 22px; height: 0; border-top: 2.5px dashed var(--aurora); border-radius: 0; vertical-align: 4px; }
.k-ring { width: 14px; height: 14px; border: 3px solid var(--aurora); border-radius: 50%; }
.wash-ramp { display: inline-block; margin-right: 6px; width: 64px; height: 12px; border-radius: 2px; background: linear-gradient(90deg, var(--land), var(--wash)); }
details { margin: 8px 0 0; }
details summary { cursor: pointer; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.dl { margin: 0; }
.tbl { border-collapse: collapse; font: 400 15px/21px var(--grotesk); margin: 8px 0 0; min-width: 280px; }
.tbl caption { text-align: left; font-weight: 600; padding: 4px 0 8px; color: var(--ink); }
.tbl th, .tbl td { padding: 6px 14px 6px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.tbl td { text-align: right; }
.tbl thead th { color: var(--ink-2); font-weight: 500; border-bottom-color: var(--baseline); }
.tbl-wrap { overflow-x: auto; margin: 0 0 20px; }
.tbl.trip { width: 100%; max-width: 960px; }
.tbl.trip td { text-align: left; }
.tbl.trip td:nth-child(n+4) { text-align: right; white-space: nowrap; }

/* desktop: 680 px text column plus a 260 px margin column */
.cols { display: block; }
.note { font: 400 16px/24px var(--grotesk); color: var(--ink-2); border-top: 1px solid var(--baseline); padding-top: 12px; margin: 24px 0 0; max-width: 680px; }
.note h3 { font-size: 18px; line-height: 24px; color: var(--ink); }
.note dl { margin: 0 0 12px; }
.note dt { font-weight: 600; color: var(--ink); }
.note dd { margin: 0 0 8px; }
.note p { margin: 0; }

/* SVG chart chrome (3.4) */
svg text { font-family: var(--grotesk); fill: var(--ink-3); font-size: 14px; }
svg .val { fill: var(--ink-2); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
svg .strong { fill: var(--ink); font-weight: 600; }
svg .lab { fill: var(--ink-2); }
svg .note { fill: var(--ink-3); }
.grid { stroke: var(--rule); stroke-width: 1; }
.axis { stroke: var(--baseline); stroke-width: 1; }
.thr { stroke: var(--ink-3); stroke-width: 1; }
.ref { stroke: var(--ink-3); stroke-width: 1.5; }
.range { stroke: var(--ink-2); stroke-width: 1.5; }
.ydots { fill: var(--ink-3); opacity: .35; }
.m-aurora { fill: var(--aurora); } .m-cloud { fill: var(--cloud); } .m-clear { fill: var(--clear); }
.m-bright { fill: none; stroke: var(--baseline); stroke-width: 1; }
.m-aurora.soft { opacity: .55; }
.m-seq { fill: var(--seq); } .m-seq-focus { fill: var(--seq-focus); }
.m-dark { fill: var(--ink); opacity: .8; }
.mark-own { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.cursor { fill: none; stroke: var(--ink); stroke-width: 2; }
.band { fill: var(--aurora); opacity: .14; }
.line { fill: none; stroke: var(--aurora); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dot { fill: var(--aurora); stroke: var(--surface); stroke-width: 2; }
.dot.sel { stroke: var(--ink); stroke-width: 2.5; }
.kp { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.cursor-line { stroke: var(--ink); stroke-width: 1.5; }
.hit { fill: transparent; }
.inbar { font-weight: 600; } .inbar.on-dark { fill: #FFFFFF; } .inbar.on-light { fill: #142332; }
.mbar { cursor: default; }
.mbar.on .m-seq, .mbar.on .m-seq-focus { stroke: var(--ink); stroke-width: 2; }

/* charts drawn in a 600 / 680 / 960 unit box: text size per screen width keeps labels at about 13 to 15 px */
.ledger { max-width: 606px; }
@media (max-width: 759px) {
  .v600 text { font-size: 22px; } .v680 text { font-size: 25px; } .v960 text { font-size: 36px; }
  .v600 .minor, .v600 .dk, .v960 .alt, .v960 .minor { display: none; }
  .only-d { display: none !important; }
  .inbar { display: none; }
  .tbl.trip thead { display: none; }
  .tbl.trip, .tbl.trip tbody, .tbl.trip tr, .tbl.trip th, .tbl.trip td { display: block; width: 100%; }
  .tbl.trip tr { border-bottom: 1px solid var(--baseline); padding: 10px 0; }
  .tbl.trip th, .tbl.trip td { border: 0; padding: 2px 0; text-align: left !important; white-space: normal !important; }
  .tbl.trip th { font-weight: 600; font-size: 16px; }
  .tbl.trip td::before { content: attr(data-label) ": "; color: var(--ink-3); }
}
@media (min-width: 420px) and (max-width: 759px) {
  .v600 text { font-size: 17px; } .v680 text { font-size: 19px; } .v960 text { font-size: 26px; }
}
@media (min-width: 760px) {
  .only-m { display: none !important; }
  .v960 text { font-size: 15px; }
}
.v380 text { font-size: 15px; }
@media (min-width: 420px) and (max-width: 759px) { .v380 text { font-size: 11px; } }

/* ledger interaction */
.ledger-wrap { position: relative; max-width: 606px; touch-action: manipulation; }
.ledger-wrap:focus-visible { outline-offset: 6px; }
.tip { position: absolute; z-index: 2; pointer-events: none; background: var(--tip-bg); color: var(--tip-ink); font: 400 15px/21px var(--grotesk); padding: 8px 10px; border-radius: 4px; max-width: 260px; }
.tip strong { font-weight: 600; display: block; }

/* replay */
.wide { max-width: 960px; }
.map-box { position: relative; width: 100%; max-width: 960px; background: var(--sea); overflow: hidden; }
.map-box svg, .map-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-canvas { display: none; }
.js-map .map-canvas { display: block; }
.js-map .map-base .wash { display: none; }
.sea { fill: var(--sea); } .land { fill: var(--land); }
.wash { fill: var(--wash); fill-opacity: var(--wash-max); }
.coastline { fill: none; stroke: var(--coast); stroke-width: 1; vector-effect: non-scaling-stroke; }
.oval-band { fill: var(--aurora); opacity: .06; }
.oval-line { fill: none; stroke: var(--aurora); stroke-width: 2.5; stroke-dasharray: 9 6; vector-effect: non-scaling-stroke; }
.ring { fill: none; stroke: var(--aurora); stroke-width: 4; }
.town { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.town.minor { fill: var(--ink-2); }
.maplab { fill: var(--ink); font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.maplab.minor { fill: var(--ink-2); font-weight: 500; }
.oval-lab { fill: var(--ink); font-weight: 500; }
.scale line { stroke: var(--ink); stroke-width: 2; }
.map-over text { font-size: 16px; }
@media (max-width: 759px) { .map-over text { font-size: 34px; } }
@media (min-width: 420px) and (max-width: 759px) { .map-over text { font-size: 26px; } }
.clock { position: absolute; left: 12px; bottom: 12px; margin: 0; background: var(--surface); padding: 6px 10px; border-radius: 4px; font-family: var(--grotesk); }
@media (max-width: 759px) { .clock { left: 8px; bottom: 8px; padding: 4px 8px; } .clock-t { font-size: 16px; line-height: 20px; } .clock-v { font-size: 14px; line-height: 18px; } }
.clock-t { display: block; font: 600 20px/26px var(--grotesk); }
.clock-v { display: block; font: 400 15px/20px var(--grotesk); color: var(--ink-2); }
.player { display: flex; align-items: center; gap: 14px; margin: 12px 0 8px; }
.btn { font: 600 16px/1 var(--grotesk); background: var(--ink); color: var(--surface); border: 0; border-radius: 4px; min-height: 44px; padding: 0 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.glyph { width: 12px; height: 14px; position: relative; }
.play .glyph::before { content: ""; position: absolute; left: 1px; top: 0; border-left: 12px solid var(--surface); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.play[aria-pressed="true"] .glyph::before { border: 0; left: 0; width: 4px; height: 14px; background: var(--surface); box-shadow: none; }
.play[aria-pressed="true"] .glyph::after { content: ""; position: absolute; left: 8px; top: 0; width: 4px; height: 14px; background: var(--surface); }
.scrub { flex: 1; min-width: 0; height: 44px; accent-color: var(--ink); }
.control { font: 400 16px/24px var(--grotesk); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.control input { width: 220px; height: 44px; accent-color: var(--ink); }
.chart-box { max-width: 680px; }
.scale-legend { margin-top: 10px; }
.tl-box { position: relative; margin-top: 16px; }
.variant-b { margin-top: 24px; }
.variant-b .weights { margin: 10px 0 0; }
.pending { visibility: hidden; }
.map-b { position: relative; width: 100%; max-width: 960px; background: var(--rule); }
.map-b-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; font: 400 16px/24px var(--grotesk); color: var(--ink-2); }
.map-b-cover p { margin: 0; max-width: 420px; }
.weights { color: var(--ink-2); }

/* trip */
.photo-slot { margin: 8px 0 0; max-width: 680px; min-height: 120px; border: 1px dashed var(--baseline); display: flex; align-items: center; justify-content: center; }
.photo-slot p { margin: 0; font: 400 16px/24px var(--grotesk); color: var(--ink-3); }

/* tours (section 6): same type and ink as the site, no badges */
.tours .t-lead { font-size: 18px; }
.tour-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--baseline); }
.tour-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-family: var(--grotesk); }
.tour-list p { margin: 0; }
.t-title { font: 600 18px/24px var(--grotesk); }
.t-meta { font: 400 16px/24px var(--grotesk); color: var(--ink-2); }
.t-price { font: 400 16px/24px var(--grotesk); display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; }
.t-price data { font-weight: 600; }
.disclosure { font: 400 15px/22px var(--grotesk); color: var(--ink-2); margin-top: 14px; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); margin-top: 32px; }
.foot-in { max-width: 960px; margin: 0 auto; padding: 24px 16px 40px; font: 400 15px/22px var(--grotesk); color: var(--ink-2); }
.foot-in h2 { font-size: 18px; line-height: 24px; }
.sources { padding-left: 18px; max-width: 760px; }
.sources li { margin-bottom: 8px; }
cite { font-style: normal; }
.proto { color: var(--ink); font-weight: 600; }

@media (min-width: 760px) {
  body { font-size: 19px; line-height: 31px; }
  h1 { font-size: 36px; line-height: 42px; }
  h2 { font-size: 28px; line-height: 34px; }
  .hero-num { font-size: 72px; }
  section { margin-top: 80px; }
}
@media (min-width: 1000px) {
  .cols { display: grid; grid-template-columns: minmax(0, 680px) 260px; gap: 20px; align-items: start; }
  .note { margin-top: 4px; }
  .note.method { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .m-aurora, .m-cloud, .m-clear { forced-color-adjust: none; }
}
