/* ─────────────────────────────────────────────────────────────
   Skjenelangs med Markus — mobile-first responsive stylesheet
   Visual direction: v04 (Miks)
     · 01-stil magasin-masthead (Newsreader italic)
     · 03-stil rute-hero (OSLO → HAMBURG infografikk)
     · 02-stil resten (Source Serif 4 + Manrope, editorial cards)

   Breakpoints:
     base       — ≤ 559px (mobile)
     ≥ 560px    — small tablet / large phone landscape
     ≥ 768px    — tablet
     ≥ 1024px   — desktop
     ≥ 1280px   — wide desktop
   ───────────────────────────────────────────────────────────── */

/* ── Tokens ─────────────────────────────────────────────── */

:root {
  /* Palette — cold nordic light */
  --page: #fbfaf7;
  --surface: #ffffff;
  --surface-alt: #f2f1ec;
  --ink: #16181b;
  --ink-soft: #52555a;
  --ink-muted: #8e9097;
  --rule: rgba(0, 0, 0, 0.12);
  --accent: #3e6e5a;
  --accent-fg: #ffffff;

  /* Typography */
  --font-display: 'Newsreader', Georgia, serif;
  --font-head:    'Source Serif 4', Georgia, serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Layout */
  --gx: 20px;              /* horizontal padding */
  --gy: 32px;              /* section vertical rhythm */
  --content-max: 1280px;
}

@media (min-width: 560px) {
  :root { --gx: 28px; --gy: 40px; }
}
@media (min-width: 768px) {
  :root { --gx: 40px; --gy: 56px; }
}
@media (min-width: 1024px) {
  :root { --gx: 56px; --gy: 72px; }
}
@media (min-width: 1280px) {
  :root { --gx: 64px; --gy: 80px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #14171c;
    --surface: #1a1e25;
    --surface-alt: #21262e;
    --ink: #eceae3;
    --ink-soft: #a8a9aa;
    --ink-muted: #74777b;
    --rule: rgba(255, 255, 255, 0.10);
    --accent: #8fbfa4;
  }
}

/* ── Reset / base ───────────────────────────────────────── */

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--ink);
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; }
p { margin: 0; }
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--accent-fg); }

/* ── Layout primitives ──────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gx);
  padding-right: var(--gx);
}

.section { padding-top: var(--gy); padding-bottom: var(--gy); }
.section-tight { padding-top: calc(var(--gy) * 0.6); padding-bottom: calc(var(--gy) * 0.6); }

.kicker {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.kicker-muted { color: var(--ink-muted); }
.kicker-ink   { color: var(--ink); }

/* Small horizontal scroll hide */
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x { scrollbar-width: none; }

/* ── Masthead (01-stil magasin) ─────────────────────────── */

.masthead {
  border-top: 1px solid var(--rule);
  border-bottom: 4px double var(--rule);
  padding: 18px var(--gx) 14px;
  text-align: center;
}
.masthead-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(40px, 13vw, 80px);
  line-height: 0.92;
  letter-spacing: -1.6px;
}
.masthead-title-second {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(20px, 6.2vw, 36px);
  letter-spacing: -0.5px;
}
.masthead-title-second .with {
  color: var(--ink-soft);
  font-style: italic;
}
.masthead-meta {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  line-height: 1.5;
}
.masthead-meta span { color: var(--ink-soft); }
.masthead-meta { display: none; }

@media (min-width: 768px) {
  .masthead {
    display: grid;
    grid-template-columns: 130px 1fr 130px;
    align-items: end;
    gap: 20px;
    padding: 28px var(--gx) 20px;
    text-align: left;
  }
  .masthead-meta { display: block; }
  .masthead-meta-right { text-align: right; }
  .masthead-title-block { text-align: center; }
}
@media (min-width: 1024px) {
  .masthead {
    grid-template-columns: 150px 1fr 150px;
    padding: 32px var(--gx) 24px;
  }
}

/* ── Top nav ────────────────────────────────────────────── */

.topnav {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 50;
}
.topnav-inner {
  display: flex;
  gap: 24px;
  justify-content: flex-start;
  padding: 10px var(--gx);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 600;
}
.topnav-inner::-webkit-scrollbar { display: none; }
.topnav a {
  white-space: nowrap;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
  padding: 4px 0;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.topnav a:hover { color: var(--ink); }
.topnav a.active {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

@media (min-width: 768px) {
  .topnav-inner {
    justify-content: center;
    overflow: visible;
    padding: 12px var(--gx);
    gap: 28px;
  }
}

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 800;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, black);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--page);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

/* ── Pill (the "Ny rute publisert" tag) ─────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 6px 11px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill-dot {
  width: 6px; height: 6px; background: currentColor; border-radius: 3px;
}

/* ── Status badge ───────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 800;
}
.badge-live    { background: var(--accent); color: var(--accent-fg); }
.badge-soon    { background: var(--ink); color: var(--page); }
.badge-planned { background: transparent; color: var(--ink-muted); border: 1px solid var(--rule); }
.badge .badge-dot { width: 6px; height: 6px; background: currentColor; border-radius: 3px; }

/* ── Hero (03-stil rute-oppsummering) ───────────────────── */

.hero-route {
  background: var(--surface-alt);
  border-bottom: 3px solid var(--ink);
}
.hero-route .container {
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(32px, 6vw, 64px);
  display: grid;
  gap: 32px;
}
.hero-route-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(48px, 14vw, 96px);
  line-height: 0.92;
  letter-spacing: -2.4px;
  text-transform: uppercase;
  margin-top: 18px;
}
.hero-route-title .arrow { color: var(--accent); display: inline-block; }
.hero-stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}
.hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-cta .btn { flex: 1 0 auto; min-width: 0; }

.hero-map-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 20px;
}
.hero-map-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-map-foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
}
.hero-map-foot .arrival { letter-spacing: 0.6px; font-weight: 600; }

@media (min-width: 480px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero-cta .btn { flex: 0 0 auto; }
}
@media (min-width: 1024px) {
  .hero-route .container {
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .hero-route-title { margin-top: 22px; }
}

/* Big stat */
.bigstat-k {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 5px;
}
.bigstat-val {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.bigstat-v {
  font-family: var(--font-mono);
  font-size: clamp(22px, 4.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1;
  white-space: nowrap;
}
.bigstat-sub {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-weight: 600;
}

/* ── Mini map (vertical metro) ──────────────────────────── */

.mini-map { display: flex; flex-direction: column; }
.mini-map-stop {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  position: relative;
}
.mini-map-stop:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  bottom: -50%;
  width: 4px;
  background: var(--accent);
}
.mini-map-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--accent);
  position: relative;
  z-index: 1;
}
.mini-map-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.mini-map-country {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.mini-map-times {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
}

/* ── Editorial divider (02-stil) ────────────────────────── */

.divider {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.divider-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.6px;
}
.divider-kicker { margin-bottom: 6px; }
.divider-cta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.divider-cta:hover { text-decoration: underline; }

/* ── Guides grid (02-stil editorial cards) ──────────────── */

.guides-grid {
  display: grid;
  gap: 32px;
  margin-top: 28px;
}
.guide-card {
  display: block;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.guide-card-img-wrap { display: block; }
.guide-card-body { padding-top: 18px; }
.guide-card h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.6px;
  margin: 10px 0 0;
}
.guide-card p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.guide-card-meta {
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
}
.guide-card:hover h3 { color: var(--accent); }

/* Featured (wide) card */
.guide-card-featured h3 { font-size: clamp(28px, 4.6vw, 48px); letter-spacing: -1.2px; }
.guide-card-featured p { font-size: 16px; }
.guide-card-featured .guide-card-stats {
  margin-top: 18px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .guide-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
  }
  .guide-card-featured .guide-card-body { padding-top: 0; }
}
@media (min-width: 1024px) {
  .guide-card-featured { gap: 56px; grid-template-columns: 1fr 1.2fr; }
}

/* Mini stat (used in featured card) */
.stat {
  display: flex;
  flex-direction: column;
}
.stat-k {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.stat-v {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

/* ── Blog grid (3-up cards) ─────────────────────────────── */

.blog-grid {
  display: grid;
  gap: 32px;
  margin-top: 28px;
}
.post-card {
  cursor: pointer;
  color: inherit;
  text-align: left;
}
.post-card .kicker { margin-bottom: 10px; display: block; }
.post-card h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.18;
  letter-spacing: -0.4px;
}
.post-card p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.post-card-date {
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}
.post-card:hover h3 { color: var(--accent); }

@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 36px; } }

/* ── Newsletter band ────────────────────────────────────── */

.newsletter {
  background: var(--surface-alt);
  padding: clamp(28px, 5vw, 44px) clamp(20px, 4vw, 48px);
  display: grid;
  gap: 24px;
}
.newsletter h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.6px;
  line-height: 1.1;
  margin-top: 10px;
}
.newsletter p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 480px;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.newsletter-form input {
  flex: 1;
  border: 1px solid var(--rule);
  background: var(--page);
  color: var(--ink);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  min-width: 0;
  min-height: 44px;
}
.newsletter-form input:focus { border-color: var(--accent); }

@media (min-width: 480px) {
  .newsletter-form { flex-direction: row; gap: 0; }
  .newsletter-form input { border-right: none; }
  .newsletter-form .btn { flex-shrink: 0; }
}
@media (min-width: 1024px) {
  .newsletter {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 40px;
  }
}

/* ── Footer (02-stil) ───────────────────────────────────── */

.footer {
  background: var(--surface-alt);
  padding: clamp(36px, 6vw, 52px) var(--gx) clamp(28px, 4vw, 40px);
  margin-top: clamp(48px, 8vw, 80px);
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: 32px;
}
.footer-brand h4 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.footer-brand h4 em { font-style: italic; color: var(--ink-soft); }
.footer-brand p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 360px;
}
.footer-col-title {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
}
.footer-col li { cursor: pointer; }
.footer-col li:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--content-max);
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.4px;
}

@media (min-width: 640px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ── Page content layouts ───────────────────────────────── */

.page { min-height: 60vh; }

.back-link {
  display: inline-block;
  margin: 16px 0 8px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  cursor: pointer;
}
.back-link:hover { color: var(--ink); }

/* ── Guide page ─────────────────────────────────────────── */

.guide-hero {
  border-bottom: 3px solid var(--ink);
  background: var(--surface-alt);
}
.guide-hero .container {
  padding-top: 8px;
  padding-bottom: 28px;
  display: grid;
  gap: 24px;
}
.guide-hero-badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.guide-hero h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(40px, 9vw, 84px);
  line-height: 0.96;
  letter-spacing: -2px;
}
.guide-hero-lede {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 720px;
}
.guide-hero-image { display: none; }

@media (min-width: 1024px) {
  .guide-hero .container {
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: end;
  }
  .guide-hero-image { display: block; }
  .guide-hero-text { padding-bottom: 8px; }
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.stats-strip-item {
  padding: 14px var(--gx);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stats-strip-item:nth-child(2n) { border-right: none; }
.stats-strip-item:nth-last-child(-n+2) { border-bottom: none; }
.stats-strip-item .stat-k { margin-bottom: 6px; }
.stats-strip-item .stat-v {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  letter-spacing: -0.4px;
}

@media (min-width: 768px) {
  .stats-strip { grid-template-columns: repeat(5, 1fr); }
  .stats-strip-item { border-bottom: none; padding: 18px var(--gx); }
  .stats-strip-item:nth-child(2n) { border-right: 1px solid var(--rule); }
  .stats-strip-item:last-child { border-right: none; }
}

/* Route map */
.route-map-block {
  background: var(--surface-alt);
  padding: clamp(24px, 4vw, 36px) clamp(8px, 2vw, 16px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.route-map-block svg {
  min-width: 600px;       /* allow horizontal scroll on narrow screens */
  margin: 0 auto;
}

/* Stops list */
.stops {
  display: flex;
  flex-direction: column;
}
.stop {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.stop:last-child { border-bottom: none; }
.stop-number {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 800; color: var(--accent);
}
.stop-body { min-width: 0; }
.stop-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.stop-name {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(18px, 2.5vw, 22px);
  letter-spacing: -0.3px;
}
.stop-country {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}
.stop-times {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}
.stop-note {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Two-column on tablet+ for stops + download aside */
.guide-content {
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  .guide-content {
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
  }
}

/* Download card */
.download-card {
  background: var(--surface);
  border: 1px solid var(--ink);
  padding: 22px;
}
.download-card h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 24px);
  letter-spacing: -0.3px;
  margin: 8px 0 10px;
}
.download-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 16px;
}
.download-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  min-height: 44px;
}
.download-row:last-of-type { border-bottom: none; }
.download-row:hover .download-format { color: var(--accent); }
.download-format {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 500;
  transition: color .12s;
}
.download-size {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}
.download-foot {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 14px;
  line-height: 1.5;
}

/* ── Blog list page ─────────────────────────────────────── */

.blog-list-header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 28px;
  margin-bottom: 8px;
}
.blog-list-header h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: -1.6px;
  line-height: 1;
  margin: 10px 0 14px;
}
.blog-list-header p {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-soft);
  max-width: 600px;
  line-height: 1.4;
}

.blog-list { display: flex; flex-direction: column; }
.blog-list-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  display: grid;
  gap: 8px;
}
.blog-list-item .kicker { display: inline-block; }
.blog-list-item h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.6px;
}
.blog-list-item p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 4px;
}
.blog-list-item-date {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}
.blog-list-item:hover h3 { color: var(--accent); }

@media (min-width: 768px) {
  .blog-list-item {
    grid-template-columns: 130px 1fr 1.4fr;
    align-items: center;
    column-gap: 28px;
    padding: 28px 0;
  }
  .blog-list-item .kicker { align-self: start; padding-top: 4px; }
  .blog-list-item-text { display: contents; }
  .blog-list-item-title-block { display: flex; flex-direction: column; gap: 6px; }
  .blog-list-item-excerpt { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
}

/* ── Post page ──────────────────────────────────────────── */

.post-header {
  max-width: 880px;
  margin: 0 auto;
}
.post-header h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -2px;
  line-height: 1;
  margin: 14px 0 18px;
}
.post-lede {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 720px;
}
.post-meta {
  margin-top: 22px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 600;
}
.post-image-wrap { margin: 32px 0 0; }
.post-body {
  max-width: 680px;
  margin: 40px auto 0;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(17px, 2vw, 18px);
  line-height: 1.75;
}
.post-body p { margin: 0 0 1.2em; }
.post-foot {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.4px;
}

/* ── Image placeholder (low-saturation tone with label) ──
   The placeholder uses gradients + a small label corner. */
.imgph {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #9caebe 0%, #6c8298 55%, #3e5571 100%);
  overflow: hidden;
}
.imgph::before {
  /* horizon line */
  content: '';
  position: absolute;
  left: 0; right: 0; top: 62%;
  height: 1px;
  background: rgba(255,255,255,0.18);
}
.imgph::after {
  /* tonal vignette */
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.10), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,0.14), transparent 50%);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.imgph-label {
  position: absolute;
  left: 12px; bottom: 10px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.3px;
  z-index: 1;
}
/* Tones */
.imgph-cool { background: linear-gradient(180deg, #9caebe, #6c8298 55%, #3e5571); }
.imgph-warm { background: linear-gradient(180deg, #b8a892, #947f68 55%, #6a5648); }
.imgph-fog  { background: linear-gradient(180deg, #b6bcc0, #8d9398 55%, #5d6469); }
.imgph-dawn { background: linear-gradient(180deg, #c2a89d, #8e7e75 55%, #5a4f48); }
.imgph-dusk { background: linear-gradient(180deg, #5f7385, #3d4d5d 55%, #1f2a35); }
/* Ratios */
.imgph-16-9 { aspect-ratio: 16 / 9; }
.imgph-4-3  { aspect-ratio: 4 / 3; }
.imgph-3-4  { aspect-ratio: 3 / 4; }
.imgph-4-5  { aspect-ratio: 4 / 5; }
.imgph-21-9 { aspect-ratio: 21 / 9; }
.imgph-1-1  { aspect-ratio: 1 / 1; }

/* ── Print-friendly tweak (subtle) ──────────────────────── */
@media print {
  .topnav, .newsletter, .footer { display: none; }
  body { background: white; color: black; }
}
