/* PopNotes site. One stylesheet, no framework. Tokens first, light then dark. */

@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --ground: #FFF8E7;
  --ground-2: #FFEFC7;
  --surface: #FFFFFF;
  --ink: #2A1E17;
  --ink-2: #5B4A3E;
  --ink-3: #7A6858;
  --line: #2A1E17;
  --hard: #2A1E17;
  --soft: 0 18px 40px -18px rgba(42, 30, 23, .35);
  --link: #B3195F;
  --accent: #0A6A8C;
  --focus: #0A6A8C;
  --dots: rgba(42, 30, 23, .09);
  --code-bg: #FFF1CC;
  --n-yellow: #FFE36E;
  --n-blue: #A9E4FA;
  --n-pink: #FFC2DC;
  --n-green: #BDEBC6;
  --n-orange: #FFD1A1;
  --n-purple: #DCCFFF;
  --note-ink: #2A1E17;
  --note-ink-2: #5B4A3E;
  --yellow: #FFD83D;
  --cyan: #34C3F0;
  --pink: #FF5FA2;
  --header: rgba(255, 248, 231, .86);
  --radius: 16px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #1C1511;
  --ground-2: #261C16;
  --surface: #30251E;
  --ink: #FFF3DC;
  --ink-2: #E6D5BD;
  --ink-3: #C2AE96;
  --line: #0E0A08;
  --hard: #0A0706;
  --soft: 0 18px 40px -18px rgba(0, 0, 0, .7);
  --link: #FF8CC0;
  --accent: #7FD8F7;
  --focus: #7FD8F7;
  --dots: rgba(255, 243, 220, .06);
  --code-bg: #3A2D24;
  --header: rgba(28, 21, 17, .86);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #1C1511;
    --ground-2: #261C16;
    --surface: #30251E;
    --ink: #FFF3DC;
    --ink-2: #E6D5BD;
    --ink-3: #C2AE96;
    --line: #0E0A08;
    --hard: #0A0706;
    --soft: 0 18px 40px -18px rgba(0, 0, 0, .7);
    --link: #FF8CC0;
    --accent: #7FD8F7;
    --focus: #7FD8F7;
    --dots: rgba(255, 243, 220, .06);
    --code-bg: #3A2D24;
    --header: rgba(28, 21, 17, .86);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 4.2vw + 1.2rem, 4.4rem); }
h2 { font-size: clamp(2rem, 2.6vw + 1.1rem, 3.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--font-mono); font-size: .88em; }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 6px; }
kbd {
  display: inline-block; padding: .05em .45em; border: 2px solid var(--line); border-bottom-width: 3px;
  border-radius: 7px; background: var(--surface); color: var(--ink); font-weight: 600; line-height: 1.35; white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
/* Paper notes and the pink band stay bright in dark mode, so focus there is drawn in the notes' own ink. */
.note :focus-visible, .kofi :focus-visible { outline-color: var(--note-ink); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--note-ink); padding: .6em 1em; border: 2.5px solid var(--line); border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.hand { font-family: var(--font-hand); font-weight: 700; font-size: 1.45em; line-height: 1.1; }
.lede { font-size: clamp(1.1rem, .6vw + 1rem, 1.3rem); color: var(--ink-2); max-width: 40em; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 62rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.eyebrow { display: inline-block; color: var(--link); margin-bottom: .2em; transform: rotate(-2deg); }
.band { background: var(--ground-2); }
.dotted { background-image: radial-gradient(var(--dots) 1.4px, transparent 1.6px); background-size: 18px 18px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-ink: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.25em; min-height: 48px;
  font: 700 1.02rem/1.1 var(--font-body); color: var(--btn-ink); text-decoration: none;
  background: var(--btn-bg); border: 2.5px solid var(--line); border-radius: 14px;
  box-shadow: 0 4px 0 var(--hard); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--hard); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--hard); }
.btn-primary { --btn-bg: var(--yellow); --btn-ink: var(--note-ink); }
.btn-pink { --btn-bg: var(--pink); --btn-ink: var(--note-ink); }
.btn-small { min-height: 40px; padding: .5em .95em; font-size: .95rem; border-radius: 12px; }
.btn-big { font-size: 1.12rem; padding: .85em 1.2em; min-height: 56px; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn .btn-sub { display: block; font-weight: 600; font-size: .78em; opacity: .85; margin-top: .2em; }
.btn-stack { flex-direction: column; align-items: flex-start; gap: 0; text-align: left; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.45rem/1 var(--font-display); }
.brand img { width: 44px; height: 44px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: .5em .7em; border-radius: 10px; }
.nav a:hover { background: color-mix(in srgb, var(--yellow) 45%, transparent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.mode-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: var(--surface); color: var(--ink); border: 2.5px solid var(--line); border-radius: 12px; cursor: pointer;
  box-shadow: 0 3px 0 var(--hard);
}
.mode-toggle .icon { width: 22px; height: 22px; }
.mode-toggle .i-sun { display: none; }
:root[data-theme="dark"] .mode-toggle .i-sun { display: block; }
:root[data-theme="dark"] .mode-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mode-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .mode-toggle .i-moon { display: none; }
}
@media (max-width: 860px) { .nav { display: none; } .header-actions { margin-left: auto; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* ---------- Sticky note ---------- */
.note {
  --tilt: 0deg; --paper: var(--n-yellow);
  position: relative; background: var(--paper); color: var(--note-ink);
  border: 2.5px solid var(--line); border-radius: var(--radius);
  box-shadow: 6px 7px 0 var(--hard);
  padding: 20px 22px; transform: rotate(var(--tilt));
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
.note a { color: #8E1049; }
.note code { background: rgba(255, 255, 255, .55); color: var(--note-ink); }
.note h3 { color: var(--note-ink); }
.note p { color: var(--note-ink-2); }
.note:hover { transform: rotate(0deg) scale(1.02); }
.paper-yellow { --paper: var(--n-yellow); } .paper-blue { --paper: var(--n-blue); } .paper-pink { --paper: var(--n-pink); }
.paper-green { --paper: var(--n-green); } .paper-orange { --paper: var(--n-orange); } .paper-purple { --paper: var(--n-purple); }
.tilt-l { --tilt: -1.6deg; } .tilt-r { --tilt: 1.4deg; } .tilt-ll { --tilt: -2.6deg; } .tilt-rr { --tilt: 2.4deg; }

.kind {
  display: inline-flex; align-items: center; gap: .35em;
  font: 800 .72rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--note-ink); background: rgba(255, 255, 255, .6); border: 2px solid var(--note-ink);
  padding: .32em .6em .3em; border-radius: 999px;
}
.kind .icon { width: 1.1em; height: 1.1em; stroke-width: 2.4; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4.5vw, 56px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .pop { display: inline-block; background: var(--yellow); color: var(--note-ink); padding: 0 .18em; border: 3px solid var(--line); border-radius: 14px; box-shadow: 4px 5px 0 var(--hard); transform: rotate(-2deg); }
.hero .lede { margin-bottom: 1.4em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fineprint { margin-top: 1.1em; color: var(--ink-3); font-size: .95rem; }
.fineprint { display: flex; flex-wrap: wrap; row-gap: .2em; }
.fineprint span { white-space: nowrap; }
.fineprint span + span::before { content: "·"; margin: 0 .5em; }
.hero-art { position: relative; margin: 0; padding: 0 0 12% 6%; }
.shot {
  border: 3px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface);
  box-shadow: 8px 10px 0 var(--hard), var(--soft);
}
.hero-shot { transform: rotate(1.2deg); }
.hero-pop {
  position: absolute; left: 0; bottom: 0; width: 52%;
  transform: rotate(-3deg); filter: drop-shadow(6px 8px 0 var(--hard));
}
.tagnote {
  position: absolute; z-index: 2; max-width: 11em; color: var(--ink);
  font: 700 1.5rem/1.05 var(--font-hand); pointer-events: none;
}
.tagnote svg { display: block; width: 72px; height: 44px; stroke: var(--ink); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tagnote-a { right: -2%; top: -9%; transform: rotate(4deg); text-align: right; }
.tagnote-a svg { margin-left: auto; transform: scaleX(-1) rotate(18deg); }
.tagnote-b { right: 0; bottom: -2%; transform: rotate(-3deg); text-align: right; max-width: 42%; }
.tagnote-b svg { margin-right: auto; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 640px; margin-inline: auto; width: 100%; }
}
@media (max-width: 640px) { .tagnote { display: none; } }

/* ---------- What is it ---------- */
.whatis { padding-block: 0 clamp(48px, 7vw, 88px); }
.whatis p { max-width: 50em; margin-inline: auto; text-align: center; font-size: 1.15rem; color: var(--ink-2); }
.whatis strong { color: var(--ink); }

/* ---------- Try it ---------- */
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .try-grid { grid-template-columns: minmax(0, 1fr); } }
.capture {
  background: var(--surface); border: 2.5px solid var(--line); border-radius: 18px; padding: 14px;
  box-shadow: 6px 7px 0 var(--hard);
}
.capture textarea {
  display: block; width: 100%; min-height: 7.5em; resize: vertical; border: 0; background: transparent; color: var(--ink);
  font: 500 1.1rem/1.5 var(--font-body); padding: 6px 8px;
}
.capture textarea::placeholder { color: var(--ink-3); }
.capture textarea:focus-visible { outline: none; }
.capture:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.capture-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-top: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent); padding-top: 12px; margin-top: 6px; }
.capture-hint { color: var(--ink-3); font-size: .92rem; margin-right: auto; }
.badge {
  display: inline-flex; align-items: center; gap: .35em; font: 800 .72rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  padding: .4em .65em; border-radius: 999px; background: var(--n-blue); color: var(--note-ink); border: 2px solid var(--line);
}
.badge[hidden] { display: none; }
.samples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.samples-label { font-weight: 700; color: var(--ink-2); margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: .4em; min-height: 40px; padding: .4em .85em;
  font: 700 .92rem/1.2 var(--font-body); color: var(--ink); background: var(--surface);
  border: 2px solid var(--line); border-radius: 999px; cursor: pointer; box-shadow: 0 3px 0 var(--hard);
  transition: transform .12s ease, box-shadow .12s ease;
}
.chip:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--hard); }
.chip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--hard); }
.chip[aria-pressed="true"] { background: var(--yellow); color: var(--note-ink); }
.try-note { margin-top: 14px; color: var(--ink-3); font-size: .95rem; }

.stream { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.stream-day { font: 700 .9rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.stream-day::after { content: ""; flex: 1; height: 2px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.card { padding: 14px 16px 12px; box-shadow: 4px 5px 0 var(--hard); }
.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.card-time { margin-left: auto; font-size: .85rem; color: var(--note-ink-2); font-weight: 600; }
.card-body { margin: 0; color: var(--note-ink); font-size: 1.02rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.card-extra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: .35em; padding: .25em .6em; border-radius: 999px;
  border: 2px solid var(--note-ink); background: rgba(255, 255, 255, .6); color: var(--note-ink); font-weight: 700; font-size: .85rem;
}
.pill .icon { width: 1em; height: 1em; }
.swatch { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--note-ink); display: inline-block; }
.masked { font-family: var(--font-mono); letter-spacing: .12em; }
.mono { font-family: var(--font-mono); font-size: .92rem; }
.card-head input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: #2A1E17; cursor: pointer; }
.card-suggest { margin-top: 10px; font-size: .9rem; color: var(--note-ink-2); font-weight: 600; }
.card.is-new { animation: pop .42s cubic-bezier(.3, 1.7, .5, 1) both; }
@keyframes pop { from { transform: scale(.6) rotate(-4deg); opacity: 0; } to { transform: scale(1) rotate(var(--tilt)); opacity: 1; } }

/* ---------- Notepad vs cards ---------- */
.before-after { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: center; }
.txtwin {
  background: #FFFFFF; color: #1B1B1B; border: 2.5px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 6px 7px 0 var(--hard);
}
:root[data-theme="dark"] .txtwin { background: #202020; color: #EDEDED; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .txtwin { background: #202020; color: #EDEDED; } }
.txtwin-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font: 600 .85rem/1 var(--font-body); background: rgba(127, 127, 127, .14); border-bottom: 1px solid rgba(127, 127, 127, .3); }
.txtwin-bar .dots { margin-left: auto; display: flex; gap: 14px; opacity: .7; font-weight: 700; }
.txtwin-menu { display: flex; gap: 16px; padding: 6px 12px; font-size: .82rem; border-bottom: 1px solid rgba(127, 127, 127, .25); opacity: .85; }
.txtwin pre { margin: 0; padding: 12px 14px; font: 400 .86rem/1.55 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; min-height: 16em; }
.txtwin-status { display: flex; gap: 18px; justify-content: flex-end; padding: 6px 12px; font-size: .75rem; border-top: 1px solid rgba(127, 127, 127, .25); opacity: .75; }
.ba-arrow { display: grid; place-items: center; gap: 4px; text-align: center; color: var(--ink); }
.ba-arrow svg { width: 88px; height: 50px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ba-arrow .hand { font-size: 1.5rem; }
.sorted { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.mini { padding: 10px 12px; border-radius: 12px; box-shadow: 3px 4px 0 var(--hard); font-size: .92rem; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mini .kind { font-size: .62rem; }
.mini p { margin: 0; color: var(--note-ink); line-height: 1.35; overflow-wrap: anywhere; }
.mini .pill { font-size: .74rem; padding: .15em .5em; border-width: 1.5px; }
.swatches { display: inline-flex; gap: 6px; }
.mini .swatch { width: 22px; height: 22px; border-radius: 6px; }
.sw-sun { background: #F4D35E; } .sw-navy { background: #0D3B66; }
@media (max-width: 900px) {
  .before-after { grid-template-columns: minmax(0, 1fr); }
  .ba-arrow svg { transform: rotate(90deg); }
}
@media (max-width: 420px) { .sorted { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
.steps .note { padding-top: 26px; }
.step-num {
  position: absolute; top: -20px; left: 18px; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); border: 2.5px solid var(--line); border-radius: 50%;
  font: 700 1.3rem/1 var(--font-display); box-shadow: 2px 3px 0 var(--hard);
}
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* ---------- Themes ---------- */
.themes-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.theme-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.theme-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented { display: inline-flex; border: 2.5px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 3px 0 var(--hard); }
.segmented button {
  min-height: 42px; padding: .4em 1em; border: 0; background: var(--surface); color: var(--ink); cursor: pointer;
  font: 700 .95rem/1 var(--font-body); display: inline-flex; align-items: center; gap: .4em;
}
.segmented button + button { border-left: 2.5px solid var(--line); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.theme-figure { margin: 0; }
.theme-figure .shot { transition: opacity .18s ease; }
.theme-figure.is-loading .shot { opacity: .55; }
.theme-figure figcaption { margin-top: 18px; display: flex; flex-wrap: wrap; gap: .3em .6em; align-items: baseline; }
.theme-figure figcaption strong { font: 600 1.5rem/1.1 var(--font-display); }
.theme-figure figcaption span { color: var(--ink-2); }
.more-themes { color: var(--ink-2); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: clamp(40px, 6vw, 72px); align-items: center; }
.duo .shot { transform: rotate(-1deg); }
@media (max-width: 860px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.perstack { display: grid; gap: 12px; }
.perstack .note { padding: 14px 18px; }

.more-themes a { font-weight: 700; }

/* ---------- Theme shelf (/themes/) ---------- */
.nav a[aria-current="page"] { background: color-mix(in srgb, var(--yellow) 45%, transparent); }
.steps-compact .note h2 { font-size: 1.3rem; margin: 0 0 .3em; color: var(--note-ink); }
.steps-compact .note p { margin: 0; }
.shelf-note { display: flex; gap: 12px; align-items: flex-start; max-width: 54em; margin: 44px 0 0; color: var(--ink-2); }
.shelf-note .icon { width: 26px; height: 26px; color: var(--accent); flex: none; margin-top: 2px; }
.shelf-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.shelf-count { margin: 0; font: 600 1.4rem/1 var(--font-display); }
.theme-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.theme-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 2.5px solid var(--line); border-radius: var(--radius); box-shadow: 5px 6px 0 var(--hard); }
.theme-card .shot { border: 0; border-bottom: 2.5px solid var(--line); border-radius: 0; box-shadow: none; }
.theme-card-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.theme-card h2 { font-size: 1.35rem; margin: 0; }
.theme-card p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.theme-card-foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.theme-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.theme-card .status-pill { font-size: .66rem; color: var(--ink-2); }
@media (max-width: 380px) { .theme-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.feature {
  background: var(--surface); border: 2.5px solid var(--line); border-radius: var(--radius); padding: 20px 20px 16px;
  box-shadow: 4px 5px 0 var(--hard);
}
.feature h3 { font-size: 1.2rem; margin: 12px 0 .35em; }
.feature p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.feature-icon {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; border: 2.5px solid var(--line);
  background: var(--paper, var(--n-yellow)); color: var(--note-ink);
}
.feature-icon .icon { width: 24px; height: 24px; }

/* ---------- Use cases ---------- */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 24px; list-style: none; margin: 0; padding: 8px 0 0; }
.cases .note h3 { font-size: 1.25rem; margin-bottom: .4em; }
.cases .note p { margin: 0; font-size: 1rem; }
.cases .note .quote { display: block; font: 700 1.35rem/1.1 var(--font-hand); color: var(--note-ink); margin-top: 10px; }

/* ---------- Compare ---------- */
.compare-wrap { overflow-x: auto; border: 2.5px solid var(--line); border-radius: var(--radius); box-shadow: 6px 7px 0 var(--hard); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 2px solid color-mix(in srgb, var(--ink) 10%, transparent); vertical-align: top; }
.compare thead th { font: 600 1.15rem/1.2 var(--font-display); background: var(--ground-2); }
.compare thead th:last-child { background: var(--yellow); color: var(--note-ink); }
.compare tbody th { font-weight: 700; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.yes, .no { display: inline-flex; align-items: center; gap: .4em; }
.yes .icon { color: #1D8A4E; stroke-width: 3; }
.no { color: var(--ink-3); }
:root[data-theme="dark"] .yes .icon { color: #7FE3A6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .yes .icon { color: #7FE3A6; } }
.compare-foot { margin-top: 22px; text-align: center; color: var(--ink-2); }
@media (max-width: 560px) {
  .compare th, .compare td { padding: 10px 8px; font-size: .92rem; }
  .compare thead th { font-size: 1rem; }
}

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.platform { background: var(--surface); border: 2.5px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: 4px 5px 0 var(--hard); display: flex; flex-direction: column; gap: 6px; }
.platform h3 { margin: 0; font-size: 1.3rem; }
.platform p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.platform .status { align-self: flex-start; margin-top: auto; padding-top: 10px; }
.platform.is-now { background: var(--n-yellow); color: var(--note-ink); }
.platform.is-now p { color: var(--note-ink-2); }
.status-pill { display: inline-block; padding: .3em .7em; border-radius: 999px; font: 800 .75rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; border: 2px solid currentColor; }
@media (max-width: 960px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .platforms { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Privacy promise ---------- */
.promise { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0 0 28px; padding: 0; }
.promise li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.promise .icon { width: 28px; height: 28px; color: var(--accent); margin-top: 2px; }
.promise span { display: block; font-weight: 400; color: var(--ink-2); }
@media (max-width: 960px) { .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .promise { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Download ---------- */
.download-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px);
  background: var(--surface); border: 3px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 44px);
  box-shadow: 8px 10px 0 var(--hard);
}
@media (max-width: 900px) { .download-card { grid-template-columns: minmax(0, 1fr); } }
.download-card h2 { margin-bottom: .3em; }
.reqs { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; color: var(--ink-2); }
.reqs li::before { content: "✓"; font-weight: 800; color: var(--accent); margin-right: .5em; }
.heads-up { --paper: var(--n-yellow); }
.heads-up h3 { display: flex; align-items: center; gap: .4em; }
.heads-up ol { margin: .4em 0 .8em; padding-left: 1.3em; color: var(--note-ink); }
.heads-up p { font-size: .98rem; }
.checksum { margin-top: 12px; }
.checksum-label { font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--note-ink-2); display: block; margin-bottom: 6px; }
.checksum-row { display: flex; gap: 8px; align-items: stretch; }
.checksum code {
  flex: 1; min-width: 0; display: block; padding: .55em .7em; border-radius: 10px; border: 2px solid var(--note-ink);
  background: rgba(255, 255, 255, .7); color: var(--note-ink); font-size: .78rem; overflow-wrap: anywhere; line-height: 1.4;
}
.checksum .btn { min-height: 0; box-shadow: 0 3px 0 var(--hard); --btn-bg: #FFFFFF; --btn-ink: var(--note-ink); }
.copied { font-weight: 700; color: var(--note-ink); min-height: 1.4em; margin: 6px 0 0; font-size: .9rem; }

/* ---------- Ko-fi ---------- */
.kofi {
  background: var(--pink); color: var(--note-ink);
  border-block: 3px solid var(--line);
  background-image: radial-gradient(rgba(255, 255, 255, .28) 2px, transparent 2.4px); background-size: 16px 16px;
}
.kofi .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.kofi h2 { color: var(--note-ink); }
.kofi p { color: var(--note-ink); max-width: 38em; font-size: 1.1rem; }
.kofi .btn { --btn-bg: #FFFFFF; --btn-ink: var(--note-ink); --line: #2A1E17; --hard: #2A1E17; }
@media (max-width: 760px) { .kofi .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { max-width: 52em; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 2.5px solid var(--line); border-radius: 14px; box-shadow: 3px 4px 0 var(--hard); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
  font: 600 1.15rem/1.3 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font: 700 1.6rem/1 var(--font-display); color: var(--link);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 20px 18px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 44px 56px; border-top: 2px solid color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink-2); font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink); font-weight: 700; }
.fineprint-tm { grid-column: 1 / -1; font-size: .85rem; color: var(--ink-3); margin: 0; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Prose pages (privacy, 404) ---------- */
.prose { max-width: 46em; margin-inline: auto; padding-block: clamp(40px, 6vw, 72px) 80px; }
.prose h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.2rem); }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .summary { --paper: var(--n-yellow); margin: 28px 0 8px; }
.prose .summary ul { margin: 0; color: var(--note-ink); }
.prose .updated { color: var(--ink-3); }
.lost { text-align: center; }
.lost .note { max-width: 30em; margin: 28px auto; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .note, .note:hover { transform: none; }
}
