/* Kernir site, English pages. System type, Apple developer product page layout:
   alternating full-width bands, a 980px content column, one blue for actions. */

:root {
  color-scheme: light dark;
  --ink: oklch(0.215 0.004 286);          /* #1d1d1f */
  --ink-2: oklch(0.52 0.008 286);         /* #6e6e73 */
  --ink-3: oklch(0.36 0.005 286);         /* #424245, footer links */
  --bg: oklch(0.995 0 0);
  --hair: oklch(0.215 0.004 286 / 0.14);
  --band-gray: rgb(250 250 250);
  --band-blue: rgb(214 228 242);
  --band-black: oklch(0.13 0 0);
  --hero-top: var(--band-blue);
  --hero-end: var(--bg);
  --card: rgb(243 244 246);
  --panel: rgb(245 245 247);
  --foot: rgb(245 245 247);
  --blue: rgb(0 113 227);
  --blue-hover: rgb(0 100 205);
  --on-blue: oklch(0.995 0 0);
  --link: rgb(0 102 204);
  --focus: rgb(0 113 227);
  --track: oklch(0.215 0.004 286 / 0.08);
  --thumb: oklch(0.995 0 0);
  --chip: oklch(0.215 0.004 286 / 0.08);

  /* The desktop inside the MacBook: warm stone with a lilac corner. */
  --wall:
    linear-gradient(118deg, transparent 38%, oklch(1 0 0 / 0.28) 52%, transparent 66%),
    radial-gradient(110% 90% at 8% 0%, oklch(0.95 0.025 75) 0%, transparent 60%),
    radial-gradient(90% 100% at 100% 100%, oklch(0.76 0.055 305) 0%, transparent 62%),
    linear-gradient(150deg, oklch(0.9 0.028 65), oklch(0.8 0.035 340));
  --menubar: oklch(0.98 0.005 60 / 0.42);
  --menubar-ink: oklch(0.2 0.01 300);
  --window-drop: drop-shadow(0 0 0.5px oklch(0.2 0.02 300 / 0.35)) drop-shadow(0 18px 28px oklch(0.25 0.04 320 / 0.28));
  --shot-drop: drop-shadow(0 0 0.5px oklch(0.2 0.02 250 / 0.3)) drop-shadow(0 24px 40px oklch(0.3 0.04 250 / 0.22));

  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --sys-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --content: 980px;
  --gutter: clamp(16px, 4vw, 24px);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: rgb(245 245 247);
    --ink-2: rgb(161 161 166);
    --ink-3: rgb(210 210 215);
    --bg: rgb(22 22 23);
    --hair: rgb(245 245 247 / 0.14);
    --band-gray: rgb(29 29 31);
    --band-blue: oklch(0.22 0.015 250);
    --hero-top: rgb(29 29 31);
    --hero-end: var(--band-black);
    --card: rgb(44 44 46);
    --panel: rgb(44 44 46);
    --foot: rgb(29 29 31);
    --link: rgb(41 151 255);
    --focus: rgb(41 151 255);
    --track: rgb(245 245 247 / 0.1);
    --thumb: rgb(99 99 102);
    --chip: rgb(245 245 247 / 0.12);
    --wall:
      linear-gradient(118deg, transparent 38%, oklch(1 0 0 / 0.06) 52%, transparent 66%),
      radial-gradient(110% 90% at 8% 0%, oklch(0.42 0.03 45) 0%, transparent 60%),
      radial-gradient(90% 100% at 100% 100%, oklch(0.33 0.07 330) 0%, transparent 62%),
      linear-gradient(150deg, oklch(0.3 0.015 300), oklch(0.19 0.03 320));
    --menubar: oklch(0.2 0.01 300 / 0.4);
    --menubar-ink: oklch(0.96 0.003 300);
    --window-drop: drop-shadow(0 0 0.5px oklch(0.95 0 0 / 0.25)) drop-shadow(0 18px 28px oklch(0.05 0.02 320 / 0.6));
    --shot-drop: drop-shadow(0 0 0.5px oklch(0.95 0 0 / 0.2)) drop-shadow(0 24px 40px oklch(0.05 0.01 250 / 0.55));
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/25px var(--sys);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
source { display: none; }
svg { flex: none; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.16em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--sys-display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code { font: 0.88em/1 var(--mono); letter-spacing: 0; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; z-index: 30; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--bg); color: var(--ink); padding: 8px 12px; border-radius: 8px; }

/* Subpage header: home link and GitHub, no bar */
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 6px; }
.head a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; letter-spacing: -0.01em; }
.head .home { gap: 8px; color: var(--ink); font: 600 17px/1 var(--sys-display); letter-spacing: -0.02em; }
.head .home:hover { text-decoration: none; }
.head a:not(.home) { color: var(--ink); opacity: 0.8; }
.head a:not(.home):hover { opacity: 1; }
.head .home img { width: 22px; height: 22px; }

/* Star count chip, next to "View source on GitHub" */
.count {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 2px; padding: 1px 7px 1px 6px; border-radius: 999px;
  background: var(--chip); color: var(--ink);
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.count svg { width: 11px; height: 11px; }

/* Shared type */
.band { padding-block: 120px; }
.band h2 { font-size: 40px; line-height: 44px; letter-spacing: 0; }
.caption { font-size: 12px; line-height: 16px; letter-spacing: -0.01em; }
.text h2 { margin-bottom: 20px; }
.text p + p { margin-top: 14px; }
.text > .more { margin-top: 8px; }

/* Actions */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 980px;
  background: var(--blue); color: var(--on-blue);
  font-size: 17px; line-height: 1; font-weight: 400;
  transition: background-color 160ms var(--ease-out-quart);
}
.button:hover { background: var(--blue-hover); text-decoration: none; }
.button svg { width: 17px; height: 17px; margin-left: -3px; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 17px; }
.more > svg { width: 18px; height: 18px; }
.more .chev { margin-left: -1px; font-size: 1.15em; line-height: 1; }

/* Download block: blue capsule, App Store badges, GitHub line, requirements.
   Badges follow Apple's guidelines: 40px tall, never restyled, at least 10px of clear space. */
.get-it { display: grid; justify-items: center; }
.get-it .stores { margin-top: 20px; }
.get-it .gh-link { margin-top: 12px; }
.get-it .caption { margin-top: 2px; color: var(--ink-2); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.badge { position: relative; display: inline-block; border-radius: 6px; } /* radius shapes the focus ring only */
.badge::after { content: ""; position: absolute; inset: -2px 0; }
.badge img { width: auto; height: 40px; }
.gh-link > svg { width: 17px; height: 17px; }
.gh-link .count { margin-left: 6px; }

/* Hero */
.hero {
  padding-block: 96px 100px;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-top) 38%, var(--hero-end) 100%);
  text-align: center;
}
.hero .icon { width: 100px; height: 100px; margin: 0 auto 26px; }
.hero h1 { font-size: clamp(40px, 6vw, 48px); line-height: 1.084; letter-spacing: -0.003em; }
.hero .intro { max-width: 880px; margin: 18px auto 0; font-size: 21px; line-height: 29px; letter-spacing: 0.011em; }
.hero .get-it { margin-top: 32px; }

/* MacBook drawn in CSS. Sizes are in container units, so it scales as one piece. */
.mac { width: min(var(--content), calc(100% - 2 * var(--gutter))); margin: 56px auto 0; container-type: inline-size; }
.lid {
  position: relative; width: 84cqw; margin: 0 auto;
  padding: 1.15cqw 1.15cqw 2.1cqw;
  border-radius: 3.4cqw 3.4cqw 0 0;
  background: linear-gradient(to top, oklch(0.3 0.003 270) 0 0.75cqw, oklch(0.11 0 0) 0.75cqw);
  box-shadow: 0 0 0 0.18cqw oklch(0.74 0.004 260), 0 0 0 0.26cqw oklch(0.5 0.004 260);
}
.screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 1.9cqw 1.9cqw 0 0;
  background: var(--wall);
  display: grid; place-items: center;
  container-type: inline-size;
}
.menubar {
  position: absolute; inset: 0 0 auto; height: 3.1cqw; padding-inline: 1.7cqw;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--menubar); color: var(--menubar-ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 1.1cqw; line-height: 1; letter-spacing: 0; white-space: nowrap;
}
.menubar > span:first-child { display: flex; gap: 1.9cqw; }
.menubar b { font-weight: 700; }
.window { width: 80%; margin-top: 2cqw; filter: var(--window-drop); }
.notch {
  position: absolute; top: 1.15cqw; left: 50%; width: 9cqw; height: 2.55cqw; translate: -50% 0;
  background: oklch(0.11 0 0); border-radius: 0 0 0.9cqw 0.9cqw;
}
.notch::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 0.55cqw; height: 0.55cqw; translate: -50% -60%;
  border-radius: 50%; background: oklch(0.24 0.02 250);
}
.base {
  position: relative; height: 2.7cqw;
  border-radius: 0.3cqw 0.3cqw 2cqw 2cqw / 0.3cqw 0.3cqw 1.5cqw 1.5cqw;
  background:
    linear-gradient(90deg, oklch(0.62 0.004 260) 0%, transparent 2.5%, transparent 97.5%, oklch(0.62 0.004 260) 100%),
    linear-gradient(180deg, oklch(0.93 0.002 260) 0%, oklch(0.86 0.003 260) 30%, oklch(0.76 0.004 260) 70%, oklch(0.6 0.005 260) 100%);
  box-shadow: 0 1.6cqw 2.4cqw -1.4cqw oklch(0.2 0.01 260 / 0.45);
}
.base::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 15cqw; height: 1cqw; translate: -50% 0;
  border-radius: 0 0 1.1cqw 1.1cqw;
  background: linear-gradient(180deg, oklch(0.66 0.004 260), oklch(0.8 0.003 260));
}

/* Black band: alternating feature rows */
.black {
  --ink: rgb(245 245 247); --ink-2: rgb(161 161 166); --link: rgb(41 151 255); --focus: rgb(41 151 255);
  background: var(--band-black); color: var(--ink);
}
.rows { display: grid; gap: 120px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.row.flip .media { order: 2; }
.media { display: grid; justify-items: center; }
.ql { width: 100%; filter: drop-shadow(0 0 0.5px oklch(0.95 0 0 / 0.22)) drop-shadow(0 24px 40px oklch(0 0 0 / 0.6)); }
.phone { width: min(100%, 280px); filter: drop-shadow(0 0 0.5px oklch(0.95 0 0 / 0.22)) drop-shadow(0 24px 40px oklch(0 0 0 / 0.6)); }
.black .quiet { color: var(--ink-2); }
.black .badge { margin-top: 24px; }
.points { margin: 0; padding: 0; list-style: none; }
.points li + li { margin-top: 12px; }
.points + p { margin-top: 22px; color: var(--ink-2); }
.points b { font-weight: 600; }

/* Keycaps, dark, as they sit on a black band */
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  color: rgb(235 235 240);
  background: linear-gradient(180deg, oklch(0.31 0.002 270), oklch(0.25 0.002 270));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.14), inset 0 0 0 0.5px oklch(1 0 0 / 0.08), 0 3px 0 oklch(0.1 0 0), 0 10px 22px -6px oklch(0 0 0 / 0.8);
  font-family: var(--sys); letter-spacing: 0;
}
.keys { margin-top: 36px; }
.kbd.space { width: 240px; height: 56px; border-radius: 11px; align-items: flex-end; padding-bottom: 9px; font-size: 14px; color: rgb(190 190 196); }

/* The editing controls, large, on a graphite tile */
.tile {
  width: 100%; max-width: 465px; aspect-ratio: 1;
  display: grid; align-content: center; justify-content: center; gap: 15%;
  border-radius: 28px;
  background:
    radial-gradient(90% 70% at 30% 0%, oklch(0.36 0.004 270 / 0.9), transparent 70%),
    linear-gradient(160deg, oklch(0.25 0.003 270), oklch(0.16 0.002 270));
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.07), inset 0 1px 0 oklch(1 0 0 / 0.09);
  container-type: inline-size;
}
.toolbar { display: flex; gap: 3cqw; }
.glass {
  display: inline-flex; align-items: center; gap: 2.4cqw;
  height: clamp(48px, 13.5cqw, 62px); padding: 0 clamp(16px, 5cqw, 24px); border-radius: 999px;
  color: rgb(245 245 247); font: 500 clamp(17px, 4.6cqw, 21px)/1 var(--sys); letter-spacing: -0.01em;
  background: linear-gradient(180deg, oklch(0.42 0.003 270 / 0.9), oklch(0.29 0.003 270 / 0.9));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.24), inset 0 -1px 0 oklch(0 0 0 / 0.3), inset 0 0 0 1px oklch(1 0 0 / 0.06), 0 2px 6px oklch(0 0 0 / 0.4), 0 16px 30px -10px oklch(0 0 0 / 0.75);
}
.glass svg { width: clamp(20px, 5.4cqw, 25px); height: clamp(20px, 5.4cqw, 25px); }
.glass .sep { width: 1.6cqw; }
.chord { display: flex; gap: 2.6cqw; justify-self: end; }
.kbd.cmd { width: clamp(52px, 14cqw, 64px); height: clamp(52px, 14cqw, 64px); border-radius: 13px; font-size: clamp(21px, 5.6cqw, 26px); font-weight: 400; }

/* Gray band: formats */
.gray { background: var(--band-gray); }
.gray .row { align-items: start; }
.formats { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 20px; letter-spacing: -0.016em; }
.formats th, .formats td { padding: 11px 0; border-bottom: 0.5px solid var(--hair); text-align: left; font-weight: 400; }
.formats thead th { padding-top: 0; color: var(--ink-2); font-size: 12px; line-height: 16px; }
.formats tbody th { color: var(--ink); }
.formats td { width: 4.5rem; text-align: center; }
.formats thead th:not(:first-child) { text-align: center; }
.formats .yes::before { content: "✓"; color: var(--ink); }
.formats .no::before { content: "·"; color: var(--ink-2); }
.formats tbody tr:last-child > * { border-bottom: 0; }

/* Pale blue band: appearance switch */
.blue { background: var(--band-blue); }
.modes .lead { margin-top: 20px; max-width: 816px; }
.shots { display: grid; margin-top: 56px; filter: var(--shot-drop); }
.shots img { grid-area: 1 / 1; width: 100%; }
.shot-dark { opacity: 0; transition: opacity 300ms var(--ease-out-quart); }
.modes:has(input[value="dark"]:checked) .shot-dark { opacity: 1; }
.seg { display: flex; width: max-content; margin: 40px auto 0; padding: 2px; border: 0; border-radius: 999px; background: var(--track); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: block; min-width: 92px; height: 32px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; line-height: 32px; font-weight: 500; letter-spacing: -0.01em; text-align: center; color: var(--ink);
  transition: background-color 200ms var(--ease-out-quart), box-shadow 200ms var(--ease-out-quart);
}
.seg input:checked + span { background: var(--thumb); box-shadow: 0 0 0 0.5px oklch(0 0 0 / 0.06), 0 2px 6px oklch(0 0 0 / 0.14); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* White band: free, with the project's Get Info panel */
.white { background: var(--bg); }
.white .row { align-items: start; }
.white .more { margin-top: 14px; }
.info { padding: 4px 24px 6px; border-radius: 18px; background: var(--panel); font-size: 15px; line-height: 20px; letter-spacing: -0.016em; }
.info dl { margin: 0; }
.info dl > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 0.5px solid var(--hair); }
.info-head[hidden] + dl > div:first-child { border-top: 0; }
/* 24px tap targets without changing the row height */
.info a { display: inline-block; padding-block: 2px; margin-block: -2px; }
.info dt { color: var(--ink-2); text-align: right; }
.info dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.info .info-head { display: flex; align-items: center; gap: 10px; padding: 16px 0 14px; font-size: 17px; font-weight: 600; }
.info .info-head svg { width: 20px; height: 20px; }
.info .info-head a { color: var(--ink); }

/* Download band */
.get { padding-block: 84px; }
.card {
  display: grid; justify-items: center; text-align: center;
  padding: 40px 24px 44px; border-radius: 18px; background: var(--card);
}
.card h2 { font-size: 32px; line-height: 36px; letter-spacing: 0.004em; }
.card .icon { width: 88px; height: 88px; margin-top: 48px; }
.card .get-it { margin-top: 28px; }

/* Footer */
.foot { background: var(--foot); color: var(--ink-2); box-shadow: inset 0 0.5px 0 var(--hair); font-size: 12px; line-height: 16px; letter-spacing: -0.01em; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 18px 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a, .foot-link { color: var(--ink-3); }
/* "Cookie settings": a button that looks exactly like the footer links (shown by consent.js) */
.foot-link { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; cursor: pointer; }
.foot-link:hover { text-decoration: underline; text-underline-offset: 0.16em; }
/* The guides sit in their own labelled group, before the page links */
.foot-navs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 36px; }
.foot .foot-label { color: var(--ink-2); }

/* Prose pages: privacy, support, 404 */
.prose { padding-block: 80px 120px; }
.prose h1 { font-size: clamp(40px, 6vw, 48px); line-height: 1.084; letter-spacing: -0.003em; }
.prose .updated { margin-top: 10px; color: var(--ink-2); font-size: 12px; line-height: 16px; }
.prose h2 { margin-top: 44px; font-size: 24px; line-height: 28px; letter-spacing: 0.009em; }
.prose p, .prose ul { margin-top: 14px; max-width: 692px; }
.prose h1 + p { margin-top: 24px; font-size: 21px; line-height: 29px; letter-spacing: 0.011em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose strong { font-weight: 600; }
.prose a { text-decoration: underline; text-decoration-thickness: from-font; text-underline-offset: 0.16em; }

/* How-to guides (/quick-look/, /edit-zip-on-mac/ …): one template on top of .prose.
   Code blocks keep the Terminal text as written and scroll sideways on phones instead of wrapping. */
.guide ol { margin-top: 14px; max-width: 692px; padding-left: 1.4em; }
.guide ol li + li { margin-top: 6px; }
.guide pre {
  margin: 14px 0 0; max-width: 692px; padding: 14px 18px; border-radius: 12px;
  background: var(--panel); box-shadow: inset 0 0 0 0.5px var(--hair);
  overflow-x: auto; font: 13px/20px var(--mono); letter-spacing: 0; tab-size: 8;
}
.guide pre code { font: inherit; }
.guide li pre { margin-top: 10px; }
.guide li > p:first-child { margin-top: 0; }
.guide :not(pre) > code { padding: 0.1em 0.3em; border-radius: 5px; background: var(--panel); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.guide .get-it { justify-items: start; margin-top: 32px; }
.guide .get-it .button { text-decoration: none; }
.guide .get-it .caption { margin-top: 10px; font-size: 14px; line-height: 20px; }
.guide .related { padding-left: 0; list-style: none; }
.guide .tested { margin-top: 44px; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.head nav { display: flex; align-items: center; gap: 24px; }
.guide table { width: 100%; max-width: 692px; margin-top: 20px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.guide th, .guide td { text-align: left; vertical-align: top; padding: 12px 10px; overflow-wrap: anywhere; }
.guide th { background: var(--panel); font-weight: 600; }
.guide tbody tr:nth-child(even) { background: var(--panel); }

/* Owner-supplied iPhone/iPad screenshots. Detail frames only change the view;
   the full original PNG remains available through the caption links. */
.guide .guide-shot { margin: 28px 0; max-width: 692px; }
.guide .guide-shot picture { display: block; max-width: 320px; margin-inline: auto; }
.guide .guide-shot img { display: block; width: 100%; height: auto; }
.guide .guide-shot--ipad picture { max-width: 692px; aspect-ratio: 1.75; overflow: hidden; }
.guide .guide-shot--detail picture { max-width: 420px; aspect-ratio: 1; overflow: hidden; }
.guide .guide-shot figcaption { margin-top: 12px; font-size: 16px; line-height: 24px; }
.guide .sample-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.guide .sample-downloads .button { text-decoration: none; }

/* Cookie consent (assets/consent.js): a small system-style notice at the bottom left, never modal.
   Reject and Accept share one neutral capsule style so neither is pushed. */
.consent {
  position: fixed; z-index: 20; left: var(--gutter); bottom: var(--gutter);
  width: min(372px, calc(100% - 2 * var(--gutter)));
  padding: 16px 16px 14px 18px; border-radius: 18px;
  background: var(--bg); color: var(--ink);
  box-shadow: 0 0 0 0.5px var(--hair), 0 2px 6px oklch(0.215 0.004 286 / 0.06), 0 14px 36px -10px oklch(0.215 0.004 286 / 0.24);
  font-size: 14px; line-height: 20px; letter-spacing: -0.016em;
}
.consent:focus { outline: none; }
.consent:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.consent-now { margin-top: 6px; color: var(--ink-2); font-size: 12px; line-height: 16px; letter-spacing: -0.01em; }
.consent-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.consent-buttons { display: flex; gap: 8px; }
.consent .consent-button {
  min-width: 88px; min-height: 34px; padding: 0 16px; border: 0;
  background: var(--chip); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; cursor: pointer;
}
.consent .consent-button:hover { background-image: linear-gradient(var(--chip), var(--chip)); }
.consent .consent-button:active { background-image: linear-gradient(var(--hair), var(--hair)); }
@media (prefers-color-scheme: dark) {
  .consent {
    background: var(--card);
    box-shadow: 0 0 0 0.5px var(--hair), 0 2px 6px oklch(0 0 0 / 0.3), 0 16px 40px -10px oklch(0 0 0 / 0.6);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .consent { animation: consent-in 360ms var(--ease-out-quart) both; }
  @keyframes consent-in { from { opacity: 0; transform: translateY(8px); } }
}
@media (max-width: 600px), (pointer: coarse) {
  .consent .consent-button { min-height: 44px; }
}
@media (max-width: 600px) {
  .consent { padding: 16px 16px 16px 18px; }
  .consent-buttons { flex: 1; }
  .consent .consent-button { flex: 1; min-width: 0; }
}

/* Buy me a coffee: Buy Me a Coffee's own button (their generator: #FFDD00, Cookie, black text and cup outline,
   white cup), measured from their script and drawn here without it (docs/mockups/bmc/). Fixed at the bottom
   right of every page; the shadow is ours, because it floats over the page. --bmc-k scales it as a whole on
   phones. While the cookie banner is open on a narrow screen it moves up above it (--consent-h, from consent.js). */
@font-face { font-family: Cookie; src: url(/assets/fonts/cookie-latin.woff2) format('woff2'); font-display: swap; }
:root { --bmc-k: 1; }
.bmc-float {
  position: fixed; z-index: 19;
  right: calc(var(--gutter) + env(safe-area-inset-right));
  bottom: calc(var(--gutter) + env(safe-area-inset-bottom));
  box-sizing: border-box; display: inline-flex; align-items: center;
  min-width: calc(210px * var(--bmc-k)); height: calc(60px * var(--bmc-k)); padding: 0 calc(24px * var(--bmc-k));
  border-radius: calc(12px * var(--bmc-k));
  background: #FFDD00; color: #000000;
  font-family: Cookie, cursive; font-size: calc(28px * var(--bmc-k)); font-weight: 400; line-height: calc(27px * var(--bmc-k)); letter-spacing: normal;
  text-decoration: none; -webkit-font-smoothing: auto; /* the page's antialiased setting draws Cookie thinner than BMC's */
  box-shadow: 0 1px 2px oklch(0.215 0.004 286 / 0.12), 0 6px 18px -6px oklch(0.215 0.004 286 / 0.28);
}
.bmc-float:hover { text-decoration: none; box-shadow: 0 1px 2px oklch(0.215 0.004 286 / 0.14), 0 10px 26px -8px oklch(0.215 0.004 286 / 0.36); }
.bmc-float:active { scale: 0.97; }
.bmc-float img { flex-shrink: 0; width: auto; height: calc(32px * var(--bmc-k)); transform: scale(0.9); }
.bmc-float span { flex-shrink: 0; margin-left: calc(8px * var(--bmc-k)); line-height: 0; white-space: nowrap; }
/* Room under the footer links, so the button never covers them at the end of the page. */
.foot { padding-bottom: calc(60px * var(--bmc-k) + var(--gutter) + env(safe-area-inset-bottom)); }
@media (prefers-color-scheme: dark) {
  .bmc-float { box-shadow: 0 1px 2px oklch(0 0 0 / 0.4), 0 8px 22px -6px oklch(0 0 0 / 0.7); }
  .bmc-float:hover { box-shadow: 0 1px 2px oklch(0 0 0 / 0.45), 0 12px 30px -8px oklch(0 0 0 / 0.8); }
}
@media (max-width: 600px) {
  :root { --bmc-k: 0.8; }
}
@media (max-width: 680px) {
  .consent ~ .bmc-float { translate: 0 calc(-1 * (var(--consent-h, 0px) + 12px)); }
}
@media (prefers-reduced-motion: no-preference) {
  .bmc-float { transition: translate 360ms var(--ease-out-quart), scale 120ms var(--ease-out-quart), box-shadow 200ms var(--ease-out-quart); }
}
@media print {
  .bmc-float { display: none; }
  .foot { padding-bottom: 0; }
}

/* Tablet and phone */
@media (max-width: 833px) {
  .band { padding-block: 80px; }
  .band h2 { font-size: 32px; line-height: 36px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .row.flip .media { order: 0; }
  .rows { gap: 96px; }
  .hero { padding-block: 72px 80px; }
  .hero .intro { font-size: 19px; line-height: 27px; letter-spacing: 0.012em; }
  .mac { margin-top: 48px; }
  .get { padding-block: 64px; }
  .card .icon { margin-top: 36px; }
}
@media (max-width: 600px) {
  .seg span { height: 44px; line-height: 44px; min-width: 100px; }
  .card h2 { font-size: 28px; line-height: 32px; }
  .info { padding-inline: 18px; }
  .info dl > div { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; }
  .kbd.space { width: 200px; }
  .foot .wrap { flex-direction: column-reverse; align-items: flex-start; gap: 6px; padding-block: 8px 24px; }
  .foot nav { gap: 0 20px; }
  .foot-navs { flex-direction: column-reverse; align-items: flex-start; gap: 0; }
  .foot nav a, .foot nav .foot-link, .foot .foot-label, .foot .owner { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Long guides stay unobstructed on phones and tablets. The donation link remains
   after the footer in document flow; the cookie-consent controls keep their behaviour. */
@media screen and (max-width: 833px) {
  .guide-page .bmc-float {
    position: static; width: max-content; display: flex;
    margin: 20px auto 28px; translate: none; box-shadow: none;
  }
  .guide-page .foot { padding-bottom: 0; }
}
