/* ===== Tokens ===== */
:root {
  --bg: #f3f5f9;
  --panel: #ffffff;
  --tint: #e6f6f4;
  --text: #1d2433;
  --muted: #5d6779;
  --line: #dfe4ee;
  --accent: #0e9d91;
  --accent-strong: #0b7f75;
  --accent-text: #ffffff;
  --shadow: 0 30px 80px rgba(30, 50, 90, .18), 0 4px 14px rgba(30, 50, 90, .08);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --measure: 62ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1217;
    --panel: #171b22;
    --tint: #12302d;
    --text: #e7ebf2;
    --muted: #9aa5b8;
    --line: #252b36;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-text: #04211e;
    --shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 4px 14px rgba(0, 0, 0, .4);
  }
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: .18em; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; max-width: var(--measure); }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: .6em;
  max-width: 18ch;
}
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container.wide { width: min(1240px, 100% - 32px); }
.fine { font-size: .9rem; color: var(--muted); }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--accent); color: var(--accent-text);
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { top: 12px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em;
  color: var(--text); text-decoration: none;
}
.logo img { border-radius: 7px; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-header nav a:hover { color: var(--text); }
.site-header nav .nav-cta {
  color: var(--accent-text); background: var(--accent);
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
}
.site-header nav .nav-cta:hover { background: var(--accent-strong); color: var(--accent-text); }

/* ===== Buttons ===== */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  color: var(--text); background: var(--panel); border: 1px solid var(--line);
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-text); }

/* ===== Hero ===== */
.hero { padding: clamp(56px, 9vw, 112px) 0 0; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 7.4vw, 6rem);
  line-height: .98;
  letter-spacing: -.02em;
  max-width: 17ch;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 54ch; margin: 28px 0 0; }
.hero-shot { margin: 56px auto 0; }
.hero { padding-bottom: clamp(24px, 4vw, 48px); }
.shot {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
}

/* ===== How activation works ===== */
.try { padding: clamp(40px, 6vw, 72px) 0 0; }
.try h2 { max-width: 22ch; }

/* ===== Feature sections ===== */
.feature { padding: clamp(64px, 9vw, 120px) 0; }
.alt { background: var(--panel); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.media { margin: 0; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; max-width: var(--measure); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg) translateY(-3px);
}

/* ===== Themes ===== */
.themes { padding: clamp(64px, 9vw, 120px) 0; }
.theme-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); margin-top: 40px; }
.theme-pair figure { margin: 0; }
.theme-pair figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; text-align: center; }

/* ===== More ===== */
.more { padding: clamp(64px, 9vw, 120px) 0; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 80px); margin: 40px 0 0; }
.details > div { padding: 22px 0; border-top: 1px solid var(--line); }
.details dt { font-weight: 700; margin-bottom: 4px; }
.details dd { margin: 0; color: var(--muted); max-width: 52ch; }

/* ===== Local-first ===== */
.local { background: var(--text); color: var(--bg); padding: clamp(56px, 8vw, 96px) 0; }
.local h2 { color: var(--bg); max-width: 20ch; }
.local p { color: color-mix(in srgb, var(--bg) 78%, var(--text)); }
.local a { color: var(--accent); }
.local a:hover { color: var(--bg); }

/* ===== Download ===== */
.download { padding: clamp(64px, 9vw, 120px) 0; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.note { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.note h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: .95rem; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 32px; }
.foot h3 { font-size: .95rem; font-weight: 700; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.tag { color: var(--muted); margin-top: 10px; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.legal p { margin: 0; max-width: none; }
.legal a { color: var(--muted); }

/* ===== Prose pages ===== */
.prose { padding: clamp(48px, 7vw, 88px) 0; }
.prose h1 { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; margin-bottom: .4em; }
.prose h2 { font-size: 1.8rem; margin: 1.8em 0 .4em; max-width: none; }
.prose ul { max-width: var(--measure); padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .split, .split.flip, .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .split.flip .media { order: 2; }
  .details { grid-template-columns: 1fr; }
  .theme-pair { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .site-header nav a:not(.nav-cta) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
