/* =========================================================
   Järna Kung Fu – Shaolin identity.
   Warm paper, dark gray ink, and the approved tiger logo.
   Alegreya + Alegreya Sans · Phosphor Regular icons
   ========================================================= */

/* Alegreya was drawn from broad-pen writing, so it sits with the ink drawings; Alegreya
   Sans shares its rhythm. Its lowercase is short, so size-adjust scales it 9% to read at
   the size the text sizes below were set for (measured against DM Sans, the earlier face). */
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; size-adjust: 109%; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; size-adjust: 109%; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; size-adjust: 109%; }

:root {
  --bg: #f3efe6;           /* warm paper */
  --surface: #e9e3d6;      /* cards: a shade deeper than the page */
  --paper: #faf8f2;        /* behind the ink illustrations */
  --ink: #2a2926;          /* dark warm gray, not black */
  --accent: var(--ink);
  --on-accent: var(--bg);
  --muted: #5c5850;
  --faint: #6a655b;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  /* chrome: the dark surfaces (tab bar, install banner) */
  --chrome: var(--ink);
  --on-chrome: var(--bg);
  --on-chrome-muted: #b8b2a6; /* idle text on the chrome */
  --chrome-active: var(--bg);  /* the current tab's pill */
  --on-chrome-active: var(--ink);
  --logo: var(--ink);
  --emblem: var(--ink);        /* the round icons on Hem's rows */
  --shadow: var(--ink);        /* shadows and the dimmed backdrop (black in a dark theme) */
  --raised: var(--bg);         /* the chosen option on a switcher's track */
  --field: var(--paper);       /* text fields, the little key icons in the install guide */

  --display: "Alegreya", Georgia, serif;
  --body: "Alegreya Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --display-size: 2.75rem;
  --name-size: 1.3125rem;
  --body-size: 1.0625rem;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 40px;
  --sp-7: 64px;
  --sp-8: 96px;
  --gutter: 24px;
  --measure: 34rem;
  --gap: 10px;             /* between stacked cards */

  --r-card: 16px;
  --r-big: 24px;
  --r-pill: 999px;

  --nav-h: 64px;
  --nav-space: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom));

  --i-arrow-left: url("icons/ui/regular/arrow-left.svg");
  --i-arrow-right: url("icons/ui/regular/arrow-right.svg");
  --i-play: url("icons/ui/regular/play.svg");
  --i-clock: url("icons/ui/regular/clock.svg");
  --i-download: url("icons/ui/regular/download-simple.svg");
  --i-info: url("icons/ui/regular/info.svg");
  --i-x: url("icons/ui/regular/x.svg");
  --i-house: url("icons/ui/regular/house.svg");
  --i-list: url("icons/ui/regular/list-checks.svg");
  --i-sound: url("icons/ui/regular/speaker-high.svg");
  --i-sound-off: url("icons/ui/regular/speaker-slash.svg");
  --i-check: url("icons/ui/regular/check.svg");
  --i-repeat: url("icons/ui/regular/arrow-counter-clockwise.svg");
  --i-pause: url("icons/ui/regular/pause.svg");
  --i-waveform: url("icons/ui/regular/waveform.svg");
  --i-taichi: url("icons/ui/regular/person-simple-tai-chi.svg");
  --i-share: url("icons/ui/regular/export.svg");
  --i-dots-v: url("icons/ui/regular/dots-three-vertical.svg");
  --i-dots: url("icons/ui/regular/dots-three-circle.svg");
  --i-add: url("icons/ui/regular/plus-square.svg");
  --i-phone: url("icons/ui/regular/device-mobile.svg");
  --i-music: url("icons/ui/regular/music-notes.svg"); /* drawn in Phosphor's style */
  /* Generated flowing line art; alpha masks keep the theme's text colour. */
  --i-nav-hem: url("icons/ui/line/hem.png");
  --i-nav-pass: url("icons/ui/line/pass.png");
  --i-nav-ovningar: url("icons/ui/line/ovningar.png");
  --i-nav-installningar: url("icons/ui/line/installningar.png"); /* drawn in code: design/line-icons/installningar.py */
  --i-nav-info: url("icons/ui/line/info.png"); /* "Innan du börjar", the same family as the tab bar */
}

/* Siden: the colours of Ming-era silk coats (Inställningar → Utseende).
   Ivory page, mauve-tinted cards, lacquer-red actions, a jade tab bar with a
   gold pill for the current tab. Only colour roles change; every text pair
   is ≥5:1 (checked), so it reads as well as Papper. */
:root[data-theme="siden"] {
  --bg: #f6ebd6;           /* ivory coat */
  --surface: #eedcd0;      /* mauve coat, very pale */
  --paper: #fdf7ec;        /* white sleeves */
  --ink: #36201b;          /* lacquer brown */
  --accent: #9e2b2e;       /* lacquer red, the wall behind them */
  --on-accent: #fbf3e4;
  --muted: #6f4f48;        /* mauve, deepened for text */
  --faint: #86655c;
  --chrome: #2f3d28;       /* jade coat, deep */
  --on-chrome: #f6ebd6;
  --on-chrome-muted: #bcc3a2;
  --chrome-active: #d9b27a; /* gold crowns */
  --on-chrome-active: #2f3d28;
  --logo: var(--accent);    /* the logo as a red seal */
  --emblem: var(--chrome);  /* jade, so the green reaches the page too */
}
/* Lotus: a lotus pond at dawn. Misty page, leaf-green cards, pond-green ink
   and tab bar, lotus pink for actions with a petal-pink pill for the current
   tab. The mirror of Siden: here the logo is green and the icons are pink. */
:root[data-theme="lotus"] {
  --bg: #eff2e8;           /* morning mist over the water */
  --surface: #e1e9d8;      /* lotus leaf, pale */
  --paper: #f9fbf5;
  --ink: #1f3329;          /* deep pond */
  --accent: #ad3a60;       /* lotus flower, deep */
  --on-accent: #fff6f8;
  --muted: #4c6254;        /* reed */
  --faint: #687b6d;
  --chrome: #23473b;       /* pond green */
  --on-chrome: #eff2e8;
  --on-chrome-muted: #a8c3b2;
  --chrome-active: #f2bccb; /* petal */
  --on-chrome-active: #23473b;
  --logo: var(--chrome);
  --emblem: var(--accent);
}
/* Wudang: the mountain of tai chi (and of the Wu-Tang Clan's name) at night.
   Pine-dark page, lantern yellow for actions, the logo as a yellow seal on
   black, pine-mist icons. Designed for the dark, not inverted: cards are
   lighter than the page, shadows are black, the chosen option is raised.
   The illustrations are black ink, so they keep a parchment tile. */
:root[data-theme="wudang"] {
  color-scheme: dark;      /* the browser's own parts: scrollbars, form controls */
  --bg: #121614;           /* mountain night */
  --surface: #1c221f;
  --raised: #2c3430;
  --field: #232a26;
  --paper: #d8d0be;        /* parchment, softer than white at night */
  --ink: #ebe5d7;
  --accent: #e9b949;       /* lantern yellow */
  --on-accent: #17140c;
  --muted: #a9a596;
  --faint: #8d8a7e;
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --chrome: #262e2a;
  --on-chrome: #ebe5d7;
  --on-chrome-muted: #a3a99d;
  --chrome-active: var(--accent);
  --on-chrome-active: #17140c;
  --logo: var(--accent);
  --emblem: #9cc0a9;       /* pine mist */
  --shadow: #000;
}
/* (every theme but Papper) the logo is drawn in --logo through a mask; the img stays for its alt text */
:root[data-theme] .home-brand {
  background: var(--logo);
  -webkit-mask: url("img/jarna-round-logo.svg") center / contain no-repeat; mask: url("img/jarna-round-logo.svg") center / contain no-repeat;
}
:root[data-theme] .home-brand .home-logo { opacity: 0; }

/* ---------- Base ---------- */
/* hidden always wins – component styles like .btn { display: inline-flex } must not override it */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: var(--body-size); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main {
  display: block; max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto; padding: calc(var(--sp-4) + env(safe-area-inset-top)) var(--gutter) calc(var(--nav-space) + var(--sp-6)); outline: none;
}
h1, h2, h3 { margin: 0; font-weight: inherit; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
main:focus-visible { outline: none; }
.tab:focus-visible { outline-color: var(--on-chrome); outline-offset: 1px; }
::selection { background: var(--accent); color: var(--on-accent); }

.art { mix-blend-mode: multiply; }

/* Alegreya: titles and names */
.page-title, .row .name, .style-card .name, .pass-card .name, .pager .n, .principle > h3, .variation .label, .sheet-head h2, .glossary dt {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.01em;
}

/* ---------- Icons ---------- */
.i {
  display: inline-block; flex: none; width: 1.15em; height: 1.15em; vertical-align: -0.2em;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.i-arrow-left { --icon: var(--i-arrow-left); }
.i-arrow-right { --icon: var(--i-arrow-right); }
.i-play { --icon: var(--i-play); }
.i-clock { --icon: var(--i-clock); }
.i-download { --icon: var(--i-download); }
.i-info { --icon: var(--i-info); }
.i-x { --icon: var(--i-x); }
.i-house { --icon: var(--i-house); }
.i-list { --icon: var(--i-list); }
.i-taichi { --icon: var(--i-taichi); }
.i-share { --icon: var(--i-share); }
.i-dots-v { --icon: var(--i-dots-v); }
.i-dots { --icon: var(--i-dots); }
.i-add { --icon: var(--i-add); }
.i-phone { --icon: var(--i-phone); }
.i-sound { --icon: var(--i-sound); }
.i-sound-off { --icon: var(--i-sound-off); }
.i-check { --icon: var(--i-check); }
.i-repeat { --icon: var(--i-repeat); }
.i-pause { --icon: var(--i-pause); }
.i-waveform { --icon: var(--i-waveform); }
.i-music { --icon: var(--i-music); }
.i-nav-hem { --icon: var(--i-nav-hem); }
.i-nav-pass { --icon: var(--i-nav-pass); }
.i-nav-ovningar { --icon: var(--i-nav-ovningar); }
.i-nav-installningar { --icon: var(--i-nav-installningar); }
.i-nav-info { --icon: var(--i-nav-info); }

/* ---------- Page heading ---------- */
.page-head { padding: var(--sp-6) 0 var(--sp-6); }
/* title with a ✕ on the right (Inställningar, Integritet) */
/* the ✕ sits exactly where the cog is on Hem, so the same tap opens and closes; the title keeps its usual place */
.page-head.with-close { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); padding-top: var(--sp-3); }
.page-head.with-close .page-title { margin-top: calc(var(--sp-6) - var(--sp-3)); }
.page-head.with-close .icon-btn { background: transparent; color: var(--muted); }
.page-head.with-close .icon-btn:hover { background: var(--surface); color: var(--ink); }
.home-logo { display: block; width: min(100%, 22rem); height: auto; margin: 0 auto; border-radius: var(--r-card); }

/* ---------- Hem: an overview ---------- */
.home-top { display: flex; justify-content: center; padding: var(--sp-3) 0 var(--sp-6); }
.home-brand .home-logo { width: 8.5rem; margin: 0; border-radius: 0; }
.list + .section-title, .style-cards + .section-title, .week-card + .section-title { margin-top: var(--sp-6); }
/* Din vecka: a dot per pass towards the week's goal, and the last pass to run again */
.week-card {
  display: block; padding: var(--sp-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
}
.week-count { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); font-family: var(--display); font-size: 1.125rem; line-height: 1.3; }
.week-dots { display: flex; gap: 6px; }
.week-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--accent); }
.week-dot.done { background: var(--accent); }
.week-last { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-4); }
.week-last p, .week-note { font-size: 0.875rem; color: var(--muted); }
.week-last .btn { flex: none; }
.week-note { margin-top: var(--sp-2); max-width: 28rem; }
/* Dagens tanke: one line (advice from "Innan du börjar" or a quote) – no card, a big ” above */
.tip { margin: 0; }
.tip blockquote { margin: 0; }
.tip blockquote::before {
  content: "\201D"; display: block; height: 0.5em; margin-bottom: var(--sp-2);
  font-family: var(--display); font-size: 3.5rem; line-height: 1; color: var(--accent);
}
.tip p { font-family: var(--display); font-size: 1.375rem; line-height: 1.35; max-width: 26rem; text-wrap: pretty; }
.tip figcaption { margin-top: var(--sp-3); font-size: 0.875rem; color: var(--muted); }
.tip figcaption a { text-decoration: underline; text-underline-offset: 2px; }
.tip figcaption a:hover { color: var(--ink); }
/* Kung Fu and Tai Chi side by side, each opening its own page of passes */
.style-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.style-card {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 7rem; padding: var(--sp-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: border-color 200ms ease;
}
.style-card:hover { border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.style-card .name { font-size: 1.5rem; line-height: 1.15; }
.style-card .sub { margin-top: 2px; font-size: 0.875rem; color: var(--muted); }
.style-switch { margin-top: var(--sp-4); margin-bottom: var(--sp-1); }
/* "Nytt i appen" (index.json → news), until it's closed */
.news-card {
  position: relative; margin-bottom: var(--sp-6); padding: var(--sp-5); padding-right: calc(var(--sp-5) + 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
}
.news-title { font-family: var(--display); font-size: var(--name-size); line-height: 1.2; }
.news-card p { margin-top: var(--sp-1); color: var(--muted); }
.news-card .banner-close { color: var(--muted); }
.news-card .banner-close:hover { color: var(--ink); }
/* Pass cards: the whole card opens the pass. Every card in a list is as tall as the
   tallest (rows of 1fr). */
.pass-list { display: grid; grid-auto-rows: 1fr; gap: var(--gap); }
.pass-list > li { position: relative; display: grid; margin: 0; overflow: hidden; transition: border-color 200ms ease; }
.pass-list > li:hover { border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.pass-card { display: flex; align-items: center; min-height: 6rem; padding: var(--sp-5); }
.pass-card:has(.pass-art) { min-height: 9.5rem; }
.pass-card:focus-visible { outline-offset: -4px; border-radius: var(--r-card); } /* inside: the card clips the drawing, and would clip the ring */
.pass-text { position: relative; z-index: 1; display: flex; flex-direction: column; }
.pass-card .name { font-size: 1.5rem; line-height: 1.15; }
.pass-card .sub { margin-top: var(--sp-1); font-size: 0.9375rem; line-height: 1.35; color: var(--muted); text-wrap: pretty; }
/* The drawing: a quiet touch in the background on the right, placed the same way on every
   card whatever the text (which may lie on top of it). Each animal gives the box its ink
   fills in its 512 px canvas – right edge --x1, top --y0, bottom --y1 – and
   --k = 512 / √(ink width × height), which gives every animal the same area on screen
   (--s × --s): the wide turtle doesn't outweigh the tall crane. Its right edge lands --bleed
   past the card's, and it stands on the bottom edge, a little through it; a tall one stops
   with its head --inset from the top instead (and more of its feet go). */
.pass-art {
  --s: clamp(10rem, 46vw, 13rem); --bleed: 1.25rem; --inset: var(--sp-3);
  --w: calc(var(--s) * var(--k));
  position: absolute; width: var(--w); aspect-ratio: 1;
  left: calc(100% + var(--bleed) - var(--w) * var(--x1) / 512);
  top: calc(max(var(--inset), 100% + 0.5rem - var(--w) * (var(--y1) - var(--y0)) / 512) - var(--w) * var(--y0) / 512);
  background: color-mix(in srgb, var(--emblem) 15%, transparent); pointer-events: none; /* just there */
  -webkit-mask: var(--pass-art) center / contain no-repeat;
  mask: var(--pass-art) center / contain no-repeat;
}
.pass-art.pass-emblem-apa { --x1: 484; --y0: 46; --y1: 473; --k: 1.162; }
.pass-art.pass-emblem-tiger { --x1: 493; --y0: 103; --y1: 399; --k: 1.388; }
.pass-art.pass-emblem-bjorn { --x1: 473; --y0: 135; --y1: 405; --k: 1.499; }
.pass-art.pass-emblem-trana { --x1: 489; --y0: 43; --y1: 482; --k: 1.177; }
.pass-art.pass-emblem-koi { --x1: 485; --y0: 53; --y1: 469; --k: 1.173; }
.pass-art.pass-emblem-skoldpadda { --x1: 494; --y0: 164; --y1: 378; --k: 1.613; }
.pass-emblem {
  flex: none; display: block; width: 64px; height: 64px; background: var(--ink);
  -webkit-mask: var(--pass-art) center / contain no-repeat;
  mask: var(--pass-art) center / contain no-repeat;
}
.pass-emblem-apa { --pass-art: url("icons/workouts/apa.png"); }
.pass-emblem-tiger { --pass-art: url("icons/workouts/tiger.png"); }
.pass-emblem-bjorn { --pass-art: url("icons/workouts/bjorn.png"); }
.pass-emblem-trana { --pass-art: url("icons/workouts/trana.png"); }
.pass-emblem-koi { --pass-art: url("icons/workouts/koi.png"); }
.pass-emblem-skoldpadda { --pass-art: url("icons/workouts/skoldpadda.png"); }
.pass-title { display: flex; align-items: center; gap: var(--sp-4); }
.pass-title .pass-emblem { width: 96px; height: 96px; }
.row-icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--bg); color: var(--emblem);
}
.row-icon .i { width: 22px; height: 22px; }

/* ---------- Övningar + Inställningar ---------- */
.chips + .chips { margin-top: calc(var(--sp-5) * -1 + var(--sp-2)); }
.empty { color: var(--muted); padding: var(--sp-5) 0; }
.settings-group + .settings-group { margin-top: var(--sp-6); }
.settings-group .lead { margin-top: 0; }
.list.settings-links { margin-top: var(--sp-6); }
.settings-group .voice-choice { margin-top: 0; }
/* a status and its action, as a card like the rows below */
.settings-card { padding: var(--sp-4) var(--sp-5) var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.settings-card p { color: var(--muted); }
.settings-card .sheet-link { margin-top: var(--sp-3); }
.app-version { margin-top: var(--sp-3); font-size: 0.8125rem; }
.tester-note { margin-top: var(--sp-6); font-size: 0.8125rem; color: var(--muted); }
.tester-note a { text-decoration: underline; text-underline-offset: 2px; }
.tester-note summary { cursor: pointer; width: fit-content; }

/* ---------- Installera appen ---------- */
.install-banner {
  position: relative; display: flex; gap: var(--sp-4); align-items: flex-start;
  margin-bottom: var(--sp-6); padding: var(--sp-5); padding-right: var(--sp-6);
  border-radius: var(--r-card); background: var(--chrome); color: var(--on-chrome);
}
.install-banner .row-icon { width: auto; height: auto; background: none; color: var(--on-chrome); }
.install-banner .row-icon .i { width: 28px; height: 28px; }
.install-banner-body { min-width: 0; }
.install-banner-title { font-family: var(--display); font-size: var(--name-size); line-height: 1.2; }
.install-banner p { margin-top: var(--sp-1); font-size: 0.875rem; color: var(--on-chrome-muted); }
.install-banner-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.install-banner .btn { background: var(--chrome-active); color: var(--on-chrome-active); }
.install-banner .btn.ghost { background: transparent; color: var(--on-chrome); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-chrome) 35%, transparent); }
.banner-close {
  position: absolute; top: var(--sp-2); right: var(--sp-2); display: grid; place-items: center;
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--on-chrome-muted); cursor: pointer;
}
.banner-close:hover { color: var(--on-chrome); }
.install-now { margin-top: var(--sp-5); }
/* opened inside Messenger & co: nothing below works until they switch browser */
.install-inapp {
  margin-top: var(--sp-4); padding: var(--sp-4); border-radius: var(--r-card);
  background: var(--surface); border: 2px solid var(--accent); color: var(--ink);
}
.install-inapp strong { font-weight: 600; }
.install-tabs { margin-bottom: var(--sp-5); }
.install-tabs button[aria-selected="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 3px color-mix(in srgb, var(--shadow) 12%, transparent); }
.install-steps strong { font-weight: 600; }
.key-icon {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 2px; vertical-align: middle;
  border-radius: 8px; background: var(--field); border: 1px solid var(--line); color: var(--ink); margin-right: 2px;
}
.key-icon .i { width: 18px; height: 18px; }
.install-shot { display: block; width: min(100%, 16rem); margin-top: var(--sp-3); border-radius: var(--r-card); border: 1px solid var(--line); }
/* the guide's clip: a phone screen, so phone-like corners; a play button only while paused */
.install-video {
  position: relative; display: block; width: min(100%, 15rem); margin: 0 auto var(--sp-5); padding: 0;
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--field); cursor: pointer;
}
.install-video video { display: block; width: 100%; height: auto; }
.install-video-play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent); color: var(--on-accent);
  box-shadow: 0 2px 12px color-mix(in srgb, var(--shadow) 30%, transparent);
  opacity: 0; transition: opacity 0.2s;
}
.install-video-play .i { width: 28px; height: 28px; margin-left: 3px; /* a triangle looks centred a bit right */ }
.install-video.paused .install-video-play { opacity: 1; }
.tester-form { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.tester-form input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 var(--sp-4); border: 1px solid var(--line);
  border-radius: var(--r-pill); background: var(--field); color: var(--ink); font: inherit; font-size: 16px; /* 16px: iOS won't zoom */
}
.eyebrow { font-size: 0.875rem; font-weight: 600; color: var(--muted); margin-bottom: var(--sp-3); }
.page-title { font-size: var(--display-size); line-height: 1.05; }
.lead { margin-top: var(--sp-3); color: var(--muted); max-width: 28rem; }
.lead + .lead { margin-top: var(--sp-2); }
/* what a pass says about doing this exercise ("Börja långsamt … i set 1"), under the amount */
.dose-how { margin-top: var(--sp-3); max-width: 28rem; }
.dose-how p + p, .run-how p + p { margin-top: var(--sp-2); }
.meta { margin-top: var(--sp-5); font-size: 0.875rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; }
.meta > span { display: inline-flex; align-items: center; gap: 6px; }
.meta > span + span::before { content: "·"; margin: 0 0.6em; color: var(--faint); }

.section { margin-top: var(--sp-6); }
.section-title { font-size: 0.875rem; font-weight: 600; color: var(--accent); padding-bottom: var(--sp-3); }

/* ---------- Card lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
/* two lists in a row are two groups: Pass's passes, then "Innan du börjar" */
.list + .list { margin-top: var(--sp-5); }
.list > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: var(--gap); }
/* an exercise in no pass: an open, dashed card – outside the set – plus a badge */
.list > li.no-pass { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.badge {
  display: inline-block; margin-top: var(--sp-2); padding: 2px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--field); color: var(--muted); font-size: 0.75rem; font-weight: 600;
}
.row { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); min-height: 80px; }
.row .name { font-size: var(--name-size); line-height: 1.15; }
.row .sub { margin-top: 2px; font-size: 0.875rem; color: var(--muted); }
.row .arrow { margin-left: auto; color: var(--faint); transition: transform 200ms ease, color 200ms ease; }
.row:hover .arrow { color: var(--accent); transform: translateX(3px); }
.row .num {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: 0.9375rem; font-weight: 600;
}

.thumb-frame {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px;
  background: var(--paper); border-radius: 12px; padding: 4px; isolation: isolate; overflow: hidden;
}
.thumb { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.thumb-video {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px;
  background: var(--bg); border-radius: 12px; color: var(--accent);
}


/* ---------- Filter chips (Övningar) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: calc(var(--sp-5) * -1) 0 var(--sp-5); }
.chip {
  min-height: 36px; padding: 0 var(--sp-4); border-radius: var(--r-pill); cursor: pointer;
  border: 0; background: var(--surface); font-size: 0.875rem; font-weight: 500;
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* ---------- Exercise ---------- */
.figure { margin: 0; padding: var(--sp-5); display: grid; gap: var(--sp-6); background: var(--paper); border-radius: var(--r-big); }
.figure img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; }

.videos { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.video-link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 48px; padding: 0 var(--sp-5) 0 var(--sp-4);
  border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); cursor: pointer;
  font-size: 0.875rem; font-weight: 600;
}
.video-frame { margin-top: var(--sp-5); }
.video-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-card); }
.video-note { margin-top: var(--sp-3); font-size: 0.875rem; color: var(--muted); }

.focus { margin-bottom: var(--sp-4); color: var(--muted); }

/* Ordered instructions: numbered cards */
.instructions { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.instructions li {
  display: grid; grid-template-columns: auto 1fr; gap: 0 var(--sp-4);
  background: var(--surface); border-radius: var(--r-card); margin-bottom: var(--gap); padding: var(--sp-5);
}
.instructions li::before {
  counter-increment: step; content: counter(step);
  align-self: start; min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
  font-size: 0.9375rem; font-weight: 600; line-height: 1;
}
.instructions li[data-n]::before { content: attr(data-n); }
.instructions h3 { font-size: var(--body-size); font-weight: 600; margin-bottom: var(--sp-1); }
.instructions li > div { min-width: 0; padding-top: 3px; }

.notes { padding: var(--sp-2) var(--sp-1) 0; }
.notes p + p { margin-top: var(--sp-4); }
.variation { background: var(--surface); border-radius: var(--r-card); padding: var(--sp-5); margin-bottom: var(--gap); }
.variation .label { display: block; font-size: var(--name-size); line-height: 1.2; margin-bottom: var(--sp-1); }

/* Glossary words inside exercise text */
.gloss {
  display: inline; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit;
  text-decoration: underline dotted var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.25em;
}
.gloss:hover { color: var(--accent); }

/* ---------- Pager ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: var(--sp-6); }
.pager a { display: block; background: var(--surface); border-radius: var(--r-card); padding: var(--sp-4) var(--sp-5); }
.pager .next { text-align: right; grid-column: 2; }
.pager .k { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.pager .n { display: block; font-size: var(--name-size); line-height: 1.2; }

/* ---------- Innan du börjar ---------- */
.principle + .principle { margin-top: var(--sp-6); }
.principle > h3 { font-size: 1.5rem; margin-bottom: var(--sp-4); }
.principle > .lead { margin: calc(var(--sp-2) * -1) 0 var(--sp-4); }
/* tips, not steps in an order: one card per section, no numbers, a hairline between points */
.points { list-style: none; margin: 0; padding: 0 var(--sp-5); background: var(--surface); border-radius: var(--r-card); }
.points li { padding: var(--sp-4) 0; }
.points li + li { border-top: 1px solid var(--line); }
.points h4 { margin: 0 0 var(--sp-1); font-size: var(--body-size); font-weight: 600; }
.animal-point { display: flex; align-items: center; gap: var(--sp-4); }
.animal-point .pass-emblem { width: 56px; height: 56px; }
.animal-point h4 { font-family: var(--display); font-size: var(--name-size); line-height: 1.2; margin-bottom: 2px; }
.animal-point p { color: var(--muted); }

/* ---------- Ordbok ---------- */
.glossary { margin: 0; }
.glossary .term { background: var(--surface); border-radius: var(--r-card); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--gap); }
.glossary dt { font-size: var(--name-size); line-height: 1.2; }
.glossary dd { margin: var(--sp-1) 0 0; color: var(--muted); }

/* ---------- Single-term sheet ---------- */
html:has(.sheet[open]) { overflow: hidden; }
.sheet {
  width: 100%; max-width: 100%; max-height: 88dvh; margin: auto 0 0; padding: 0;
  border: 0; border-radius: 28px 28px 0 0;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 -8px 40px rgb(0 0 0 / 0.12);
}
.sheet::backdrop { background: color-mix(in srgb, var(--shadow) 50%, transparent); }
.sheet[open] { animation: sheet-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.sheet[open]::backdrop { animation: fade-in 280ms ease; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

.sheet-inner { max-width: calc(var(--measure) + var(--gutter) * 2); margin: 0 auto; padding: var(--sp-3) var(--gutter) calc(var(--sp-6) + env(safe-area-inset-bottom)); }
.sheet-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--faint); opacity: 0.5; margin: 0 auto var(--sp-3); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0 var(--sp-3); }
.sheet-head h2 { font-size: 1.875rem; line-height: 1.05; }
.sheet-head h2:focus { outline: none; }
.sheet-close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: var(--r-pill); background: var(--bg); cursor: pointer;
}
.sheet-link {
  display: inline-flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-5);
  min-height: 44px; padding: 0 var(--sp-5) 0 var(--sp-4); border-radius: var(--r-pill);
  background: var(--bg); font-size: 0.875rem; font-weight: 500;
}
.sheet-link .i { color: var(--accent); }
button.sheet-link { border: 0; cursor: pointer; color: var(--ink); }

/* ---------- Live-coach consent + privacy ---------- */
.consent-points { margin: 0; padding-left: 1.2em; display: grid; gap: var(--sp-3); }
.consent-points li::marker { color: var(--accent); }
.consent-yes { margin-top: var(--sp-5); }
.consent-or { margin: var(--sp-5) 0 0; color: var(--muted); font-size: 0.875rem; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); }
.consent-actions .sheet-link { margin-top: 0; }
.privacy .sheet-link { background: var(--surface); }

@media (min-width: 640px) {
  .sheet { max-width: calc(var(--measure) + var(--gutter) * 2); margin: auto; border-radius: 28px; box-shadow: 0 20px 60px rgb(0 0 0 / 0.18); }
  .sheet-grab { display: none; }
  .sheet-inner { padding-top: var(--sp-5); padding-bottom: var(--sp-6); }
}

/* ---------- Floating bottom nav ---------- */
.tabbar {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 26rem); height: var(--nav-h);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px;
  background: var(--chrome);
  border-radius: var(--r-pill);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--shadow) 22%, transparent);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: var(--r-pill); color: var(--on-chrome-muted);
  font-size: 0.6875rem; font-weight: 600; line-height: 1;
  transition: background 200ms ease, color 200ms ease;
}
.tab .i { width: 22px; height: 22px; }
/* "Inställningar" only just fits a quarter of a 320 px phone */
@media (max-width: 359px) { .tab { font-size: 0.625rem; } }
.tab:hover { color: var(--on-chrome); }
.tab[aria-current="page"] { background: var(--chrome-active); color: var(--on-chrome-active); }

/* ---------- Voice mode picker (pass page + sheet in the session) ---------- */
.mode-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); margin-top: var(--sp-5); }
.mode {
  display: grid; justify-items: start; align-content: start; gap: 2px; text-align: left;
  padding: var(--sp-3); border: 0; border-radius: var(--r-card); background: var(--surface); cursor: pointer;
}
.mode .i { width: 24px; height: 24px; margin-bottom: var(--sp-1); }
.mode-label { font-weight: 600; font-size: 0.9375rem; line-height: 1.2; }
.mode-sub { font-size: 0.75rem; line-height: 1.3; color: var(--muted); }
.mode[aria-checked="true"] { background: var(--accent); color: var(--on-accent); }
.mode[aria-checked="true"] .mode-sub { color: inherit; opacity: 0.8; }
.sheet .mode-picker { margin-top: var(--sp-2); }

/* pass page: a small segmented control – Starta pass is the main action */
.voice-choice { margin-top: var(--sp-5); }
.segmented {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px;
  border-radius: var(--r-pill); background: var(--surface);
}
.segmented button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--sp-3);
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted);
  font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.segmented button .i { width: 16px; height: 16px; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-checked="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 3px color-mix(in srgb, var(--shadow) 12%, transparent); }
.segmented button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mode-hint { margin-top: var(--sp-2); font-size: 0.8125rem; color: var(--muted); }
/* Utseende: four tiles, each a tiny phone screen in its own theme (a card, a
   button, the tab bar with its current-tab pill). The colours are fixed per
   tile, not tokens: a tile shows its theme whichever theme is on. */
.theme-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); max-width: 24rem; }
.theme-opt {
  display: grid; gap: var(--sp-2); padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: 0.8125rem; font-weight: 600; text-align: center;
}
.theme-opt:hover, .theme-opt[aria-checked="true"] { color: var(--ink); }
.theme-preview {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 12px; background: var(--t-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent);
  transition: box-shadow 160ms ease;
}
.theme-preview span { position: absolute; display: block; border-radius: var(--r-pill); }
.theme-preview .tp-card { left: 14%; right: 14%; top: 14%; height: 28%; border-radius: 6px; background: var(--t-surface); }
.theme-preview .tp-btn { left: 14%; top: 50%; width: 48%; height: 11%; background: var(--t-accent); }
.theme-preview .tp-bar { left: 10%; right: 10%; bottom: 9%; height: 15%; background: var(--t-chrome); }
.theme-preview .tp-tab { left: 6%; top: 18%; bottom: 18%; width: 32%; background: var(--t-active); }
/* chosen: a ring around the tile, with a gap so it reads on any tile colour */
.theme-opt[aria-checked="true"] .theme-preview { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.theme-opt:focus-visible { outline: none; }
.theme-opt:focus-visible .theme-preview { outline: 2px solid var(--ink); outline-offset: 6px; }
[data-theme-choice="papper"] { --t-bg: #f3efe6; --t-surface: #e9e3d6; --t-accent: #2a2926; --t-chrome: #2a2926; --t-active: #f3efe6; }
[data-theme-choice="siden"]  { --t-bg: #f6ebd6; --t-surface: #eedcd0; --t-accent: #9e2b2e; --t-chrome: #2f3d28; --t-active: #d9b27a; }
[data-theme-choice="lotus"]  { --t-bg: #eff2e8; --t-surface: #e1e9d8; --t-accent: #ad3a60; --t-chrome: #23473b; --t-active: #f2bccb; }
[data-theme-choice="wudang"] { --t-bg: #121614; --t-surface: #1c221f; --t-accent: #e9b949; --t-chrome: #262e2a; --t-active: #e9b949; }
/* the cross-fade when switching theme */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
/* the voice choice and the music switch side by side; they wrap on narrow phones */
.voice-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
/* music on/off: a pill as tall as the segmented control, its state spelled out */
.music-switch {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 6px 0 var(--sp-3);
  border: 0; border-radius: var(--r-pill); background: var(--surface); color: var(--ink);
  font-size: 0.8125rem; font-weight: 600; cursor: pointer;
}
.music-switch .i { width: 16px; height: 16px; }
.music-switch .music-state {
  min-width: 2.6em; padding: 6px 10px; border-radius: var(--r-pill); text-align: center;
  background: var(--raised); box-shadow: 0 1px 3px color-mix(in srgb, var(--shadow) 12%, transparent);
}
.music-switch[aria-checked="false"] { color: var(--muted); }
.music-switch[aria-checked="false"] .music-state { background: transparent; box-shadow: none; }
.music-switch:hover { color: var(--ink); }
.music-switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sheet-music { margin-top: var(--sp-4); }
.credits, .home-note { margin-top: var(--sp-6); font-size: 0.8125rem; color: var(--muted); }
.credits a, .home-note a { text-decoration: underline; text-underline-offset: 2px; }
.privacy-link { display: block; width: fit-content; margin-top: var(--sp-2); text-decoration: underline; text-underline-offset: 2px; }
.sheet .mode { background: var(--bg); }
.sheet .mode[aria-checked="true"] { background: var(--accent); }

/* ---------- Guided session ("Starta pass") ---------- */
.start-btn { margin-top: var(--sp-5); min-height: 52px; padding: 0 var(--sp-6) 0 var(--sp-5); font-size: 1rem; }

body.in-session .tabbar { display: none; }
body.in-session main { padding-top: calc(var(--sp-4) + env(safe-area-inset-top)); padding-bottom: calc(var(--nav-space) + var(--sp-5)); }

.run-top { display: flex; align-items: center; gap: var(--sp-3); min-height: 44px; }
.run-count { flex: 1; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.icon-btn {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: var(--r-pill); background: var(--surface); cursor: pointer;
}
.icon-btn .i { width: 22px; height: 22px; }
.run-progress { display: flex; gap: 4px; margin: var(--sp-3) 0 var(--sp-5); }
.run-progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.run-progress span.done { background: var(--accent); }
.run-progress span.now { background: var(--accent); opacity: 0.45; }

.run-figure { margin: 0; padding: var(--sp-4); background: var(--paper); border-radius: var(--r-big); }
.run-figure img { display: block; width: 100%; height: auto; max-height: 38vh; object-fit: contain; }
.run-figure + .run-figure { margin-top: var(--gap); }
.run-name { margin-top: var(--sp-5); font-size: 2rem; line-height: 1.05; }
.run-dose { margin-top: var(--sp-2); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.run-how { margin-top: var(--sp-2); max-width: 32rem; }

.run-lines { margin-top: var(--sp-5); }
.run-lines li { transition: opacity 250ms ease, transform 250ms ease; }
.run-lines.speaking li:not(.now) { opacity: 0.45; }
.run-lines li.now { box-shadow: inset 0 0 0 2px var(--accent); }


.run-controls {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 26rem); height: var(--nav-h);
  display: grid; grid-template-columns: 52px 52px 1fr 52px; gap: 6px; padding: 6px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-radius: var(--r-pill); box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 28px rgb(0 0 0 / 0.16);
}
.run-controls button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  border: 0; border-radius: var(--r-pill); background: none; cursor: pointer; font-weight: 600;
}
/* Tyst: ⟲ and pause are hidden (still in the page), so just back + Nästa */
.run-controls:not(:has([data-act="pause"]:not([hidden]))) { grid-template-columns: 52px 1fr; }
.run-controls button:disabled { opacity: 0.3; cursor: default; }
.run-controls .i { width: 24px; height: 24px; }
.run-controls .done-btn { background: var(--accent); color: var(--on-accent); font-size: 1.0625rem; }

/* live coach: status pill above the controls, and the coach's words as a caption */
.run-live {
  position: fixed; z-index: 41; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + var(--nav-h) + 10px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: var(--sp-2); max-width: calc(100% - 24px);
  min-height: 36px; padding: 0 var(--sp-4); border-radius: var(--r-pill);
  background: var(--surface); font-size: 0.8125rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.12);
}
.run-live[hidden] { display: none; }
.run-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.run-live[data-state="listening"] .dot { background: #2f8f4e; animation: pulse 1.6s ease-in-out infinite; }
.run-live[data-state="speaking"] .dot { background: var(--accent); }
.run-live[data-state="fallback"] { white-space: normal; text-align: center; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: 0.5; } }
.run-say {
  margin-top: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-card);
  background: var(--surface); font-size: 1.0625rem; line-height: 1.5;
}
.run-say[hidden] { display: none; }
.run-type { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.run-type input { flex: 1; min-height: 44px; padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill); background: var(--surface); font: inherit; }

.run-ready, .run-finish { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: var(--sp-4); }
.run-ready .lead, .run-finish .lead { margin: 0; }
.run-finish .actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-3); }
.btn.ghost { background: var(--surface); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .run-live .dot { animation: none !important; }
  .run-lines li { transition: none; }
}

/* ---------- Install hint ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 44px; padding: 0 var(--sp-5); border-radius: var(--r-pill); cursor: pointer;
  border: 0; background: var(--accent); color: var(--on-accent); font-size: 0.875rem; font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .sheet[open], .sheet[open]::backdrop { animation: none; }
  .tab, .row .arrow { transition: none; }
}

@media (min-width: 640px) {
  :root { --gutter: 32px; --display-size: 3.5rem; }
}
