/*
 * DoomsHuman design system: "zine" look (rough paper, heavy condensed headlines, mono labels,
 * torn stickers, black tags, halftone dots). Colours follow the editorial reference:
 * red, cream paper, slate blue, teal, mustard, kraft.
 * Base class names (.card, .btn, .tile …) come from the earlier clay system and are kept.
 * Static file: linked with a ?v= mtime stamp, not part of the Vite build.
 * Theme: light by default; dark follows the phone unless html[data-theme] is set (see partials/theme-head).
 */
:root {
    color-scheme: light;
    --bg1: #F1EBDD; --bg2: #EAE2D0;
    --card: #FBF7EC; --card-edge: rgba(18, 17, 16, .08);
    --ink: #121110; --ink-2: #4A453D; --ink-3: #857D6F;
    --line: #DDD3BD; --line-strong: #B9AE95; --field: #F6F0E1;
    --primary: #C41A10; --primary-ink: #FFF4E2; --ai: #4B2FE0;
    --ok: #2E7D4F; --ok-ink: #1d6a3e; --warn: #E5A81C; --bad: #C41A10;
    --star: #D9A400; --tape: rgba(214, 186, 132, .78);
    --shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 10px 22px rgba(70, 50, 15, .13);
    --shadow-sm: 0 1px 0 rgba(0, 0, 0, .05), 0 4px 10px rgba(70, 50, 15, .09);
    --frost: rgba(241, 235, 221, .94);
    --dots: rgba(0, 0, 0, .17); --grain: .5;
    --mixer: #121110; --mixpct: 66%;
    --r-sm: 4px; --r-md: 6px; --r-lg: 8px;
    --display: 'Anton', 'Impact', 'Arial Narrow Bold', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --c: #4F5F80; --on: #fff;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg1: #131110; --bg2: #181513;
    --card: #1F1C19; --card-edge: rgba(255, 244, 226, .07);
    --ink: #F3EBDA; --ink-2: #C2B8A5; --ink-3: #8A8172;
    --line: #38322B; --line-strong: #5A5246; --field: #191613;
    --primary: #E23A2C; --primary-ink: #FFF4E2; --ai: #7459FF;
    --ok: #4DB97C; --ok-ink: #4DB97C; --bad: #FF6A5C;
    --star: #F2C230; --tape: rgba(160, 132, 80, .6);
    --shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 12px 28px rgba(0, 0, 0, .5);
    --shadow-sm: 0 1px 0 rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .4);
    --frost: rgba(19, 17, 16, .94);
    --dots: rgba(0, 0, 0, .28); --grain: .18;
    --mixer: #fff; --mixpct: 80%;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg1: #131110; --bg2: #181513;
        --card: #1F1C19; --card-edge: rgba(255, 244, 226, .07);
        --ink: #F3EBDA; --ink-2: #C2B8A5; --ink-3: #8A8172;
        --line: #38322B; --line-strong: #5A5246; --field: #191613;
        --primary: #E23A2C; --primary-ink: #FFF4E2; --ai: #7459FF;
        --ok: #4DB97C; --ok-ink: #4DB97C; --bad: #FF6A5C;
        --star: #F2C230; --tape: rgba(160, 132, 80, .6);
        --shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 12px 28px rgba(0, 0, 0, .5);
        --shadow-sm: 0 1px 0 rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .4);
        --frost: rgba(19, 17, 16, .94);
        --dots: rgba(0, 0, 0, .28); --grain: .18;
        --mixer: #fff; --mixpct: 80%;
    }
}

/* unit colours: --c is the fill, --on the text that sits on it */
.c-salmon { --c: #C41A10; --on: #FFF4E2; } .c-sage { --c: #2F6B50; --on: #FFF4E2; } .c-lavender { --c: #4F5F80; --on: #fff; }
.c-banana { --c: #F2C230; --on: #121110; } .c-sky { --c: #8FA9C4; --on: #121110; } .c-rose { --c: #B5452F; --on: #FFF4E2; }
.c-teal { --c: #1F5F63; --on: #FFF4E2; } .c-amber { --c: #D3A15E; --on: #121110; }
.tint { background: color-mix(in srgb, var(--c) 24%, var(--card)); }
.ink-c { color: color-mix(in srgb, var(--c) var(--mixpct), var(--mixer)); }

/* rough-paper helpers */
.halftone { background-image: radial-gradient(var(--dots) 1px, transparent 1.5px); background-size: 7px 7px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--ink); color: var(--card); font-weight: 800; font-size: .72rem;
    letter-spacing: .05em; text-transform: uppercase; border-radius: 2px; transform: rotate(-1deg); }
.tag.alt { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.sticker { background: #F4ECD6; color: #121110; padding: 14px 16px; font-weight: 700; transform: rotate(.6deg);
    clip-path: polygon(0 3%, 4% 0, 9% 4%, 15% 0, 22% 3%, 30% 0, 38% 4%, 46% 0, 55% 3%, 63% 0, 72% 4%, 80% 0, 88% 3%, 95% 0, 100% 3%, 100% 96%, 94% 100%, 86% 96%, 78% 100%, 69% 97%, 60% 100%, 50% 96%, 41% 100%, 32% 97%, 23% 100%, 14% 96%, 6% 100%, 0 97%); }
.taped { position: relative; }
.taped::before { content: ''; position: absolute; z-index: 3; top: -11px; left: 50%; width: 86px; height: 22px; margin-left: -43px; background: var(--tape); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); pointer-events: none; }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; line-height: 1; }

* { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body.clay {
    margin: 0; min-height: 100vh; font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif; font-weight: 500;
    color: var(--ink); background: var(--bg1); overscroll-behavior-y: none; position: relative;
}
/* paper grain, behind everything */
body.clay::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--grain); mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .28  0 0 0 0 .18  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.shell { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 112px); }
.shell.flush { padding-top: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; }
.h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.15rem; line-height: .98; letter-spacing: .005em; }
.h2 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.005em; }
.mute { color: var(--ink-2); } .faint { color: var(--ink-3); }
.eyebrow { font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.stack > * + * { margin-top: 14px; } .stack-lg > * + * { margin-top: 22px; }

/* cards: flat paper */
.card { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); border: 1px solid var(--card-edge); padding: 18px; }
.card.flat { box-shadow: var(--shadow-sm); padding: 14px; }
.card.here { border-left: 8px solid var(--c); }
a.card, button.card { display: block; transition: transform .15s ease; } a.card.row { display: flex; }
a.card:active { transform: scale(.985); }

/* icon chip */
.chip { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 6px; flex: none; }
.chip.sm { width: 34px; height: 34px; border-radius: 5px; } .chip.sm svg { width: 18px; height: 18px; }
.chip.lg { width: 60px; height: 60px; border-radius: 8px; } .chip.lg svg { width: 32px; height: 32px; }

/* buttons & fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 4px; border: 1.5px solid var(--ink);
    font: inherit; font-weight: 800; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; background: var(--card); color: var(--ink); box-shadow: 2px 3px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
.btn:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-soft { background: color-mix(in srgb, var(--primary) 10%, var(--card)); color: var(--ink); }
.btn-danger { background: var(--card); color: var(--bad); border-color: var(--bad); box-shadow: 2px 3px 0 var(--bad); }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--ink-2); }
.btn-ghost:active { transform: none; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .74rem; }
.btn-block { display: flex; width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 4px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:active { background: var(--line); }

.field { display: block; width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px; border-radius: 4px; border: 1.5px solid var(--line-strong);
    background: var(--field); color: var(--ink); font: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */ }
textarea.field { min-height: 110px; line-height: 1.5; resize: vertical; }
.field:focus { outline: none; border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
label.lbl { display: block; font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px 2px; }
.err { color: var(--bad); font-size: .82rem; margin: 4px 0 0 2px; font-weight: 600; }
.flash { padding: 12px 16px; border-radius: 4px; background: #F4ECD6; color: #121110; border: 1.5px solid #121110; font-weight: 700; font-size: .9rem; }
.searchbox { display: flex; align-items: center; gap: 8px; padding: 0 4px 0 14px; min-height: 50px; border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--field); color: var(--ink-3); }
.searchbox:focus-within { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.searchbox input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; outline: none; min-height: 46px; }

/* tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--frost); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 2px solid var(--ink); padding: 6px 8px calc(env(safe-area-inset-bottom) + 6px); }
.tabbar-in { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 76px 1fr 1fr; align-items: center; }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.tab svg { width: 24px; height: 24px; } .tab.on { color: var(--ink); }
.tab.on::after { content: ''; position: absolute; top: -8px; left: 28%; right: 28%; height: 4px; background: var(--primary); }
.fab { justify-self: center; width: 58px; height: 58px; margin-top: -26px; border-radius: 6px; border: 2px solid var(--ink); cursor: pointer; display: grid; place-items: center; transform: rotate(-4deg);
    background-color: var(--primary); background-image: radial-gradient(rgba(0, 0, 0, .22) 1px, transparent 1.5px); background-size: 6px 6px; color: var(--primary-ink); box-shadow: 3px 3px 0 var(--ink); }
.fab svg { width: 30px; height: 30px; } .fab:active { transform: rotate(-4deg) translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* hero cover: torn bottom edge */
.cover { position: relative; height: 38vh; min-height: 250px; max-height: 360px; margin: 0 -16px; overflow: hidden; background: var(--c); color: var(--on, #fff);
    clip-path: polygon(0 0, 100% 0, 100% 95%, 95% 98%, 89% 95%, 82% 99%, 74% 96%, 66% 99%, 58% 95%, 49% 98%, 41% 95%, 33% 99%, 24% 96%, 16% 99%, 8% 95%, 0 98%); }
@media (min-width: 640px) { .cover { margin: 0; } }
.cover:not(.gen) { --on: #fff; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.gen { background-color: var(--c); background-image: radial-gradient(var(--dots) 1px, transparent 1.5px); background-size: 7px 7px; }
.cover .ghost { position: absolute; right: -30px; top: 10px; opacity: .22; } .cover .ghost svg { width: 230px; height: 230px; stroke-width: 1; }
.cover:not(.gen)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, .66) 100%); }
.cover-top { position: absolute; z-index: 2; left: 14px; right: 14px; top: calc(env(safe-area-inset-top) + 10px); display: flex; justify-content: space-between; align-items: center; }
.cover-top .icon-btn { background: rgba(0, 0, 0, .4); color: #fff; border-radius: 4px; }
.cover-top .icon-btn.on svg { fill: #F2C230; color: #F2C230; }
.cover-bot { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 22px; display: flex; align-items: flex-end; gap: 14px; }
.crumbs { font-family: var(--mono); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .92; display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.glass { background: rgba(0, 0, 0, .28); color: #fff; }
.cover .chip.glass { background: color-mix(in srgb, var(--on) 16%, transparent); color: var(--on); }
.cover:not(.gen) .chip.glass { background: rgba(0, 0, 0, .35); color: #fff; }

/* tiles: a taped-on photo with a paper border */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.tile { position: relative; display: block; aspect-ratio: 1 / 1.05; border-radius: 3px; padding: 5px; box-sizing: border-box; cursor: pointer; background: var(--card);
    box-shadow: var(--shadow); color: var(--on, #fff); transform: rotate(var(--rot, 0deg)); transition: transform .15s; -webkit-user-select: none; user-select: none; }
.grid2 > .tile:nth-child(odd) { --rot: -.8deg; } .grid2 > .tile:nth-child(even) { --rot: .7deg; } .grid2 > .tile:nth-child(3n) { --rot: .3deg; }
.tile:active { transform: rotate(var(--rot, 0deg)) scale(.975); }
.tile.photo { --on: #fff; }
.tile-card { position: absolute; inset: 5px; overflow: hidden; border-radius: 1px; background-color: var(--c); background-image: radial-gradient(var(--dots) 1px, transparent 1.5px); background-size: 7px 7px; }
.tile.photo .tile-card { background-image: none; }
.tile-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-card .ghost { position: absolute; right: -14px; top: -6px; opacity: .2; } .tile-card .ghost svg { width: 120px; height: 120px; stroke-width: 1.1; }
.tile.photo .tile-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .72) 100%); }
.tile-in { position: absolute; z-index: 2; inset: 5px; padding: 9px; display: flex; flex-direction: column; justify-content: space-between; }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.tile-acts { display: flex; gap: 6px; }
.tile-bot { display: flex; align-items: flex-end; gap: 8px; }
.tile-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.2rem; line-height: 1.02; letter-spacing: .005em; overflow-wrap: break-word; }
.tile-sub { display: block; margin-top: 3px; font-family: var(--mono); font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; opacity: .9; }
.tile .chip { background: color-mix(in srgb, var(--on) 16%, transparent); color: var(--on); }
.tile-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 4px; background: rgba(0, 0, 0, .34); color: #fff; cursor: pointer; }
.tile-btn.on svg { fill: #F2C230; color: #F2C230; }
.tile-btn.flat { background: transparent; color: var(--ink-3); width: 44px; height: 44px; }
.tile-btn.flat.on { color: var(--star); } .tile-btn.flat.on svg { fill: var(--star); color: var(--star); }

/* score ring */
.score-ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.score-ring svg.r { transform: rotate(-90deg); }
.score-ring .track { stroke: rgba(127, 120, 105, .28); } .score-ring .bar { stroke: var(--c); stroke-linecap: butt; transition: stroke-dashoffset .6s ease; }
.score-ring .num { position: absolute; font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
.score-ring.onimg .track { stroke: color-mix(in srgb, var(--on, #fff) 30%, transparent); } .score-ring.onimg .bar { stroke: var(--on, #fff); } .score-ring.onimg .num { color: var(--on, #fff); }
.cover .score-ring.onimg .track { stroke: rgba(255, 255, 255, .3); }
.meter { height: 8px; border-radius: 1px; background: rgba(127, 120, 105, .25); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--c); }

/* tabs & pills */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 6px 16px; position: sticky; top: 0; z-index: 20; background: linear-gradient(var(--bg1) 80%, transparent); }
.tabs::-webkit-scrollbar { display: none; }
.pilltab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 3px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink);
    font-weight: 800; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.pilltab.on { background: var(--ink); color: var(--card); }
.pilltab .n { font-family: var(--mono); font-size: .68rem; opacity: .7; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 2px; font-family: var(--mono); font-size: .7rem; font-weight: 600; text-transform: uppercase; background: var(--line); color: var(--ink-2); }
.pill.ok { background: color-mix(in srgb, var(--ok) 20%, var(--card)); color: var(--ok-ink); }

/* lists */
.row { display: flex; align-items: center; gap: 12px; }
.row.top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sep { border-top: 1px solid var(--line); }
.bullet { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 6px 6px 16px; border-radius: 4px; background: var(--card); box-shadow: var(--shadow-sm); border-left: 4px solid var(--c); }
.bullet .t { font-weight: 700; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.drag { cursor: grab; color: var(--ink-3); touch-action: none; padding: 8px 4px; }
details.edit > summary { list-style: none; cursor: pointer; } details.edit > summary::-webkit-details-marker { display: none; }

/* sheets */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(15, 12, 8, .55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; background: var(--card); border-radius: 10px 10px 0 0; border-top: 3px solid var(--ink); padding: 12px 18px calc(env(safe-area-inset-bottom) + 18px); box-shadow: 0 -20px 60px rgba(0, 0, 0, .3); }
.sheet .grab { width: 44px; height: 5px; border-radius: 1px; background: var(--line-strong); margin: 0 auto 14px; }
.icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.icon-grid button { aspect-ratio: 1; border: 0; border-radius: 4px; background: var(--field); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-grid button.on { background: var(--primary); color: var(--primary-ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches label { cursor: pointer; } .swatches input { position: absolute; opacity: 0; }
.swatch { width: 38px; height: 38px; border-radius: 4px; background: var(--c); display: block; border: 3px solid var(--card); box-shadow: 0 0 0 1.5px var(--line-strong); }
.swatches input:checked + .swatch { box-shadow: 0 0 0 3px var(--ink); }
.toast { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 96px); background: var(--ink); color: var(--card); padding: 11px 18px; border-radius: 3px; font-family: var(--mono); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; box-shadow: var(--shadow); width: max-content; max-width: calc(100vw - 32px); text-align: center; line-height: 1.4; }

/* topics explorer */
.strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.mini { flex: none; display: inline-flex; align-items: center; gap: 8px; max-width: 70vw; padding: 5px 14px 5px 5px; border-radius: 3px; background: var(--c); color: var(--on, #fff); font-weight: 800; font-size: .86rem; box-shadow: var(--shadow-sm); transform: rotate(-.6deg); }
.mini:nth-child(even) { transform: rotate(.7deg); }
.mini span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .chip { background: color-mix(in srgb, var(--on) 16%, transparent); color: var(--on); }
.seg.wide { display: flex; width: 100%; } .seg.wide button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.chipbtn { min-height: 34px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: 3px; background: transparent; color: var(--ink-2); font-family: var(--mono); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.chipbtn.on { background: var(--ink); border-color: var(--ink); color: var(--card); }
.crumbs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-family: var(--mono); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.crumbs-row button { border: 0; background: none; padding: 6px 2px; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.row-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 4px; background: var(--card); box-shadow: var(--shadow-sm); border-left: 5px solid var(--c); }
.tree { background: var(--card); border-radius: 4px; box-shadow: var(--shadow-sm); padding: 4px 6px; }
.tree-row { display: flex; align-items: center; border-bottom: 1px dashed var(--line); }
.tree-row:last-child { border-bottom: 0; }
.tw { flex: none; width: 34px; height: 48px; border: 0; background: none; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.tw.blank { cursor: default; }
.tw-ico { display: inline-flex; transition: transform .15s; } .tw-ico.turned { transform: rotate(90deg); } .tw-ico.gone { display: none; }
.tree-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 700; }

.tree.arranging .tree-row { user-select: none; -webkit-user-select: none; }
.tree-row.sel { background: color-mix(in srgb, var(--c) 22%, var(--card)); }
.tree-row.drop-before { box-shadow: inset 0 3px 0 var(--primary); } .tree-row.drop-after { box-shadow: inset 0 -3px 0 var(--primary); }
.tree-row.drop-in { background: color-mix(in srgb, var(--primary) 16%, var(--card)); outline: 2px dashed var(--primary); outline-offset: -2px; }
.grip { touch-action: none; cursor: grab; } .tree.dragging .grip { cursor: grabbing; }
.arr-bar { position: sticky; z-index: 30; bottom: calc(env(safe-area-inset-bottom) + 92px); display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; background: var(--card); border: 2px solid var(--ink); border-radius: 4px; box-shadow: var(--shadow); }
.arr-bar .icon-btn { color: var(--ink); } .arr-bar .icon-btn:disabled { opacity: .28; }
/* DoomsAI's steps while a job runs */
.aisteps { list-style: none; margin: 0 auto; padding: 0; width: min(320px, 100%); display: flex; flex-direction: column; gap: 9px; text-align: left; }
.aisteps li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-3); } .aisteps li.now, .aisteps li.done { color: var(--ink); }
.aisteps i { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line-strong); box-sizing: border-box; }
.aisteps li.done i { border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.aisteps li.now i { border-color: var(--line-strong); border-top-color: #8B5CF6; animation: spin .8s linear infinite; }
.aisteps b { display: block; font-size: .95rem; line-height: 1.25; font-weight: 700; } .aisteps li.todo b { font-weight: 600; }
.aisteps small { display: block; font-size: .8rem; color: var(--ink-2); margin-top: 2px; }

/* home */
.week-ring { display: flex; align-items: center; gap: 16px; }
.heat { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-rows: repeat(7, 1fr); gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 2px; background: rgba(127, 120, 105, .2); }
.heat i.l1 { background: color-mix(in srgb, var(--primary) 30%, var(--card)); } .heat i.l2 { background: color-mix(in srgb, var(--primary) 60%, var(--card)); }
.heat i.l3 { background: var(--primary); } .heat i.x { background: transparent; }
.feed-card { position: relative; overflow: hidden; }
.feed-card .accent { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.end-card { text-align: center; padding: 26px 18px; border-radius: 4px; border: 2px dashed var(--line-strong); color: var(--ink-2); font-weight: 700; }
.seg { display: inline-flex; background: var(--card); border: 1.5px solid var(--ink); border-radius: 4px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; font: inherit; font-weight: 800; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; padding: 9px 16px; border-radius: 2px; color: var(--ink-2); cursor: pointer; min-height: 40px; }
.seg button.on { background: var(--ink); color: var(--card); }

/* rich notes */
.prose { line-height: 1.6; font-size: 1rem; overflow-wrap: anywhere; }
.prose p { margin: .5em 0; } .prose h1, .prose h2, .prose h3 { margin: 1em 0 .4em; font-weight: 800; }
.prose h1 { font-size: 1.35rem; } .prose h2 { font-size: 1.15rem; } .prose h3 { font-size: 1rem; }
.prose ul, .prose ol { padding-left: 1.4em; margin: .5em 0; } .prose li > p { margin: 0; }
.prose blockquote { margin: .7em 0; padding: 2px 14px; border-left: 4px solid var(--c); color: var(--ink-2); font-family: 'Source Serif 4', Georgia, serif; font-style: italic; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose code { background: var(--line); padding: 1px 6px; border-radius: 2px; font-family: var(--mono); font-size: .88em; }
.editor { border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--field); overflow: hidden; }
.editor:focus-within { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.editor .tb { display: flex; gap: 2px; overflow-x: auto; padding: 4px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.editor .tb button { flex: none; min-width: 40px; height: 40px; border: 0; border-radius: 3px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 800; cursor: pointer; }
.editor .tb button.on { background: var(--ink); color: var(--card); }
.editor .ProseMirror { min-height: 160px; padding: 12px 16px; outline: none; font-size: 16px; }
.editor .ProseMirror p.is-editor-empty:first-child::before { content: attr(data-placeholder); color: var(--ink-3); float: left; height: 0; pointer-events: none; }

input[type=checkbox], input[type=radio] { accent-color: var(--primary); }

/* unread dot (Home tab) and the thought card */
.tab-dot { position: absolute; top: 3px; left: calc(50% + 6px); width: 11px; height: 11px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 2px var(--bg1); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 2px var(--bg1), 0 0 0 2px var(--primary); } 70% { box-shadow: 0 0 0 2px var(--bg1), 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 2px var(--bg1), 0 0 0 9px transparent; } }
.thought { padding: 22px 18px 18px; }
.thought .quote { margin: 14px 0 16px; font-family: 'Source Serif 4', Georgia, serif; font-style: italic; font-size: 1.28rem; line-height: 1.38; font-weight: 400; }
.newdot { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.newdot i { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.read-line { text-align: center; font-family: var(--mono); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); padding: 6px 0; }

/* centred popup + the neuron picture */
.popup-bg { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(15, 12, 8, .6); }
.popup { width: 100%; max-width: 420px; background: var(--card); border-radius: 6px; padding: 22px 20px 20px; text-align: center; border: 2px solid var(--ink); box-shadow: 5px 6px 0 var(--ink); }
.neuro { width: 100%; max-width: 320px; height: auto; overflow: visible; }
.neuro .den { fill: none; stroke: var(--ink-2); stroke-linecap: round; stroke-linejoin: round; }
.neuro .axon { fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; }
.neuro .myelin { fill: none; stroke: var(--card); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 0.1 21; }
.neuro .myelin-ring { fill: none; stroke: var(--ink-2); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 0.1 21; opacity: .35; }
.neuro .soma { fill: color-mix(in srgb, var(--primary) 82%, var(--ink)); stroke: var(--ink); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: soma 2.8s ease-in-out infinite; }
.neuro .nucleus { fill: var(--ink); opacity: .55; }
.neuro .nucleolus { fill: var(--card); opacity: .8; }
.neuro .bulb { fill: var(--ink-2); transform-box: fill-box; transform-origin: center; animation: bulb 2.8s ease-in-out infinite; }
.neuro .pulse { fill: none; stroke: var(--primary); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 5 200; stroke-dashoffset: 5; filter: drop-shadow(0 0 3px var(--primary)); animation: fire 2.8s linear infinite; }
.neuro .pulse.b { animation-delay: 1.4s; }
.neuro .bulb.b { animation-delay: 1.4s; }
@keyframes fire { 0% { stroke-dashoffset: 5; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes soma { 0%, 28%, 100% { transform: scale(1); } 40% { transform: scale(1.08); } }
@keyframes bulb { 0%, 80%, 100% { transform: scale(1); fill: var(--ink-2); } 90% { transform: scale(1.7); fill: var(--primary); } }

/* topics: where-you-are bar, stacked path lines, bullet editing */
.here-bar { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 8px; min-height: 48px; background: var(--card); border-radius: 4px; border-left: 6px solid var(--c); box-shadow: var(--shadow-sm); }
.here-title { flex: 1; min-width: 0; font-size: 1.35rem; }
.tile.shuf .tile-title { -webkit-line-clamp: 2; font-size: 1.1rem; }
.tile-bot { min-height: 0; }
.tile-path { display: block; margin-top: 5px; }
.tile-path > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: .58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; line-height: 1.35; }
.icon-btn.sm { width: 36px; height: 40px; flex: none; }
.bullet .t-edit { min-height: 40px; padding: 6px 10px; flex: 1; min-width: 0; }
html { overscroll-behavior-x: none; }

[x-cloak] { display: none !important; }
.hide-sm { display: none; } @media (min-width: 640px) { .hide-sm { display: initial; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* bottom sheet (bullet options, move picker) */
.sheet-bg { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; background: rgba(15, 12, 8, .55); animation: fadein .18s ease-out; }
.sheet { width: 100%; max-width: 560px; margin: 0 auto; max-height: 88vh; display: flex; flex-direction: column; background: var(--card); border-top: 2px solid var(--ink); border-radius: 10px 10px 0 0; padding: 8px 16px calc(env(safe-area-inset-bottom) + 14px); animation: sheetup .24s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 2px auto 10px; flex: none; }
.sheet-title { font-family: var(--mono); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin: 0 4px 8px; }
.sheet-act { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 12px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.sheet-act:active { background: var(--line); }
.sheet-act.danger { color: var(--primary); }
.move { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.move-list { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 160px; max-height: 52vh; border-top: 1px solid var(--line); }
.mrow { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); }
.mrow .tw { flex: none; }
.mrow-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 10px 4px 4px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.mrow-main b { font-weight: 700; }
.mrow.pick { background: color-mix(in srgb, var(--primary) 14%, transparent); }
.mrow.here .mrow-main { opacity: .5; cursor: default; }
.mdot { flex: none; width: 12px; height: 12px; border-radius: 2px; background: var(--c); }
@keyframes sheetup { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* AI review */
.ai-card { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; cursor: pointer; font: inherit; color: var(--ink); text-align: left; border-left: 6px solid var(--primary); }
.sheet.tall { height: 88vh; max-height: 88vh; }
.ai-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; flex: 1; padding: 20px 6px; }
.ai-spin svg { animation: aispin 1.8s ease-in-out infinite; }
@keyframes aispin { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(18deg); } }
.ai-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ai-scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; padding-bottom: 8px; }
.ai-sec { border-top: 1px solid var(--line); padding-top: 12px; }
.ai-sec:first-child { border-top: 0; padding-top: 0; }
.ai-q { margin: 8px 0 0; padding-left: 12px; border-left: 3px solid var(--primary); font-family: 'Source Serif 4', Georgia, serif; font-style: italic; font-size: 1rem; line-height: 1.35; }
.ai-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ai-row input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.ai-foot { border-top: 2px solid var(--ink); padding-top: 10px; margin-top: 4px; flex: none; }

/* dive: DoomsAI decks read inside the app */
.dv-hero { border-left: 8px solid var(--primary); padding-top: 24px; }
.dv-strip { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 4px 18px 6px; }
.dv-strip::-webkit-scrollbar { display: none; }
.dv-face { flex: none; width: 84px; text-align: center; }
.dv-face img, .dv-face .ph { display: grid; place-items: center; width: 84px; height: 100px; object-fit: cover; object-position: 50% 20%; border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); background: var(--field); filter: grayscale(.25) contrast(1.05); }
.dv-face b { display: block; margin-top: 8px; font-size: .74rem; line-height: 1.2; }
.dv-word { display: inline-block; vertical-align: top; margin: 0 6px 8px 0; }
.dv-word summary { list-style: none; cursor: pointer; padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 3px; font-weight: 800; font-size: .88rem; background: var(--field); }
.dv-word summary::-webkit-details-marker { display: none; }
.dv-word[open] { display: block; } .dv-word[open] summary { background: var(--ink); color: var(--card); display: inline-block; }
.dv-word p { margin: 6px 0 4px; font-size: .9rem; }
.dv-past { width: 100%; border-top: 0; border-right: 0; border-bottom: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }

.dv { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; background-color: var(--bg1); background-image: radial-gradient(var(--dots) 1px, transparent 1.5px); background-size: 9px 9px; animation: fadein .2s ease; }
.dv-top { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 8px) 12px 8px; }
.dv-bar { flex: 1; display: flex; gap: 3px; }
.dv-bar i { flex: 1; height: 7px; background: var(--line-strong); border-radius: 1px; transition: background .3s; }
.dv-bar i.on { background: var(--ink); } .dv-bar i.now { background: var(--primary); }
.dv-xp { flex: none; font-family: var(--mono); font-size: .74rem; font-weight: 600; padding: 4px 8px; background: var(--ink); color: var(--card); border-radius: 2px; }
.dv-xp.pop { animation: dvpop .5s ease; }
@keyframes dvpop { 40% { transform: scale(1.35) rotate(-4deg); background: var(--primary); } }
.dv-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px 26px calc(env(safe-area-inset-bottom) + 24px); max-width: 520px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.dv-body { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: 560px; margin: 0 auto; }
.dv-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 20px; }
.dv-card { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-md); box-shadow: 5px 6px 0 var(--ink); padding: 20px 18px 18px; animation: dvin .32s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes dvin { from { opacity: 0; transform: translateX(34px) rotate(1.5deg); } to { opacity: 1; transform: none; } }
.dv-kind { margin-bottom: 14px; color: var(--primary); }
.dv-photo { position: relative; margin: 6px 0 18px; aspect-ratio: 16 / 10; border: 1.5px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); background: var(--field); transform: rotate(-.8deg); }
.dv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; filter: contrast(1.04) saturate(.92); }
.dv-photo.gen { overflow: hidden; background-color: var(--c); background-image: radial-gradient(var(--dots) 1px, transparent 1.5px); background-size: 7px 7px; color: var(--on, #fff); }
.dv-photo.gen .ghost { position: absolute; right: -14px; bottom: -22px; opacity: .3; } .dv-photo.gen .ghost svg { width: 170px; height: 170px; stroke-width: 1; }
.dv-title { font-size: 1.7rem; margin: 0 0 10px; overflow-wrap: anywhere; }
.dv-text { margin: 0; font-size: 1.04rem; line-height: 1.58; white-space: pre-line; color: var(--ink); }
.dv-try { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 5px 10px; background: var(--warn); color: #121110; font-family: var(--mono); font-size: .7rem; font-weight: 600; text-transform: uppercase; }
.dv-try svg { width: 16px; height: 16px; }
.dv-who { display: flex; gap: 16px; align-items: flex-start; margin: 6px 0 16px; }
.dv-portrait { flex: none; position: relative; width: 112px; height: 140px; margin: 0; border: 1.5px solid var(--ink); border-bottom-width: 14px; border-bottom-color: var(--card); outline: 1.5px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); background: var(--field); transform: rotate(-2.2deg); }
.dv-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; filter: grayscale(.2) contrast(1.06); }
.dv-portrait .ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink-3); } .dv-portrait .ph svg { width: 48px; height: 48px; }
.dv-quote { margin: 0 0 14px; padding-left: 14px; border-left: 4px solid var(--primary); font-family: 'Source Serif 4', Georgia, serif; font-style: italic; font-size: 1.14rem; line-height: 1.4; }
.dv-impact { margin: 14px 0 0; padding: 12px; background: var(--field); border-left: 4px solid var(--ink); font-size: .95rem; line-height: 1.45; }
.dv-impact b { display: block; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 4px; }
.dv-wordcard { text-align: center; padding: 18px 0 6px; }
.dv-term { font-size: 2.3rem; margin: 10px 0 20px; overflow-wrap: anywhere; }
.dv-wordcard .dv-quote { text-align: left; margin-top: 14px; }
.dv-q { font-size: 1.28rem; font-weight: 800; line-height: 1.3; margin: 6px 0 18px; }
.dv-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--card); box-shadow: 3px 4px 0 var(--ink); font: inherit; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; transition: transform .1s; }
.dv-opt.mid { justify-content: center; font-size: 1.05rem; }
.dv-opt:active:not(:disabled) { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--ink); }
.dv-opt .k { flex: none; display: grid; place-items: center; width: 28px; height: 28px; background: var(--ink); color: var(--card); font-family: var(--mono); font-size: .78rem; }
.dv-opt:disabled { cursor: default; opacity: .55; box-shadow: none; }
.dv-opt.right { opacity: 1; background: color-mix(in srgb, var(--ok) 24%, var(--card)); border-color: var(--ok); animation: dvyes .4s ease; }
.dv-opt.wrong { opacity: 1; background: color-mix(in srgb, var(--bad) 18%, var(--card)); border-color: var(--bad); animation: dvno .35s ease; }
@keyframes dvyes { 50% { transform: scale(1.04); } }
@keyframes dvno { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.dv-why { margin-top: 16px; padding: 12px 14px; border-left: 5px solid var(--ok); background: var(--field); font-size: .98rem; line-height: 1.45; }
.dv-why.no { border-left-color: var(--bad); }
.dv-own { margin-top: 18px; padding-top: 14px; border-top: 1.5px dashed var(--line-strong); }
.dv-own textarea.field { min-height: 70px; margin-top: 6px; }
.dv-mine { margin: 0; padding: 10px 12px; background: color-mix(in srgb, var(--ok) 14%, var(--card)); border-left: 4px solid var(--ok); }
.dv-mine .eyebrow { display: block; margin-bottom: 4px; }
.dv-src { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); text-decoration: underline; }
.dv-foot { flex: none; display: flex; gap: 10px; padding: 10px 16px calc(env(safe-area-inset-bottom) + 12px); background: linear-gradient(transparent, var(--bg1) 30%); }
.dv-foot .btn:disabled { opacity: .45; box-shadow: none; }
.dv-burst { display: grid; place-items: center; width: 92px; height: 92px; background: var(--warn); color: #121110; border: 1.5px solid var(--ink); box-shadow: 5px 6px 0 var(--ink); transform: rotate(-5deg); animation: dvburst .6s cubic-bezier(.2, 1.4, .4, 1); }
.dv-burst svg { width: 50px; height: 50px; }
@keyframes dvburst { from { transform: scale(0) rotate(40deg); } }
.dv-stats { display: flex; gap: 10px; width: 100%; }
.dv-stats > div { flex: 1; padding: 12px 4px; background: var(--card); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.dv-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1; margin-bottom: 4px; }
/* request 29: the dive ends by pointing outside. Same red as the landing's "Real life", in both themes. */
.dv-mid { overflow-y: auto; justify-content: safe center; }
.dv-field { position: relative; width: 100%; box-sizing: border-box; margin: 6px 0 4px; text-align: left; padding: 16px 18px; background: #C41A10; color: #FFF4E2; border: 1.5px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); transform: rotate(-.6deg); animation: dvdeal .5s cubic-bezier(.2, .9, .3, 1.2) .35s both; }
.dv-field .vo-tag { margin: 0; font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #FFF4E2; }
.dv-field h3 { margin: 2px 0 10px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.3rem; line-height: .9; color: #FFF4E2; }
.dv-field ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dv-field li { padding: 8px 10px; border: 1.5px solid rgba(255, 244, 226, .55); } .dv-field li b { display: block; font-weight: 700; line-height: 1.3; }
.dv-field li span { display: block; margin-top: 2px; font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }
.dv-field-note { margin: 10px 0 0; font-size: .88rem; font-weight: 600; line-height: 1.4; color: #FFF4E2; }
.dv-field-tab { animation: none; transform: rotate(-.4deg); margin: 6px 0; }
@keyframes dvdeal { from { opacity: 0; transform: translateY(18px) rotate(-3deg); } to { opacity: 1; transform: rotate(-.6deg); } }
.obs-dive { margin-top: 12px; }
.home-real { margin-top: 12px; } .home-real h2 { margin: 4px 0 8px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 3.2rem; line-height: .9; color: #FFF4E2; }
.home-real .vo-do { margin-top: 12px; } .home-real-when { margin: 12px 0 0 !important; font-family: var(--mono); font-size: .74rem !important; letter-spacing: .04em; text-transform: uppercase; }

/* the topic path: five steps, one next step */
.path { border-left: 8px solid var(--primary); }
.path-steps { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.path-steps li { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; font-family: var(--mono); font-size: .58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.path-steps li::before { content: ''; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--line-strong); z-index: 0; }
.path-steps li:first-child::before { display: none; }
.path-steps i { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--line-strong); background: var(--card); font-style: normal; font-size: .72rem; }
.path-steps i svg { width: 16px; height: 16px; }
.path-steps li.done { color: var(--ink-2); } .path-steps li.done i { background: var(--ink); border-color: var(--ink); color: var(--card); } .path-steps li.done::before, .path-steps li.now::before { background: var(--ink); }
.path-steps li.now { color: var(--primary); } .path-steps li.now i { background: var(--primary); border-color: var(--ink); color: var(--primary-ink); box-shadow: 2px 2px 0 var(--ink); }
.rc-dots { flex: none; display: flex; gap: 3px; } .rc-dots i { width: 7px; height: 16px; background: var(--line-strong); } .rc-dots i.on { background: var(--ok); }
.fl-idea + .fl-idea { border-top: 1px solid var(--line); padding-top: 14px; }
.fl-photo { display: block; width: 100%; max-height: 320px; object-fit: cover; margin-top: 12px; border: 1.5px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); }
.btn:disabled { opacity: .45; box-shadow: none; cursor: default; }

/* DoomsAI: one mark, one colour, wherever it is at work */
.dai { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: #100C22; color: #FFF4E2; border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.dai svg { width: 84%; height: 84%; display: block; }
.dai.sm { width: 22px; height: 22px; border-radius: 4px; border-width: 1px; box-shadow: none; vertical-align: -5px; }
.dai.lg { width: 68px; height: 68px; border-radius: 8px; box-shadow: 4px 4px 0 var(--ink); }
.dai.ai-spin { animation: aispin 1.8s ease-in-out infinite; }
/* the same head is the product's logo: beside the wordmark in every layout */
.dai.logo { width: 34px; height: 34px; border-radius: 5px; transform: rotate(-4deg); } .dai.lg.logo { width: 60px; height: 60px; border-radius: 8px; }
.card.ai-card { display: flex; padding: 10px 12px; border-left-color: var(--ai); }
.ai-card b { font-size: .98rem; } .ai-card .sub { display: block; font-size: .8rem; line-height: 1.3; color: var(--ink-2); }
.dv-hero { border-left-color: var(--ai); }
.pilltab.locked { opacity: .55; box-shadow: inset 0 0 0 1.5px var(--line-strong); } .pilltab.locked svg { width: 15px; height: 15px; }

/* intro: nine full-screen steps */
.ob { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 520px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 14px) 22px calc(env(safe-area-inset-bottom) + 22px); box-sizing: border-box; }
.ob-bar { display: flex; gap: 4px; margin-bottom: 8px; } .ob-bar i { flex: 1; height: 6px; background: var(--line-strong); transition: background .4s; } .ob-bar i.on { background: var(--primary); }
.ob-step { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 20px 0 0; }
.ob-step .h1 { font-size: 2.3rem; line-height: 1.02; margin: 0; } .ob-step mark { background: linear-gradient(transparent 16%, var(--warn) 16%, var(--warn) 90%, transparent 90%); color: #121110; padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ob-step { animation: fadein .3s ease-out; }
.ob-warn { margin: 6px 0 0; font-size: .86rem; font-weight: 700; color: var(--primary); }
.ob-kick { margin: 0; font-family: var(--mono); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.ob-text { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.ob-acts { width: 100%; margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ob-big { font-family: var(--display); font-size: 4.2rem; line-height: 1; }
.ob-range { width: 100%; height: 44px; accent-color: var(--primary); }
/* the intro, request 29: what you get, how, the first topic, who DoomsAI writes for */
.ob-step > .ob-kick:first-child { margin-bottom: -6px; }
.ob-val .val-feed { font-size: 1.3rem; } .ob-val .val-you { margin-top: 6px; font-size: clamp(2.5rem, 11.6vw, 3.6rem); }
.ob-vos { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 9px; }
.ob-vos .vo { gap: 12px; padding: 9px 14px; box-shadow: 3px 3px 0 var(--ink); }
.ob-vos .vo h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.28rem; line-height: 1; color: var(--ink); }
.ob-vos .vo-g { width: 38px; height: 38px; }
.ob-vos .vo.vo-real { margin-top: 8px; padding: 16px 18px 14px; }
.ob-vos .vo-real h2 { margin: 2px 0 6px; font-size: clamp(2.8rem, 14vw, 4rem); line-height: .9; color: #FFF4E2; }
.ob-vos .vo-real p { font-size: 1rem; }
.ob-vos .vo-walk { max-width: 210px; margin-top: 10px; }
/* each promise lands in turn: it says "these are four separate things you get" */
.js .ob-vos .vo { transition: opacity .35s ease-out, translate .45s cubic-bezier(.2, .9, .3, 1.15); }
.js .ob-vos .vo:not(.seen) { opacity: 0; translate: 0 14px; }
.js .ob-vos .vo:nth-child(2) { transition-delay: .12s; } .js .ob-vos .vo:nth-child(3) { transition-delay: .24s; } .js .ob-vos .vo:nth-child(4) { transition-delay: .4s; }
.ob-plan { margin: 0; gap: 16px; width: 100%; }
.ob-plan .pl { gap: 16px; } .ob-plan .pl-shot { width: 82px; height: 118px; }
.ob-plan .pl h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; line-height: .95; }
.ob-plan .pl p { font-size: .95rem; line-height: 1.4; } .ob-plan .pl i { margin-bottom: 6px; }
.js .ob-plan .pl:nth-child(2) .pl-shot { transition-delay: .15s; } .js .ob-plan .pl:nth-child(3) .pl-shot { transition-delay: .3s; }
.ob-how .h1 span { display: block; } .ob-how .h1 span + span { color: var(--primary); }
.ob-carry { width: 100%; display: block; padding: 14px 16px; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); cursor: pointer; transform: rotate(-.6deg); }
.ob-carry.on { background: var(--primary); color: var(--primary-ink); border-color: var(--ink); }
.ob-carry-t { display: block; font-family: var(--display); text-transform: uppercase; font-size: 2rem; line-height: 1; }
.ob-carry-l { display: block; margin-top: 6px; font-size: .92rem; font-weight: 600; line-height: 1.35; }
.ob-or { margin: -4px 0 -6px; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.ob-chip { min-height: 44px; padding: 0 14px; font: inherit; font-weight: 700; font-size: .95rem; color: var(--ink); background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer; transition: transform .15s, background .15s; }
.ob-chip:nth-child(3n+1) { transform: rotate(-1deg); } .ob-chip:nth-child(3n+2) { transform: rotate(.8deg); }
.ob-chip.on { background: var(--ink); color: var(--bg1); border-color: var(--ink); transform: rotate(0) scale(1.04); }
.ob-own { width: 100%; } .ob-own .field { margin-top: 4px; }
.ob-note { font-size: .95rem; color: var(--ink-2); }
.ob-carry:focus-visible, .ob-chip:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.ob-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 12px; text-align: center; } .ob-nums b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.25rem; } .ob-nums span { font-size: .64rem; text-transform: uppercase; font-family: var(--mono); color: var(--ink-3); }

/* install sheet */
.ins-icon { width: 56px; height: 56px; border-radius: 12px; border: 1.5px solid var(--ink); flex: none; }
.ins-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ins-steps li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; } .ins-steps li > i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; background: var(--ink); color: var(--card); font-style: normal; font-family: var(--mono); font-size: .8rem; }
.ins-steps small { display: block; color: var(--ink-3); font-size: .78rem; margin-top: 2px; }
.ins-key { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border: 1.5px solid var(--ink); border-radius: 5px; background: var(--field); font-size: .86rem; white-space: nowrap; vertical-align: middle; } .ins-key svg { width: 16px; height: 16px; }
.me-row { width: 100%; border-top: 0; border-right: 0; border-bottom: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.card.me-row { display: flex; }

/* time: thinking vs improving */
.tm-legend { display: flex; gap: 18px; font-size: .82rem; font-weight: 700; } .tm-legend small { display: block; font-weight: 400; color: var(--ink-3); font-size: .7rem; margin-left: 18px; }
.tm-legend i, .tm-bars i { display: inline-block; } .tm-legend i { width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.k1 { background: var(--ink); } .k2 { background: var(--ai); }
.tm-bars { display: flex; gap: 4px; align-items: flex-end; height: 130px; } .tm-bars > div { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.tm-bars .n { font-family: var(--mono); font-size: .58rem; color: var(--ink-3); height: 12px; } .tm-bars .d { font-family: var(--mono); font-size: .62rem; color: var(--ink-3); }
.tm-bars .col { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(127, 120, 105, .14); } .tm-bars .col i { display: block; width: 100%; }
.tm-bars .today .d { color: var(--primary); font-weight: 700; } .tm-bars .today .col { outline: 1.5px solid var(--ink); }
.tm-rows > div { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); align-items: baseline; } .tm-rows b { font-size: .92rem; } .tm-rows b:last-child { color: var(--ai); }
.pill.warn { background: color-mix(in srgb, var(--warn) 40%, var(--card)); }
.ai-card .pill { margin-top: 4px; font-size: .62rem; }

/* goosebump: the community wall */
.seg.wide a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; padding: 9px 10px; border-radius: 2px; color: var(--ink-2); min-height: 40px; position: relative; }
.seg.wide a.on { background: var(--ink); color: var(--card); }
.gb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.gb-time { position: sticky; top: 0; z-index: 15; padding: 10px 14px; background: var(--card); border: 1.5px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); }
.gb-time .meter { margin-top: 8px; } .gb-time .meter i { background: var(--ink); transition: width 1s linear; }
.gb-time.low .meter i { background: var(--primary); } .gb-time.low .gb-clock { color: var(--primary); }
.gb-clock { font-family: var(--mono); font-size: 1.05rem; }
.gb-face { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: var(--c); color: var(--on, #fff); font-family: var(--display); font-size: 1.25rem; border: 1.5px solid var(--ink); }
.gb-face.lg { width: 64px; height: 64px; font-size: 2rem; box-shadow: 3px 3px 0 var(--ink); }
.gb-body { margin: 12px 0 0; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.14rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.gb-count { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-size: .9rem; }
.gb-closed { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.gb-rank { --c: var(--line-strong); } .gb-rank.me { --c: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--card)); }
.gb-pos { flex: none; display: grid; place-items: center; width: 32px; height: 32px; font-family: var(--display); font-size: 1.1rem; background: var(--field); border: 1.5px solid var(--line-strong); }
.gb-pos.top { background: var(--warn); border-color: var(--ink); color: #121110; }
.gb-xp { font-family: var(--mono); font-size: .8rem; white-space: nowrap; }

/* avatars: mosaic head or uploaded picture */
.av { flex: none; display: inline-block; width: 40px; height: 40px; border: 1.5px solid var(--ink); overflow: hidden; background: var(--field); line-height: 0; }
.av svg, .av img { width: 100%; height: 100%; display: block; object-fit: cover; }
.av.sm { width: 28px; height: 28px; } .av.lg { width: 72px; height: 72px; box-shadow: 3px 3px 0 var(--ink); } .av.xl { width: 104px; height: 104px; box-shadow: 4px 5px 0 var(--ink); }
.av-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.av-grid button { padding: 0; border: 0; background: none; cursor: pointer; } .av-grid .av { width: 100%; height: auto; aspect-ratio: 1; transition: transform .12s; }
.av-grid button:active .av { transform: scale(.94); }
/* reflections under a goosebump */
.rf { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-strong); display: flex; flex-direction: column; gap: 10px; }
.rf-item { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; line-height: 1.4; } .rf-item b { font-size: .84rem; } .rf-item p { margin: 1px 0 0; overflow-wrap: anywhere; }
.rf-form { display: flex; gap: 8px; align-items: flex-end; } .rf-form textarea.field { min-height: 46px; height: 46px; padding: 10px 12px; resize: none; }

/* public pages: About and the blog */
.pub-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 680px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 12px) 18px 8px; }
.pub-name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .01em; }
.pub { max-width: 680px; margin: 0 auto; padding: 14px 20px 40px; }
.pub.in-app { max-width: none; margin: 0; padding: 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--mono); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.pub-art > * + * { margin-top: 16px; }
.pub-h1 { font-size: 2.7rem; line-height: 1; margin-top: 10px; }
.pub-lead { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.3rem; line-height: 1.4; margin: 0; } .pub-lead mark, .pub-art mark { background: var(--warn); color: #121110; padding: 0 .15em; font-style: normal; }
.pub-art h2 { font-size: 1.25rem; font-weight: 800; margin: 34px 0 0; padding-top: 14px; border-top: 2px solid var(--ink); }
.pub-art p { font-size: 1.06rem; line-height: 1.62; margin-bottom: 0; }
.pub-quote { margin: 16px 0 0; padding: 2px 14px; border-left: 4px solid var(--primary); } .pub-quote p { font-family: 'Source Serif 4', Georgia, serif; font-style: italic; }
.pub-words { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 !important; list-style: none !important; font-size: .98rem !important; } .pub-words li { margin: 0 !important; padding: 5px 12px; border: 1.5px solid var(--ink); background: var(--card, transparent); line-height: 1.3; }
.pub-table { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.4; background: var(--card); border: 1.5px solid var(--ink); } .pub-table th, .pub-table td { padding: 9px 10px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); overflow-wrap: anywhere; } .pub-table thead th { border-top: 0; font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); } .pub-table td:first-child { width: 40%; font-weight: 600; }
.pub-art h3 { font-size: 1.08rem; font-weight: 800; margin: 22px 0 0; }
.pub-art ul, .pub-art ol { padding-left: 1.4rem; font-size: 1.06rem; line-height: 1.62; } .pub-art ul { list-style: disc; } .pub-art ol { list-style: decimal; } .pub-art li + li { margin-top: 6px; }
.pub-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 40px !important; border-left: 8px solid var(--primary); }
.pub-card { display: flex !important; flex-direction: column; gap: 8px; border-left: 8px solid var(--ink); } .pub-link { --c: var(--ink); }
.pub-foot { max-width: 680px; margin: 0 auto; padding: 24px 20px calc(env(safe-area-inset-bottom) + 30px); border-top: 1.5px solid var(--line-strong); display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: .88rem; }
.pub-foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; } .pub-foot p { margin: 0; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }

/* reflections sit indented under their goosebump */
.rf { margin-left: 18px; padding: 2px 0 2px 12px; border-top: 0; border-left: 3px solid var(--line-strong); }
.rf-more { align-self: flex-start; border: 0; background: none; padding: 0; font: inherit; font-size: .82rem; font-weight: 700; text-decoration: underline; color: var(--ink-2); cursor: pointer; }

/* Me: shortcuts */
.ql { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ql-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 72px; padding: 8px 4px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 2px 3px 0 var(--ink); font: inherit; font-size: .7rem; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.15; cursor: pointer; }
.ql-item svg { width: 22px; height: 22px; } .ql-item:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--ink); }

.side-brand, .fab-label { display: none; }

/* ---------- wide screens: navigation moves to the side, content uses the width ---------- */
/* two real columns on wide screens; one ordered stack on a phone */
.cols { display: flex; flex-direction: column; gap: 22px; } .cols > .col { display: contents; }
.o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; } .o5 { order: 5; } .o6 { order: 6; }
.unit-cols { display: flex; flex-direction: column; gap: 14px; } .unit-cols > * { min-width: 0; }
.guest { display: flex; min-height: 100vh; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.guest-brand { text-align: center; margin-bottom: 26px; } .guest-points { display: none; }
.pub-hero > * + * { margin-top: 16px; } .pub-hero { margin-bottom: 8px; }
.pub-top .btn { white-space: nowrap; }
.pub-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pub-rail > * + * { margin-top: 16px; } .pub-rail .pub-link { margin-top: 10px; }
.pub-grid { display: grid; gap: 16px; margin-top: 22px; }
/* legal pages and their links */
.pub-legal { justify-content: center; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; } .guest-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; margin: 6px 0 0; font-size: .8rem; }
.guest-legal a, .me-legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; color: var(--ink-2); } .me-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; font-size: .84rem; }
.legal h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.4rem; line-height: 1; margin: 6px 0 0; } .legal h1 + p { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.legal ul { list-style: disc; padding-left: 1.3em; } .legal ol { list-style: decimal; padding-left: 1.5em; } .legal li { font-size: 1.02rem; line-height: 1.55; margin-top: 6px; } .legal a { text-decoration: underline; overflow-wrap: anywhere; } .legal p { overflow-wrap: anywhere; }
.legal code { font-family: var(--mono); font-size: .86em; padding: 1px 4px; background: color-mix(in srgb, var(--ink) 8%, var(--card)); overflow-wrap: anywhere; }
.legal-tbl { border: 1.5px solid var(--line-strong); background: var(--card); } .legal-tbl .tbl { min-width: 640px; } .legal-tbl .tbl th, .legal-tbl .tbl td { text-align: left; white-space: normal; vertical-align: top; line-height: 1.4; min-width: 120px; } .legal-tbl .tbl th:first-child, .legal-tbl .tbl td:first-child { position: static; }
.agree { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: .92rem; line-height: 1.4; font-weight: 600; } .agree input { flex: none; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--primary); } .agree a { text-decoration: underline; }
/* the guest page at the home address: hero, the cow test, then four short sections */
.pub-stick { position: sticky; top: 0; z-index: 20; background: var(--frost); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lp-cow { scroll-margin-top: 84px; }
.lp-h2 { font-size: 1.45rem; font-weight: 800; line-height: 1.2; margin: 26px 0 14px; }
.lp-micro { margin: 12px 0 0; font-family: var(--mono); font-size: .74rem; letter-spacing: .02em; color: var(--ink-3); }
.lp-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; color: var(--ink); } .lp-btn { border: 0; background: none; padding: 0 12px; font: inherit; font-weight: 700; cursor: pointer; }
.lp-line { display: flex; align-items: center; gap: 8px; } .lp-line > i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; background: var(--ink); color: var(--card); font-style: normal; font-family: var(--mono); font-size: .76rem; }
.lp-line .field { flex: 1; min-width: 0; } .lp-line .field:disabled { opacity: .45; } .lp-locked { border-style: dashed; font-weight: 700; }
.lp-next { flex: none; min-width: 48px; min-height: 48px; padding: 0; }
.lp-said { list-style: none; counter-reset: said; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lp-said li { counter-increment: said; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1.5px solid var(--ink); background: var(--card); font-weight: 800; overflow-wrap: anywhere; }
.lp-said li::before { content: counter(said); font-family: var(--mono); font-size: .76rem; color: var(--ink-3); }
.lp-usual { margin: 14px 0 0; padding: 10px 12px; border-left: 6px solid var(--warn); background: color-mix(in srgb, var(--warn) 14%, var(--card)); font-weight: 700; }
.gbtn { gap: 10px; background: #fff; color: #1f1f1f; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.or { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); } .or::before, .or::after { content: ''; flex: 1; height: 1.5px; background: var(--line-strong); }
/* DoomsAI working in the background */
.aidock { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 92px); display: flex; flex-direction: column; gap: 8px; max-width: 460px; margin: 0 auto; }
.aidock-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--card); border: 2px solid var(--ink); border-left: 8px solid #6D4BE0; border-radius: 4px; box-shadow: var(--shadow); }
.aidock-row.failed { border-left-color: var(--warn); }
.aidock-row .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; } .aidock-row b { font-size: .9rem; line-height: 1.2; }
.aidock-row .grow > span { font-size: .78rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.aidock-bar { display: block; position: relative; height: 4px; margin-top: 5px; background: var(--line); overflow: hidden; border-radius: 2px; }
.aidock-bar > i { position: absolute; top: 0; bottom: 0; left: 0; width: 38%; background: linear-gradient(90deg, #F2793B, #8B5CF6, #22C3D6); animation: aislide 1.5s ease-in-out infinite; }
.aidock-bar.wide { width: min(260px, 70%); height: 6px; margin-top: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes aislide { 0% { transform: translateX(-100%); } 100% { transform: translateX(265%); } }
@media (prefers-reduced-motion: reduce) { .aidock-bar > i { animation-duration: 4s; } }

@media (min-width: 960px) {
    body.clay:has(> .tabbar) { padding-left: 232px; }
    .tabbar { top: 0; right: auto; bottom: 0; width: 232px; box-sizing: border-box; border-top: 0; border-right: 2px solid var(--ink); padding: 22px 16px; display: flex; flex-direction: column; gap: 26px; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg2); }
    .side-brand { display: flex; align-items: center; gap: 10px; } .side-brand b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.3rem; }
    .tabbar-in { max-width: none; margin: 0; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
    .tab { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; font-size: .8rem; border-radius: 4px; }
    .tab:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
    .tab.on { background: var(--ink); color: var(--card); } .tab.on::after { display: none; }
    .tab .tab-dot { position: static; margin-left: auto; }
    .fab { order: 9; width: 100%; height: 48px; margin: 14px 0 0; transform: none; display: flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--primary-ink); }
    .fab:active { transform: translate(2px, 2px); } .fab svg { width: 22px; height: 22px; } .fab-label { display: inline; }

    .shell { max-width: 1040px; padding: 32px 40px 60px; } .shell.flush { padding-top: 24px; }
    .shell .narrow, .shell > .c-salmon, .shell > [class^="c-"] { } .narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
    .cover { margin: 0; border-radius: var(--r-md); height: 300px; }
    .shell .grid2 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .wide-2 .grid2 { grid-template-columns: 1fr 1fr; }
    .ql { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
    .tabs { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
    .toast { bottom: 28px; left: calc(50% + 116px); }
    .aidock { left: auto; right: 24px; bottom: 24px; width: 400px; margin: 0; }
    .arr-bar { bottom: 16px; }
    .sheet-bg { align-items: center; padding: 24px; } .sheet { border-radius: 10px; border: 3px solid var(--ink); max-height: 86vh; }
    .sheet.tall { height: auto; min-height: 420px; }
    .dv-body, .dv-mid { max-width: 640px; }
    .h1 { font-size: 2.5rem; }
}
@media (min-width: 960px) {
    /* the intro sits in the middle of a wide screen, with its button right under the content */
    .ob { max-width: 600px; justify-content: center; padding-top: 40px; padding-bottom: 40px; }
    .ob-bar { margin-bottom: 28px; }
    .ob-step { flex: none; min-height: 440px; padding-top: 0; }
    .ob-step .h1 { font-size: 2.9rem; }
    .ob-acts { margin-top: 12px; padding-top: 22px; }
    /* request 29: the landing's wide value cards would stand tall here; the intro keeps them as compact rows */
    .ob-vos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ob-vos .vo { flex-direction: column; align-items: flex-start; padding: 12px 14px; } .ob-vos .vo-g { width: 38px; height: 38px; margin: 0; }
    .ob-vos .vo h2 { font-size: 1.2rem; }
    .ob-vos .vo.vo-real { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: 24px; align-items: center; padding: 18px 22px; }
    .ob-vos .vo-real > :not(.vo-walk) { grid-column: 1; } .ob-vos .vo-walk { grid-column: 2; grid-row: 1 / span 3; max-width: none; margin: 0; }
    .ob-vos .vo-real h2 { font-size: 3.6rem; }
    .dv-top { max-width: 760px; width: 100%; margin: 0 auto; box-sizing: border-box; }
}
@media (min-width: 960px) {
    .shell { max-width: 1180px; }
    .cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
    .cols > .col { display: flex; flex-direction: column; gap: 22px; min-width: 0; } .cols > .col > * { margin-top: 0; }
    .col-side .grid2 { grid-template-columns: 1fr 1fr; }
    /* cards pack upward instead of lining up in rows, so no holes open between them */
    .wide-2 { display: block; columns: 2; column-gap: 24px; }
    .wide-2 > * { break-inside: avoid; margin: 0 0 22px !important; } .wide-2 > header, .wide-2 > .ql, .wide-2 > .full { column-span: all; }
    .unit-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
    .unit-side { grid-column: 2; grid-row: 1; position: sticky; top: 24px; } .unit-main { grid-column: 1; grid-row: 1; }
    .unit-main .tabs { margin-top: 0; }

    .guest { max-width: 1000px; display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 72px; align-items: center; padding-top: 40px; }
    .guest-brand { text-align: left; margin: 0; } .guest-brand .h1 { font-size: 4rem; line-height: .95; }
    .guest-points { display: grid; gap: 14px; list-style: none; padding: 0; margin: 34px 0 0; font-size: 1.05rem; font-weight: 600; color: var(--ink-2); }
    .guest-points li { display: flex; gap: 12px; align-items: center; } .guest-points svg { width: 24px; height: 24px; flex: none; color: var(--ink); }

    .pub-top { max-width: 1120px; padding: 20px 40px 12px; } .pub-name { font-size: 1.5rem; }
    .pub { max-width: 1120px; padding: 34px 40px 80px; } .pub.in-app { max-width: none; padding: 0; } .pub-foot { max-width: 1120px; padding-top: 34px; }
    .pub-hero { max-width: 900px; margin-bottom: 44px; } .pub-h1 { font-size: 4.6rem; line-height: .95; } .pub-hero .pub-lead { font-size: 1.6rem; max-width: 760px; }
    .pub-cols { display: grid; grid-template-columns: minmax(0, 680px) 340px; justify-content: space-between; gap: 56px; align-items: start; }
    .pub-rail { position: sticky; top: 28px; } .pub-rail .pub-cta { margin-top: 0 !important; }
    .pub-art h2.first { margin-top: 0; } .pub-art h2 { font-size: 1.45rem; } .pub-art p { font-size: 1.12rem; }
    .pub-cols .pub-art .pub-h1 { font-size: 3.2rem !important; }
    .legal { max-width: 760px; } .legal h1 { font-size: 3.4rem; }
    .lp-cow { padding: 28px; }
    .pub-grid { grid-template-columns: 1fr 1fr; gap: 22px; } .pub-grid .pub-card { margin-top: 0; padding: 26px; } .pub-grid .pub-card .h2 { font-size: 1.4rem; }
}

/* ---------- admin stats: number tiles, a funnel, and tables that scroll sideways on a phone ---------- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.1rem; line-height: 1; overflow-wrap: anywhere; } .stat b.sm { font-size: 1.35rem; padding-top: 6px; }
.stat .eyebrow { display: block; margin-top: 8px; } .stat.key { border-left: 8px solid var(--primary); }
.funnel-row + .funnel-row { margin-top: 14px; } .funnel-pct { width: 3.2em; text-align: right; font-family: var(--mono); font-size: .74rem; }
.funnel-track { height: 8px; margin-top: 6px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 10%, var(--card)); } .funnel-track i { display: block; height: 100%; min-width: 2px; border-radius: 2px; background: var(--primary); }
.tbl-card { padding: 0; overflow: hidden; } .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .84rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 10px 12px; text-align: right; white-space: nowrap; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, var(--card)); }
.tbl th { border-top: 0; font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.tbl th:first-child, .tbl td:first-child { position: sticky; left: 0; text-align: left; background: var(--card); font-weight: 700; }
.stat-json { margin: 10px 0 0; max-height: 320px; overflow: auto; font-family: var(--mono); font-size: .72rem; line-height: 1.5; white-space: pre; user-select: all; -webkit-user-select: all; }
@media (min-width: 960px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

/* ================= landing page v2 (guests at the home address) =================
 * A poster first (the founder's declaration), then the first rep (the cow test), the visitor's own number,
 * v3 (request 27): declaration → what you get → the feed's cost → how it works → the first rep → real screens → who built it → the ask. Full-bleed bands; .lp2-sec is the paper column. */
.lp2 { display: block; position: relative; z-index: 1; overflow-x: clip; }
.lp2-sec { max-width: 560px; margin: 0 auto; padding: 56px 20px 8px; }
.lp2-kick { margin: 0 0 10px; font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.lp2-kick::before { content: ''; display: inline-block; width: 22px; height: 2px; margin-right: 8px; vertical-align: middle; background: currentColor; }
.lp2-h > span { display: block; } .lp2-h { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.9rem; line-height: .96; letter-spacing: .005em; }
.lp2-line { margin: 14px 0 0; font-size: 1.08rem; line-height: 1.45; color: var(--ink-2); max-width: 34em; }

/* 1: the poster. Its colours are the page's, inverted: ink on a light page, paper on a dark one. */
.mf { --mf-bg: #121110; --mf-fg: #F1EBDD; --mf-red: #FF4B3A; --mf-dim: #B9AE95; --mf-mark: #F2C230; background: var(--mf-bg); color: var(--mf-fg); position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), 96% 100%, 91% calc(100% - 8px), 85% 100%, 78% calc(100% - 10px), 70% 100%, 63% calc(100% - 7px), 55% 100%, 47% calc(100% - 10px), 39% 100%, 31% calc(100% - 8px), 23% 100%, 15% calc(100% - 9px), 8% 100%, 3% calc(100% - 7px), 0 100%); }
:root[data-theme="dark"] .mf, :root[data-theme="dark"] .ask { --mf-bg: #F1EBDD; --mf-fg: #121110; --mf-red: #C41A10; --mf-dim: #5A5246; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mf, :root:not([data-theme="light"]) .ask { --mf-bg: #F1EBDD; --mf-fg: #121110; --mf-red: #C41A10; --mf-dim: #5A5246; } }
.mf::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(color-mix(in srgb, var(--mf-fg) 16%, transparent) 1px, transparent 1.5px); background-size: 7px 7px;
    -webkit-mask-image: linear-gradient(115deg, transparent 55%, #000); mask-image: linear-gradient(115deg, transparent 55%, #000); }
.mf-in { position: relative; max-width: 560px; margin: 0 auto; padding: 18px 20px 54px; }
.mf-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.mf-q { margin: 0; font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mf-fg); padding: 5px 10px; border: 1.5px solid var(--mf-fg); transform: rotate(-1.5deg); }
.dai.mf-head { width: 64px; height: 64px; border-radius: 8px; border-color: var(--mf-fg); box-shadow: 3px 3px 0 var(--mf-red); transform: rotate(5deg); }
.mf-head svg rect:nth-child(-n+8) { animation: mfbit .9s cubic-bezier(.2, .7, .2, 1) both; } .mf-head svg rect:nth-child(even):nth-child(-n+8) { animation-delay: .12s; }
@keyframes mfbit { from { transform: translateX(-5px); opacity: 0; } }
.mf-h { margin: 14px 0 0; font: inherit; }
.mf-pre { display: block; font-size: 1.02rem; font-weight: 600; line-height: 1.4; color: var(--mf-fg); max-width: 19em; }
.mf-big { display: block; margin-top: 10px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(4rem, 18.3vw, 9.6rem); line-height: .9; letter-spacing: -.005em; }
.mf-big { white-space: nowrap; } .br-d { display: none; } .mf-big em { font-style: normal; color: var(--mf-red); }
.mf-rest { margin-top: 26px; } .mf-last { margin-top: 0; }
.mf-p { margin: 0; font-size: 1.14rem; line-height: 1.45; font-weight: 500; max-width: 24em; }
.mf-trio { margin: 22px 0; font-family: var(--display); text-transform: uppercase; font-size: clamp(2.9rem, 13.6vw, 5.4rem); line-height: 1; }
.mf-trio .mf-lead { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--mf-dim); }
.mf-trio b { display: table; font-weight: 400; padding: .06em .14em .02em; margin-left: -.14em; background: linear-gradient(var(--mf-mark), var(--mf-mark)) no-repeat 0 0 / 100% 100%; color: #121110; white-space: nowrap; }
.mf-trio b + b { margin-top: 6px; }
/* the three words are struck with the marker one after another, once, when they are reached */
.js .mf-trio b { background-size: 0% 100%; color: inherit; transition: background-size .32s cubic-bezier(.3, .8, .3, 1), color .1s linear .12s; }
.js .mf-trio.seen b { background-size: 100% 100%; color: #121110; } .js .mf-trio.seen b:nth-of-type(2) { transition-delay: .3s, .42s; }
.mf .btn, .ask .btn { border-color: var(--mf-fg); box-shadow: 3px 4px 0 var(--mf-fg); min-height: 54px; padding: 0 24px; font-size: .9rem; } .mf .btn:active, .ask .btn:active { box-shadow: 0 0 0 var(--mf-fg); }

/* 2: the first rep */
.rep { padding-top: 44px; } .rep .lp-cow { margin-top: 30px; }
.cow-word { font-size: 5.6rem; line-height: .9; margin-top: 8px; text-transform: uppercase; }
.cow-demo { cursor: pointer; } .cow-rows { margin: 14px 0 0; }
.cow-ghost { display: flex; align-items: center; min-height: 48px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.cow-ghost.typing > span::after { content: ''; display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -3px; background: var(--primary); animation: cowblink 1s steps(1) infinite; }
@keyframes cowblink { 50% { opacity: 0; } }
.js .cow-four { opacity: .35; transition: opacity .3s; } .js .cow-four.on { opacity: 1; } .cow-four.on .cow-ghost { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.cow-stall { margin: 12px 0 14px; font-weight: 700; line-height: 1.4; } .js .cow-stall { opacity: 0; transform: translateY(4px); transition: opacity .4s 1.5s, transform .4s 1.5s; } .js .cow-stall.on { opacity: 1; transform: none; }
.lp-said.struck li { text-decoration: line-through; text-decoration-color: var(--primary); text-decoration-thickness: 2px; }
.cow-ten { display: flex; gap: 4px; } .cow-ten i { flex: 1; height: 10px; border: 1.5px solid var(--ink); } .cow-ten i.on { background: var(--primary); }

/* 3: the visitor's own number */
.dial-val { margin-top: 18px; font-family: var(--display); font-size: 3.6rem; line-height: 1; }
.dial-range { display: block; margin: 6px 0 0; height: 52px; -webkit-appearance: none; appearance: none; background: transparent; cursor: grab; }
.dial-range::-webkit-slider-runnable-track { height: 10px; border: 1.5px solid var(--ink); background: var(--card); }
.dial-range::-moz-range-track { height: 8px; border: 1.5px solid var(--ink); background: var(--card); }
.dial-range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 44px; margin-top: -19px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--primary); box-shadow: 2px 3px 0 var(--ink); }
.dial-range::-moz-range-thumb { width: 32px; height: 42px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--primary); box-shadow: 2px 3px 0 var(--ink); }
.dial-range:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.dial-hint { margin-top: 2px; transition: opacity .3s; } .dial-hint.off { opacity: 0; }
.dial-out { margin-top: 22px; }
.dial-sum { display: flex; align-items: flex-end; gap: 12px; margin: 0; } .dial-sum b { font-family: var(--display); font-weight: 400; font-size: 6.4rem; line-height: .86; color: var(--primary); font-variant-numeric: tabular-nums; min-width: 1.1em; }
.dial-sum span { font-family: var(--display); text-transform: uppercase; font-size: 1.7rem; line-height: 1; padding-bottom: 4px; }
.dial-year { display: grid; grid-template-columns: repeat(auto-fill, 11px); gap: 3px; margin-top: 16px; }
.dial-year i { height: 11px; background: var(--line); } .dial-year i.on { background: var(--primary); }
.dial-cap { margin: 10px 0 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .02em; color: var(--ink-3); line-height: 1.5; } .dial-cap b { color: var(--ink); }

/* 4: the training. A snapping strip of real screens on a phone; one phone and a list from 960px. */
.tour { max-width: none; padding-left: 0; padding-right: 0; } .tour-say, .tour-note { max-width: 520px; margin-left: auto; margin-right: auto; padding: 0 20px; }
.tour-chips { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 16px 20px 4px; max-width: 560px; margin: 0 auto; box-sizing: border-box; } .tour-chips::-webkit-scrollbar { display: none; }
.tour-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 8px; border: 1.5px solid var(--line-strong); border-radius: 2px; background: transparent; color: var(--ink-2); font: inherit; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.tour-chip i, .tour-slide figcaption i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; background: var(--line-strong); color: var(--card); font-style: normal; font-family: var(--mono); font-size: .76rem; font-weight: 600; }
.tour-chip.on { border-color: var(--ink); background: var(--ink); color: var(--bg1); } .tour-chip.on i { background: var(--primary); color: var(--primary-ink); }
.tour-strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 14px max(20px, calc(50% - 116px)) 22px; } .tour-strip::-webkit-scrollbar { display: none; }
.tour-strip:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.tour-slide { flex: none; width: 232px; margin: 0; scroll-snap-align: center; }
.ph { padding: 7px; border-radius: 30px; background: #121110; box-shadow: 5px 6px 0 var(--primary); } .tour-slide:nth-child(even) .ph { transform: rotate(.8deg); } .tour-slide:nth-child(odd) .ph { transform: rotate(-.8deg); }
.ph img { display: block; width: 100%; height: auto; border-radius: 23px; background: var(--bg2); }
.tour-slide figcaption { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; } .tour-slide figcaption i { background: var(--ink); }
.tour-slide figcaption span { font-size: .98rem; line-height: 1.4; color: var(--ink-2); } .tour-slide figcaption b { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; line-height: 1; color: var(--ink); margin-bottom: 4px; }
.tour-note { margin-top: 0; font-family: var(--mono); font-size: .66rem; letter-spacing: .02em; line-height: 1.5; color: var(--ink-3); }

/* 6: who built it: a halftone print taped up, his name on a label */
.who { display: flex; flex-direction: column; gap: 26px; }
.who-pic { position: relative; align-self: flex-start; width: 210px; margin: 6px 0 0 6px; padding: 8px 8px 0; background: #F4ECD6; border: 1px solid rgba(18, 17, 16, .25); box-shadow: var(--shadow); transform: rotate(-2.5deg); }
.who-pic::before { content: ''; position: absolute; z-index: 2; top: -12px; left: 50%; width: 92px; height: 24px; margin-left: -46px; background: var(--tape); transform: rotate(4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.who-pic img { display: block; width: 100%; height: auto; }
.who-pic figcaption { padding: 9px 0 10px; font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #121110; text-align: center; }
.who .lp2-h { font-size: 2.5rem; }

/* 7: the ask: the poster again */
.ask { --mf-bg: #121110; --mf-fg: #F1EBDD; --mf-red: #FF4B3A; --mf-dim: #B9AE95; margin-top: 64px; background: var(--mf-bg); color: var(--mf-fg);
    clip-path: polygon(0 9px, 5% 0, 11% 8px, 18% 0, 26% 10px, 34% 0, 42% 7px, 50% 0, 58% 10px, 66% 0, 74% 8px, 82% 0, 90% 9px, 96% 0, 100% 7px, 100% 100%, 0 100%); }
.ask-in { max-width: 560px; margin: 0 auto; padding: 60px 20px 52px; }
.ask-h { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 13.4vw, 6rem); line-height: .94; } .ask-h span { display: block; } .ask-h em { font-style: normal; color: var(--mf-red); }
.ask-p { margin: 16px 0 0; font-size: 1.1rem; line-height: 1.45; color: var(--mf-fg); }
.ask-btn { display: flex; width: 100%; margin-top: 26px; min-height: 60px !important; }
.ask-q { margin: 18px 0 0; font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--mf-dim); text-align: center; } .ask-q a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; color: inherit; }
.lp2 + .pub-foot { border-top: 0; }
/* the quiet list of reads at the end of the home page, and links inside public text */
.reads { padding-top: 40px; } .reads-list { display: grid; gap: 8px; } .reads .row-card { min-height: 56px; }
.pub-art p a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--primary); }

@media (min-width: 700px) {
    .lp2-sec, .mf-in, .ask-in { max-width: 640px; } .lp2-h { font-size: 3.6rem; }
    .tour-strip { padding-left: max(20px, calc(50% - 300px)); padding-right: max(20px, calc(50% - 300px)); }
}
@media (min-width: 960px) {
    .lp2-sec { max-width: 1120px; padding: 96px 40px 0; box-sizing: border-box; } .lp2-h { font-size: 4.6rem; } .lp2-line { font-size: 1.2rem; }
    .mf-in { max-width: 1120px; padding: 30px 40px 84px; box-sizing: border-box; } .dai.mf-head { width: 88px; height: 88px; }
    .mf-h { margin-top: 6px; } .mf-pre { font-size: 1.3rem; max-width: none; } .mf-big { font-size: min(9.8rem, calc((100vw - 80px) / 6.75)); margin-top: 12px; } .br-m { display: none; } .br-d { display: inline; }
    .mf-rest { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 72px; align-items: start; } .mf-p { font-size: 1.3rem; }
    .mf-trio { grid-column: 2; grid-row: 1 / span 3; font-size: 5rem; margin: 0; } .mf-p { grid-column: 1; } .mf-last { margin-top: 16px; }
    .pub-top.pub-stick { max-width: none; padding-left: max(40px, calc(50% - 520px)); padding-right: max(40px, calc(50% - 520px)); }
    .rep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 72px; align-items: center; } .rep .lp-cow { margin-top: 0; } .rep .lp2-h { font-size: 6.4rem; } .cow-word { font-size: 6.6rem; }
    .dial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; } .dial-out { margin-top: 0; } .dial-val { font-size: 5rem; }
    .dial-sum b { font-size: 9rem; } .dial-sum span { font-size: 2.2rem; } .dial-year { grid-template-columns: repeat(auto-fill, 12px); gap: 4px; }
    .tour { max-width: 1120px; padding: 96px 40px 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); column-gap: 72px; position: relative; }
    .tour-say { grid-column: 2; max-width: none; margin: 0; padding: 0; } .tour-chips { display: none; }
    .tour-strip { grid-column: 2; display: block; overflow: visible; padding: 22px 0 0; position: static; }
    .tour-slide { width: auto; padding: 14px 16px; border: 1.5px solid transparent; cursor: pointer; } .tour-slide + .tour-slide { margin-top: 2px; }
    .tour-slide.on { border-color: var(--ink); background: var(--card); box-shadow: 4px 5px 0 var(--ink); }
    .tour-slide figcaption { margin: 0; } .tour-slide figcaption i { width: 30px; height: 30px; } .tour-slide.on figcaption i { background: var(--primary); color: var(--primary-ink); } .tour-slide figcaption b { font-size: 1.8rem; } .tour-slide figcaption span { font-size: 1.05rem; }
    .tour-slide .ph { position: absolute; left: 40px; top: 96px; width: 300px; box-sizing: border-box; opacity: 0; visibility: hidden; transition: opacity .22s, visibility 0s .22s; transform: rotate(-1.2deg) !important; pointer-events: none; } .tour-slide.on .ph, html:not(.js) .tour-slide:first-child .ph { opacity: 1; visibility: visible; transition-delay: 0s; }
    .tour { min-height: 760px; } .tour-note { grid-column: 2; max-width: none; margin: 16px 0 0; padding: 0 16px; }
    .who { flex-direction: row; align-items: center; gap: 72px; } .who-pic { width: 260px; flex: none; align-self: center; } .who .lp2-h { font-size: 4rem; }
    .reads { padding-top: 56px; } .reads-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
    .ask { margin-top: 110px; } .ask-in { max-width: 1120px; padding: 96px 40px 84px; box-sizing: border-box; }
    .ask-h { font-size: min(8.2rem, calc((100vw - 80px) / 10.4)); }
    .ask-do { display: flex; align-items: center; gap: 28px; margin-top: 34px; } .ask-p { margin: 0; font-size: 1.25rem; order: 2; } .ask-btn { width: auto; flex: none; margin: 0; padding: 0 34px !important; order: 1; } .ask-q { margin: 0 0 0 auto; order: 3; }
}
@media (prefers-reduced-motion: reduce) { .js .mf-trio b { background-size: 100% 100%; color: #121110; } .js .cow-stall { opacity: 1; transform: none; } .js .cow-four { opacity: 1; } }

/* 2: what you get (request 27). The feed's line is struck through; four outcomes, the real world as a red slab.
 * Every drawing's resting state is its finished state; with JavaScript the parts start apart and settle once, when seen. */
.val { padding-top: 46px; }
.val-h { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .95; }
.val-feed { display: block; font-size: 1.75rem; line-height: 1.08; color: var(--ink-3); }
.val-feed > span { background: linear-gradient(var(--primary), var(--primary)) no-repeat 0 56% / 100% 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.js .val-feed > span { transition: background-size .55s cubic-bezier(.3, .8, .3, 1) .25s; } .js .val-feed:not(.seen) > span { background-size: 0% 4px; }
.val-you { display: block; margin-top: 10px; font-size: clamp(2.9rem, 13.2vw, 5.6rem); line-height: .92; color: var(--ink); }
.val-grid { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.vo { display: flex; gap: 14px; align-items: center; margin: 0; padding: 14px 16px; border: 1.5px solid var(--ink); background: var(--card); box-shadow: 3px 4px 0 var(--ink); }
.vo h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.45rem; line-height: 1; color: var(--ink); }
.vo:nth-child(1) { transform: rotate(-.5deg); } .vo:nth-child(2) { transform: rotate(.4deg); margin-left: 6px; } .vo:nth-child(3) { transform: rotate(-.3deg); }
.vo p { margin: 0; font-size: .98rem; line-height: 1.4; color: var(--ink-2); }
.vo-g { flex: none; width: 58px; height: 58px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: square; overflow: visible; }
.g-page { fill: var(--field); } .g-ink { stroke-dasharray: 30; transition: stroke-dashoffset .6s ease-out .15s; } .g-cur { stroke: var(--primary); stroke-width: 3; }
.js .vo:not(.seen) .g-ink { stroke-dashoffset: 30; }
.g-c { fill: var(--card); transform-box: fill-box; transform-origin: 0 100%; transition: transform .55s cubic-bezier(.3, .8, .3, 1) .15s; } .g-c2 { transform: rotate(-14deg); } .g-c3 { transform: rotate(-28deg); }
.g-seed { fill: var(--primary); stroke: none; } .js .vo:not(.seen) .g-c { transform: none; }
.g-arc { stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 3 3; } .g-base { stroke: var(--line-strong); stroke-width: 2; }
.g-dot { fill: var(--primary); stroke: none; transform-box: fill-box; transform-origin: center; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; }
.g-dot:nth-of-type(2) { transition-delay: .15s; } .g-dot:nth-of-type(3) { transition-delay: .3s; } .g-dot:nth-of-type(4) { transition-delay: .45s; } .g-dot:nth-of-type(5) { transition-delay: .6s; }
.js .vo:not(.seen) .g-dot { transform: scale(0); opacity: 0; }
/* the differentiator: the same red in both themes, so its cream text keeps its contrast */
.vo.vo-real { position: relative; display: block; margin-top: 10px; padding: 22px 20px 22px; background: #C41A10; color: #FFF4E2; border-color: var(--ink); box-shadow: 5px 6px 0 var(--ink); transform: rotate(-.8deg); }
.vo-real::before { content: ''; position: absolute; top: -11px; left: 50%; width: 86px; height: 22px; margin-left: -43px; background: var(--tape); transform: rotate(3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.vo-real .vo-tag { margin: 0; font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #FFF4E2; }
.vo-real h3 { margin: 4px 0 8px; font-size: clamp(3.6rem, 18vw, 6.4rem); line-height: .9; color: #FFF4E2; }
.vo-real p { font-size: 1.08rem; font-weight: 600; color: #FFF4E2; max-width: 22em; }
.vo-walk { display: block; width: 100%; max-width: 300px; height: auto; margin: 14px 0 0; fill: none; stroke: #FFF4E2; stroke-width: 2.5; overflow: visible; }
.w-door { fill: rgba(18, 17, 16, .28); } .w-steps ellipse { fill: #FFF4E2; stroke: none; transition: opacity .2s; } .w-sun { fill: #F2C230; stroke: none; } .w-hill { stroke-width: 3; }
.w-steps ellipse:nth-child(2) { transition-delay: .18s; } .w-steps ellipse:nth-child(3) { transition-delay: .36s; } .w-steps ellipse:nth-child(4) { transition-delay: .54s; } .w-steps ellipse:nth-child(5) { transition-delay: .72s; } .w-steps ellipse:nth-child(6) { transition-delay: .9s; }
.js .vo-real:not(.seen) .w-steps ellipse { opacity: 0; }
.vo-do { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.vo-now { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 12px; font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #FFF4E2; text-decoration: underline; text-underline-offset: 4px; }
.ideas-more { margin: 22px 0 0; }
.vo-do li { padding: 8px 12px; border: 1.5px solid #FFF4E2; font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-1.5deg); } .vo-do li:nth-child(2) { transform: rotate(1.2deg); background: #FFF4E2; color: #C41A10; }
.val-act { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
.val-btn { width: 100%; min-height: 58px; font-size: 1rem; box-shadow: 3px 4px 0 var(--ink); }
.val-try a span, .plan-more span { margin-left: 6px; } .val-try { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; margin: 0; } .val-micro { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--ink-3); }

/* 4: how it works. Three steps, each with a real screen that slides up as it is reached. */
.plan-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.pl { display: flex; gap: 18px; align-items: flex-start; margin: 0; }
.pl-shot { flex: none; display: block; width: 96px; height: 136px; overflow: hidden; padding: 4px; border-radius: 16px; background: #121110; box-shadow: 3px 4px 0 var(--primary); transform: rotate(-1.5deg); transition: transform .45s cubic-bezier(.3, .8, .3, 1), opacity .3s; }
.pl:nth-child(even) .pl-shot { transform: rotate(1.5deg); } .pl-shot img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--bg2); }
.js .pl:not(.seen) .pl-shot { opacity: 0; transform: translateY(16px); }
.pl i { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px; background: var(--ink); color: var(--bg1); font-style: normal; font-family: var(--mono); font-weight: 600; } .pl:last-child i { background: var(--primary); color: var(--primary-ink); }
.pl h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.9rem; line-height: .95; }
.pl p { margin: 0; font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.plan-more { margin: 14px 0 0; }
.rep-why { color: var(--ink); font-weight: 600; }

@media (min-width: 960px) {
    .val-feed { font-size: 2.6rem; } .val-you { font-size: 6.4rem; }
    .val-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
    .vo { flex-direction: column; align-items: flex-start; padding: 22px 22px 24px; } .vo-g { width: 72px; height: 72px; margin-bottom: 6px; } .vo h3 { font-size: 1.8rem; } .vo p { font-size: 1.05rem; }
    .vo.vo-real { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 48px; align-items: center; padding: 34px 40px; margin-top: 14px; transform: rotate(-.35deg); }
    .vo-real > :not(.vo-walk) { grid-column: 1; } .vo-walk { grid-column: 2; grid-row: 1 / span 5; max-width: none; margin: 0; }
    .vo-real h3 { font-size: 7.4rem; }
    .val-act { flex-direction: row; align-items: center; gap: 28px; margin-top: 36px; } .val-btn { width: auto; padding: 0 44px; }
    .plan-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 40px; }
    .pl { flex-direction: column; gap: 22px; } .pl-shot { width: 190px; height: 250px; padding: 6px; border-radius: 26px; } .pl-shot img { border-radius: 21px; } .pl h3 { font-size: 2.4rem; } .pl p { font-size: 1.08rem; }
}

/* ================= the screen time calculator (/scroll-calculator) =================
 * The landing page's dial and year as the first screen, the sum written out (it follows the dial), four questions, the ask band. */
.calc-top { padding-top: 26px; }
.calc-h1 { margin: 0; font: inherit; } .calc-h1 .lp2-kick { display: block; }
.calc-q { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.9rem; line-height: .96; letter-spacing: .005em; }
.calc-ans { margin: 14px 0 0; font-size: 1.05rem; line-height: 1.45; color: var(--ink-2); max-width: 30em; }
.calc-top .dial-val { margin-top: 22px; }
.calc-line { position: relative; margin: 26px 4px 0 2px; padding: 18px 16px 14px; border: 1.5px solid var(--ink); background: var(--card); box-shadow: 4px 5px 0 var(--ink); transform: rotate(-.7deg); }
.calc-line::before { content: ''; position: absolute; top: -11px; left: 22px; width: 74px; height: 22px; background: var(--tape); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.calc-said { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.4; }
.calc-copy { margin-top: 12px; min-height: 44px; }
.calc-how { display: grid; gap: 30px; }
.calc-eq { margin: 4px 0 0; font-family: var(--display); text-transform: uppercase; font-size: 2.6rem; line-height: 1; } .calc-eq span { display: block; }
.calc-eq b { font-weight: 400; font-variant-numeric: tabular-nums; } .calc-eq em { font-style: normal; color: var(--primary); font-variant-numeric: tabular-nums; }
.calc-eq-2 { margin-top: 24px; font-size: 1.9rem; }
.calc-key { margin: 8px 0 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .02em; line-height: 1.5; color: var(--ink-3); max-width: 30em; }
.calc-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .86rem; background: var(--card); border: 1.5px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); }
.calc-table th, .calc-table td { padding: 9px 10px; text-align: right; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.calc-table thead th { border-top: 0; font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); vertical-align: bottom; }
.calc-table th:first-child { text-align: left; } .calc-table tbody th { white-space: nowrap; } .calc-table tbody th { font-weight: 600; }
.calc-table tr.on { background: var(--primary); color: var(--primary-ink); } .calc-table tr.on th, .calc-table tr.on td { border-color: var(--primary); }
.calc-qs { border-bottom: 1.5px solid var(--ink); }
.calc-qa { border-top: 1.5px solid var(--ink); }
.calc-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 8px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.calc-qa summary::-webkit-details-marker { display: none; }
.calc-qa summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 1.1rem; }
.calc-qa[open] summary::after { content: '\2212'; background: var(--ink); color: var(--bg1); }
.calc-qa summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.calc-qa p { margin: 0 0 16px; font-size: 1rem; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
@media (min-width: 700px) { .calc-q { font-size: 3.6rem; } }
@media (min-width: 960px) {
    .calc-top { padding-top: 56px; } .calc-q { font-size: 4.2rem; } .calc-ans { font-size: 1.2rem; }
    .calc-top .dial-ask { grid-column: 1; grid-row: 1; } .calc-top .dial-out { grid-column: 2; grid-row: 1 / span 2; padding-top: 34px; }
    .calc-top .calc-line { grid-column: 1; grid-row: 2; align-self: start; margin-top: 8px; max-width: 460px; }
    .calc-how { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; } .calc-eq { font-size: 3.6rem; } .calc-eq-2 { font-size: 2.6rem; }
    .calc-qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-bottom: 0; } .calc-qa { border-bottom: 1.5px solid var(--ink); margin-bottom: -1.5px; }
}

/* ================= /bored: one word, ten lines (request 13) =================
 * The cow test's card and lines (.lp-cow, .lp-line, .lp-said, .cow-word) with a meter of ten, and at ten the visitor's
 * own seconds between thoughts as bars. Motion: lines open in, the counter knocks, bars grow; all transform/opacity. */
.ten-top { padding-top: 26px; }
.ten-h1 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 3.1rem; line-height: .94; letter-spacing: .005em; }
.ten-h1 span { display: block; } .ten-h1 .r { color: var(--primary); }
.ten { margin-top: 30px; scroll-margin-top: 84px; }
.ten-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ten-new { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; white-space: nowrap; flex: none; } .ten-day { white-space: nowrap; }
.ten-practice { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; } .ten-practice .lp-btn { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-size: .82rem; padding: 0 4px; color: var(--ink); }
.wotd-card { gap: 12px; align-items: center; } .wotd-card .eyebrow { display: block; }
.wotd-word { display: block; font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; letter-spacing: .01em; margin: 2px 0; }
.wotd-say { display: block; font-size: .85rem; }
.adm-wotd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; } .adm-wotd b { font-size: 1.15rem; }
.adm-alert { outline: 2px solid var(--primary); outline-offset: -2px; } .adm-alert b, .adm-alert .mute { color: var(--primary); }
.ten-word { display: block; overflow-wrap: anywhere; } .ten-word.sm { font-size: 2.2rem; margin-top: 4px; color: var(--ink-2); } .ten-word span { display: inline-block; }
.ten-rule { margin: 10px 0 0; font-weight: 700; line-height: 1.4; }
.ten-meter { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 8px; font-family: var(--mono); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.ten-meter b { display: inline-block; min-width: 1.1ch; font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; }
.ten-bars { display: flex; gap: 4px; margin-bottom: 16px; }
.ten-bars i { position: relative; flex: 1; height: 12px; border: 1.5px solid var(--ink); overflow: hidden; }
.ten-bars i::after { content: ''; position: absolute; inset: 0; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.ten-bars i.on::after { transform: scaleX(1); }
.ten-bars i:nth-child(n+4) { border-style: dashed; } .ten-bars i.on { border-style: solid; }
.ten-lines { gap: 10px; }
.ten-in { transition: opacity .28s ease-out, transform .28s cubic-bezier(.2, .8, .2, 1); } .ten-in-from { opacity: 0; transform: translateY(-8px); } .ten-in-to { opacity: 1; transform: none; }
/* the reveal */
.ten-big { margin: 14px 0 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 3rem; line-height: .95; animation: tenstamp .45s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes tenstamp { from { opacity: 0; transform: scale(1.25) rotate(-4deg); } to { opacity: 1; transform: rotate(-1.5deg); } }
.ten-verdict { margin: 10px 0 0; font-size: 1.12rem; font-weight: 800; line-height: 1.35; }
.ten-chart-box { margin: 18px 0 16px; padding: 14px 12px 10px; background: var(--field); border: 1.5px solid var(--ink); }
.ten-chart { display: flex; align-items: flex-end; gap: 5px; height: 130px; }
.ten-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.ten-col span { font-family: var(--mono); font-size: .62rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.ten-col i { width: 100%; height: calc(var(--h) * 82px); background: var(--ink); transform-origin: bottom; animation: tengrow .5s cubic-bezier(.2, .8, .2, 1) var(--d) both; }
.ten-col b { font-family: var(--mono); font-size: .66rem; font-weight: 600; color: var(--ink-2); }
.ten-col.slow i { background: var(--primary); } .ten-col.slow span { color: var(--primary); font-weight: 800; }
@keyframes tengrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.ten-said { margin-bottom: 16px; } .ten-said li { animation: tenrise .3s ease-out both; }
.ten-said li:nth-child(2) { animation-delay: .04s; } .ten-said li:nth-child(3) { animation-delay: .08s; } .ten-said li:nth-child(4) { animation-delay: .12s; } .ten-said li:nth-child(5) { animation-delay: .16s; }
.ten-said li:nth-child(6) { animation-delay: .2s; } .ten-said li:nth-child(7) { animation-delay: .24s; } .ten-said li:nth-child(8) { animation-delay: .28s; } .ten-said li:nth-child(9) { animation-delay: .32s; } .ten-said li:nth-child(10) { animation-delay: .36s; }
@keyframes tenrise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* other things to do: torn stickers, the first one red and pointing back up */
.ideas .lp2-h small { display: block; margin-top: 6px; font-family: var(--mono); font-size: .9rem; letter-spacing: .04em; color: var(--ink-3); text-transform: none; }
.ideas-grid { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.idea, .idea-one a { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 12px 14px; background: var(--card); border: 1.5px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); }
.idea:nth-child(odd) { transform: rotate(-.8deg); } .idea:nth-child(even) { transform: rotate(.9deg); }
.idea > i, .idea-one a > i { font-family: var(--display); font-style: normal; font-size: 1.6rem; line-height: 1; color: var(--ink-3); }
.idea svg { color: var(--primary); }
.idea b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.25rem; line-height: 1.02; }
.idea span { font-size: .86rem; line-height: 1.38; color: var(--ink-2); }
.idea-one { grid-column: 1 / -1; padding: 0; border: 0; background: none; box-shadow: none; }
.idea-one a { background: var(--primary); color: var(--primary-ink); background-image: radial-gradient(rgba(0, 0, 0, .18) 1px, transparent 1.5px); background-size: 6px 6px; }
.idea-one a > i, .idea-one svg, .idea-one span { color: var(--primary-ink); } .idea-one b { font-size: 1.6rem; }
.ideas + .calc-faq { padding-top: 48px; }
@media (min-width: 700px) { .ten-h1 { font-size: 4rem; } .ideas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) {
    .ten-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 72px; align-items: start; padding-top: 64px; }
    .ten-say { position: sticky; top: 110px; } .ten-h1 { font-size: 6rem; } .ten-top .calc-ans { font-size: 1.25rem; margin-top: 22px; }
    .ten { margin-top: 0; } .ten-big { font-size: 3.6rem; }
    .ideas-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .idea-one { grid-column: span 2; }
    .ten-faq .calc-qs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ten-ask .ask-h { white-space: normal; font-size: min(7.4rem, calc((100vw - 80px) / 9.6)); } .ten-ask .ask-h span:nth-child(-n+2) { display: block; } .idea-one a { height: 100%; box-sizing: border-box; justify-content: flex-end; padding: 22px; }
    .idea-one b { font-size: 2.6rem; } .idea-one span { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .ten-bars i::after, .ten-in { transition: none; } .ten-big { transform: rotate(-1.5deg); } }

/* ================= /right-now: one real thing, dealt like a card (request 28) =================
 * Two rows of chips (time, place) and a ticket with the activity in display type. A new pick is dealt in from the
 * side (JS, transform/opacity); "I did it" slams a red stamp onto the ticket. The full list follows, by time. */
.rn-top { padding-top: 26px; }
.rn-h1 .r { color: var(--primary); }
.rn-sub { margin: 12px 0 0; font-weight: 800; font-size: 1.12rem; line-height: 1.35; }
.rn { margin-top: 28px; scroll-margin-top: 84px; padding: 20px 16px 16px; }
.rn-step { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; } .rn-step legend { padding: 0; margin-bottom: 8px; }
.rn-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rn-chip { display: grid; place-items: center; min-height: 48px; padding: 4px 6px; border: 1.5px solid var(--ink); margin-left: -1.5px; background: var(--card); color: var(--ink); text-align: center;
    font-family: var(--mono); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; line-height: 1.15; text-decoration: none; transition: background-color .15s, color .15s; }
.rn-chip:first-child { margin-left: 0; }
.rn-chip.on { background: var(--ink); color: var(--card); }
.rn-chip:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; position: relative; z-index: 1; }
/* the ticket: notched edges, an offset shadow, the activity big */
.rn-ticket { position: relative; margin: 4px 0 16px; padding: 18px 18px 22px; min-height: 168px; background: var(--field); border: 2px solid var(--ink); box-shadow: 5px 6px 0 var(--ink); transform: rotate(-.6deg);
    -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.rn-tag { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1.5px dashed var(--line-strong); font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.rn-do { margin: 0; font-family: var(--display); font-weight: 400; font-size: 2.15rem; line-height: 1.04; letter-spacing: .005em; color: var(--ink); overflow-wrap: anywhere; }
.rn-stamp { position: absolute; right: 12px; bottom: 10px; padding: 4px 12px; border: 3px solid var(--primary); color: var(--primary); font-family: var(--display); font-size: 1.9rem; line-height: 1; text-transform: uppercase; letter-spacing: .04em;
    background: color-mix(in srgb, var(--field) 70%, transparent); opacity: 0; transform: rotate(-12deg) scale(1.8); pointer-events: none; }
.rn.is-done .rn-stamp { opacity: .92; transform: rotate(-12deg); animation: rnstamp .38s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes rnstamp { from { opacity: 0; transform: rotate(-12deg) scale(1.8); } to { opacity: .92; transform: rotate(-12deg); } }
.rn-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rn-btn { width: 100%; box-sizing: border-box; padding: 0 10px; }
.rn-keep { padding-top: 6px; }
.rn-picks { margin-top: 20px; padding-top: 16px; border-top: 1.5px dashed var(--line-strong); } .rn-picks .rn-step:last-child { margin-bottom: 0; }
.rn-keep-h { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.rn-keep-p { margin: 8px 0 14px; color: var(--ink-2); line-height: 1.45; }
.rn-r { color: var(--primary); }
/* every idea, by time: three folded bands */
.rn-times { margin-top: 24px; border-bottom: 2px solid var(--ink); }
.rn-time { border-top: 2px solid var(--ink); }
.rn-time summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 0; cursor: pointer; list-style: none; }
.rn-time summary::-webkit-details-marker { display: none; }
.rn-time summary b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.rn-time summary span { font-family: var(--mono); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; }
.rn-time summary span::after { content: '+'; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 10px; border: 1.5px solid var(--ink); color: var(--ink); font-size: 1rem; vertical-align: middle; }
.rn-time[open] summary span::after { content: '\2212'; background: var(--ink); color: var(--bg1); }
.rn-time summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rn-cols { display: grid; gap: 18px; padding: 4px 0 24px; }
.rn-col h3 { display: inline-block; margin: 0 0 8px; padding: 3px 8px; background: var(--ink); color: var(--card); font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.rn-col ul { list-style: none; margin: 0; padding: 0; }
.rn-col li { padding: 8px 0 8px 22px; border-bottom: 1px solid var(--line); position: relative; line-height: 1.38; }
.rn-col li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 10px; height: 2px; background: var(--primary); }
/* the app's Field step, on a real screen */
.rn-app { display: grid; gap: 28px; }
.rn-app-btn { margin-top: 20px; }
.rn-shot { margin: 0; justify-self: center; width: min(280px, 78%); transform: rotate(2deg); position: relative; }
.rn-shot::before { content: ''; position: absolute; z-index: 2; top: -11px; left: 50%; width: 86px; height: 22px; margin-left: -43px; background: var(--tape); transform: rotate(-4deg); }
.rn-shot img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 6px 7px 0 var(--ink); }
.rn-topic { display: flex; flex-wrap: wrap; gap: 0 22px; padding-top: 0; padding-bottom: 40px; }
@media (min-width: 700px) {
    .rn-do { font-size: 2.7rem; } .rn-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}
@media (min-width: 960px) {
    .rn-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 64px; align-items: start; padding-top: 64px; }
    .rn-say { position: sticky; top: 110px; } .rn-sub { font-size: 1.35rem; margin-top: 18px; } .rn-top .calc-ans { font-size: 1.2rem; margin-top: 18px; }
    .rn { margin-top: 0; padding: 26px 24px 20px; } .rn-ticket { min-height: 210px; padding: 22px 24px 28px; }
    .rn-time summary b { font-size: 3rem; }
    .rn-app { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: center; } .rn-shot { width: 100%; }
    .rn-faq .calc-qs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .rn.is-done .rn-stamp { animation: none; } .rn-chip { transition: none; } }

/* ================= the blog (/blog, /blog/topic/{topic}, /blog/{slug}) and the public header and footer =================
   Numbered topics like zine sections; articles as cards that press down; tools as dark taped cards. */
.pub-navs { gap: 2px; } .pub-nav { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-family: var(--mono); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
.pub-nav.on { box-shadow: inset 0 -3px 0 var(--primary); }
@media (max-width: 374px) { .pub-top .logo { display: none; } .pub-nav { padding: 0 6px; } }
.pub-fcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; width: 100%; }
.pub-fcols > div { display: flex; flex-direction: column; align-items: flex-start; }
.pub-fcols a { text-decoration: none; line-height: 1.25; } .pub-fcols a:hover { text-decoration: underline; }
.pub-fh { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
a.pub-fh { text-decoration: underline !important; text-underline-offset: 3px; } .pub-fh-a { margin-top: 8px; }

.bl-hero > * + * { margin-top: 14px; }
.bl-h1 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 3.4rem; line-height: .92; letter-spacing: .005em; }
.bl-h1 span { display: block; } .bl-h1 .r { color: var(--primary); }
.bl-lead { margin: 0; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.2rem; line-height: 1.4; color: var(--ink-2); }
.bl-jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px !important; }
.bl-jump a { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 8px; min-height: 64px; padding: 10px 12px; background: var(--card); border: 1.5px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.bl-jump a i { font-family: var(--display); font-style: normal; font-size: 1.5rem; line-height: 1; color: var(--primary); }
.bl-jump a svg { justify-self: end; color: var(--ink-3); }
.bl-jump a span { grid-column: 1 / -1; font-size: .86rem; font-weight: 800; line-height: 1.2; }
.bl-jump a:active, .bl-card:active, .bl-ht:active { transform: translate(3px, 4px); box-shadow: 0 0 0 var(--ink); }

.bl-topic { margin-top: 52px; scroll-margin-top: 16px; }
.bl-th { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: end; padding-top: 12px; border-top: 3px solid var(--ink); }
.bl-no { font-family: var(--display); font-size: 4.6rem; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--primary); }
.bl-h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.9rem; line-height: .98; }
.bl-h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.bl-line { grid-column: 1 / -1; margin: 12px 0 0; font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.bl-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--mono); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--primary); }
.bl-more svg { color: var(--primary); } .bl-th .bl-more { grid-column: 1 / -1; justify-self: start; }

.bl-cards { display: grid; gap: 12px; margin-top: 14px; }
.bl-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--card); border: 1.5px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); color: var(--ink); transition: transform .12s, box-shadow .12s; }
.bl-title { font-size: 1.08rem; font-weight: 800; line-height: 1.25; } .bl-sum { font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.bl-meta { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.bl-meta svg { color: var(--primary); }
.bl-tag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
.bl-tool { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 8px; padding: 16px 14px; background: var(--ink); color: var(--card); box-shadow: 3px 4px 0 var(--primary); transition: transform .12s, box-shadow .12s; }
.bl-tool::before { content: ''; position: absolute; top: -10px; left: 22px; width: 64px; height: 20px; background: var(--tape); transform: rotate(-4deg); pointer-events: none; }
.bl-tool:active { transform: translate(3px, 4px); box-shadow: 0 0 0 var(--primary); }
.bl-tool-ic { display: grid; place-items: center; width: 44px; height: 44px; background: var(--primary); color: var(--primary-ink); }
.bl-tool-tx { display: flex; flex-direction: column; gap: 4px; } .bl-tool-tx b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.3rem; line-height: 1; }
.bl-tool .bl-tag { color: color-mix(in srgb, var(--card) 70%, var(--primary)); } .bl-tool-go { color: var(--primary); }
.bl-block { margin-top: 40px; } .bl-jump-wrap { margin-top: 0 !important; }

/* topic page */
.bl-tophero { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: end; margin-top: 6px; }
.bl-tophero > * + * { margin-top: 0; } .bl-no-lg { grid-row: span 1; font-size: 6rem; } .bl-h1-topic { font-size: 2.6rem; } .bl-tophero .bl-lead { grid-column: 1 / -1; margin-top: 16px; }
.bl-cards-sum { margin-top: 26px; }

/* article: breadcrumb, topic chip, previous and next, related, and a reading bar driven by the scroll itself */
.bl-crumb ol { display: flex; align-items: center; min-width: 0; margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.bl-crumb li { flex: none; display: flex; align-items: center; white-space: nowrap; } .bl-crumb li:last-child { flex: 1 1 auto; min-width: 0; }
.bl-crumb li:last-child span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bl-crumb li + li::before { content: '›'; padding: 0 7px; color: var(--primary); font-size: .9rem; }
.bl-crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.pub-art .bl-crumb + .pub-h1 { margin-top: 2px; }
.bl-artmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.bl-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--primary); color: var(--primary); font-family: var(--mono); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.bl-pn { display: grid; gap: 10px; margin-top: 44px !important; }
.bl-pn-a { display: flex; flex-direction: column; gap: 6px; padding: 12px 0 14px; border-top: 3px solid var(--ink); }
.bl-pn-a b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.35rem; line-height: 1.02; }
.bl-related { margin-top: 34px !important; } .bl-related .bl-cards { margin-top: 4px; } .bl-related .bl-more { margin-top: 6px; }
.bl-progress { display: none; }
@supports (animation-timeline: scroll()) {
    .bl-progress { display: block; position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 4px; background: var(--primary); transform-origin: 0 50%; transform: scaleX(0); animation: blread linear both; animation-timeline: scroll(root); }
}
@keyframes blread { to { transform: scaleX(1); } }

/* the home page's Read strip: each topic with its newest read */
.bl-home { display: grid; gap: 12px; }
.bl-ht { display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); }
.bl-ht-top { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-bottom: 1.5px dashed var(--line-strong); font-family: var(--mono); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.bl-ht-top i { font-family: var(--display); font-style: normal; font-size: 1.3rem; color: var(--primary); letter-spacing: 0; } .bl-ht-top svg { color: var(--ink-3); }
.bl-ht-a { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; } .bl-ht-a b { font-size: 1.02rem; font-weight: 800; line-height: 1.28; }
.reads .bl-more { margin-top: 10px; }

@media (min-width: 700px) {
    .bl-pn { grid-template-columns: 1fr 1fr; gap: 24px; } .bl-next { grid-column: 2; text-align: right; align-items: flex-end; }
    .bl-cards-sum, .bl-next-sec .bl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bl-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .bl-hero:not(.bl-tophero) { max-width: 900px; } .bl-h1 { font-size: 6.2rem; } .bl-lead { font-size: 1.5rem; max-width: 720px; }
    .bl-jump { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 34px !important; }
    .bl-jump a { min-height: 92px; padding: 14px 16px; } .bl-jump a i { font-size: 2rem; } .bl-jump a span { font-size: .98rem; }
    .bl-topic { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 80px; padding-top: 18px; border-top: 3px solid var(--ink); }
    .bl-th { border-top: 0; padding-top: 0; position: sticky; top: 24px; } .bl-no { font-size: 7rem; } .bl-h2 { font-size: 2.4rem; } .bl-line { font-size: 1.08rem; }
    .bl-topic .bl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 0; }
    .bl-topic .bl-tool, .bl-block .bl-tool { grid-column: 1 / -1; } .bl-card { padding: 20px 22px; } .bl-title { font-size: 1.22rem; }
    .bl-tool { padding: 20px; margin-top: 10px; } .bl-tool-tx b { font-size: 1.7rem; }
    .bl-no-lg { font-size: 9rem; } .bl-h1-topic { font-size: 5rem; } .bl-tophero { max-width: 1000px; column-gap: 26px; }
    .bl-cards-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
    .bl-block .bl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .bl-block .bl-tool { grid-column: auto; }
    .bl-block .bl-jump { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bl-home { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
    .pub-navs { gap: 8px; } .pub-nav { font-size: .78rem; padding: 0 12px; }
    .pub-fcols { grid-template-columns: repeat(2, max-content); justify-content: center; gap: 0 90px; }
}
@media (prefers-reduced-motion: reduce) { .bl-progress { display: none; } .bl-card, .bl-tool, .bl-jump a { transition: none; } }
.pub-art p a.bl-chip { font-weight: 600; text-decoration: none; }
.bl-cards > .bl-card:only-child, .bl-jump-wrap a:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* five topics (request 28): on two columns the fifth takes the whole row, so no hole is left */
.bl-jump > a:last-child:nth-child(odd), .bl-home > .bl-ht:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 960px) { .bl-jump > a:last-child:nth-child(odd), .bl-home > .bl-ht:last-child:nth-child(odd), .bl-block .bl-jump > a:last-child { grid-column: auto; } }
@media (min-width: 960px) { .bl-next-sec .bl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.bl-crumb li { line-height: 1; } .bl-crumb li + li::before { line-height: 1; font-size: .7rem; }
.pub-art .bl-artmeta + * { margin-top: 20px; }
/* Translated blog (request 20): long German and Gujarati words. A topic name in the article's breadcrumb gives way at
   70% (its title is the h1 below), and big headlines break a word that does not fit instead of widening the page. */
.bl-crumb li:nth-child(2):not(:last-child) { max-width: 70%; min-width: 0; } .bl-crumb li:nth-child(2):not(:last-child) a { min-width: 0; max-width: 100%; }
.bl-crumb a span { overflow: hidden; text-overflow: ellipsis; }
.bl-h1, .pub-art .pub-h1, .pub-art h2 { overflow-wrap: break-word; hyphens: auto; }

/* ---------- sign-up code (request 16) ---------- */
.code-field { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; letter-spacing: .3em; text-align: center; min-height: 60px; }
.code-note { margin: 0; padding: 10px 12px; border: 1.5px dashed var(--line-strong); border-radius: 4px; font-weight: 600; font-size: .9rem; }

/* ---------- contact page (request 17) ---------- */
.ct-wrap { max-width: 620px; margin: 0 auto; }
.ct-head { margin-bottom: 22px; } .ct-h { font-size: 2.6rem; margin: 0; } .ct-lede { margin: 10px 0 0; font-size: 1.04rem; line-height: 1.55; }
.ct-card { padding: 20px 18px; } .ct-done { font-size: 1.8rem; margin: 8px 0 0; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-lbl { display: block; font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px 2px; }
.ct-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-topic { position: relative; } .ct-topic input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ct-topic span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: 4px; font-weight: 700; font-size: .9rem; cursor: pointer; }
.ct-topic input:checked + span { background: var(--ink); color: var(--card); border-color: var(--ink); }
.ct-topic input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.ct-msg { min-height: 180px; } .ct-count { margin: 4px 2px 0; font-size: .76rem; text-align: right; font-family: var(--mono); }
.ct-fine { margin: 0; font-size: .82rem; } .ct-fine a { text-decoration: underline; }
.ct-also { margin-top: 18px; font-size: .95rem; } .ct-also a { text-decoration: underline; }
@media (min-width: 960px) { .ct-h { font-size: 3.4rem; } .ct-card { padding: 28px 30px; } }

/* ---------- admin panel (request 18) ---------- */
.adm-shell { max-width: 1180px; }
.adm-bar .side-brand { display: none; }
.adm-in { display: flex; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.adm-in::-webkit-scrollbar { display: none; }
.adm-in .tab { flex: 0 0 auto; min-width: 66px; min-height: 44px; padding: 6px 8px; justify-content: center; }
.adm-in .tab.on::after { left: 18%; right: 18%; }
.adm-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--primary); color: var(--primary-ink); font-size: .62rem; }
.adm-in .tab .adm-count { position: absolute; top: 2px; right: 6px; margin: 0; }
.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; } .adm-head .h1 { margin: 0; } .adm-head .grow { min-width: 200px; }
.adm-seg { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.adm-seg a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; font-family: var(--mono); font-size: .72rem; font-weight: 600; text-transform: uppercase; }
.adm-seg a + a { border-left: 1.5px solid var(--line-strong); } .adm-seg a.on { background: var(--ink); color: var(--card); }
.adm-spark { width: 100%; height: 44px; display: block; margin-top: 10px; color: var(--primary); }
.adm-gate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.adm-gate div { padding: 10px; border: 1.5px solid var(--line-strong); border-radius: 4px; text-align: center; } .adm-gate b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1; } .adm-gate span { white-space: nowrap; font-family: var(--mono); font-size: .64rem; text-transform: uppercase; color: var(--ink-2); }
.adm-gate .on { border-color: var(--primary); border-width: 2px; }
.adm-meter { height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 10%, var(--card)); overflow: hidden; } .adm-meter i { display: block; height: 100%; background: var(--primary); }
.adm-cohort td.c { text-align: center; min-width: 48px; } .adm-cohort td.c b { font-weight: 700; }
.adm-search { display: flex; gap: 8px; } .adm-search .field { flex: 1; min-width: 0; }
.adm-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; } .adm-dl dt { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; } .adm-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.adm-msg { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-size: 1rem; line-height: 1.55; }
.adm-pager { display: flex; justify-content: space-between; gap: 10px; }
.adm-bars { display: flex; align-items: flex-end; gap: 2px; height: 90px; } .adm-bars i { flex: 1; min-height: 1px; background: var(--primary); border-radius: 1px 1px 0 0; }
@media (min-width: 960px) {
    .adm-bar .side-brand { display: flex; }
    .adm-in { flex-direction: column; overflow: visible; gap: 4px; }
    .adm-in .tab { justify-content: flex-start; min-width: 0; padding: 10px 14px; }
    .adm-in .tab .adm-count { position: static; margin-left: auto; }
    .adm-exit { margin-top: 14px; }
    .adm .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
/* ---------- Languages (request 19) ---------- */
/* Scripts the house fonts do not draw: the Noto face fills in letter by letter (loaded only on those pages,
   partials/i18n-head). Uppercase does nothing to them, and their marks need more room than Anton's tight lines. */
:root:lang(hi) { --display: 'Anton', 'Noto Sans Devanagari', 'Impact', sans-serif; --mono: 'IBM Plex Mono', 'Noto Sans Devanagari', ui-monospace, monospace; }
:root:lang(gu) { --display: 'Anton', 'Noto Sans Gujarati', 'Impact', sans-serif; --mono: 'IBM Plex Mono', 'Noto Sans Gujarati', ui-monospace, monospace; }
:lang(hi) body.clay { font-family: 'Inter', 'Noto Sans Devanagari', ui-sans-serif, system-ui, sans-serif; }
:lang(gu) body.clay { font-family: 'Inter', 'Noto Sans Gujarati', ui-sans-serif, system-ui, sans-serif; }
:lang(hi) :is(.h1, .lp2-h, .mf-big, .ask-h, .ten-h1, .calc-q, .cow-word, .ob-big, .ten-big, .lp-h2, .tile-title, .display),
:lang(gu) :is(.h1, .lp2-h, .mf-big, .ask-h, .ten-h1, .calc-q, .cow-word, .ob-big, .ten-big, .lp-h2, .tile-title, .display),
:lang(hi) .wotd-word, :lang(gu) .wotd-word { font-weight: 800; line-height: 1.22; letter-spacing: 0; }
:lang(hi) :is(.eyebrow, .lp2-kick, .ob-kick, .tab, .lbl, .bl-tag), :lang(gu) :is(.eyebrow, .lp2-kick, .ob-kick, .tab, .lbl, .bl-tag) { letter-spacing: 0; }
/* The big English line breaks at fixed places; translated words are longer or shorter, so they wrap on their own. */
:root:not(:lang(en)) .mf-big { white-space: normal; overflow-wrap: break-word; hyphens: auto; font-size: clamp(2.8rem, 12.5vw, 7.4rem); }
:root:not(:lang(en)) :is(.lp2-h, .ask-h, .ten-h1, .h1) { overflow-wrap: break-word; hyphens: auto; }
/* "Read this in Hindi?" on the English home, for a browser that asks for another language. */
.lang-bar { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 8px 4px 16px; background: var(--ink); color: var(--card); font-weight: 700; font-size: .92rem; }
.lang-bar a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.lang-bar .lang-x { display: inline-grid; place-items: center; width: 44px; height: 44px; color: inherit; }
/* Every language of the page, in the footer. */
.pub-langs { justify-content: center; flex-wrap: wrap; gap: 0 14px; font-size: .84rem; }
.pub-foot .pub-langs a { text-decoration: none; } .pub-foot .pub-langs a.on { text-decoration: underline; font-weight: 700; }
/* On a legal page, for a visitor reading the site in another language. */
.legal-note { padding: 12px 14px; border: 1.5px solid var(--line-strong); background: var(--card); font-weight: 600; }
/* Translated labels run longer than the English ones they were sized for: let them wrap, and on a phone give the
   header's links the room the word mark took (the logo stays). */
:root:not(:lang(en)) :is(.mf-trio b, .mf-micro) { white-space: normal; }
@media (max-width: 459px) { :root:not(:lang(en)) .pub-top .pub-name { display: none; } :root:not(:lang(en)) .pub-nav { padding: 0 6px; } }
/* Request 24: our own profile links (footer, /about, Me): the network's icon before its name. */
[data-social] { display: inline-flex; align-items: center; gap: 6px; } [data-social] svg { flex: none; }
.pub-social { justify-content: center; flex-wrap: wrap; gap: 4px 16px; font-size: .84rem; }
.pub-follow { margin-top: 6px; } .pub-follow a { min-height: 44px; vertical-align: middle; }

/* Request 26: the maintenance banner, and the admin's API keys and Settings pages. */
.site-banner { padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: .9rem; text-align: center; overflow-wrap: anywhere; }
.adm-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; cursor: pointer; }
.adm-check input[type=checkbox] { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--primary); }
.adm-check > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .adm-check .mute { font-size: .85rem; }
.adm-mono { font-family: var(--mono); font-size: .75rem; overflow-wrap: anywhere; }
.adm-key { display: flex; flex-direction: row; align-items: center; gap: 12px; } .adm-key .faint { display: block; }
.adm-key.off { opacity: .6; }
.adm-secret { display: block; padding: 14px; border: 1.5px dashed var(--ink); border-radius: 4px; font-family: var(--mono); font-size: .85rem; overflow-wrap: anywhere; word-break: break-all; user-select: all; background: var(--card); }
.adm-env { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.adm-env li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; } .adm-env li:last-child { border-bottom: 0; }
.adm-env .pill { flex: none; }
.bl-crumb li[aria-current] { white-space: normal; line-height: 1.3; } /* a long topic name wraps instead of pushing the page wider (request 28) */
