/* Provamer landing, direction A: a printed prov and the teacher's red pen. Tokens, type, header, buttons, sky, Frågor, last call, footer. */

/* Fonts, with fallback faces that carry the metrics of the real ones */
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-roman.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-italic.woff2') format('woff2'); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-sans.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader Georgia'; src: local('Georgia'); size-adjust: 93%; ascent-override: 79%; descent-override: 28.5%; line-gap-override: 0%; }
@font-face { font-family: 'Newsreader Times'; src: local('Times New Roman'), local('Times'), local('Liberation Serif'), local('Tinos'); size-adjust: 103%; ascent-override: 71.4%; descent-override: 25.7%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Sans Arial'; src: local('Arial'), local('Helvetica'), local('Liberation Sans'), local('Arimo'); size-adjust: 101.5%; ascent-override: 95.6%; descent-override: 24.6%; line-gap-override: 0%; }
@font-face { font-family: 'Caveat'; src: url('fonts/caveat-notes.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  /* Paper and ink */
  --paper: #f6f5f1;                       /* copy paper */
  --paper-lit: #f1f6f8;                   /* copy paper at the top of a sheet, where the sky's light reaches it */
  --sheet: #ffffff;                       /* a printed sheet */
  --ink: #1b2026;                         /* print ink, 15:1 on the paper */
  --ink-2: #4f5760;                       /* second ink, 6.7:1 on the paper */
  --rule: rgba(27, 32, 38, 0.13);         /* a hairline */
  --line-strong: rgba(27, 32, 38, 0.26);  /* a control's edge */
  --pen: #d0212b;                         /* the correction pen: strokes and ticks only */
  --accent: #1b2026;                      /* the kit's accent: ink */
  --btn: #1b2026;
  --btn-hover: #323a43;
  --btn-ink: #f6f5f1;
  /* The morning sky, in the hue of the replica's own (197 degrees): deep overhead, pale toward the horizon, and the sun low on the left. It stays pale at the foot, so that paper reads against it */
  --sky-0: #4aa3dd;                       /* overhead: the top edge of the window, behind the header */
  --sky-1: #78c0ea;
  --sky-2: #a6d7f1;
  --sky-3: #cde7f4;
  --sky-4: #e6f1f5;                       /* the horizon at the foot of the window */
  --ink-2-sky: #2d353d;                   /* second ink where it sits on the sky: 7.6:1 at rest at 1440, 5.2:1 at 390; the darkest pixel under it is 4.1:1 (a phone) to 4.2:1 (a desktop) only while the line crosses the header's foot, where the sky is deepest (README section 3, the colour table) */
  /* Type */
  --serif: 'Newsreader', 'Newsreader Georgia', 'Newsreader Times', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', 'Instrument Sans Arial', Arial, system-ui, sans-serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
  --display: var(--serif);
  --t-1: 1.25rem; --t-3: 1.953rem; --t-4: 2.441rem;   /* the steps of a major third (1.25) in use: 20, 31, 39 px */
  /* Space: an 8 px base */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --gutter: 20px;                         /* a phone: the text is 16 px in from the paper's edge, which is 4 px from the screen's */
  --frame: 1360px;                        /* 12 columns, 24 px between them */
  --header-h: 56px;                       /* 64 px from 900 px */
  --nav-gap: 32px;                        /* the header: wordmark to Funktioner, at every width from 900 px; the room left over is before Logga in */
  --bar-gap: 14px;                        /* between a demo's bar and its window (10 px on a short screen, below); a section's demos have 12 and 8 (README section 4) */
  --digit: 0.5em;                         /* the advance of a lining tabular figure in Newsreader: the demo bar's numerals */
  --fit-air: 3px;                         /* paper the fit rule leaves under a figure (README section 7) */
  /* Radii by role */
  --radius-sheet: 12px;                   /* a sheet of paper on the sky, and what hangs from the pill: the Funktioner list, the phone menu (16 px from 600 px) */
  --radius-ctl: 6px;                      /* buttons and fields */
  --radius-pill: 999px;                   /* the header's pill */
  --radius-window: 22px;                  /* the app's own window: the kit's value, listed here for the table; this CSS does not set it */
  /* The sheets lie on the sky: 20 px of it outside the content's edge from 600 px, 16 px on a phone (4 px from the screen's); the header's pill is on the same edges */
  --edge-x: calc(max(var(--gutter), (100% - var(--frame)) / 2) - 20px);
  --sheet-min: 4px; --sheet-x: var(--sheet-min); --sheet-top: 10px; --sheet-foot: 20px;   /* the sky beside a sheet (at least 4 px on a phone, 8 from 600 px), above it, and under its stacked edge */
  --sheet-out: calc(var(--gutter) - var(--sheet-min));   /* the paper beyond the content's edge: 16 px on a phone, 20 from 600 (a chapter's sheet is drawn from the content's box) */
  --sheet-pad: var(--s5);                /* the paper above a sheet's first cap height and below its last baseline, rule or window: one rhythm on every sheet (64 px from 900 px; README section 4) */
  --pill-y: 4px;                          /* the sky above and under the header's pill (7 px from 900 px) */
  --leaf-1: #ebe9e2; --leaf-2: #d6d3ca; --leaf-3: #bcb9b0; --leaf-line: rgba(18, 74, 120, 0.34);   /* the sheets under the top one, seen as 2 px leaves at its foot, darker the deeper they lie */
  --sheet-bg: linear-gradient(180deg, var(--paper-lit) 0, var(--paper) 300px), var(--paper);   /* the morning in the paper: the sky's cool at the top edge, gone after 300 px */
  --sheet-shadow:
    inset 0 1px 0 #fff,
    0 3px 0 -1px var(--leaf-1), 0 4px 0 -1px var(--leaf-line),
    0 7px 0 -2px var(--leaf-2), 0 8px 0 -2px var(--leaf-line),
    0 11px 0 -3px var(--leaf-3),
    0 0 0 1px rgba(255, 255, 255, 0.55), 0 1px 2px rgba(18, 74, 120, 0.1), 0 22px 44px -22px rgba(18, 74, 120, 0.4);   /* lit top edge, stacked edge of three leaves, ring, soft shadow */
  /* Shadows by role: a sheet on a desk, and the lifted list */
  --shadow-sheet: 0 0 0 0.5px rgba(27, 32, 38, 0.16), 0 1px 2px rgba(27, 32, 38, 0.14), 0 4px 10px -3px rgba(27, 32, 38, 0.12), 0 30px 60px -24px rgba(27, 32, 38, 0.36);
  --shadow-lift: 0 0 0 0.5px rgba(27, 32, 38, 0.14), 0 2px 4px rgba(27, 32, 38, 0.06), 0 16px 32px -12px rgba(27, 32, 38, 0.2), 0 40px 64px -32px rgba(27, 32, 38, 0.24);
  /* Glass: the header's pill, the Funktioner list and the phone menu (README section 4). The blur is on those three boxes only, never full width */
  --glass: rgba(255, 255, 255, 0.68);     /* the pill at the top of the page, over the sky */
  --glass-dense: rgba(255, 255, 255, 0.8);   /* the pill once the page has scrolled, the list and the menu: still glass, a little denser over paper */
  --glass-pane: rgba(255, 255, 255, 0.84);   /* the Funktioner list */
  --glass-menu: rgba(250, 250, 248, 0.9);   /* the phone menu: denser still, it holds a long list */
  --glass-filter: blur(20px) saturate(1.25);
  --glass-filter-thick: blur(36px) saturate(1.25);   /* the list and the menu: larger panes over busier content, so a wider blur that leaves no shapes */
  --gap-filter: blur(8px) saturate(1.25);   /* the strip above the pill: what passes the gap goes soft into the pill */
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 0 0 0.5px rgba(27, 32, 38, 0.12);   /* lit top edge, inner glint, hairline */
  --glass-lift: 0 1px 2px rgba(18, 40, 60, 0.06), 0 8px 24px -10px rgba(18, 74, 120, 0.26), 0 24px 48px -28px rgba(18, 74, 120, 0.3);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-glide: cubic-bezier(0.32, 0.72, 0, 1);   /* a slide or a grow (the header's highlight, the list, the menu): quick off the mark, a long soft landing */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--serif); font-kerning: normal; -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--radius-ctl); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; text-wrap: balance; }
h1, h2 { font-optical-sizing: auto; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; font-weight: 600; }
.nobr { white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--frame) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 12px; top: -64px; z-index: 50; padding: 10px 14px; border-radius: var(--radius-ctl); background: var(--sheet); font: 500 15px/1.2 var(--sans); box-shadow: var(--shadow-lift); }
.skip:focus { top: 12px; }

/* Header: no transform, filter or backdrop-filter on it (they would trap the phone sheet's fixed positioning). Its box is the plain --header-h and never changes; the pill you see is
   its ::after, glass on the sheets' edges at every scroll position: what scrolls under it is blurred, nothing paints a sky of its own around it (README section 4). */
.wordmark { color: var(--ink); font: 600 22px/1 var(--serif); letter-spacing: -0.012em; text-decoration: none; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; }   /* sized as the old single link was: the header's measures at 320 px are main's */
.header-inner .wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.wordmark-mark { flex: none; width: auto; height: 28px; aspect-ratio: 1069 / 1011; }   /* the cloud octopus: its own aspect (not the attributes' 32 x 30), so the 1x and 2x files lay out alike and nothing shifts */
/* The octopus is a button that opens "Om oss" (README section 6, "The octopus"). Its box is the mark's, so the header's layout is unchanged; ::after widens the target to 41 x 44 px.
   octopus.js draws the octopus curling into the plus on .brand-swirl (absolute: it never moves the layout); without script or WebGL it is simply the button. */
.brand-mark { position: relative; display: block; flex: none; width: 30px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.brand-mark::after { content: ''; position: absolute; inset: -8px -4px -8px -7px; }
.brand-mark::before {   /* the header highlight's glass behind the plus, in step with the octopus (--swirl from octopus.js) */
  content: ''; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; pointer-events: none;
  background: rgba(27, 32, 38, 0.06); box-shadow: inset 0 0 0 0.5px rgba(27, 32, 38, 0.05); opacity: var(--swirl, 0); scale: calc(0.7 + 0.3 * var(--swirl, 0));
}
.brand-mark .wordmark-mark { display: block; }
.brand-mark:focus-visible { outline-offset: 4px; border-radius: 50%; }
.brand-swirl { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; opacity: 0; pointer-events: none; transition: scale 0.12s ease; }
.brand-mark:active .brand-swirl { scale: 0.9; }
.site-header {
  --pill-x: max(var(--sheet-min), var(--edge-x));   /* the sheets' edge: never closer than --sheet-min to the window's */
  position: sticky; top: 0; z-index: 30;
}
.site-header::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  top: var(--pill-y); bottom: var(--pill-y); left: var(--pill-x); right: var(--pill-x); border-radius: var(--radius-pill);
  background: var(--glass); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: var(--glass-edge), var(--glass-lift);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
/* The gap above the pill (--pill-y): what scrolls through it is blurred too, so a sheet or a demo passing there goes soft into the pill instead of showing a sharp, cut-off slice.
   A strip of backdrop blur from the window's top edge to under the pill's top, as wide as the pill and a 12 px overhang at each end (so the gap above the round ends is blurred too), masked out under the pill and in the overhang; no fill, so it paints no band (README section 4). */
.site-header::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  --gap-out: min(12px, var(--pill-x));   /* the overhang beyond each end of the pill (never past the window's edge) */
  --gap-mask-y: linear-gradient(180deg, #000 calc(100% - 16px), transparent);   /* full over the gap, fading out under the pill's top */
  --gap-mask-x: linear-gradient(90deg, transparent, #000 var(--gap-out), #000 calc(100% - var(--gap-out)), transparent);   /* whole over the pill's round ends, fading out in the overhang. Here, not on :root: --gap-out is this element's */
  top: 0; height: calc(var(--pill-y) + 18px); left: calc(var(--pill-x) - var(--gap-out)); right: calc(var(--pill-x) - var(--gap-out));
  -webkit-backdrop-filter: var(--gap-filter); backdrop-filter: var(--gap-filter);
  -webkit-mask: var(--gap-mask-y), var(--gap-mask-x); -webkit-mask-composite: source-in;
  mask: var(--gap-mask-y), var(--gap-mask-x); mask-composite: intersect;
}
.site-header.is-scrolled::after {   /* a little denser over paper, a slightly firmer hairline: still glass */
  background: var(--glass-dense);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 0 0 0.5px rgba(27, 32, 38, 0.16), 0 1px 2px rgba(18, 40, 60, 0.08), 0 10px 28px -12px rgba(18, 74, 120, 0.3), 0 28px 56px -30px rgba(18, 74, 120, 0.34);
}
html.menu-open .site-header::after { background: var(--glass-dense); }   /* the menu sheet lies under the pill; the page behind is dimmed */
/* No glass where the browser cannot blur, or where the visitor asks for less transparency (at the end of this file): opaque paper, the same edge */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { :root { --glass: #fcfcfa; --glass-dense: #fff; --glass-pane: #fff; --glass-menu: #fafaf8; } .site-header::before { display: none; } }
.header-inner { display: flex; align-items: center; gap: var(--s1); height: var(--header-h); }
.header-end { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.site-nav { display: none; font-family: var(--sans); }
.site-nav > a, .funk-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-pill);
  color: var(--ink-2); font: 500 15px/1.2 var(--sans); text-decoration: none; white-space: nowrap; transition: color 0.2s ease;
}
.site-nav > a:hover, .funk:hover .funk-link, .funk-toggle[aria-expanded="true"] { color: var(--ink); }
.site-nav a[aria-current="true"] { color: var(--ink); font-weight: 600; letter-spacing: -0.007em; }   /* the section in view: ink and semibold, no underline (it stood above the pen's own underline in the tab bar). The tracking takes back the extra width (1 px at 15 px), so the links beside it stay where they are */
/* One highlight for the whole nav (site.js adds it): it rests on the section in view and slides to whatever the pointer is on; it is the only cell there is.
   36 px high in the 50 px pill: 7 px of pill around it, as the button beside it has (concentric with the pill's ends) */
.site-nav > a, .funk { position: relative; }
.nav-glide {
  position: absolute; z-index: -1; top: 50%; left: 0; width: var(--glide-w, 0px); height: 36px; border-radius: var(--radius-pill); pointer-events: none;
  background: rgba(27, 32, 38, 0.06); box-shadow: inset 0 0 0 0.5px rgba(27, 32, 38, 0.05);
  opacity: 0; transform: translate(var(--glide-x, 0px), -50%);
  transition: transform 0.42s var(--ease-glide), width 0.42s var(--ease-glide), opacity 0.2s ease;
}
.nav-glide.is-on { opacity: 1; }
.nav-glide.is-placing { transition: opacity 0.2s ease; }   /* appearing from nothing: it fades in where it is wanted, it does not fly in from the last place */
.site-nav { position: relative; isolation: isolate; }

.funk { display: flex; align-items: center; }
.funk-link { padding-right: 4px; }
.funk-toggle {
  display: inline-grid; place-items: center; width: 32px; height: 44px; margin-right: 4px; padding: 0;
  border: 0; border-radius: var(--radius-pill); background: none; color: var(--ink-2); cursor: pointer; transition: color 0.2s ease;
}
.funk-toggle:hover { color: var(--ink); }
.funk-toggle:focus-visible { outline-offset: -3px; }   /* inside the button, clear of the last letter of Funktioner */
.funk-toggle:not(.is-ready) { visibility: hidden; }   /* keeps its room until the script shows it */
.chevron { transition: transform 0.32s var(--ease-glide); }
.funk-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* The list: a pane of the pill's glass that grows out of Funktioner, with the three groups side by side, named like the tabs (no numerals: the heading says the order); each demo an icon tile, its name and one line */
.funk-panel {
  position: absolute; top: calc(100% + 10px); left: -10px; z-index: 40; display: grid; grid-template-columns: repeat(3, max-content); column-gap: 4px; width: max-content;
  padding: 14px 10px 10px; border-radius: 22px;
  background: var(--glass-pane); -webkit-backdrop-filter: var(--glass-filter-thick); backdrop-filter: var(--glass-filter-thick);
  box-shadow: var(--glass-edge), 0 1px 2px rgba(18, 40, 60, 0.06), 0 18px 40px -16px rgba(18, 74, 120, 0.32), 0 40px 80px -40px rgba(18, 74, 120, 0.3);
  transform-origin: 118px 0;   /* the chevron (10 px of the pane's overhang, the word's 92 px, half the 32 px button): the pane grows out of the control it hangs from */
  animation: pane-in 0.26s var(--ease-glide) both;
}
.funk-panel::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; }   /* a bridge over the gap: the pointer on its way down stays inside .funk */
.funk-panel.is-closing { animation: pane-out 0.14s ease-in both; pointer-events: none; }
@keyframes pane-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
@keyframes pane-out { to { opacity: 0; transform: translateY(-3px) scale(0.98); } }
.funk-group { min-width: 0; }
.group-name {
  display: flex; align-items: baseline; gap: 0.6em; margin-bottom: var(--s1); padding: 0 8px; color: var(--ink-2);
  font: italic 400 16px/1.2 var(--serif); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
}
.funk-panel .group-name { padding: 0 12px; margin-bottom: 6px; }   /* the label on the tiles' edge and on the word Funktioner (the rows start on the highlight's edge, 10 px in) */
.funk-panel li { display: grid; }
.funk-panel li > * { grid-area: 1 / 1; }   /* the link and its line share one cell: the link is the whole row, the line is drawn over it and lets the pointer through */
.funk-panel li a {
  position: relative; display: flex; align-items: center; min-height: 56px; padding: 0 16px 18px 58px; border-radius: 12px;   /* 12: concentric with the pane's 22 px corner and its 10 px padding */
  color: var(--ink); font: 500 15px/1.3 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color 0.2s ease;
}
.funk-panel li a:hover { background: rgba(27, 32, 38, 0.045); }
.funk-panel li a:focus-visible { outline-offset: -2px; border-radius: 12px; }
.funk-tile {
  position: absolute; left: 12px; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 0.5px rgba(27, 32, 38, 0.12), 0 1px 2px rgba(18, 40, 60, 0.08); color: var(--ink-2);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.funk-tile svg { width: 17px; height: 17px; }
.funk-panel li a:hover .funk-tile, .funk-panel li a:focus-visible .funk-tile { background: #e3f1fa; color: #1b5f8c; box-shadow: inset 0 0 0 0.5px rgba(27, 95, 140, 0.28), 0 1px 2px rgba(18, 74, 120, 0.12); }   /* the sky's tint */
.funk-desc { align-self: end; margin: 0 16px 10px 58px; color: var(--ink-2); font: 400 13px/1.3 var(--sans); white-space: nowrap; pointer-events: none; }

.header-login {
  display: none; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-ctl);
  color: var(--ink); font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
}
.header-login:hover { text-decoration: underline; text-underline-offset: 0.35em; }

/* Phone: the wordmark, the button and the word Meny (a link to the footer list without script) */
.menu-control {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 0; border-radius: var(--radius-ctl);
  background: none; color: var(--ink); font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
}
.menu-control:focus-visible { outline-offset: -3px; }   /* inside: clear of the button beside it, which leaves no room at 320 px */
.menu-icon .icon-close { display: none; }
.menu-control[aria-expanded="true"] .icon-open { display: none; }
.menu-control[aria-expanded="true"] .icon-close { display: inline; }

/* The phone menu: a calm sheet under the header; the page behind stays put while it is open */
html.menu-open { overflow: hidden; }   /* the root only: on body too it becomes a scroll container, and the sticky header scrolls away with the page */
.header-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }
.menu-sheet {
  position: fixed; z-index: 25; top: var(--header-h); left: var(--sheet-min); right: var(--sheet-min); bottom: max(var(--sheet-min), env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px calc(var(--gutter) - var(--sheet-min)) 0; border-radius: var(--radius-sheet);   /* 6 px on top: room for the first link's focus ring */
  background: var(--glass-menu); -webkit-backdrop-filter: var(--glass-filter-thick); backdrop-filter: var(--glass-filter-thick);   /* the pill's glass, thicker. The page behind is locked, so the blur costs no scroll frame */
  box-shadow: var(--glass-edge), 0 0 0 100vmax rgba(14, 38, 58, 0.42);   /* the page behind is dimmed by the sheet's own shadow: no extra element */
  transform-origin: 50% 0; animation: sheet-in 0.34s var(--ease-glide) both;
}
/* Opening: the sheet grows down out of the pill while the dimming comes up, and the links follow it in, 24 ms apart. Closing is a quick fade (site.js waits for it) */
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px) scale(0.97); box-shadow: var(--glass-edge), 0 0 0 100vmax rgba(14, 38, 58, 0); } }
.menu-sheet.is-closing { animation: sheet-out 0.16s ease-in both; pointer-events: none; }
@keyframes sheet-out { to { opacity: 0; transform: translateY(-4px) scale(0.985); box-shadow: var(--glass-edge), 0 0 0 100vmax rgba(14, 38, 58, 0); } }
.menu-list > li, .menu-sub > * { animation: item-in 0.4s var(--ease-glide) both; animation-delay: calc(60ms + var(--i, 0) * 24ms); }
@keyframes item-in { from { opacity: 0; transform: translateY(6px); } }
.menu-list > li:nth-child(2) { --i: 1; } .menu-list > li:nth-child(3) { --i: 2; } .menu-list > li:nth-child(4) { --i: 3; } .menu-list > li:nth-child(5) { --i: 4; }
.menu-sub > * { --i: 5; }
.menu-list > li { border-bottom: 1px solid var(--rule); }
.menu-list > li > a { display: block; padding: 12px 0; color: var(--ink); font: 500 26px/1.15 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.menu-list > li > a[aria-current="true"] { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.menu-sub { padding: var(--s1) 0 var(--s2); }   /* after the links, so that they are all in view before the list of demos (README section 4) */
.menu-sub .group-name { margin: var(--s1) 0 2px; padding: 0; }
.menu-sub li a { display: block; min-height: 44px; padding: 11px 0; border-radius: var(--radius-ctl); color: var(--ink); font: 500 16px/1.35 var(--sans); text-decoration: none; white-space: nowrap; }
/* The foot stays in view; a short fade above it shows that the list scrolls under it */
.menu-foot {
  position: sticky; bottom: 0; display: grid; gap: var(--s1); margin: auto calc((var(--gutter) - var(--sheet-min)) * -1) 0;
  padding: var(--s2) calc(var(--gutter) - var(--sheet-min)) var(--s2); background: #fafaf8; box-shadow: 0 -1px 0 var(--rule);
}
.menu-foot::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 28px; background: linear-gradient(rgba(250, 250, 248, 0), #fafaf8); pointer-events: none; }
.menu-foot .header-login { display: flex; justify-content: center; border: 1px solid var(--line-strong); min-height: 48px; }
.menu-foot .button { width: 100%; }

/* Buttons: ink on paper, a modest 6 px radius */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s3); }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--radius-ctl); font: 600 15px/1.2 var(--sans); text-decoration: none; text-align: center; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.button-icon { width: 18px; height: 18px; margin-right: 8px; flex: none; }   /* a mail button's envelope */
.button.primary { background: var(--btn); color: var(--btn-ink); }
.button.primary:hover { background: var(--btn-hover); }
.button.primary:active { background: #0e1216; }
.button.secondary { background: rgba(255, 255, 255, 0.55); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.button.secondary:hover { background: var(--sheet); box-shadow: inset 0 0 0 1px var(--ink-2); }
.button.compact { min-height: 40px; padding: 0 14px; font-size: 14px; }
.header-end .button.compact { min-height: 36px; border-radius: var(--radius-pill); }   /* in the pill: its ends are round and 7 px from the pill's edge (6 on a phone), like the highlight */
.fine { margin-top: var(--s2); max-width: 34em; color: var(--ink-2); font: 400 14px/1.5 var(--sans); }

/* The morning (README section 3): one sky fixed behind the whole page. body::before is the gradient (CSS only, so it is in the first paint), body::after the kit's own still of the app's sky (the file the hero window loads),
   flipped, over it. The first screen and the last call have no background of their own: they are the sky; every section between them, and the footer, is a sheet on it. */
html { background: var(--sky-3); }   /* the canvas behind the fixed layers: what an overscroll shows */
body { background: none; }
body::before, body::after { content: ''; position: fixed; z-index: -1; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; pointer-events: none; }
body::before {
  background-image: linear-gradient(180deg, var(--sky-0) 0, var(--sky-1) 24%, var(--sky-2) 50%, var(--sky-3) 76%, var(--sky-4) 100%);
}
body::after {
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url('img/kit/sky-desktop.webp') center top / cover no-repeat; opacity: 0.55; transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 150px, #000 40%, transparent 84%); mask-image: linear-gradient(180deg, transparent 0, #000 150px, #000 40%, transparent 84%);
  animation: sky-in 0.9s var(--ease-out) backwards;
}
@media (max-width: 655.98px) { body::after { background-image: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url('img/kit/sky-phone.webp'); } }   /* the kit's switch is a window under 600 px, which is a viewport under 656 */
@keyframes sky-in { from { opacity: 0; } }
.sky :is(.hero-for, .fine) { color: var(--ink-2-sky); }
/* The sun, low on the left, belongs to the two stretches that are the sky (README section 3); masked to nothing at the foot, so no edge is left */
.sky { position: relative; isolation: isolate; }
.sky::before {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(80% 56% at 4% 94%, rgba(255, 224, 188, 0.85), rgba(255, 224, 188, 0) 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent);
}

/* The sheets (README section 3): a sheet of copy paper behind each section and the footer, with the stacked edge of a ream at its foot (three leaves of 2 px). The section's own box, padding and content are as they were. */
.section, .site-footer { position: relative; isolation: isolate; }
.section::before, .site-footer::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  top: var(--sheet-top); bottom: var(--sheet-foot); left: var(--sheet-x); right: var(--sheet-x); border-radius: var(--radius-sheet);
  background: var(--sheet-bg); box-shadow: var(--sheet-shadow);
}
/* A sheet does not settle as it enters (no scroll-driven animation on these pseudo-elements): WebKit's scroll anchoring follows an animated `translate` and moves the page by up to 18 px by itself (README section 6). */

/* Sections */
.section { padding: calc(var(--sheet-top) + var(--sheet-pad)) 0 calc(var(--sheet-foot) + var(--sheet-pad)); scroll-margin-top: -16px; }   /* a link lands with the section's top on the header's bottom edge, not 16 px under it (html's scroll-padding-top); README section 4 */
.section h2 { font-size: var(--t-3); line-height: 1.12; text-box: trim-both cap alphabetic; }   /* its box is its ink, cap height to baseline: the paper above it is --sheet-pad exactly, and the lede's distance is measured from its baseline */
.section-lede { margin-top: var(--s3); color: var(--ink-2); font: 400 var(--t-1)/1.5 var(--serif); max-width: 32em; text-box: trim-both cap alphabetic; }   /* cap height to last baseline, as the h2: every gap in a head is ink to ink */
.section { --bar-gap: 12px; }   /* inside a section's demo unit every box is 12 px from the next, 8 on a phone and a short screen (README section 4, "Centred heads, one unit") */
@media (max-height: 800px) { .section { --bar-gap: 8px; } }   /* a short screen: the small scale */
@media (max-width: 1239.98px) { @container demo (max-width: 760px) { .section figure.dk-demo { --bar-gap: 8px; } } }   /* the phone layout of the bar (below), wherever the stage is that narrow: the small scale */

/* Funktioner without script: the seven demos stack, each under its heading and lede */
.section-head { margin-bottom: var(--sheet-pad); }   /* a head stands a sheet's paper (48 px, 64 from 900 px) above what follows: its last baseline to the next ink (a chapter's rule, the group labels' cap height) */
.showcase:has(.showcase-body[data-tabs-ready]) .section-head { margin-bottom: calc(var(--sheet-pad) - var(--tabs-top) - var(--accent-room)); }   /* the tab bar's margin and its room for accents (tabs.css) are part of it; without script the jump list follows at the full paper */
.jump-list { margin-bottom: var(--s5); }
.jump-title { margin-bottom: var(--s1); color: var(--ink-2); font: italic 400 16px/1.2 var(--serif); }
.jump-list ul { display: flex; flex-wrap: wrap; gap: 4px var(--s2); }
.jump-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: var(--ink); font: 500 15px/1 var(--sans);
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.45em;
}
.jump-list a:hover { text-decoration-color: var(--ink); }
.showcase-item + .showcase-item { margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--rule); }
.showcase-head { max-width: 40rem; margin-bottom: var(--s3); }
.showcase-item h3 { font-size: clamp(22px, 5.4vw, 28px); line-height: 1.2; letter-spacing: -0.01em; }
.showcase-lede { margin-top: var(--s1); color: var(--ink-2); font-size: 18px; max-width: 34em; }

/* Frågor: a heading on the left, the questions as plain print on the right */
.faq-list { margin-top: var(--s4); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative; padding: 20px 48px 20px 0; border-radius: var(--radius-ctl); list-style: none; cursor: pointer;
  font: 500 var(--t-1)/1.3 var(--serif); letter-spacing: -0.005em; text-wrap: balance;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; margin-top: -0.75px; background: var(--ink-2);
  transition: transform 0.2s var(--ease-out), opacity 0.2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); opacity: 0; }
.faq summary:hover::before, .faq summary:hover::after { background: var(--ink); }
.faq details p { padding: 0 48px var(--s3) 0; color: var(--ink-2); font-size: 18px; line-height: 1.6; max-width: 36em; }
.faq details p a { color: var(--ink); text-decoration-color: var(--line-strong); }
.faq details p a:hover { text-decoration-color: var(--ink); }

/* Last call: the title sized to its column, two lines */
.sky-final { padding: var(--s7) 0 var(--s6); }   /* 96 px of sky above the title; under the sign-off 64 px, which with the sheet's 10 px and the picture's own margin is about what stands above it */
.final-inner { display: grid; gap: var(--s4); }
.final-title { container-type: inline-size; min-width: 0; }
.final-inner h2 { font-size: clamp(30px, 100cqi / 10.2, 61px); line-height: 1.1; letter-spacing: -0.02em; font-variation-settings: 'opsz' 72; }
.final-inner h2 span { display: block; white-space: nowrap; }
.final-inner h2 .final-line { position: relative; width: max-content; max-width: 100%; }
.final-inner .section-lede { margin-top: 0; color: var(--ink); max-width: 28em; }
.final-copy .actions { margin-top: var(--s3); }
/* The sign-off: the painted wordmark floating in the last call's sky, under the buttons and the fine print (README section 3). Decoration (aria-hidden, alt=""); its box is reserved by the
   image's aspect ratio. With script and motion, site.js holds it at data-signoff="wait" until it comes into view, and then it condenses out of the cloud once (opacity and blur only, no transform: README section 6). */
.signoff { width: min(600px, calc(100% - 2 * var(--gutter) - 32px)); margin: calc(var(--s6) + var(--s2)) auto 0; }   /* 80 px of sky under the fine print; the sky under it is 64 px (.sky-final) and the next sheet's 10 */
.signoff img { width: 100%; height: auto; aspect-ratio: 1882 / 836; }
.signoff[data-signoff="wait"] img { opacity: 0; filter: blur(12px); }
.signoff[data-signoff="shown"] img { transition: opacity 1.4s var(--ease-out), filter 1.4s var(--ease-out); }
@media print { .signoff[data-signoff] img { opacity: 1; filter: none; transition: none; } }   /* printed before it came into view */

/* Footer: the wordmark with its note under it, and the two lists side by side */
.site-footer { padding: calc(var(--sheet-top) + var(--sheet-pad)) 0 calc(var(--sheet-foot) + var(--sheet-pad)); }   /* the sheet's own paper: --sheet-pad above the wordmark's cap height and below the last link's baseline */
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4) var(--s5); }
.footer-brand { grid-column: 1 / -1; }
.site-footer .wordmark { display: block; width: max-content; font-size: 24px; text-box: trim-start cap alphabetic; }
.footer-note { margin-top: var(--s1); max-width: 22em; color: var(--ink-2); font: italic 400 15px/1.5 var(--serif); }
.footer-nav { display: grid; justify-items: start; align-content: start; font: 500 15px/1.4 var(--sans); }
.footer-nav a { --link-h: 34px; display: inline-flex; align-items: center; min-height: var(--link-h); color: var(--ink); text-decoration: none; }
/* The last link of a list is the last ink of the sheet (the footer has no deboss under it any more): its box ends at its baseline, so the paper under it is --sheet-pad exactly. Its target keeps the
   height of the others: the room under the baseline is padding that a negative margin takes back, over the paper below (the text's place is as in the centred row above: half of --link-h less the line). */
.footer-nav a:last-child { display: block; min-height: 0; padding: calc((var(--link-h) - 1lh) / 2) 0 calc(var(--link-h) / 2); margin-bottom: calc(var(--link-h) / -2); text-box: trim-end text alphabetic; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--ink-2); text-underline-offset: 0.25em; }
/* The demo bar. Every live demo (the first screen's and each one in Funktioner) has one, above its window: the numerals the pen marks (site.js), the kit's
   caption of the step and, at the bar's end, the kit's control and, in Funktioner, Nästa. Status on the left, what to do on the right: the numerals' first
   glyph stands on the text's left edge, and the control hugs its label without moving anything else when the label changes (README section 7). One row;
   on a phone (a stage up to 760 px) two lines: numerals, control and Nästa, then the caption, and nothing under the window. Where a demo is not live (no
   script, reduced motion) there is no bar: the kit's captions are listed under the window. `main` raises the specificity over the kit, whose stylesheet comes later. */
.dk-marks { display: none; }
main .dk-demo.dk-live {
  --bar-row: 36px; --cell: 28px;
  grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "marks cap ctl" "stage stage stage";
  align-items: center; gap: var(--bar-gap) 16px;
}
main .dk-demo.dk-live:has(> .tabs-next) { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "marks cap ctl next" "stage stage stage stage"; }
main .dk-demo.dk-live > .dk-stage { grid-area: stage; align-self: start; }
main .dk-demo.dk-live > .dk-marks { display: block; grid-area: marks; font-size: 16px; margin-left: calc((var(--cell) - var(--digit)) / -2); }   /* the first numeral's glyph on the text's edge (--digit: a lining tabular figure of the numerals' face, 0.5 em; the gate's `left-edge` measures it) */
main .dk-demo.dk-live > .dk-steps { grid-area: cap; align-self: center; min-width: 0; }
main .dk-demo.dk-live > .dk-steps > li { min-height: 0; padding: 0; }
main .dk-demo.dk-live > .dk-steps > li::before { display: none; }   /* the numeral is the bar's: the caption is the sentence only */
main .dk-demo.dk-live > .tabs-next { grid-area: next; justify-self: end; margin-left: -8px; }   /* 8 px from the control, not the bar's 16: the two buttons are one group */
@media (pointer: coarse) { main .dk-demo.dk-live { --bar-row: 44px; } }

/* The control sits in the bar as a quiet button: no fill, the page's hairline, ink text and icon (the kit's is a white pill). It hugs its label (the kit keeps
   the width of "Spela igen" with its ::after, which is the hit area here instead): it is the bar's last item but Nästa, so a longer label takes room from
   the caption's column and moves nothing that is read */
main .dk-demo.dk-live > .dk-control {
  position: relative; grid-area: ctl; justify-self: end; min-height: var(--bar-row); padding: 0 14px 0 12px; border-radius: var(--radius-ctl); background: none;
  font: 500 15px/1 var(--sans); transition: background-color 0.15s ease, border-color 0.15s ease;
}
main .dk-demo.dk-live > .dk-control::after, main .dk-demo.dk-live > .tabs-next::before {   /* a 44 px target on a 36 px button: 4 px of hit area above and below, in the bar's own gaps */
  content: ''; position: absolute; left: -1px; right: -1px; top: calc((var(--bar-row) - 44px) / 2 - 1px); bottom: calc((var(--bar-row) - 44px) / 2 - 1px);
  display: block; width: auto; height: auto; padding: 0; visibility: visible;
}
main .dk-demo.dk-live > .dk-control:hover { border-color: var(--ink-2); background: rgba(255, 255, 255, 0.55); color: var(--ink); }
main .dk-demo.dk-live > .dk-control:focus-visible { outline-offset: 3px; }   /* A's ring: 2 px ink, 3 px off (the kit's is 2 px) */
.dk-demo > .dk-steps { font: 400 15px/1.45 var(--sans); }

/* The progress marks: one cell per step (clean.css draws each as a short bar) */
.dk-marks ol { position: relative; top: 1px; display: flex; width: max-content; }   /* as wide as its numerals, so the end line is; 1 px down puts their baseline on the control's label and the caption's */
.dk-marks li {
  position: relative; width: var(--cell); height: 28px; color: var(--ink-2); font: 400 16px/28px var(--serif);
  font-variant-numeric: lining-nums tabular-nums; text-align: center; transition: color 0.2s ease;
}
.dk-marks li.is-now, .dk-marks .is-end li { color: var(--ink); }

/* A phone: numerals, control and Nästa on the first line, the caption under them, the window under that; nothing sits under the window */
@media (max-width: 1239.98px) {
  @container demo (max-width: 760px) {
    main .dk-demo.dk-live { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "marks ctl" "cap cap" "stage stage"; column-gap: 12px; }
    main .dk-demo.dk-live:has(> .tabs-next) { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "marks ctl next" "cap cap cap" "stage stage stage"; }
    main .dk-demo.dk-live > .tabs-next { margin-left: -4px; }   /* 8 px from the control */
    main .dk-demo.dk-live > .dk-marks { --cell: clamp(20px, calc((100cqi - 150px) / var(--n, 6)), 28px); }   /* 28 px, less on a narrow phone so that every numeral fits beside the icon control and Nästa (150: the control 44, two gaps 20, Nästa about 68, a tick's overhang and the numerals' pull to the edge) */
    main .dk-demo.dk-live > .dk-control { min-height: 44px; }
    main .dk-demo.dk-live > .dk-steps { margin-top: calc(6px - var(--bar-gap)); }   /* 6 px under the first line, not the row gap */
  }
  @container demo (max-width: 599.98px) {   /* no room for the word beside six or seven numerals and Nästa at 320 px: the control is its icon (its name is the kit's aria-label) */
    main .dk-demo.dk-live > .dk-control { width: 44px; padding: 0; font-size: 0; text-align: center; }
    main .dk-demo.dk-live > .dk-control::before { margin: 0; vertical-align: middle; }
    main .dk-demo.dk-live > .dk-control::after { display: none; }
  }
}

/* Fit the screen height (README section 7): every demo in main is the app laid out at its authored window height (--fit-a) and as wide as its stage / s, shown at
   s = what the screen leaves / --fit-a, at most --fit-smax. It is scaled, never cropped, and the window fills the stage's width at every scale. This replaces the kit's crop
   (demo-kit.css caps --rp-vh by the viewport). The scale is a ratio of two lengths: tan(atan2(a, b)) is a / b (Chrome 111, Safari 15.4, Firefox 108). Tokens: --fit-a the
   authored height (the app's 100dvh, in the replica's own pixels), --fit-up what stands above the figure besides the header (tabs.css), --fit-v the window's height on screen.
   hero.css sets its own --fit-a, --fit-smax and --fit-v. */
@property --fit-s { syntax: '<number>'; inherits: true; initial-value: 1; }
@media (max-height: 800px) { :root { --bar-gap: 10px; } }   /* a short screen: a tighter bar */
main figure.dk-demo {
  container: fit / inline-size;   /* the stage's width, whatever wraps the figure */
  --fit-a: 715px; --fit-smax: 1; --fit-up: 0px; --fit-row: 36px;   /* --fit-row: the caption row until the kit has measured it (--dk-row) */
  --fit-box: calc(min(100svh - var(--dk-header, 64px) - var(--fit-up) - var(--fit-air), 90svh) - var(--bar-gap) - var(--dk-row, var(--fit-row)));   /* what the screen leaves for the window */
  --fit-v: clamp(calc(var(--fit-a) / 2), var(--fit-box), calc(var(--fit-a) * var(--fit-smax)));   /* below half the authored height the page scrolls instead (README) */
}
main figure.dk-demo > .dk-stage {
  --fit-s: min(var(--fit-smax), calc(tan(atan2(var(--fit-v), var(--fit-a))) * 1.00001));   /* the 1.00001 keeps an exact 1 from being 0.9999999 */
  width: calc(100cqw / var(--fit-s)); transform: scale(var(--fit-s)); transform-origin: 0 0;
  margin-bottom: calc(var(--fit-a) * (var(--fit-s) - 1));   /* the layout box is --fit-a high, the picture is --fit-a x s: the row under it takes the picture's height */
}
main figure.dk-demo .rp-window { --rp-vh: var(--fit-a); }
@supports not (width: calc(1px * tan(atan2(1px, 1px)))) { main figure.dk-demo .rp-window { --rp-vh: var(--fit-v); } }   /* a browser without trigonometric functions crops to what the screen leaves, as the kit does */
@media (max-width: 1239.98px) {
  @container demo (max-width: 760px) {   /* the phone layout: the bar's first line (control, numerals, Nästa) takes 50 px besides the kit's caption row */
    main figure.dk-demo { --fit-a: 620px; --bar-extra: 50px; --fit-up: var(--bar-extra); --fit-row: 68px; }
  }
}

/* Touch: targets of 44 px. In the header's pill on a phone the button is drawn 36 px high so the pill shows around it; its hit area is still 44 */
@media (max-width: 899.98px), (pointer: coarse) {
  .button.compact { min-height: 44px; }
  .header-end .button.compact { position: relative; min-height: 36px; }
  .header-end .button.compact::after { content: ''; position: absolute; inset: -4px 0; }
  .footer-nav a { --link-h: 44px; }
}

@media (max-width: 339.98px) { :root { --gutter: 16px; } }   /* 320 px: the header's controls (296 px) have no room for 20 */
@media (max-width: 359.98px) { .brand { gap: 6px; } .header-inner .wordmark { font-size: 19px; } }   /* below 360 px the word is a little smaller, so the octopus button, the word and the buttons fit side by side */
@media (max-width: 359.98px) { .header-end .button.compact { padding: 0 10px; } .menu-control { gap: 4px; padding: 0 6px; } }   /* and "Prova gratis" (the open state's button, longer than the pilot's "Prova nu") and Meny a little tighter: 10 px less at 320 px */

@media (min-width: 600px) {
  :root { --gutter: 28px; --sheet-min: 8px; --sheet-x: max(var(--sheet-min), var(--edge-x)); --sheet-out: 20px; --radius-sheet: 16px; }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --header-h: 64px; --pill-y: 7px; --sheet-pad: var(--s6); }
  body { font-size: 18px; }
  p, li { hyphens: manual; }
  .header-inner { gap: 0; }
  .site-nav { display: flex; align-items: center; gap: 0; margin-left: calc(var(--nav-gap) - 12px); }   /* 12 px is the first link's own padding: the words are --nav-gap apart */
  .header-end { gap: var(--s1); margin-right: calc(var(--pill-y) - 20px); }   /* the button's round end 7 px from the pill's, as above and below it (the pill reaches 20 px beyond the content's edge) */
  .header-login { display: inline-flex; }
  .menu-control, .menu-sheet { display: none !important; }
  .section h2 { font-size: var(--t-4); }
  .section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s3); align-items: start; }   /* the h2 and the lede start on one cap line (both boxes start at their cap height): README section 4, "Centred heads, one unit" */
  .section-head h2 { grid-column: 1 / span 6; }
  .section-head .section-lede { grid-column: 8 / span 5; margin-top: 0; }
  .showcase-item + .showcase-item { margin-top: var(--s7); padding-top: var(--s7); }
  .faq-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s3); }
  .faq-list { grid-column: 6 / span 7; margin-top: 0; }
  .faq summary { padding: 24px 56px 24px 0; }
  .faq-wrap h2 { grid-column: 1 / span 5; }
  .final-inner { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s3); align-items: first baseline; }
  .final-title { grid-column: 1 / span 6; }
  .final-copy { grid-column: 8 / span 5; }
  .footer-inner { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s3); }
  .footer-brand { grid-column: 1 / span 5; }
  .footer-inner > .footer-nav:nth-of-type(1) { grid-column: 6 / span 3; }
  .footer-inner > .footer-nav:nth-of-type(2) { grid-column: 9 / span 4; }
  .footer-nav { margin-top: -6.5px; }   /* the first link's baseline on the wordmark's (whose box starts at its cap height) */
}

/* The footer's lists sit on the columns of the hero's media and the last call's copy */
@media (min-width: 1240px) {
  .footer-inner > .footer-nav:nth-of-type(1) { grid-column: 6 / span 2; }
  .footer-inner > .footer-nav:nth-of-type(2) { grid-column: 8 / span 3; }
}

/* A very short window: the header scrolls away with the page */
@media (max-height: 420px) {
  .site-header { position: relative; }
  html { scroll-padding-top: 8px; }
  .section { scroll-margin-top: 0; }
}

@media (prefers-reduced-transparency: reduce) {   /* the glass of the pill, the list and the menu turns opaque paper (after their rules, so it wins) */
  :root { --glass: #fff; --glass-dense: #fff; --glass-pane: #fff; --glass-menu: #fafaf8; }
  .site-header::after, .funk-panel, .menu-sheet { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header::before { display: none; }   /* no blur above the pill either: the gap shows the page as it is */
}

@media (forced-colors: active) {   /* no sky, no shadows, no sign-off: the sheets and the pill get an edge of their own */
  :root { --glass: Canvas; --glass-dense: Canvas; --glass-pane: Canvas; --glass-menu: Canvas; }   /* every state of the pill, the list and the menu is opaque Canvas */
  body::before, body::after, .sky::before, .signoff, .nav-glide, .site-header::before { display: none; }
  .section::before, .site-footer::before { border: 1px solid CanvasText; box-shadow: none; }
  .site-header::after, .funk-panel, .menu-sheet { background: Canvas; border: 1px solid CanvasText; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-nav a[aria-current="true"] { text-decoration: underline; }   /* the highlight is gone: the line says it with the weight */
  .funk-tile { background: Canvas; border: 1px solid CanvasText; box-shadow: none; }
  .footer-nav a { text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after, ::backdrop { transition: none !important; animation: none !important; }
}
