/* SkitchCraft landing page. The colours come from the app's light and dark themes (app/src/styles.css): the canvas grey,
   the bezels, the pink ink with its white halo. The app's own chrome is in app-ui.css, the demos' layout in demos.css. */

@font-face {
  font-family: Gabarito;
  src: url(fonts/gabarito.woff2) format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #939396; --chrome: #ececee; --night: #1c1c1e; --card: #fff; --field: #fff;
  --fg: #1d1d1f; --fg-2: #3d3d42; --rule: rgba(0, 0, 0, .12); --line: rgba(0, 0, 0, .4);
  --pink: #f0326e; --pink-deep: #d11f5a; --pink-text: #c4184f;
  --hi: #ffe14d; --edge: #a3a3a6; --solid: #1d1d1f; --solid-fg: #fff;
  --bezel: linear-gradient(#fff, #ebebeb); --bezel-hi: 0 1px 0 rgba(255, 255, 255, .75), 0 1px 1px rgba(0, 0, 0, .06);
  --well: linear-gradient(#3e3e41, #2f2f32); --mk: #4a4a4f;
  --ok: #17693c; --bad: #8f1a1a; --bad-on-canvas: #5c0b0b;
  --shot-shadow: 0 30px 70px rgba(0, 0, 0, .26), 0 0 0 1px rgba(0, 0, 0, .22);
  --win-shadow: 0 34px 80px rgba(0, 0, 0, .34), 0 0 0 1px rgba(0, 0, 0, .28);
  --display: Gabarito, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* the app's dark theme */
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #2b2b2b; --chrome: #1c1c1e; --night: #121213; --card: #2a2a2d; --field: #1f1f22;
  --fg: #ececf0; --fg-2: #b9b9c0; --rule: rgba(255, 255, 255, .13); --line: rgba(255, 255, 255, .34);
  --pink-text: #ff7aa3;
  --edge: #18181a; --solid: #ececf0; --solid-fg: #1d1d1f;
  --bezel: linear-gradient(#4a4a4f, #3c3c40); --bezel-hi: 0 1px 0 rgba(255, 255, 255, .06), 0 1px 1px rgba(0, 0, 0, .3);
  --well: linear-gradient(#0f0f10, #1a1a1c); --mk: #6e6e75;
  --ok: #5fd28c; --bad: #ff8a80; --bad-on-canvas: #ffa59d;
  --shot-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .1);
  --win-shadow: 0 34px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--fg);
  font: 400 1rem/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, ul { margin: 0; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
.band-night :focus-visible { outline-color: #fff; }
[id] { scroll-margin-top: 24px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--solid); color: var(--solid-fg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }

kbd {
  display: inline-block; min-width: 1.5em; padding: 1px 5px; text-align: center;
  font: 600 .8em/1.4 var(--body);
  background: var(--bezel); color: var(--fg);
  border: 1px solid var(--edge); border-radius: 5px; box-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}
kbd + kbd { margin-left: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px;
  border: 0; border-radius: 10px; font: 700 .975rem/1 var(--body); text-decoration: none; white-space: nowrap;
}
.btn-pink { background: var(--pink-deep); color: #fff; }
.btn-pink:hover { background: #b6184d; }
.btn-ink { background: var(--solid); color: var(--solid-fg); }
.btn-ink:hover { filter: brightness(.88); }

/* Header */
.top { display: flex; align-items: center; gap: 22px; height: 76px; width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 800 1.3rem/1 var(--display); margin-right: auto; }
.brand img { border-radius: 9px; }
.top-nav { display: flex; gap: 22px; }
.top-nav a { color: var(--fg); font-weight: 600; font-size: .95rem; text-decoration: none; }
.top-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.kbd-btn { background: none; border: 0; padding: 6px; border-radius: 8px; }
@media (max-width: 860px) { .top-nav { display: none; } }
@media (hover: none), (max-width: 520px) { .kbd-btn { display: none; } }
@media (max-width: 520px) { .top { gap: 12px; } .brand span { display: none; } }
@media (max-width: 360px) { .top .btn { padding: 0 12px; } }
.theme-btn { position: relative; width: 58px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: transparent; flex: none; }
.theme-btn::before { content: ""; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--solid); transition: transform .2s var(--ease); }
.theme-btn[aria-checked="true"]::before { transform: translateX(26px); }
.theme-btn svg { position: absolute; top: 7px; width: 16px; height: 16px; fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .th-sun { left: 7px; } .theme-btn .th-moon { right: 7px; }
.theme-btn[aria-checked="false"] .th-sun, .theme-btn[aria-checked="true"] .th-moon { stroke: var(--solid-fg); }

/* The annotation-text treatment: pink ink with the app's white halo */
.halo {
  font: 800 clamp(2.1rem, 5vw, 3.75rem)/1 var(--display); letter-spacing: -.015em;
  color: var(--pink); -webkit-text-stroke: .11em #fff; paint-order: stroke fill;
  filter: drop-shadow(0 .03em .05em rgba(0, 0, 0, .3));
}

/* The slogan: each word wears what it does */
.slogan { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3em .62em; font: 800 clamp(2rem, 6.4vw, 4.75rem)/1 var(--display); letter-spacing: -.02em; }
.sl { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.sl-capture { --c: currentColor; padding: .1em .17em .14em; }
.sl-capture::before {
  content: ""; position: absolute; inset: 0; --l: .3em; --t: max(2px, .055em); --g: linear-gradient(var(--pink), var(--pink));
  background: var(--g) 0 0/var(--l) var(--t), var(--g) 0 0/var(--t) var(--l), var(--g) 100% 0/var(--l) var(--t), var(--g) 100% 0/var(--t) var(--l),
    var(--g) 0 100%/var(--l) var(--t), var(--g) 0 100%/var(--t) var(--l), var(--g) 100% 100%/var(--l) var(--t), var(--g) 100% 100%/var(--t) var(--l);
  background-repeat: no-repeat; animation: frame .5s var(--ease) both;
}
@keyframes frame { from { inset: -.35em -.6em; opacity: 0; } }
.sl-annotate::before { content: ""; position: absolute; z-index: -1; left: -.08em; right: -.06em; top: .5em; bottom: -.02em; background: var(--hi); border-radius: .12em .3em .1em .26em; transform: rotate(-1.2deg); transform-origin: left; animation: swipe .55s .25s var(--ease) both; }
:root[data-theme="dark"] .sl-annotate { color: #1d1d1f; animation: ink-in .3s .4s both; }
@keyframes ink-in { from { color: var(--fg); } }
:root[data-theme="dark"] .sl-annotate::before { top: .02em; }
@keyframes swipe { from { transform: rotate(-1.2deg) scaleX(0); } }
.sl-share { padding-right: .78em; }
.sl-share::after {
  content: ""; position: absolute; right: -.06em; top: -.12em; width: .8em; height: .8em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M3 36C5 23 12 15 23 11.5L20.5 5 38 5.5 31 21.5 27.5 16.5C18 19 10 25 3 36Z' fill='%23f0326e' stroke='%23fff' stroke-width='3' stroke-linejoin='round' paint-order='stroke'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: send .5s .55s var(--ease) both;
}
@keyframes send { from { transform: translate(-.4em, .3em) scale(.4); opacity: 0; } }

/* Hero */
.hero { padding: clamp(20px, 4vw, 44px) 0 clamp(56px, 7vw, 88px); text-align: center; }
.hero .slogan { margin-top: clamp(20px, 3vw, 34px); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; max-width: 56ch; margin-inline: auto; text-wrap: pretty; }
.hero .lede { margin-top: clamp(22px, 3vw, 34px); }
.hero .join, .closing .join { margin-top: clamp(26px, 3.4vw, 40px); }

/* Sign-up form */
.join { position: relative; width: min(720px, 100%); margin-inline: auto; text-align: center; }
.join-label { display: block; font: 700 clamp(1.1rem, 1.6vw, 1.3rem)/1.3 var(--body); margin-bottom: 12px; }
.join-row { display: flex; gap: 8px; padding: 8px; background: var(--field); border: 1.5px solid var(--line); border-radius: 20px; box-shadow: 0 12px 34px rgba(0, 0, 0, .18); }
.join-row:focus-within { border-color: var(--pink); box-shadow: 0 12px 34px rgba(0, 0, 0, .18), 0 0 0 4px rgba(240, 50, 110, .28); }
.join-row input { flex: 1; min-width: 0; height: 60px; padding: 0 18px; font-size: clamp(1.05rem, 2vw, 1.3rem); background: transparent; border: 0; border-radius: 12px; outline: 0; }
.join-row input::placeholder { color: var(--fg-2); opacity: .75; }
.join-row:has([aria-invalid="true"]) { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(200, 40, 40, .25); }
.join-row .btn { height: 60px; padding: 0 28px; font-size: clamp(1rem, 1.6vw, 1.15rem); border-radius: 13px; }
.join-row .btn[disabled] { opacity: .7; cursor: progress; }
.os { border: 0; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; min-inline-size: 0; }
.os legend { float: left; padding: 0; margin-right: 6px; line-height: 38px; }
.os label { position: relative; }
.os input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.os span { display: block; height: 38px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 19px; font: 600 .95rem/35px var(--body); }
.os input:checked + span { background: var(--solid); border-color: var(--solid); color: var(--solid-fg); }
.os input:focus-visible + span { outline: 3px solid var(--fg); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-note { margin-top: 16px; font-size: .95rem; line-height: 1.45; }
.join-note[data-state="error"] { font-weight: 700; color: var(--bad-on-canvas); }
.join[data-done] .join-row, .join[data-done] .os, .join[data-done] .join-label { display: none; }
.join[data-done] .join-note { margin: 0; padding: 24px 26px; background: var(--card); border-radius: 18px; font-size: 1.2rem; font-weight: 600; box-shadow: 0 12px 34px rgba(0, 0, 0, .18); }
@media (max-width: 560px) {
  .join-row { flex-direction: column; } .join-row input { flex: none; text-align: center; }
  .os legend { float: none; width: 100%; margin: 0; }
}

/* Modes: the app's window */
.modes { padding-bottom: clamp(72px, 9vw, 120px); }
.modes-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 22px; }
.modes-head h2 { font: 800 clamp(1.6rem, 3.2vw, 2.5rem)/1.05 var(--display); letter-spacing: -.015em; }
.seg-switch { display: inline-flex; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .18); }
:root[data-theme="dark"] .seg-switch { --seg: #55555b; background: rgba(0, 0, 0, .4); }
.seg-switch button { height: 40px; padding: 0 22px; border: 0; border-radius: 10px; background: none; font-weight: 700; }
.seg-switch [aria-pressed="true"] { background: var(--seg, #fff); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.demo-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; margin-top: 42px; min-height: 3.2em; }
.demo-hint { font-weight: 600; font-size: 1.05rem; max-width: 62ch; }
.demo-acts { display: flex; gap: 8px; }
.mini { height: 34px; padding: 0 14px; border: 1px solid var(--edge); border-radius: 8px; background: var(--bezel); box-shadow: var(--bezel-hi); font-size: .9rem; font-weight: 600; }
.mode-lists { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: 34px; }
.mode-list { padding-top: 16px; border-top: 3px solid var(--rule); opacity: .72; transition: opacity .2s, border-color .2s; }
.mode-list.on { opacity: 1; border-color: var(--pink); }
.mode-list h3 { font: 700 1.3rem/1.2 var(--display); margin-bottom: 8px; }
.mode-list p { max-width: 52ch; }
@media (max-width: 720px) { .mode-lists { grid-template-columns: 1fr; } }

/* Bands */
.band { padding: clamp(72px, 10vw, 136px) 0; }
.band-light { background: var(--chrome); }
.band-canvas { background: var(--canvas); }
.band-night { background: var(--night); color: #ececf0; }
.band-tight { padding-top: 0; }
.band h2:not(.slogan) { font: 800 clamp(2rem, 4.6vw, 3.4rem)/1.08 var(--display); letter-spacing: -.015em; text-wrap: balance; }

.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.duo-flip .split-text { order: 2; }
.duo-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-text p { margin-top: 18px; font-size: 1.0625rem; line-height: 1.55; max-width: 46ch; }
.split-text .try { font-weight: 700; padding-left: 42px; position: relative; }
/* A small drawn arrow, pointing at the demo */
.try::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 30px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22'%3E%3Cpath d='M1 10.300 17 8.200V3.500L29 11 17 18.500v-4.700L1 11.700z' fill='%23f0326e' stroke='%23fff' stroke-width='2' stroke-linejoin='round' paint-order='stroke'/%3E%3C/svg%3E") center/contain no-repeat;
}
.duo-flip .try::before { transform: scaleX(-1); }
@media (max-width: 900px) {
  .duo, .duo-flip { grid-template-columns: 1fr; }
  .duo-flip .split-text { order: 0; }
  .try::before, .duo-flip .try::before { transform: rotate(90deg); }
}

/* Section heads: the word of the slogan, then what is new about it */
.chapter { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(18px, 4vw, 56px); align-items: end; margin-bottom: 36px; }
.chapter p { font-size: 1.0625rem; line-height: 1.55; max-width: 50ch; }
.band h2 .sl { margin-right: .12em; }
@media (max-width: 820px) { .chapter { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 40px); margin-top: 34px; }
.facts li { padding-top: 14px; border-top: 1px solid var(--rule); font-size: .975rem; line-height: 1.5; color: var(--fg-2); }
.facts b { display: block; color: var(--fg); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* Redaction test */
.peel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.peel-card figcaption { font: 700 1.05rem/1.2 var(--display); margin-bottom: 10px; }

.peel-shot {
  position: relative; display: grid; gap: 12px; padding: 20px 18px; font-size: 14px;
  background: #fff; color: #1d1d1f; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .12);
  user-select: none; -webkit-user-select: none;
}
.peel-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; align-items: center; }
.peel-row b { font-weight: 600; font-size: 12px; color: #7a8194; }
.peel-secret { font-family: var(--mono); font-size: 13px; white-space: nowrap; justify-self: start; }
.peel-gone { display: block; width: 22ch; max-width: 100%; height: 1.5em; background-size: 100% 100%; image-rendering: pixelated; }
.peel-box { position: absolute; padding: 0; border: 0; border-radius: 2px; background: #111; cursor: grab; touch-action: none; }
.peel-box:active { cursor: grabbing; }
.peel-grip { background: transparent; }
.peel-say { margin-top: 12px; min-height: 3em; font-size: .95rem; line-height: 1.4; }
.peel-say[data-state] { font-weight: 700; }
.peel-say[data-state="leak"] { color: var(--bad-on-canvas); }
.peel-say[data-state="safe"] { color: #06351b; }
:root[data-theme="dark"] .peel-say[data-state="safe"] { color: var(--ok); }
@media (max-width: 560px) { .peel { grid-template-columns: 1fr; } .peel-say { min-height: 0; } }

/* Interface tour */
.tabs, .vs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button, .vs button {
  height: 36px; padding: 0 14px; font-weight: 600; font-size: .92rem; white-space: nowrap;
  background: var(--bezel); border: 1px solid var(--edge); border-radius: 8px;
  box-shadow: var(--bezel-hi);
}
.tabs button[aria-selected="true"], .vs button[aria-pressed="true"] {
  background: var(--well); border-color: #2a2a2c; color: #fff; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6);
}
.tour-fig { margin-top: 22px; }
.tour-fig img { width: 100%; border-radius: 10px; box-shadow: var(--shot-shadow); background: var(--chrome); }
.tour-fig figcaption { margin-top: 20px; max-width: 72ch; font-size: 1.0625rem; line-height: 1.5; color: var(--fg-2); min-height: 3em; }

/* What changed since Skitch */
.diff { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 56px); }
.diff-col { --d: #f5b83d; }
.diff-add { --d: #4cd17c; } .diff-del { --d: #ff6f61; }
.diff h3 { display: flex; align-items: center; gap: 12px; font: 700 1.5rem/1.2 var(--display); color: #fff; padding-bottom: 14px; border-bottom: 3px solid var(--d); }
.diff-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--d); color: #121213; font: 800 20px/1 var(--mono); }
.diff ul { list-style: none; padding: 0; }
.diff li { padding: 11px 0; line-height: 1.4; color: #d6d6dc; }
.diff li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.diff s { color: #a5a5ad; text-decoration-color: var(--d); text-decoration-thickness: 2px; }
@media (max-width: 900px) { .diff { grid-template-columns: 1fr; } }
.keys-line { margin-top: clamp(40px, 6vw, 64px); font-size: 1.0625rem; color: #c9c9cf; }
.band-night kbd { background: linear-gradient(#4a4a4f, #3c3c40); color: #fff; border-color: #18181a; box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 2px 0 #0c0c0d; }
.keycap { white-space: nowrap; }
.linkish { background: none; border: 0; padding: 0; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Comparison */
.table-scroll { margin-top: 22px; overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cmp th, .cmp td { padding: 11px 10px; text-align: center; border-bottom: 1px solid var(--rule); }
.cmp thead th { font: 700 1rem/1.2 var(--display); vertical-align: bottom; padding-bottom: 14px; border-bottom-color: var(--line); white-space: nowrap; }
.cmp tbody th { text-align: left; font-weight: 500; padding-left: 0; }
.cmp .us { background: var(--card); }
.cmp thead .us { color: var(--pink-text); border-radius: 10px 10px 0 0; box-shadow: inset 0 3px 0 var(--pink); }
.cmp tbody tr:last-child .us { border-radius: 0 0 10px 10px; }
.cmp[data-vs="all"] { min-width: 760px; }
.cmp[data-vs="1"] [data-c]:not([data-c="1"]),
.cmp[data-vs="2"] [data-c]:not([data-c="2"]),
.cmp[data-vs="3"] [data-c]:not([data-c="3"]),
.cmp[data-vs="4"] [data-c]:not([data-c="4"]),
.cmp[data-vs="5"] [data-c]:not([data-c="5"]) { display: none; }
.mk { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: -3px; }
.mk-yes { background: var(--mk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5 9.400 2.700 2.700L13 6.500' fill='none' stroke='%23fff' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.us .mk-yes { background-color: var(--pink-text); }
.mk-part { background: linear-gradient(90deg, var(--mk) 50%, transparent 50%); box-shadow: inset 0 0 0 2px var(--mk); }
.mk-no { width: 12px; height: 2px; border-radius: 1px; background: #a9a9ae; vertical-align: 4px; }
.cmp-notes { margin-top: 22px; max-width: 86ch; font-size: .875rem; line-height: 1.6; color: var(--fg-2); }
.cmp-notes .mk { margin: 0 2px 0 8px; }
.cmp-notes .mk:first-child { margin-left: 0; }

/* Closing */
.closing { padding-bottom: 28px; text-align: center; }
.closing-icon { margin: 0 auto 28px; border-radius: 20px; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.closing .lede { margin-top: 28px; }
.foot { text-align: left; display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: clamp(64px, 9vw, 120px); padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }
.foot span:last-child { max-width: 70ch; }

/* Command palette */
.cmdk {
  width: min(560px, 100vw - 32px); margin: 14vh auto 0; padding: 0; border: 0; border-radius: 14px; color: var(--fg);
  background: var(--card); box-shadow: 0 24px 64px rgba(0, 0, 0, .4), 0 0 0 1px var(--rule);
}
.cmdk::backdrop { background: rgba(0, 0, 0, .28); }
.cmdk input { width: 100%; height: 54px; padding: 0 18px; font-size: 1.05rem; background: transparent; border: 0; border-bottom: 1px solid var(--rule); outline: none; }
.cmdk ul { list-style: none; margin: 0; padding: 6px; max-height: min(336px, 50vh); overflow: auto; }
.cmdk li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: default; }
.cmdk li[aria-selected="true"] { background: #2f6fe0; color: #fff; }
.cmdk li small { font-size: .8rem; opacity: .75; white-space: nowrap; }
.cmdk .empty { color: var(--fg-2); }
.palette-foot { display: flex; gap: 18px; margin: 0; padding: 9px 14px; border-top: 1px solid var(--rule); font-size: .75rem; color: var(--fg-2); }
.palette-foot kbd { margin-right: 4px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 20; transform: translate(-50%, 12px); max-width: calc(100vw - 32px);
  padding: 10px 16px; border-radius: 10px; background: rgba(0, 0, 0, .82); color: #fff; font-weight: 600; font-size: .95rem;
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s var(--ease);
}
.toast[data-show] { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ink-pop, .sl, .sl::before, .sl::after { animation: none !important; }
  .toast { transition: none; }
}
