/* /transitions.css */
/* Smooth page changes with no library (#113, from docs/research/2026-10-08-smooth-page-transitions.md).
   Browsers with cross-document view transitions cross-fade between pages; the others navigate as before. */
@view-transition { navigation: auto; }

/* The menu bar is on every page, so it stays put while the rest changes underneath */
nav .bar { view-transition-name: site-nav; }

/* The old page fades out and lifts slightly, the new one fades in from just below */
::view-transition-old(root) { animation: zz-page-out var(--ease-page-out) both; }
::view-transition-new(root) { animation: zz-page-in var(--ease-page-in) both; }
@keyframes zz-page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes zz-page-in { from { opacity: 0; transform: translateY(8px); } }

/* The browser canvas behind the pages takes the page's theme, so nothing flashes white in dark mode */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }

/* Less motion asked for (for example Windows "Animation effects" off): a plain cross-fade, no sliding */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root) { animation: zz-fade-out var(--ease-page-out) both; }
  ::view-transition-new(root) { animation: zz-fade-in var(--ease-page-in) both; }
}
@keyframes zz-fade-out { to { opacity: 0; } }
@keyframes zz-fade-in { from { opacity: 0; } }

/* /sticker-base.css */
/* Colours, fonts, spacing, corners and shadows come from the design system */
/* /design-system/tokens.css */
/* ZazaG Dev design system tokens. Generated from tokens.json by build.mjs: edit tokens.json, not this file. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/design-system/fonts/fredoka-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/design-system/fonts/dm-mono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/design-system/fonts/dm-mono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --is-dark: 0; color-scheme: light;
  --bg: #fbf6ee; --card: #ffffff; --text: #22201c; --muted: #66615a; --line: #22201c; --yt: #ffd3cf; --lx: #cfe6ff; --rd: #ffe1b8; --li: #d6f2dc; --x: #e7defc; --bd: #cdeff0; --pop: #ff5a36; --go: #2fbf71; --on-pop: #22201c; --go-ink: #1d814b; --scrim: rgba(34, 32, 28, 0.5); --screen: #1e1f33; --on-screen: #efedff; --on-screen-muted: #b4b1d6; --app-frogtress: #2a7247; --ill-ink: #22201c; --ill-card: #ffffff; --ill-pop: #ff5a36; --ill-lx: #cfe6ff; --ill-li: #d6f2dc; --ill-rd: #ffe1b8; --ill-go: #2fbf71; --term-bg: #0b0b0e; --term-deep: #0c0c0f; --term-glow: #1b1a2e; --term-bar: #17171c; --term-edge: #2c2c35; --term-dot: #34343d; --term-text: #b9b9c4; --term-title: #d9d9e0; --term-muted: #8c8c99; --term-bright: #f0ece4; --term-lav: #a3a3f5; --term-lav-edge: #3b3b6b; --term-lav-bg: #16162a; --term-cto-edge: #4a4a8a; --term-blue: #7fb0ff; --term-green: #6fd39b; --term-amber: #f0b24a; --term-amber-edge: #5a4520; --term-amber-bg: #1d170c;
  --display: "Fredoka", system-ui, sans-serif; --mono: "DM Mono", ui-monospace, monospace;
  --fs-hero: clamp(44px, 7.5vw, 84px); --fs-h2: clamp(40px, 6.5vw, 64px); --fs-h3: 26px; --fs-body: 16px; --fs-small: 14px; --fs-label: 12px; --fs-micro: 11px; --fs-heroLineHeight: 1.2; --fs-bodyLineHeight: 1.5; --fs-headingWeight: 700; --fs-headingTracking: -0.03em;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 44px; --s6: 104px;
  --r-chip: 6px; --r-sm: 12px; --r-card: 18px; --r-pill: 99px; --r: 18px;
  --bw-card: 2px; --bw-chip: 1.5px;
  --shadow: 4px 4px 0 var(--line); --shadow-lifted: 7px 7px 0 var(--line); --shadow-small: 2px 2px 0 var(--line);
  --ease-press: 0.6s cubic-bezier(.25, 1.5, .5, 1); --ease-hover: 0.25s cubic-bezier(.3, 1.6, .6, 1); --ease-pop: 0.45s cubic-bezier(.3, 1.8, .5, 1); --ease-page-out: 0.18s ease-in; --ease-page-in: 0.25s cubic-bezier(.3, 1.2, .6, 1); --ease-stagger: 0.09s; --ease-tilt: 3deg;
  --chroma: #00ff00;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --is-dark: 1; color-scheme: dark;
  --bg: #15172b; --card: #1f2240; --text: #f3f1ff; --muted: #cac9e1; --line: #0a0b18; --yt: #7a2f3b; --lx: #24477a; --rd: #7a4b1c; --li: #1f5a3a; --x: #4a3a80; --bd: #1b5560; --pop: #ff7a59; --go: #4ade80; --on-pop: #15172b; --go-ink: #4ade80; --scrim: rgba(5, 6, 14, 0.66); --screen: #0f1022; --on-screen: #efedff; --on-screen-muted: #b4b1d6; --app-frogtress: #2a7247; --ill-ink: #22201c; --ill-card: #ffffff; --ill-pop: #ff5a36; --ill-lx: #cfe6ff; --ill-li: #d6f2dc; --ill-rd: #ffe1b8; --ill-go: #2fbf71; --term-bg: #0b0b0e; --term-deep: #0c0c0f; --term-glow: #1b1a2e; --term-bar: #17171c; --term-edge: #2c2c35; --term-dot: #34343d; --term-text: #b9b9c4; --term-title: #d9d9e0; --term-muted: #8c8c99; --term-bright: #f0ece4; --term-lav: #a3a3f5; --term-lav-edge: #3b3b6b; --term-lav-bg: #16162a; --term-cto-edge: #4a4a8a; --term-blue: #7fb0ff; --term-green: #6fd39b; --term-amber: #f0b24a; --term-amber-edge: #5a4520; --term-amber-bg: #1d170c; } }
:root[data-theme="dark"] {
  --is-dark: 1; color-scheme: dark;
  --bg: #15172b; --card: #1f2240; --text: #f3f1ff; --muted: #cac9e1; --line: #0a0b18; --yt: #7a2f3b; --lx: #24477a; --rd: #7a4b1c; --li: #1f5a3a; --x: #4a3a80; --bd: #1b5560; --pop: #ff7a59; --go: #4ade80; --on-pop: #15172b; --go-ink: #4ade80; --scrim: rgba(5, 6, 14, 0.66); --screen: #0f1022; --on-screen: #efedff; --on-screen-muted: #b4b1d6; --app-frogtress: #2a7247; --ill-ink: #22201c; --ill-card: #ffffff; --ill-pop: #ff5a36; --ill-lx: #cfe6ff; --ill-li: #d6f2dc; --ill-rd: #ffe1b8; --ill-go: #2fbf71; --term-bg: #0b0b0e; --term-deep: #0c0c0f; --term-glow: #1b1a2e; --term-bar: #17171c; --term-edge: #2c2c35; --term-dot: #34343d; --term-text: #b9b9c4; --term-title: #d9d9e0; --term-muted: #8c8c99; --term-bright: #f0ece4; --term-lav: #a3a3f5; --term-lav-edge: #3b3b6b; --term-lav-bg: #16162a; --term-cto-edge: #4a4a8a; --term-blue: #7fb0ff; --term-green: #6fd39b; --term-amber: #f0b24a; --term-amber-edge: #5a4520; --term-amber-bg: #1d170c; }


html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--display); font-size: 16px; line-height: 1.5; overflow-x: hidden;
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 25%, transparent) 1px, transparent 1px); background-size: 22px 22px; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 var(--s3); overflow-x: clip; }
nav { position: sticky; top: 12px; z-index: 5; margin-top: 12px; }
nav .bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); background: var(--card); border: 2px solid var(--line); border-radius: 99px; box-shadow: 3px 3px 0 var(--line); padding: 6px 8px 6px 18px; }
.logo { font-weight: 800; font-size: 18px; white-space: nowrap; }
.logo span { background: var(--pop); color: var(--on-pop); padding: 0 8px; border-radius: 8px; margin-left: 4px; }
nav .links { display: flex; gap: 2px; align-items: center; font-weight: 600; font-size: 14px; }
nav .links a { padding: 4px 10px; border-radius: 99px; } nav .links a:hover { background: var(--lx); }
button { white-space: nowrap; font: 600 13px var(--display); background: var(--bg); color: var(--text); border: 2px solid var(--line); border-radius: 99px; padding: 4px 12px; cursor: pointer; }
.hero { min-height: calc(100svh - 70px); display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s5); align-items: center; padding: var(--s5) 0; }
.hero h1 { font-weight: 800; font-size: clamp(44px, 7.5vw, 84px); line-height: .95; letter-spacing: -.035em; }
.hero h1 mark { background: var(--yt); color: inherit; padding: 0 .12em; border-radius: 12px; }
.hero h1 .u { background: var(--lx); border-radius: 12px; padding: 0 .12em; }
.hero p { color: var(--muted); font-size: 18px; margin-top: var(--s3); max-width: 36ch; }
.cta { display: inline-block; margin-top: var(--s4); background: var(--pop); color: var(--on-pop); font-weight: 800; border: 2px solid var(--line); box-shadow: var(--shadow); border-radius: 99px; padding: 12px 24px; transition: transform .15s, box-shadow .15s; }
.cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.stack { position: relative; height: 340px; }
.stack > * { position: absolute; }
.daybadge { background: var(--pop); color: var(--on-pop); border: 2px solid var(--line); box-shadow: var(--shadow); border-radius: 50%; width: 170px; height: 170px; display: grid; place-content: center; text-align: center; transform: rotate(-8deg); top: 0; right: 10%; z-index: 2; }
.daybadge b { font-size: 68px; line-height: .9; }
.daybadge span { font-family: var(--mono); font-size: 13px; }
.livecard { background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); border-radius: var(--r); padding: var(--s3); width: 260px; bottom: 10px; left: 0; transform: rotate(3deg); }
.livecard .on { font-family: var(--mono); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--go-ink); font-weight: 500; }
.livecard .on::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--go); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }
.livecard p { font-size: 14px; color: var(--text); margin-top: 4px; }
.livecard small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tape { width: 90px; height: 26px; background: color-mix(in srgb, var(--rd) 80%, transparent); border: 1.5px solid var(--line); transform: rotate(-12deg); top: 150px; left: 40%; }
section { padding-top: var(--s6); }
h2 { font-weight: 800; font-size: clamp(40px, 6.5vw, 64px); letter-spacing: -.03em; line-height: 1; }
h2 + p { color: var(--muted); margin: var(--s2) 0 var(--s4); }
h3 { font-weight: 800; font-size: 26px; margin: var(--s5) 0 var(--s3); letter-spacing: -.01em; display: flex; gap: var(--s3); align-items: baseline; flex-wrap: wrap; }
h3 small { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s4); }
.status { font-family: var(--mono); font-size: 11px; font-weight: 500; border: 1.5px solid var(--line); border-radius: 99px; padding: 1px 10px; display: inline-block; }
.s-active { background: var(--go); color: #062b16; } .s-planned { background: var(--lx); } .s-completed { background: var(--rd); }
.feature .top { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; align-items: flex-start; }
.feature .title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin-top: var(--s2); }
.feature .upd { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.feature .upd b { color: var(--text); font-weight: 500; }
.todaynote { margin-top: var(--s4); background: var(--li); border: 2px solid var(--line); border-radius: 14px; padding: var(--s3); transform: rotate(-.6deg); }
.todaynote b { font-size: 13px; font-family: var(--mono); font-weight: 500; }
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s5); }
.goal { position: relative; }
.goal .sticker { position: absolute; top: -14px; right: 14px; transform: rotate(6deg); border: 2px solid var(--line); border-radius: 10px; padding: 2px 10px; font-weight: 800; font-size: 13px; background: var(--card); }
.goal h4 { font-size: 22px; font-weight: 800; }
.goal .rule { color: var(--muted); font-size: 14px; }
.ring { width: 100%; max-width: 140px; margin: var(--s3) auto 0; display: block; }
.ring .bg { stroke: color-mix(in srgb, var(--muted) 25%, transparent); }
.ring .fg { stroke: var(--line); stroke-linecap: round; }
:root[data-theme="dark"] .ring .fg { stroke: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ring .fg { stroke: var(--text); } }
.ring text { font-family: var(--display); font-weight: 800; fill: var(--text); }
.weeks { display: grid; gap: var(--s3); }
.week { display: grid; grid-template-columns: 90px repeat(7, 1fr); gap: 6px; align-items: center; }
.week .wl { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.wd { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: center; }
.cell { border: 2px dashed color-mix(in srgb, var(--muted) 50%, transparent); border-radius: 12px; min-height: 54px; display: flex; flex-wrap: wrap; gap: 3px; padding: 5px; align-content: flex-start; }
.cell.today { border: 2px solid var(--pop); }
.cell.future { opacity: .45; }
a.chip { text-decoration: none; }
.chip { font-family: var(--mono); font-size: 10px; font-weight: 500; border: 1.5px solid var(--line); border-radius: 6px; padding: 0 4px; line-height: 16px; color: var(--text); }
.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
a.count { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.count { border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s3); }
.count:nth-child(odd) { transform: rotate(-1deg); } .count:nth-child(even) { transform: rotate(1deg); }
.count .pn { font-weight: 800; font-size: 15px; }
.count .n { font-weight: 800; font-size: 44px; line-height: 1; margin: var(--s2) 0 2px; letter-spacing: -.02em; }
.count .lbl { font-family: var(--mono); font-size: 12px; }
.count .ex { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
.count .d { display: inline-block; margin-top: var(--s2); background: var(--card); border: 1.5px solid var(--line); border-radius: 8px; padding: 0 6px; font-family: var(--mono); font-size: 12px; }
/* #210: the growth chart across the 30 days, a dot at the start and on the latest day, the start number and the end of the challenge under it */
.count svg { width: 100%; height: 44px; margin-top: var(--s2); overflow: visible; }
.count polyline { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.count .gdot { stroke-width: 7; } .count .gdot.now { stroke-width: 10; }
.count .gbase { stroke: color-mix(in srgb, var(--text) 30%, transparent); stroke-width: 1.5; stroke-dasharray: 3 4; }
.count .gends { display: flex; justify-content: space-between; margin-top: 4px; font: 500 11px var(--mono); color: var(--muted); }
.note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: var(--s3); }
.log { display: grid; gap: var(--s2); }
.entry { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s3); align-items: center; padding: 12px var(--s3); }
.entry.cur { background: var(--li); }
.entry .day { font-family: var(--mono); font-size: 12px; color: var(--muted); } .entry .day b { display: block; color: var(--text); font-family: var(--display); font-size: 16px; }
.entry .chips { display: flex; gap: 4px; flex-wrap: wrap; }
.entry .lg { display: inline-flex; align-items: center; gap: 3px; background: var(--tint); border: 1.5px solid var(--line); border-radius: 8px; padding: 2px 4px; }
a.lg { color: inherit; text-decoration: none; cursor: pointer; }
.entry .lg b { font-size: 11px; font-weight: 800; margin-right: 2px; }
.others { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.other h4 { font-size: 22px; font-weight: 800; margin: var(--s2) 0 4px; }
.other p { color: var(--muted); }
.other .when { font-family: var(--mono); font-size: 13px; margin-top: var(--s3); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.proj { display: block; }
/* #2122: a card with its own page opens it from anywhere on the card; the buttons stay on top */
.proj.open { position: relative; cursor: pointer; }
.proj .p-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.proj .p-open:focus-visible { outline: none; } .proj.open:has(.p-open:focus-visible) { outline: 3px solid var(--pop); outline-offset: 3px; }
.proj.open .meta { position: relative; z-index: 1; }
.proj .ic { width: 52px; height: 52px; border: 2px solid var(--line); border-radius: 14px; display: grid; place-content: center; font-weight: 800; font-size: 24px; margin-bottom: var(--s3); }
.proj h4 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.proj p { color: var(--muted); font-size: 15px; margin: 4px 0 var(--s3); }
.proj .ic.logo { overflow: hidden; padding: 0; } .proj .ic.logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The status tag and the icon buttons (App Store, Google Play, GitHub) on one row, every button the same size */
.proj .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.proj .ib { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--card); box-shadow: 2px 2px 0 var(--line); color: var(--text); }
/* The status tag matches the icon buttons beside it: same height, border and shadow (owner, task #160) */
.proj .meta .status { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--card); box-shadow: 2px 2px 0 var(--line); }
.proj .ib:hover, .proj .meta a.status:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.proj .meta a.status { color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.proj .meta a.status:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
.c-yt { background: var(--yt); } .c-lx { background: var(--lx); } .c-rd { background: var(--rd); } .c-li { background: var(--li); } .c-x { background: var(--x); }
footer { padding: var(--s6) 0 var(--s5); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rv { opacity: 0; transform: translateY(26px) rotate(-1.5deg); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.3,1.25); }
.rv.in { opacity: 1; transform: none; }
.count.rv.in:nth-child(odd) { transform: rotate(-1deg); } .count.rv.in:nth-child(even) { transform: rotate(1deg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rv { opacity: 1; transform: none; transition: none; } .livecard .on::before { animation: none; } }
@media (max-width: 760px) {
  nav .links a.hide-s { display: none; }
  nav .bar { padding-left: 12px; } .logo { font-size: 16px; } nav .links a { padding: 4px 6px; } button { padding: 4px 9px; }
  .hero { grid-template-columns: 1fr; gap: var(--s3); min-height: 0; padding-top: var(--s5); }
  .stack { height: 260px; }
  .daybadge { width: 120px; height: 120px; right: 0; } .daybadge b { font-size: 48px; }
  .livecard { width: 230px; }
  .goals, .others, .projects { grid-template-columns: 1fr; } .counts { grid-template-columns: repeat(2, 1fr); }
  .week { grid-template-columns: repeat(7, 1fr); } .week .wl { grid-column: 1 / -1; } .week:first-child > span:first-child { display: none; }
  .cell { min-height: 44px; padding: 3px; } .chip { font-size: 9px; padding: 0 2px; }
  .feature .upd { text-align: left; }
  .entry { grid-template-columns: 1fr; gap: 4px; }
}

/* /c1-plus.css */
/* C1 plus: the improvement ideas, in the Sticker board style. Each idea is wrapped in [data-idea]. */
.idea.off { display: none !important; }

/* 1. Today bar: sits in the page under the menu at every width, and its dot holds still */
.todaybar { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 14px auto 0;
  background: var(--card); border: 2px solid var(--line); border-radius: 99px; box-shadow: var(--shadow); padding: 6px 8px 6px 14px;
  font-family: var(--mono); font-size: 13px; white-space: nowrap; }
a.todaybar { color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.todaybar:hover, a.todaybar:focus-visible { cursor: pointer; transform: translate(-2px, -2px); box-shadow: var(--shadow-lifted); }
a.todaybar:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  a.todaybar { transition: none; }
  a.todaybar:hover, a.todaybar:focus-visible { transform: none; }
}
.todaybar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--go); flex-shrink: 0; }
.livecard .on::before { animation: none; }
.todaybar b { font-family: var(--display); font-size: 15px; }
.todaybar .ticks { display: flex; gap: 4px; }
.todaybar .tick { border: 1.5px solid var(--line); border-radius: 6px; padding: 0 5px; font-size: 11px; }
.todaybar .tick.no { opacity: .4; text-decoration: line-through; }
.todaybar .ago { color: var(--muted); }

/* 2. Pace */
.pace { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.pc { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s3); }
.pc h4 { font-size: 17px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.verdict { font-family: var(--mono); font-size: 11px; border: 1.5px solid var(--line); border-radius: 99px; padding: 0 8px; white-space: nowrap; }
.verdict.ahead { background: var(--li); } .verdict.behind { background: var(--yt); } .verdict.on { background: var(--lx); }
.pc svg { width: 100%; height: 70px; margin-top: var(--s2); overflow: visible; }
.pc .plan { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.pc .done { fill: none; stroke: var(--pop); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s ease .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pc .lg { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 4px; }

/* 3. Tappable calendar days */
.weeks .cell.past { cursor: pointer; transition: transform .2s cubic-bezier(.3, 1.8, .5, 1), background .2s; }
.weeks .cell.past:hover { transform: scale(1.08) rotate(-2deg); background: color-mix(in srgb, var(--lx) 50%, transparent); }
body.no-3 .weeks .cell.past { cursor: default; } body.no-3 .weeks .cell.past:hover { transform: none; background: none; }

/* 4. Milestones */
.miles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.ms { border: 2px dashed var(--line); border-radius: var(--r); padding: var(--s3); position: relative; background: var(--card); }
.ms .goal-n { font-weight: 800; font-size: 26px; line-height: 1; margin: 4px 0; }
.ms .bar { height: 12px; border: 2px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--card); margin-top: var(--s2); }
.ms .bar i { display: block; height: 100%; background: var(--pop); width: 0; transition: width 1.2s cubic-bezier(.5, 0, .2, 1) .2s; }
.ms .left { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 6px; }
.ms .stamp { position: absolute; top: -12px; right: 10px; transform: rotate(8deg); background: var(--card); border: 2px solid var(--line); border-radius: 8px; padding: 0 8px; font-size: 12px; font-weight: 800; }

/* 5. Share card */
.share-btn { display: inline-block; margin: var(--s4) 0 0 var(--s3); padding: 11px 18px; font-size: 15px; box-shadow: 3px 3px 0 var(--line); background: var(--card); }
.share-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); }
.sharecanvas { width: 100%; height: auto; border: 2px solid var(--line); border-radius: 12px; display: block; margin: var(--s3) 0; }
.sheet .actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.sheet .actions a, .sheet .actions button { font: 600 14px var(--display); background: var(--pop); color: var(--on-pop); border: 2px solid var(--line); border-radius: 99px; padding: 8px 16px; box-shadow: 3px 3px 0 var(--line); }
.sheet .actions .ghost { background: var(--card); color: var(--text); }

/* 6. Latest video */
.video { display: grid; grid-template-columns: 300px 1fr; gap: var(--s4); align-items: center; padding: var(--s3); }
.video .thumb { position: relative; display: block; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.video img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.video:hover img { transform: scale(1.05); }
.video .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: var(--pop); color: var(--on-pop); border: 2px solid var(--line); display: grid; place-content: center; font-size: 20px; box-shadow: 3px 3px 0 var(--line); }
.video .vt b { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; }
.video .vt span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.videos .video { grid-template-columns: 1fr; align-items: start; align-content: start; gap: var(--s3); }
.videos .video .vt b { font-size: 17px; }
.videos .video .play { width: 44px; height: 44px; font-size: 16px; }

/* 7. RSS link */
.rss { font-family: var(--mono); background: var(--rd); border: 1.5px solid var(--line); border-radius: 6px; padding: 0 6px; color: var(--text); }

/* 8. About and follow */
.about { display: grid; grid-template-columns: 150px 1fr; gap: var(--s4); align-items: center; margin-top: var(--s5); }
.about img { width: 150px; height: 150px; box-sizing: border-box; padding: 14px 14px 10px; object-fit: contain; border-radius: 50%; border: 2px solid var(--line); background: var(--yt); box-shadow: var(--shadow); }
/* #3974: "Hi, I'm Zaza." is an h2 (the page went from the h1 to an h3), styled as the h3 it replaced */
.about h2 { margin: 0 0 4px; font-size: var(--fs-h3); line-height: inherit; letter-spacing: -.01em; display: flex; gap: var(--s3); align-items: baseline; flex-wrap: wrap; }
.about h2 + p { margin: 0; }
.about p { color: var(--muted); max-width: 60ch; }
.follow { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.follow a { font-weight: 600; font-size: 14px; border: 2px solid var(--line); border-radius: 99px; padding: 4px 12px; box-shadow: 2px 2px 0 var(--line); transition: transform .15s, box-shadow .15s; }
.follow a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--line); }
.follow small { font-family: var(--mono); font-weight: 400; font-size: 11px; margin-left: 4px; }

/* 9. Link preview */
.og { max-width: 560px; padding: 0; overflow: hidden; }
.og .img { aspect-ratio: 1.91 / 1; background: var(--bg); border-bottom: 2px solid var(--line); position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; padding: 6%; gap: 4%;
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 25%, transparent) 1px, transparent 1px); background-size: 14px 14px; }
.og .img .h { font-weight: 800; font-size: clamp(18px, 4vw, 30px); line-height: 1; letter-spacing: -.03em; }
.og .img .h mark { background: var(--yt); color: inherit; border-radius: 6px; padding: 0 .1em; }
.og .img .b { justify-self: center; width: 92px; height: 92px; border-radius: 50%; background: var(--pop); color: var(--on-pop); border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--line); display: grid; place-content: center; text-align: center; transform: rotate(-8deg); }
.og .img .b b { font-size: 36px; line-height: .9; } .og .img .b span { font-family: var(--mono); font-size: 10px; }
.og .meta { padding: 10px 14px; font-size: 14px; }
.og .meta small { display: block; font-family: var(--mono); color: var(--muted); font-size: 11px; }

/* 10. Challenge pages, and the shared sheet */
.others .other.link, .card.feature.link { cursor: pointer; }
.sheet { position: fixed; inset: 0; z-index: 20; background: var(--scrim); display: grid; place-items: center; padding: var(--s3); animation: scrim-in .2s ease-out; }
/* Pop-ups (#173): a see-through dark layer with a light blur over the page, and the page behind holds still */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .sheet, .scrim { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); } }
@keyframes scrim-in { from { opacity: 0; } }
html.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .sheet, .scrim { animation: none; transition: none; } }
.sheet[hidden] { display: none; }
.sheet-card { width: min(560px, 100%); max-height: 88vh; overflow: auto; position: relative; animation: stick .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stick { from { transform: translateY(-30px) rotate(-4deg) scale(1.06); opacity: 0; } }
.sheet .x { position: absolute; top: 10px; right: 12px; font-size: 22px; line-height: 1; padding: 2px 10px; }
.sheet h4 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: var(--s2) 0; padding-right: 40px; }
.sheet .kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: var(--s2); margin: var(--s3) 0; }
.sheet .kv div { border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.sheet .kv b { display: block; font-size: 24px; font-weight: 800; }
.sheet .kv span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.sheet .note2 { background: var(--li); border: 2px solid var(--line); border-radius: 12px; padding: var(--s3); transform: rotate(-.6deg); }
.countdown { font-weight: 800; font-size: 44px; letter-spacing: -.02em; }

/* The demo's idea switches */
.ideas-panel { position: fixed; right: 14px; top: 84px; z-index: 9; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ideas-panel > button { background: var(--rd); box-shadow: 3px 3px 0 var(--line); }
.ideas-list { display: none; background: var(--card); border: 2px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; font-size: 14px; max-height: 70vh; overflow: auto; }
.ideas-panel.open .ideas-list { display: grid; gap: 4px; }
.ideas-list label { display: flex; gap: 8px; align-items: center; cursor: pointer; white-space: nowrap; }
.ideas-list a { font-family: var(--mono); font-size: 12px; text-decoration: underline; margin-top: 6px; }

@media (max-width: 760px) {
  .pace { grid-template-columns: 1fr; } .miles { grid-template-columns: repeat(2, 1fr); }
  .video { grid-template-columns: 1fr; } .videos { grid-template-columns: 1fr; } .videos .video:nth-child(n+4) { display: none; } /* #2184: six on desktop, three on a phone */
  .about { grid-template-columns: 1fr; justify-items: start; }
  .about img { width: 110px; height: 110px; }
  .share-btn { margin: var(--s3) 0 0; }
  /* Phone: the today bar joins the page flow under the menu, and the live dots hold still */
  .todaybar { font-size: 12px; gap: 6px; }
  .todaybar .ago { display: none; }
  .ideas-panel { top: auto; bottom: 74px; }
}

/* Light/dark switch: a sun and a moon, the knob slides to the one in use */
.theme-switch { border-color: var(--text) !important; position: relative; width: 62px; height: 32px; padding: 0 7px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: space-between; flex-shrink: 0; background: var(--card); }
.theme-switch svg { width: 15px; height: 15px; position: relative; z-index: 1; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; transition: opacity .25s; }
.theme-switch .sun circle { fill: #ffc233; stroke: var(--text); }
.theme-switch .moon path { fill: #c9b8ff; stroke: var(--text); }
.theme-switch .knob { position: absolute; top: 3px; left: 3.5px; /* centre on the 15px icon: 7px padding + 7.5px - 11px */ width: 22px; height: 22px; border-radius: 50%; background: var(--rd); border: 2px solid var(--line);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background .25s; }
:root[data-theme="dark"] .theme-switch .knob { background: var(--x); transform: translateX(29px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-switch .knob { background: var(--x); transform: translateX(29px); } }
.theme-switch:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }

/* Link to a challenge's own page */
.own-page { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 13px; font-weight: 500; border: 2px solid var(--line); border-radius: 99px; padding: 2px 10px; background: var(--card); box-shadow: 2px 2px 0 var(--line); }
.own-page:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.other .own-page { display: table; margin-top: 12px; }

/* Hero spacing: room between the bars and the headline, and highlight boxes that do not touch */
.hero h1 { line-height: 1.2; }
.hero h1 mark, .hero h1 .u { display: inline-block; line-height: 1.04; padding: .02em .14em .08em; }
/* The hero is as tall as its content, with the same space above (from the day bar) and below (to the next section) (owner, task #157). */
.hero { min-height: 0; padding: 88px 0 0; }
.hero + .about { margin-top: 88px; }
@media (max-width: 760px) { .hero { padding-top: 52px; } .hero + .about { margin-top: 52px; } .hero h1 { line-height: 1.24; } }

/* Today bar (look A, Progress, chosen 2026-10-08) */
.todaybar.look-A .tb-sum { color: var(--muted); }
.tb-bar { width: 90px; height: 8px; border: 1.5px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--bg); flex-shrink: 0; }
.tb-bar i { display: block; height: 100%; background: var(--go); }
/* #3861: on a narrow phone the bar gives up width so it stays inside the pill */
@media (max-width: 760px) { .tb-bar { width: 60px; flex: 0 1 60px; min-width: 24px; } }
@media (max-width: 380px) { .todaybar .tb-sum { font-size: 11px; } }
.tb-bar { border-color: color-mix(in srgb, var(--text) 55%, transparent); }

/* The day card (day-card.js) in place of the goal cards. Colours, fonts and spacing come from the design system. */
.daycard { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lifted);
  padding: var(--s4); margin-top: var(--s5); display: grid; grid-template-columns: 1fr auto; gap: var(--s3) var(--s4); }
.daycard .dc-head h3 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1; margin: 0; }
.daycard .dc-head p { font: 500 14px var(--mono); color: var(--muted); margin-top: 8px; }
.daycard .dc-badge { align-self: start; width: 120px; aspect-ratio: 1; border-radius: 50%; background: var(--pop); color: var(--on-pop); /* #3974: white on the orange was 2.6:1 to 3.1:1 */
  border: 2px solid var(--line); box-shadow: var(--shadow); display: grid; place-content: center; text-align: center; }
.daycard .dc-badge b { font-size: 52px; font-weight: 800; line-height: .9; }
.daycard .dc-badge span { font: 500 13px var(--mono); }
/* #205: big back and forward buttons beside "Day N of 30" (day-switch.js) */
.daycard .dc-switch { display: flex; align-items: center; gap: 10px; }
.daycard .dc-step { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--card); color: var(--text); border: 2px solid var(--line); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.daycard .dc-step:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: var(--shadow-lifted); }
.daycard .dc-step:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
.daycard .dc-step:disabled { opacity: .3; cursor: default; box-shadow: none; }
.daycard .dc-step:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
/* #207: the goal boxes span the card under the heading and the day circle, up to four columns, each box only as tall as its goals */
.daycard .dc-groups { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--s2); align-items: start; }
.daycard .dc-col { display: flex; flex-direction: column; gap: var(--s2); }
.daycard .dc-grp { background: var(--tint); border: 2px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; }
.daycard .dc-grp h4 { font-size: 16px; font-weight: 800; margin: 0 2px 8px; }
.daycard .dc-goals { display: grid; grid-template-columns: 1fr; gap: 8px; }
.daycard .dc-g { border: 2px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-small); padding: 8px 10px; background: var(--card); min-height: 72px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.daycard .dc-g small { font-weight: 700; font-size: 13px; }
.daycard .dc-g b { font-size: 19px; font-weight: 800; }
.daycard .dc-g.not b { color: var(--muted); font-weight: 600; }
.daycard .dc-g.on { background: var(--go); color: var(--on-pop); }
/* #206: the round open-the-post button in a linked goal's corner */
.daycard .dc-g { position: relative; }
.daycard .dc-open { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text); background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow-small); transition: transform .15s, box-shadow .15s; }
/* #1133: the tile keeps room for the button, so the label and the value wrap before it (32px button and 6px either side) */
.daycard .dc-g:has(.dc-open) { padding-right: 44px; }
.daycard .dc-open:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.daycard .dc-open:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
/* #2576: a goal with several posts that day, one numbered chip per post ("1 ↗", "2 ↗")
   #3521: in a wrapping row under the count, inside the tile, so any number of posts fits */
.daycard .dc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.daycard .dc-chip { height: 30px; padding: 0 9px; border-radius: 15px; display: inline-flex; align-items: center; gap: 2px; font: 800 13px var(--display); color: var(--text);
  text-decoration: none; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow-small); transition: transform .15s, box-shadow .15s; }
.daycard .dc-chip:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.daycard .dc-chip:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
.daycard .dc-counts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.daycard .dc-c { border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-small); }
.daycard .dc-c small { font-weight: 600; font-size: 14px; }
.daycard .dc-c b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; }
.daycard .dc-c i { font: 500 12px var(--mono); color: var(--go-ink); font-style: normal; }
@media (max-width: 760px) {
  .daycard { padding: var(--s3); }
  .daycard .dc-badge { grid-row: auto; width: 84px; }
  .daycard .dc-badge b { font-size: 36px; }
  .daycard .dc-badge span { font-size: 10px; }
  .daycard .dc-switch { gap: 8px; }
  .daycard .dc-step { width: 46px; height: 46px; }
  .daycard .dc-groups { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .daycard .dc-col { display: contents; }
  .daycard .dc-goals { grid-template-columns: repeat(2, 1fr); }
  .daycard .dc-goals { gap: 6px; }
  .daycard .dc-g { min-height: 0; padding: 6px 8px; border-radius: 10px; }
  .daycard .dc-g small { font-size: 11.5px; }
  .daycard .dc-g b { font-size: 16px; }
  .daycard .dc-grp { padding: 8px; }
  .daycard .dc-grp h4 { font-size: 15px; margin-bottom: 6px; }
  .daycard .dc-open { width: 26px; height: 26px; top: 4px; right: 4px; }
  .daycard .dc-g:has(.dc-open) { padding-right: 36px; }
  .daycard .dc-open svg { width: 13px; height: 13px; }
  .daycard .dc-chips { gap: 4px; }
  .daycard .dc-chip { height: 26px; padding: 0 7px; font-size: 12px; }
  .daycard .dc-counts { grid-template-columns: repeat(2, 1fr); }
}

/* Hero day rail (#173, owner's sketch): one long line across the hero, rising a little to the right,
   with the day circle sitting on it at today's day. Replaces the big day badge and its tape. */
.hero .stack { height: auto; align-self: center; }
.hero .stack > * { position: relative; }
.hero .livecard { bottom: auto; }
/* The live card's link icon (#1008): a small sticker button at the top right, only when the day has a link */
.livecard .lc-link { position: absolute; top: var(--s2); right: var(--s2); width: 32px; height: 32px; display: grid; place-items: center;
  border: var(--bw-chip) solid var(--line); border-radius: var(--r-pill); background: var(--yt); color: var(--text); box-shadow: var(--shadow-small); }
.livecard .lc-link:hover, .livecard .lc-link:focus-visible { background: var(--pop); color: var(--on-pop); }
.livecard:has(.lc-link) .on { margin-right: 36px; }
.dayrail { grid-column: 1 / -1; --dot: 68px; padding: calc(var(--dot) / 2) calc(var(--dot) / 2) 0; margin-top: var(--s4); }
.dayrail.rv { opacity: 1; transform: none; }
.dr-line { position: relative; height: 4px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--text) 75%, transparent); transform: rotate(-1.2deg); }
.dr-done { position: absolute; left: 0; top: 50%; height: 10px; width: 0; transform: translateY(-50%); border-radius: var(--r-pill); background: var(--pop); border: var(--bw-chip) solid var(--line); transition: width 1.1s var(--ease-press, ease) .3s; }
.dayrail.in .dr-done { width: var(--at); }
.dr-dot { position: absolute; top: 50%; left: 0; width: var(--dot); height: var(--dot); transform: translate(-50%, -50%) rotate(1.2deg); border-radius: 50%;
  background: var(--pop); color: var(--on-pop); border: var(--bw-card) solid var(--line); box-shadow: var(--shadow); display: grid; place-content: center; text-align: center; line-height: 1;
  transition: left 1.1s var(--ease-press, ease) .3s; }
.dayrail.in .dr-dot { left: var(--at); }
.dr-dot small { font: 500 11px var(--mono); }
.dr-dot b { font-size: 28px; font-weight: 800; margin-top: 1px; }
.dr-ends { display: flex; justify-content: space-between; margin-top: calc(var(--dot) / 2 + var(--s2)); font: 400 12px var(--mono); color: var(--muted); }
@media (max-width: 760px) {
  /* Phone: the whole hero is centred (owner, #173) */
  .hero { text-align: center; justify-items: center; }
  .hero p, .hero h1 { margin-left: auto; margin-right: auto; }
  .hero .stack { justify-self: center; }
  .hero .livecard { text-align: center; }
  /* Phone: the big cards (calendar, day card, challenge card) sit flat, never tilted (owner, #180).
     The calendar card is taller than the screen, so its reveal never fired and it stayed tilted. */
  .card.rv:has(.weeks), .daycard.rv, .card.feature.rv { transform: none; box-shadow: var(--shadow); }
  /* #1639: the calendar card stays still on a phone (a tap left the hover lift on), and gives its 4px shadow room on the
     right so the gaps either side look equal. Tapping a day still opens its entry. */
  .card.rv.in:has(.weeks):hover, .card.rv:has(.weeks):active { transform: none; box-shadow: var(--shadow); }
  .card.rv:has(.weeks) { transition: none; margin-right: 4px; }
  .card.rv:has(.weeks) .pcal .cw-nav button:hover { transform: none; box-shadow: 2px 2px 0 var(--line); }
  /* The platform cards inside keep room for their 2px shadow only, so they sit evenly too */
  .card.rv:has(.weeks) .pcal .cw { padding-right: 2px; }
  .about { justify-items: center; text-align: center; }
  .about p { margin-left: auto; margin-right: auto; } .about h2 { justify-content: center; }
  .follow { justify-content: center; }
  .dayrail { --dot: 54px; margin-top: var(--s3); width: 100%; }
  .dr-dot b { font-size: 22px; } .dr-dot small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .dr-done, .dr-dot { transition: none; } }

/* /design-system/components.css */
/* ZazaG Dev design system components. Use with tokens.css. Every class starts with zz- so it can sit beside a page's own CSS. */

/* Page ground: cream paper with a dot grid */
.zz-page { background: var(--bg); color: var(--text); font-family: var(--display); font-size: var(--fs-body); line-height: var(--fs-bodyLineHeight);
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 25%, transparent) 1px, transparent 1px); background-size: 22px 22px; }
.zz-h1 { font-weight: var(--fs-headingWeight); font-size: var(--fs-hero); line-height: var(--fs-heroLineHeight); letter-spacing: var(--fs-headingTracking); text-wrap: balance; }
.zz-h2 { font-weight: var(--fs-headingWeight); font-size: var(--fs-h2); line-height: 1; letter-spacing: var(--fs-headingTracking); text-wrap: balance; }
.zz-h3 { font-weight: var(--fs-headingWeight); font-size: var(--fs-h3); letter-spacing: -.01em; }
.zz-label { font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); }

/* Highlight: a pastel box behind one word of a headline */
.zz-hl { display: inline-block; line-height: 1.04; padding: .02em .14em .08em; border-radius: var(--r-sm); background: var(--yt); }
.zz-hl.alt { background: var(--lx); }

/* Sticker card: ink outline, hard shadow, lifts on hover */
.zz-card { background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--s4);
  transition: transform var(--ease-hover), box-shadow var(--ease-hover); }
.zz-card.lift:hover { transform: translate(-3px, -4px) rotate(-.6deg); box-shadow: var(--shadow-lifted); }
.zz-card.tint-yt { background: var(--yt); } .zz-card.tint-lx { background: var(--lx); } .zz-card.tint-rd { background: var(--rd); }
.zz-card.tint-li { background: var(--li); } .zz-card.tint-x { background: var(--x); }
.zz-card.dashed { border-style: dashed; }

/* Buttons */
.zz-btn { display: inline-flex; align-items: center; gap: 8px; font: 800 16px var(--display); color: var(--on-pop); background: var(--pop); border: var(--bw-card) solid var(--line);
  border-radius: var(--r-pill); padding: 12px 24px; box-shadow: var(--shadow); cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.zz-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.zz-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.zz-btn.ghost { background: var(--card); color: var(--text); }
.zz-btn.small { font-size: 13px; padding: 4px 12px; box-shadow: var(--shadow-small); }
.zz-btn:focus-visible, .zz-switch:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }

/* Text and email inputs */
.zz-input { display: block; width: 100%; min-width: 0; font: 500 var(--fs-body) var(--display); color: var(--text); background: var(--card);
  border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: 10px var(--s3); box-shadow: var(--shadow-small); }
.zz-input::placeholder { color: var(--muted); opacity: 1; }
.zz-input:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }

/* Chips and status pills */
.zz-chip { font-family: var(--mono); font-size: var(--fs-micro); font-weight: 500; border: var(--bw-chip) solid var(--line); border-radius: var(--r-chip); padding: 0 6px; line-height: 18px; color: var(--text); background: var(--card); }
.zz-chip.yt { background: var(--yt); } .zz-chip.lx { background: var(--lx); } .zz-chip.rd { background: var(--rd); } .zz-chip.li { background: var(--li); } .zz-chip.x { background: var(--x); }
.zz-status { font-family: var(--mono); font-size: var(--fs-micro); font-weight: 500; border: var(--bw-chip) solid var(--line); border-radius: var(--r-pill); padding: 1px 10px; display: inline-block; color: var(--text); }
.zz-status.active { background: var(--go); color: #062b16; } .zz-status.planned { background: var(--lx); } .zz-status.completed { background: var(--rd); }

/* Day badge: the round, tilted counter */
.zz-badge { width: 150px; height: 150px; border-radius: 50%; background: var(--pop); color: var(--on-pop); border: var(--bw-card) solid var(--line); box-shadow: var(--shadow);
  display: grid; place-content: center; text-align: center; transform: rotate(-8deg); }
.zz-badge b { font-size: 60px; line-height: .9; } .zz-badge span { font-family: var(--mono); font-size: 13px; }

/* Sun and moon switch: the knob slides to the one in use */
.zz-switch { position: relative; width: 62px; height: 32px; padding: 0 7px; border-radius: var(--r-pill); border: var(--bw-card) solid var(--text); background: var(--card);
  display: inline-flex; align-items: center; justify-content: space-between; cursor: pointer; }
.zz-switch svg { width: 15px; height: 15px; position: relative; z-index: 1; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.zz-switch .sun circle { fill: #ffc233; } .zz-switch .moon path { fill: #c9b8ff; }
.zz-switch .knob { position: absolute; top: 3px; left: 3.5px; /* centre on the 15px icon: 7px padding + 7.5px - 11px */ width: 22px; height: 22px; border-radius: 50%; background: var(--rd); border: var(--bw-card) solid var(--line); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
:root[data-theme="dark"] .zz-switch .knob { background: var(--x); transform: translateX(29px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .zz-switch .knob { background: var(--x); transform: translateX(29px); } }

/* Today bar */
.zz-today { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow); padding: 6px 14px; font-family: var(--mono); font-size: 13px; }
.zz-today .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--go); }
.zz-today b { font-family: var(--display); font-size: 15px; white-space: nowrap; }
.zz-today { white-space: nowrap; max-width: 100%; }
.zz-today .bar { width: 90px; height: 8px; border: var(--bw-chip) solid color-mix(in srgb, var(--text) 55%, transparent); border-radius: var(--r-pill); overflow: hidden; }
.zz-today .bar i { display: block; height: 100%; background: var(--go); }
.zz-today .sum { color: var(--muted); } /* Progress look, the site's Today bar (owner, 2026-10-08) */
@media (max-width: 760px) { .zz-today .bar { width: 60px; } }

/* Platform calendar card: a row per goal, the week's total, 7 day dots */
.zz-pcard { border: var(--bw-card) solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--tint, var(--yt)) 55%, var(--card)); padding: 10px 12px 6px; box-shadow: var(--shadow-small); }
.zz-pcard.personal { background: var(--card); border-style: dashed; }
.zz-pcard .name { font-size: 15px; font-weight: 800; }
.zz-pcard .row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: baseline; padding: 7px 0; border-top: var(--bw-chip) dashed color-mix(in srgb, var(--line) 25%, transparent); }
.zz-pcard .kind { font-size: 13px; font-weight: 600; } .zz-pcard .kind small { font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.zz-pcard .sum { font-family: var(--mono); font-size: 12px; }
.zz-dots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; justify-items: center; }
.zz-dots i { width: 16px; height: 16px; border-radius: 50%; border: var(--bw-chip) solid var(--line); background: var(--card); }
.zz-dots i.on { background: var(--line); }
.zz-dots i.part { background: conic-gradient(var(--line) var(--p, 50%), var(--card) 0); }
.zz-dots i.miss { border-color: var(--pop); }
.zz-dots i.fut { border-style: dashed; border-color: color-mix(in srgb, var(--muted) 50%, transparent); background: transparent; }
:root[data-theme="dark"] .zz-dots i.on { background: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .zz-dots i.on { background: var(--text); } }
/* A day is its whole column (day button plus that day's dots). Script places .zz-col over the column
   under the pointer or the keyboard-focused day, and adds .col-on to the card while a day can open. */
.zz-pcard { position: relative; }
.zz-pcard.col-on { cursor: pointer; }
.zz-col { position: absolute; bottom: 4px; border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: color-mix(in srgb, var(--text) 9%, transparent); border: var(--bw-chip) solid color-mix(in srgb, var(--text) 45%, transparent); }
.zz-pcard.col-on .zz-col { opacity: 1; }

/* Follower count sticker */
.zz-count { border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--s3); background: var(--yt); transform: rotate(-1deg); }
.zz-count .n { font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.02em; margin: var(--s2) 0 2px; }
.zz-count .d { display: inline-block; margin-top: var(--s2); background: var(--card); border: var(--bw-chip) solid var(--line); border-radius: 8px; padding: 0 6px; font-family: var(--mono); font-size: 12px; }

/* Press-in motion for stickers entering the page; respects nothing being hidden at rest */
.zz-press { transform: translate(-8px, -14px) rotate(calc(var(--ease-tilt) * -1)) scale(1.05); transition: transform var(--ease-press), box-shadow var(--ease-press); }
.zz-press.in { transform: none; }

/* Live sticker cursor (cursor.js): the page draws the arrow; the system cursor hides once a mouse moves */
@media (pointer: fine) {
  html.zz-cursor-on, html.zz-cursor-on * { cursor: none !important; }
  html.zz-cursor-on :is(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]), textarea, [contenteditable="true"]) { cursor: text !important; }
}
.zz-cursor { position: fixed; left: 0; top: 0; width: 32px; height: 34px; pointer-events: none; z-index: 2147483647;
  transform-origin: 5px 3px; opacity: 0; transition: opacity .15s; will-change: transform; }
.zz-cursor.on { opacity: 1; }

/* Orange glow that remembers (dots.js, class zz-glow): a canvas behind the page that lights the background dots */
.zz-glow { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* /blog/blog.css */
/* Blog index, tag pages and post pages (#3584, #3629). Every colour, size, spacing, border and font comes from the design tokens. */
.bl-index-head { padding: var(--s5) 0 var(--s4); }
.bl-index-head h1 { font-weight: var(--fs-headingWeight); font-size: var(--fs-hero); line-height: var(--fs-heroLineHeight); letter-spacing: var(--fs-headingTracking); }
.bl-index-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s2); }
.bl-index-head p { color: var(--muted); font-size: var(--fs-body); line-height: var(--fs-bodyLineHeight); max-width: 60ch; margin: 0; }
.bl-rss { font-family: var(--mono); font-size: var(--fs-label); color: var(--text); background: var(--rd); border: var(--bw-chip) solid var(--line); border-radius: var(--r-pill); padding: var(--s1) var(--s3); box-shadow: var(--shadow-small); white-space: nowrap; transition: transform var(--ease-hover); }
.bl-rss:hover { transform: translate(calc(-1 * var(--s1) / 4), calc(-1 * var(--s1) / 4)); }
.bl-rss:focus-visible { outline: var(--bw-card) solid var(--pop); outline-offset: var(--s1); }

/* Tag filter chips: matches .k-filter from the Apps list pages, using tokens */
.bl-filter { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); position: static; z-index: auto; }
.bl-filter a, .bl-filter span { font-family: var(--mono); font-size: var(--fs-small); border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: var(--s1) var(--s3); background: var(--card); color: var(--text); box-shadow: var(--shadow-small); transition: transform var(--ease-hover); }
.bl-filter span[aria-current="page"] { background: var(--pop); color: var(--on-pop); font-weight: var(--fs-headingWeight); }
.bl-filter a:hover { transform: translate(calc(-1 * var(--s1) / 4), calc(-1 * var(--s1) / 4)); }
.bl-filter a:focus-visible { outline: var(--bw-card) solid var(--pop); outline-offset: var(--s1); }

.bl-meta { font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); }
.bl-views:not([hidden]) { display: inline-flex; align-items: center; gap: var(--s1); }
.bl-views-eye { width: 1.15em; height: 1.15em; flex: none; }

.bl-list { display: grid; gap: var(--s4); }
.bl-card { display: grid; grid-template-columns: 1fr; gap: var(--s3); padding: var(--s4); transition: transform var(--ease-hover), box-shadow var(--ease-hover); }
.bl-card:hover { transform: translate(calc(-1 * var(--s1) / 2), calc(-1 * var(--s1) / 2)); box-shadow: var(--shadow-lifted); }
.bl-card:focus-visible { outline: var(--bw-card) solid var(--pop); outline-offset: var(--s1); }
.bl-card-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border: var(--bw-card) solid var(--line); border-radius: var(--r-sm); background: var(--screen); }
.bl-card-text { display: grid; gap: var(--s2); }
.bl-card h2 { font-size: var(--fs-h3); font-weight: var(--fs-headingWeight); line-height: var(--fs-heroLineHeight); letter-spacing: var(--fs-headingTracking); }
.bl-card p { color: var(--muted); font-size: var(--fs-body); line-height: var(--fs-bodyLineHeight); margin: 0; }
.bl-card-tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s1); }
.bl-tag { font-family: var(--mono); font-size: var(--fs-label); color: var(--text); background: var(--bg); border: var(--bw-chip) solid var(--line); border-radius: var(--r-pill); padding: 0 var(--s2); line-height: var(--fs-bodyLineHeight); }

.bl-back { margin: var(--s4) 0 var(--s3); font-family: var(--mono); font-size: var(--fs-small); color: var(--muted); }
.bl-back a { text-decoration: underline; }
.bl-back a:hover { color: var(--text); }

/* #3635: on large screens a post page is 15% wider than the site's other pages, and its text, cover, images and code span the card */
@media (min-width: 1200px) { .wrap:has(.bl-post) { max-width: calc(1000px * 1.15); } }
.bl-post { padding: var(--s5); }
.bl-head { margin: 0 0 var(--s4); }
.bl-head .bl-meta { margin-bottom: var(--s2); }
.bl-head h1 { font-weight: var(--fs-headingWeight); font-size: var(--fs-h2); line-height: var(--fs-heroLineHeight); letter-spacing: var(--fs-headingTracking); }
/* #3637: the date line and the two copy buttons share one row, centred, buttons at the right */
.bl-meta-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.bl-head .bl-meta-row .bl-meta { margin-bottom: 0; }
.bl-actions { flex: 0 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.bl-act { display: inline-flex; align-items: center; gap: calc(var(--s1) * 1.5); font-family: var(--display); font-size: var(--fs-small); font-weight: var(--fs-headingWeight); border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: calc(var(--s1) * 1.5) var(--s3); box-shadow: var(--shadow-small); cursor: pointer; background: var(--card); color: var(--text); white-space: nowrap; transition: transform var(--ease-hover); }
.bl-act.agent { background: var(--pop); color: var(--on-pop); }
.bl-act:hover { transform: translate(calc(-1 * var(--s1) / 4), calc(-1 * var(--s1) / 4)); }
.bl-act[data-copied="true"] { background: var(--go); color: var(--on-pop); }
.bl-act:focus-visible { outline: var(--bw-card) solid var(--pop); outline-offset: var(--s1); }
.bl-head-tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.bl-head-tags a.bl-tag { background: var(--card); padding: calc(var(--s1) / 2) var(--s2); box-shadow: var(--shadow-small); transition: transform var(--ease-hover); }
.bl-head-tags a.bl-tag:hover { background: var(--lx); transform: translate(calc(-1 * var(--s1) / 4), calc(-1 * var(--s1) / 4)); }
.bl-head-tags a.bl-tag:focus-visible { outline: var(--bw-card) solid var(--pop); outline-offset: var(--s1); }
.bl-cover { margin-top: var(--s4); }
.bl-cover img { width: 100%; height: auto; display: block; border: var(--bw-card) solid var(--line); border-radius: var(--r-sm); background: var(--screen); }

.bl-body { font-size: var(--fs-body); line-height: var(--fs-bodyLineHeight); }
.bl-body > * + * { margin-top: var(--s3); }
.bl-body h2 { font-size: var(--fs-h3); font-weight: var(--fs-headingWeight); line-height: var(--fs-heroLineHeight); letter-spacing: var(--fs-headingTracking); margin-top: var(--s5); }
.bl-body h3 { font-size: var(--fs-body); font-weight: var(--fs-headingWeight); line-height: var(--fs-heroLineHeight); margin: var(--s4) 0 0; display: block; }
.bl-body p { color: var(--text); }
.bl-body a { text-decoration: underline; text-decoration-thickness: var(--bw-chip); text-underline-offset: var(--s1); }
.bl-body a:hover { background: var(--lx); border-radius: var(--r-chip); }
.bl-body ul, .bl-body ol { padding-left: var(--s4); display: grid; gap: var(--s2); }
.bl-body blockquote { border-left: var(--bw-card) solid var(--pop); padding: var(--s2) var(--s3); background: var(--bg); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--muted); }
.bl-body code { font-family: var(--mono); font-size: var(--fs-small); background: var(--bg); border: var(--bw-chip) solid var(--line); border-radius: var(--r-chip); padding: 0 var(--s1); }
.bl-body pre { background: var(--screen); color: var(--on-screen); border: var(--bw-card) solid var(--line); border-radius: var(--r-sm); padding: var(--s3); overflow-x: auto; box-shadow: var(--shadow-small); }
.bl-body pre code { background: none; border: 0; padding: 0; color: inherit; font-size: var(--fs-small); }
.bl-body img { width: 100%; height: auto; display: block; border: var(--bw-card) solid var(--line); border-radius: var(--r-sm); margin: var(--s4) 0; background: var(--screen); }
.bl-body hr { border: 0; border-top: var(--bw-card) solid var(--line); margin: var(--s5) 0; }

/* TL;DR and Series boxes */
.bl-tldr, .bl-series { background: var(--bg); border: var(--bw-card) solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-small); padding: var(--s3); }
.bl-box-label { display: inline-block; font-family: var(--mono); font-size: var(--fs-label); font-weight: var(--fs-headingWeight); border: var(--bw-chip) solid var(--line); border-radius: var(--r-chip); padding: 0 var(--s2); margin-bottom: var(--s2); }
.bl-tldr .bl-box-label { background: var(--pop); color: var(--on-pop); }
.bl-series .bl-box-label { background: var(--lx); color: var(--text); }
.bl-tldr p { margin: 0; }
.bl-series ol { margin: 0; padding-left: var(--s4); display: grid; gap: var(--s1); }
.bl-series li[aria-current="page"] span { font-weight: var(--fs-headingWeight); color: var(--text); }

/* #3630: every code block is a box with a bar on top: its title on the left, a Copy button (icon + "Copy") on the right; the code starts below the bar */
.bl-code { background: var(--screen); color: var(--on-screen); border: var(--bw-card) solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-small); overflow: hidden; }
.bl-code-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s2) var(--s2) var(--s2) var(--s3); border-bottom: var(--bw-chip) solid var(--on-screen-muted); }
.bl-code-title { font-family: var(--mono); font-size: var(--fs-small); font-weight: var(--fs-headingWeight); color: var(--on-screen); min-width: 0; overflow-wrap: anywhere; }
.bl-body .bl-code pre { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.bl-copy { flex: none; display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--mono); font-size: var(--fs-small); font-weight: var(--fs-headingWeight); background: var(--card); color: var(--text); border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: calc(var(--s1) * 1.5) var(--s3); box-shadow: var(--shadow-small); cursor: pointer; }
/* #3630: prompt blocks (```text) wrap their long lines so the whole prompt is visible */
.bl-body pre:has(code.language-text) { white-space: pre-wrap; overflow-wrap: anywhere; }
.bl-copy:hover { background: var(--lx); }
.bl-copy[data-copied="true"] { background: var(--go); color: var(--on-pop); }
.bl-copy:focus-visible { outline: var(--bw-card) solid var(--pop); outline-offset: var(--s1); }

.bl-body .bl-cross { margin: var(--s5) 0 0; padding-top: var(--s3); border-top: var(--bw-card) dashed var(--line); font-family: var(--mono); font-size: var(--fs-small); color: var(--muted); }
.bl-body .bl-cross a { color: var(--text); text-decoration: underline; }

/* Share row */
.bl-share { margin-top: var(--s4); padding-top: var(--s3); border-top: var(--bw-card) dashed var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.bl-share-label { font-family: var(--mono); font-size: var(--fs-small); color: var(--muted); }
.bl-share .follow { margin-top: 0; }
.bl-body .bl-share .follow a { text-decoration: none; background: var(--bg); border-radius: var(--r-pill); }
.bl-body .bl-share .follow a.c-x { background: var(--x); }
.bl-body .bl-share .follow a.c-li { background: var(--li); }
.bl-body .bl-share .follow a[data-copied="true"] { background: var(--go); color: var(--on-pop); }
.bl-body .bl-share .follow a:hover { border-radius: var(--r-pill); }
.bl-body .bl-share .follow a:focus-visible { outline: var(--bw-card) solid var(--pop); outline-offset: var(--s1); }

/* Related posts */
.bl-related { padding-top: 0; margin-top: var(--s5); }
.bl-related h2 { font-size: var(--fs-h3); font-weight: var(--fs-headingWeight); line-height: var(--fs-heroLineHeight); letter-spacing: var(--fs-headingTracking); margin-bottom: var(--s3); }
.bl-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--s4) * 10), 1fr)); gap: var(--s3); }
.bl-related-card { display: grid; grid-template-columns: 1fr; align-content: start; gap: var(--s2); padding: var(--s3); transition: transform var(--ease-hover), box-shadow var(--ease-hover); }
.bl-related-card:hover { transform: translate(calc(-1 * var(--s1) / 2), calc(-1 * var(--s1) / 2)); box-shadow: var(--shadow-lifted); }
.bl-related-card:focus-visible { outline: var(--bw-card) solid var(--pop); outline-offset: var(--s1); }
.bl-related-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border: var(--bw-card) solid var(--line); border-radius: var(--r-sm); background: var(--screen); }
.bl-related-card h3 { font-size: var(--fs-body); font-weight: var(--fs-headingWeight); line-height: var(--fs-heroLineHeight); margin: 0; display: block; }

.bl-author { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: center; margin-top: var(--s4); padding: var(--s4); }
.bl-author img { width: calc(var(--s5) * 2); height: calc(var(--s5) * 2); box-sizing: border-box; padding: var(--s2); object-fit: contain; border-radius: var(--r-pill); border: var(--bw-card) solid var(--line); background: var(--yt); box-shadow: var(--shadow-small); }
.bl-author b { display: block; font-size: var(--fs-h3); font-weight: var(--fs-headingWeight); }
.bl-author p { color: var(--muted); font-size: var(--fs-body); margin-top: var(--s1); max-width: 60ch; }
.bl-author .follow { margin-top: var(--s3); }
.bl-author .follow a { background: var(--bg); }
.bl-author .follow a.c-yt { background: var(--yt); }
.bl-author .follow a.c-x { background: var(--x); }
.bl-author .follow a.c-li { background: var(--li); }
.bl-author .follow a.c-gh { background: var(--card); }

.bl-foot { padding: var(--s5) 0; font-family: var(--mono); font-size: var(--fs-label); color: var(--muted); }
.bl-foot a { text-decoration: underline; }

@media (max-width: 760px) {
  .bl-index-head { padding: var(--s4) 0 var(--s3); }
  .bl-card { padding: var(--s3); }
  .bl-post { padding: var(--s3); }
  .bl-author { grid-template-columns: 1fr; padding: var(--s3); gap: var(--s3); }
}

/* /site-menu.css */
/* The shared menu (#2125): the desktop bar's current page, the phone burger, and the full-screen
   card menu that site-menu.js builds (design A from #2127). Colours, sizes and motion from the tokens. */
nav .links a[aria-current="page"] { background: var(--lx); }
.menu-btn { display: none; width: 40px; height: 40px; padding: 0; border: var(--bw-card) solid var(--line); border-radius: 50%; background: var(--bg); box-shadow: var(--shadow-small);
  place-content: center; gap: 4px; }
.menu-btn i { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: var(--text); }
.menu-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.menu-btn:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
@media (max-width: 760px) {
  nav .links > a, nav .links > .theme-switch { display: none; }
  .menu-btn { display: grid; }
}
html.sm-lock { overflow: hidden; }

.site-menu { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; padding: 14px 16px 18px; overflow-y: auto; color: var(--text);
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; }
.site-menu[hidden] { display: none; }
.site-menu.open { opacity: 1; }
.sm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s3); }
.sm-title { font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
/* #2128: the X looks exactly like the burger and site-menu.js places it on the burger's measured spot */
.sm-top { min-height: 40px; }
.sm-close { position: absolute; z-index: 1; width: 40px; height: 40px; padding: 0; border: var(--bw-card) solid var(--line); border-radius: 50%; background: var(--bg); box-shadow: var(--shadow-small); display: grid; place-content: center; }
.sm-close svg { width: 18px; height: 18px; stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.sm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sm-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text); text-decoration: none;
  border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 12px 10px 14px; background: var(--tint);
  opacity: 0; transform: translateY(26px) scale(.9) rotate(var(--tilt)); transition: transform var(--ease-press), opacity .3s, box-shadow .2s; }
.site-menu.open .sm-card { opacity: 1; transform: rotate(var(--rest)); transition-delay: calc(var(--i) * 70ms + 120ms); }
.sm-card:active { transform: translate(2px, 2px) rotate(var(--rest)); box-shadow: none; transition-delay: 0s; }
.sm-card:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; }
.sm-pic { width: 100%; height: 92px; margin-bottom: 6px; }
.sm-card b { font-size: 22px; line-height: 1.1; }
.sm-card small { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; }
.sm-go { position: absolute; right: 10px; top: 10px; font-weight: 800; background: var(--pop); color: var(--on-pop); border: var(--bw-card) solid var(--line); border-radius: 8px; padding: 0 8px; transform: scale(0) rotate(-12deg); }
.sm-foot { margin-top: auto; padding-top: var(--s3); display: flex; align-items: center; justify-content: space-between; gap: var(--s2); opacity: 0; transition: opacity .3s .5s; }
.site-menu.open .sm-foot { opacity: 1; }
.sm-socials { display: flex; gap: 6px; }
.sm-socials a { width: 38px; height: 38px; border: var(--bw-card) solid var(--line); border-radius: var(--r-sm); background: var(--card); box-shadow: var(--shadow-small); display: grid; place-content: center; color: var(--text); }
.sm-socials svg { width: 18px; height: 18px; }
.sm-socials .f-yt, .sm-socials .f-in, .sm-socials .f-rdt { fill: currentColor; } .sm-socials .f-white { fill: var(--card); }
.sm-theme { flex: none; }
/* The drawings: the illustration tokens keep their light-mode colours in dark mode too (#2129) */
.sm-pic .o { stroke: var(--ill-ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.sm-pic .f-card { fill: var(--ill-card); } .sm-pic .f-pop { fill: var(--ill-pop); } .sm-pic .f-lx { fill: var(--ill-lx); } .sm-pic .f-li { fill: var(--ill-li); }
.sm-pic .f-rd { fill: var(--ill-rd); } .sm-pic .f-go { fill: var(--ill-go); } .sm-pic .f-ink { fill: var(--ill-ink); }
.sm-pic text { font-family: var(--mono); }

/* Leaving: the picked card stamps GO!, the others drop away; closed with the X the whole menu fades,
   while on the way to a picked page (.going, #2582) it stays up until the new page replaces it */
.site-menu.open.leaving:not(.going) { opacity: 0; transition: opacity .55s ease .45s; }
.site-menu.leaving .sm-card { opacity: 0; transform: translateY(30px) scale(.92) rotate(var(--tilt)); transition: transform .5s ease-in, opacity .4s; transition-delay: calc(var(--i) * 40ms); }
.site-menu.leaving .sm-card.picked { opacity: 1; transform: scale(1.06) rotate(0deg); box-shadow: var(--shadow-lifted); transition: transform var(--ease-pop), box-shadow .2s; }
.sm-card.picked .sm-go { transform: scale(1) rotate(-8deg); transition: transform var(--ease-pop) .05s; }
.site-menu.leaving .sm-foot { opacity: 0; transition: opacity .2s; }

@media (prefers-reduced-motion: reduce) {
  .site-menu, .site-menu * { transition-duration: .01s !important; transition-delay: 0s !important; }
  .site-menu.open, .site-menu.open.leaving { transition: opacity .2s !important; }
  .sm-card { transform: none !important; }
}

/* /release-bar.css */
/* #3845: the release bar across the top of the home page, for Programmer Simulator's launch. It removes itself after its
   data-until date (a script right after it in the page, and the build drops it too). Colours and type come from the tokens. */
.rb-bar { background: var(--pop); color: var(--on-pop); border-bottom: var(--bw-card) solid var(--line); font-weight: 600; font-size: 15px; }
.rb-bar .rb-in { max-width: 1000px; margin: 0 auto; padding: var(--s2) var(--s3); display: flex; align-items: center; justify-content: center; gap: 12px; }
.rb-bar img { width: 30px; height: 30px; border-radius: 8px; border: var(--bw-chip) solid var(--line); flex: none; }
.rb-bar .rb-new { font: 500 var(--fs-label) var(--mono); background: var(--card); color: var(--text); border: var(--bw-chip) solid var(--line); border-radius: var(--r-pill); padding: 1px 8px; flex: none; }
.rb-bar .rb-txt b { font-weight: 800; }
.rb-bar .rb-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; white-space: nowrap; background: var(--card); color: var(--text); text-decoration: none;
  border: var(--bw-chip) solid var(--line); border-radius: var(--r-pill); padding: 3px 12px; box-shadow: var(--shadow-small); transition: transform .15s, box-shadow .15s; }
.rb-bar .rb-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--line); }
.rb-bar .rb-ico { width: 16px; height: 16px; fill: currentColor; flex: none; }
.rb-bar .rb-more { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.rb-bar .rb-short { display: none; }
@media (max-width: 760px) {
  .rb-bar { font-size: 14px; }
  .rb-bar .rb-in { gap: var(--s2); padding: 6px 12px; }
  .rb-bar .rb-new, .rb-bar .rb-more, .rb-bar .rb-long { display: none; }
  .rb-bar .rb-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .rb-bar .rb-btn { transition: none; } }
