/* Fraunces and Inter, vendored from Google Fonts on 2026-08-15.
   Both are licensed under the SIL Open Font License 1.1.
   Generated by scripts/fetch-fonts.mjs. Do not edit by hand. */

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/fraunces-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/fraunces-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ============================================================
   KALDERNO · listener companion pages (/overthinking, /3am)
   Same house as kalderno.css (Style D "Editorial Bold": Fraunces
   display, Inter text, hairline rules, one magenta accent), but a
   focused single-column shell built for a phone in a dark bedroom.
   NIGHT is the default theme; DAY is the site's paper palette.
   Source: src/companion/companion.css. The build prepends the
   vendored @font-face block and copies it to site/assets/companion/.
   ============================================================ */

:root,
:root[data-theme="night"]{
  --bg:        #14110D;
  --bg-2:      #1C1813;
  --card:      #211C16;
  --card-hi:   #2A241C;
  --ink:       #F3EDE2;
  --ink-2:     #CDC3B3;
  --ink-3:     #968C7C;
  --rule:      rgba(243,237,226,.15);
  --rule-soft: rgba(243,237,226,.07);
  --line:      #7A7165;   /* 3:1 non-text contrast on bg and card */
  --accent:    #FF4F8B;
  --accent-ink:#FF7AA8;
  --ok:        #8CC79A;
  --ok-bg:     rgba(140,199,154,.10);
  --miss:      #FF7AA8;
  --miss-bg:   rgba(255,79,139,.10);
  /* r5: small labels (chapter, byline) at 5.5:1 or more on bg and card */
  --ink-lbl:   #A8A090;
  /* r5: "nearly, counts tomorrow": its own tint, so the half pill differs from yours */
  --nearly:    #E3C36B;
  /* the active primary: filled accent, dark text (6:1), full opacity */
  --btn-bg:    #FF4F8B;
  --btn-ink:   #14110D;
  --btn-hover-bg: #FF7AA8;
  --btn-hover-ink:#14110D;
  color-scheme: dark;
}
:root[data-theme="day"]{
  --bg:        #F7F3EB;
  --bg-2:      #F0E9DC;
  --card:      #FFFDF8;
  --card-hi:   #F3EDE2;
  --ink:       #16130E;
  --ink-2:     #4C463C;
  --ink-3:     #6F685C;
  --rule:      rgba(22,19,14,.16);
  --rule-soft: rgba(22,19,14,.08);
  --line:      #857D70;
  --accent:    #E0175E;
  --accent-ink:#B30F49;
  --ok:        #2E6B3E;
  --ok-bg:     rgba(46,107,62,.08);
  --miss:      #B30F49;
  --miss-bg:   rgba(224,23,94,.07);
  --ink-lbl:   #5F584D;
  --nearly:    #8A6410;
  --btn-bg:    #16130E;
  --btn-ink:   #F7F3EB;
  --btn-hover-bg: #E0175E;
  --btn-hover-ink:#FFFFFF;
  color-scheme: light;
}
:root{
  --ff-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ff-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --col: 640px;
  --ease: cubic-bezier(.4,0,.2,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; min-height:100vh; min-height:100dvh;
  background:var(--bg); color:var(--ink);
  font-family:var(--ff-sans); font-size:1rem; line-height:1.6;
  overflow-x:hidden; -webkit-font-smoothing:antialiased;
  display:flex; flex-direction:column;
}
/* a theme switch fades the background in 250 ms; never on first paint,
   and reduced motion turns it off (see the end of the file) */
:root.theme-ready body{ transition:background-color .25s var(--ease), color .25s var(--ease); }
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; padding:0; }
[hidden]{ display:none!important; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
[tabindex="-1"]:focus-visible{ outline:none; box-shadow:inset 0 -2px 0 var(--accent); }
::selection{ background:var(--accent); color:#fff; }
.sr,.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.col{ width:100%; max-width:var(--col); margin:0 auto; padding-inline:16px; }
@media (min-width:700px){ .col{ padding-inline:24px; } }

/* ---------- top bar ---------- */
.cbar{ border-bottom:1px solid var(--rule); }
.cbar-in{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:0 12px; min-height:56px; }
.brand{
  font-family:var(--ff-display); font-weight:800; font-size:1.375rem; letter-spacing:-.02em;
  text-decoration:none; font-variation-settings:"SOFT" 30,"WONK" 1,"opsz" 144;
  display:inline-flex; align-items:center; min-height:44px;
}
.cbar-r{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; }
.iconbtn{
  display:inline-flex; align-items:center; gap:7px; min-height:44px; padding:0 14px;
  border:1px solid var(--rule); border-radius:999px;
  font-size:0.875rem; font-weight:600; letter-spacing:.01em; color:var(--ink-2);
}
.iconbtn svg{ width:16px; height:16px; flex:none; }
/* the theme that is on reads as pressed */
.iconbtn[aria-pressed="true"]{ background:var(--card-hi); color:var(--ink); border-color:var(--ink-3); }
/* narrow screens: "Day" and "Night" (the word "theme" stays for screen readers) */
@media (max-width:374px){ .iconbtn{ padding:0 10px; gap:5px; } }
@media (max-width:419px){ .iconbtn .tw{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; } }

/* ---------- type ---------- */
.kicker{
  display:inline-block; font-size:0.875rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:var(--accent-ink);
}
.display{
  font-family:var(--ff-display); font-weight:600; line-height:1.02; letter-spacing:-.022em; margin:0;
  font-variation-settings:"SOFT" 30,"WONK" 1,"opsz" 144;
}
.lead{ color:var(--ink-2); font-size:1.0625rem; line-height:1.6; margin:0; }
.small{ font-size:0.8125rem; color:var(--ink-3); line-height:1.55; }
.rule{ height:1px; background:var(--rule); border:0; margin:0; }

main{ flex:1; }
.screen{ padding:28px 0 44px; }
@media (min-width:700px){ .screen{ padding:44px 0 64px; } }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:50px; padding:0 22px; border-radius:2px;
  background:var(--btn-bg); color:var(--btn-ink); border:1px solid var(--btn-bg);
  font-size:0.9375rem; font-weight:700; letter-spacing:.01em; text-decoration:none; line-height:1.3;
  transition:transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:active{ transform:translateY(1px); }
.btn.ghost{ background:transparent; color:var(--ink); border-color:var(--rule); }
.btn.block{ width:100%; }
/* disabled reads as disabled: dashed outline, no fill, muted text */
.btn[disabled], .btn[aria-disabled="true"]{ cursor:default; opacity:1; background:transparent; color:var(--ink-3); border:1px dashed var(--line); }
.arw{ font-family:var(--ff-sans); }
.mixbtn{ padding-top:8px; padding-bottom:8px; }
.mixbtn .mx{ display:flex; flex-direction:column; align-items:center; gap:2px; }
.mixbtn .sub{ font-size:0.875rem; font-weight:500; letter-spacing:.01em; text-transform:none; opacity:.85; }
.textlink.tap{ display:inline-flex; align-items:center; min-height:44px; }
.textlink{ color:var(--accent-ink); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }

/* ---------- home: hero ---------- */
.hero{ display:grid; grid-template-columns:104px 1fr; gap:18px; align-items:start; }
.hero .cover{
  width:104px; aspect-ratio:1/1; object-fit:cover; border-radius:3px;
  box-shadow:0 10px 26px rgba(0,0,0,.35); transform:rotate(-2deg);
}
@media (min-width:560px){ .hero{ grid-template-columns:150px 1fr; gap:26px; } .hero .cover{ width:150px; } }
/* the eyebrow stays quiet: sentence case, small */
.hero .kicker{ text-transform:none; letter-spacing:.01em; font-weight:600; font-size:0.875rem; line-height:1.35; }
.hero h1{ font-size:clamp(1.875rem, 8.4vw, 2.875rem); margin:6px 0 10px; }
.hero h1 em{ font-style:italic; color:var(--accent-ink); font-weight:500; }
.hero .by{ display:block; font-size:0.875rem; line-height:1.35; color:var(--ink-lbl); letter-spacing:.02em; }
.hook{ margin:18px 0 0; font-family:var(--ff-display); font-size:1.1875rem; line-height:1.35; color:var(--ink); font-variation-settings:"SOFT" 40,"opsz" 40; }
.hook + .cta-row{ margin-top:14px; }
.hero.compact{ grid-template-columns:64px 1fr; gap:14px; align-items:center; }
.hero.compact .cover{ width:64px; transform:none; box-shadow:0 6px 16px rgba(0,0,0,.3); }
.hero.compact h1{ font-size:clamp(1.625rem, 7vw, 2.125rem); margin:4px 0 4px; }
@media (min-width:560px){ .hero.compact{ grid-template-columns:76px 1fr; } .hero.compact .cover{ width:76px; } }
.welcome{ margin:16px 0 0; font-size:0.9375rem; color:var(--ink-2); }
.welcome b{ color:var(--ink); font-weight:600; }
.about{ margin:14px 0 0; border-top:1px solid var(--rule-soft); }
.about summary{
  display:flex; align-items:center; min-height:44px; cursor:pointer; list-style:none;
  font-size:0.875rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-2);
}
.about summary::-webkit-details-marker{ display:none; }
/* the plus/minus is drawn inside an aria-hidden span, so it is never read out */
.about summary .pm::after{ content:"+"; margin-left:8px; font-size:1rem; color:var(--accent-ink); }
.about[open] summary .pm::after{ content:"\2212"; }
.about .hello{ margin:4px 0 0; }
.hello{ margin:26px 0 0; }
.hello p{ margin:0 0 12px; color:var(--ink-2); font-size:1.0625rem; }
.hello p:first-child{ font-family:var(--ff-display); font-size:1.3125rem; color:var(--ink); line-height:1.35; font-variation-settings:"SOFT" 40,"opsz" 40; }
.hello .sig{ font-family:var(--ff-display); font-style:italic; color:var(--ink); font-size:1.125rem; }

.night{
  margin:22px 0 0; padding:16px 18px; border:1px solid var(--rule); border-left:3px solid var(--accent);
  background:var(--bg-2); border-radius:2px;
}
.night p{ margin:0 0 10px; color:var(--ink-2); }
.night p strong{ color:var(--ink); }
.night .row{ display:flex; gap:10px; flex-wrap:wrap; }
.night .row .btn{ flex:1 1 auto; min-height:48px; padding:10px 16px; text-align:center; line-height:1.3; }
.small-link{ display:inline-flex; align-items:center; min-height:44px; margin-top:4px; font-size:0.875rem; }

.cta-row{ display:flex; flex-direction:column; gap:10px; margin:26px 0 0; }
.cta-row.after-where{ margin-top:8px; }
.where{ margin:24px 0 0; font-size:0.9375rem; color:var(--ink-2); }
.night-line{ margin:18px 0 0; font-size:0.9375rem; color:var(--ink-2); display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
@media (min-width:560px){ .cta-row{ flex-direction:row; } }

/* ---------- home: deck list ---------- */
.sec{ margin:40px 0 0; }
.sechead{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 14px; padding-bottom:12px; border-bottom:1px solid var(--rule); margin-bottom:6px; }
.sechead .num{ font-family:var(--ff-display); font-style:italic; color:var(--accent-ink); font-size:0.9375rem; }
.sechead h2{ font-family:var(--ff-display); font-weight:600; font-size:1.5rem; margin:0; letter-spacing:-.015em; }
.sechead .aside{ margin-left:auto; font-size:0.875rem; color:var(--ink-3); min-width:0; }

.decks{ list-style:none; margin:0; padding:0; }
.deck{ border-bottom:1px solid var(--rule-soft); }
.deck button{
  width:100%; text-align:left; display:grid; grid-template-columns:34px minmax(0,1fr) auto; column-gap:12px; row-gap:0;
  grid-template-areas:"dn db st" "dn dm st"; align-items:center;
  padding:16px 2px; transition:background-color .2s var(--ease);
}
.deck .dn{ grid-area:dn; }
.deck .db{ grid-area:db; min-width:0; }
.deck .dm{ grid-area:dm; }
.deck .st{ grid-area:st; }
/* phones (and anything under 380 px, i.e. 150 % zoom): the status pill moves
   below the description, next to the dots, so the title keeps the full width */
@media (max-width:559px){
  .deck button{ grid-template-columns:26px minmax(0,1fr) auto; column-gap:10px; grid-template-areas:"dn db db" "dn dm st"; align-items:start; }
  .deck .st{ align-self:center; margin-top:9px; }
}
/* very narrow (150 % zoom on a phone): dots and pill each get a full row */
@media (max-width:379px){
  .deck button{ grid-template-columns:24px minmax(0,1fr); grid-template-areas:"dn db" "dn dm" "dn st"; }
  .deck .st{ margin-top:10px; }
  .review-card{ grid-template-columns:24px minmax(0,1fr); grid-template-areas:"ic tx" "ic st"; padding:14px; row-gap:10px; }
  .review-card .rc-ic{ grid-area:ic; }
  .review-card > span:nth-child(2){ grid-area:tx; }
  .review-card .st{ grid-area:st; justify-self:start; }
}
.deck .dn{ font-family:var(--ff-display); font-size:1.5rem; font-weight:500; color:var(--ink-3); text-align:center; line-height:1; }
.deck .dt{ display:block; font-family:var(--ff-display); font-size:1.1875rem; font-weight:600; line-height:1.2; letter-spacing:-.01em; }
.deck .ds{ display:block; font-size:0.875rem; color:var(--ink-2); margin-top:3px; }
.deck .dc{ display:block; font-size:0.875rem; color:var(--ink-lbl); margin-top:2px; letter-spacing:.02em; }
.deck .dots{ display:flex; gap:4px; margin-top:9px; flex-wrap:wrap; align-self:center; }
.deck .dots i{ width:16px; height:6px; border-radius:3px; background:var(--line); }
/* ok = yours (filled green), caught = "nearly": outlined in its own tint
   with a half fill,
   miss = comes back (rose ring), empty = not met yet */
.dots i.ok, .strip i.ok, .qpips i.ok, .legend i.ok{ background:var(--ok); box-shadow:none; }
.dots i.caught, .strip i.caught, .qpips i.caught, .legend i.caught{ background:linear-gradient(90deg, var(--nearly) 50%, transparent 50%); box-shadow:inset 0 0 0 1.5px var(--nearly); }
.dots i.miss, .strip i.miss, .qpips i.miss, .legend i.miss{ background:transparent; box-shadow:inset 0 0 0 1.5px var(--miss); }
/* later = back tomorrow: a round dot, so it differs by shape, not only colour */
.dots i.later, .strip i.later, .legend i.later{ background:transparent; box-shadow:inset 0 0 0 1.5px var(--miss); border-radius:50%; }
.dots i.later{ width:6px; margin:0 5px; }
.strip i.later{ flex:0 0 10px; }
.legend i.later{ width:8px; }
.qpips i.practice, .qpips i.slip{ background:transparent; box-shadow:inset 0 0 0 1.5px var(--ok); }
.deck .st{
  font-size:0.875rem; font-weight:700; letter-spacing:.02em; color:var(--ink-3);
  border:1px solid var(--rule); border-radius:999px; padding:4px 10px; white-space:nowrap; justify-self:start;
}
.deck .st.yours{ color:var(--ok); border-color:var(--ok); }
.deck .st.go{ color:var(--accent-ink); border-color:var(--accent); }
.deck .st.part{ color:var(--ink-2); }
.review-wrap{ margin:28px 0 0; }
.review-card{
  width:100%; text-align:left; display:grid; grid-template-columns:30px minmax(0,1fr) auto; gap:12px; align-items:center;
  padding:16px 16px; border:1px solid var(--accent); border-radius:3px; background:var(--card);
  transition:background-color .2s var(--ease);
}
.review-card .rc-ic{ font-size:1.375rem; color:var(--accent-ink); text-align:center; line-height:1; }
.review-card .rk, .mixbtn .mk{ display:block; font-size:0.875rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--accent-ink); margin-bottom:2px; }
.review-wrap .mixbtn{ margin-top:10px; }
.pile-line{ margin:16px 0 0; font-size:0.9375rem; color:var(--ink-2); display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.review-card .dt{ display:block; font-family:var(--ff-display); font-size:1.1875rem; font-weight:600; line-height:1.2; }
.review-card .ds{ display:block; font-size:0.875rem; color:var(--ink-3); margin-top:3px; }
.review-card .st{
  font-size:0.875rem; font-weight:700; letter-spacing:.02em; white-space:nowrap;
  color:var(--accent-ink); border:1px solid var(--accent); border-radius:999px; padding:4px 10px;
}

.meter{ margin:14px 0 0; font-size:0.8125rem; color:var(--ink-3); }
.meter b{ color:var(--ink); font-weight:600; }

/* ---------- question screen ---------- */
.qhead{ display:flex; flex-wrap:wrap; align-items:center; gap:0 12px; }
.qhead .close{ font-size:0.875rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-2); display:inline-flex; align-items:center; gap:6px; min-height:44px; padding-right:12px; white-space:nowrap; }
.qpips{ display:flex; gap:3px; flex:1 1 auto; min-width:0; justify-content:center; overflow:hidden; }
.qpips i{ flex:0 1 14px; min-width:4px; height:6px; border-radius:3px; background:var(--line); }
.qpips i.now{ background:transparent; box-shadow:inset 0 0 0 1.5px var(--ink-3); }
/* the count and its separator dot travel together (nowrap) */
.qcnt{ margin-left:auto; white-space:nowrap; font-size:0.875rem; color:var(--ink-2); }
.qsep{ display:none; }
.qhead .count{ font-size:0.875rem; color:var(--ink-2); font-variant-numeric:tabular-nums; min-width:0; }
.bar{ height:3px; background:var(--rule); border-radius:2px; margin:12px 0 26px; overflow:hidden; }
.bar span{ display:block; height:100%; background:var(--accent); width:0; transition:width .45s var(--ease); }
/* second tries: the main bar stays full, a softer segment fills below it */
.bar2{ height:3px; border-radius:2px; margin:-20px 0 23px; background:var(--rule-soft); overflow:hidden; }
.bar2 span{ display:block; height:100%; background:var(--ink-3); opacity:.7; width:0; transition:width .45s var(--ease); }
.qmeta{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:12px; }
.again{ font-size:0.875rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-3); }
.qtext{ font-family:var(--ff-display); font-weight:500; font-size:clamp(1.4375rem, 6.2vw, 1.875rem); line-height:1.22; letter-spacing:-.012em; margin:0 0 22px; font-variation-settings:"SOFT" 40,"opsz" 60; }
.opts{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.opt{
  width:100%; text-align:left; display:grid; grid-template-columns:28px 1fr; gap:12px; align-items:start;
  padding:15px 16px; min-height:56px; border:1px solid var(--line); border-radius:3px; background:var(--card);
  font-size:1rem; line-height:1.45; color:var(--ink);
  transition:border-color .2s var(--ease), background-color .2s var(--ease), opacity .2s var(--ease);
}
.opt .key{
  width:26px; height:26px; border:1px solid var(--rule); border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:0.75rem; font-weight:700; color:var(--ink-3); margin-top:-1px;
}
.opt[aria-disabled="true"]{ cursor:default; }
.opt.is-right{ border-color:var(--ok); background:var(--ok-bg); }
.opt.is-right .key{ border-color:var(--ok); color:var(--ok); }
.opt.is-right .key{ background:var(--ok); color:var(--bg); font-size:0.875rem; }
.opt .key svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }
.opt.is-right.is-picked{ box-shadow:0 0 0 3px var(--ok-bg), 0 0 22px var(--ok-bg); }
.opt.is-wrong{ border-color:var(--miss); }
.opt.is-wrong .key{ border-color:var(--ink-3); color:var(--ink-2); font-size:0.875rem; }
.opt.is-dim{ opacity:.7; }
:root[data-theme="day"] .opt.is-dim{ opacity:.75; }

.fb{ position:relative; overflow:hidden; margin:20px 0 0; padding:18px 18px 16px; border-top:2px solid var(--ok); background:var(--bg-2); border-radius:0 0 3px 3px; }
.fb > *{ position:relative; }
.fb.miss{ border-top-color:var(--rule); }
.fb .verdict{ font-family:var(--ff-display); font-weight:600; font-size:1.25rem; margin:0 0 6px; display:flex; align-items:center; gap:8px; }
.fb .verdict:focus{ outline:none; }
.fb .verdict:focus-visible{ outline:none; box-shadow:inset 0 -2px 0 var(--accent); }
.fb.ok .verdict{ color:var(--ok); }
.fb.miss .verdict{ color:var(--ink); font-family:var(--ff-sans); font-size:1.125rem; font-weight:600; }
.fb p{ margin:0 0 12px; color:var(--ink-2); }
.fb p.ans strong{ color:var(--ink); }
.fb blockquote{
  margin:4px 0 12px; padding:2px 0 2px 14px; border-left:2px solid var(--accent);
  font-family:var(--ff-display); font-style:italic; font-size:1.0938rem; line-height:1.45; color:var(--ink);
}
/* one attribution line everywhere: small, sentence case, no letter-spacing */
.from{ display:block; margin:0 0 12px; font-size:0.875rem; line-height:1.45; color:var(--ink-3); font-style:normal; letter-spacing:0; text-transform:none; }
.fb blockquote + .from{ margin-top:-4px; }
.fb .back{ font-size:0.875rem; color:var(--ink-3); margin:0 0 14px; }
/* the tick beside "Exactly."; its calm 300 ms pulse sits behind the tick, never across the words */
.fb .vmark{ position:relative; display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:var(--ok); color:var(--bg); flex:none; }
.fb .vmark svg{ width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2.8; stroke-linecap:round; stroke-linejoin:round; }
.fb .vmark::after{ content:""; position:absolute; inset:0; border-radius:50%; border:2px solid var(--ok); opacity:0; pointer-events:none; }
/* a right first try: the short form; the rest waits behind "Why, from the book" */
.fb .more{ margin:0 0 12px; }
.fb .more summary{ display:inline-flex; align-items:center; min-height:44px; cursor:pointer; color:var(--accent-ink); font-size:0.9375rem; text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.fb .more[open] summary{ margin-bottom:6px; }
/* Next docks at the bottom of the screen while you read, then settles above the help note */
.nextbar{
  position:sticky; bottom:0; z-index:5; margin:14px -16px 0; padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  background:var(--bg); border-top:1px solid var(--rule-soft);
}
.nextbar .btn{ min-height:50px; }
@media (min-width:700px){ .nextbar{ margin-inline:-24px; padding-inline:24px; } }
.qdeck{ display:none; }

/* ---------- deck end ---------- */
.done h1{ font-size:clamp(2rem, 9vw, 3rem); margin:8px 0 12px; }
.strip{ display:flex; gap:7px; flex-wrap:nowrap; margin:4px 0 8px; }
.strip i{ flex:0 1 30px; min-width:8px; height:10px; border-radius:5px; background:transparent; box-shadow:inset 0 0 0 1.5px var(--rule); }
.legend{ display:flex; flex-wrap:wrap; gap:4px 14px; margin:0 0 16px; font-size:0.875rem; color:var(--ink-3); }
.sec .legend{ margin:12px 0 0; }
.legend span{ display:inline-flex; align-items:center; gap:6px; }
.legend i{ display:inline-block; width:16px; height:8px; border-radius:4px; }
.done .lost{ margin:12px 0 0; color:var(--ink-2); font-size:0.9375rem; }
.gn-back{ margin:22px 0 0; }
.kept{ margin:26px 0 0; padding:22px 20px 18px; border:1px solid var(--rule); border-left:3px solid var(--accent); border-radius:3px; background:var(--card); }
.kept blockquote{
  margin:10px 0 12px; font-family:var(--ff-display); font-style:italic; font-weight:500;
  font-size:clamp(1.3125rem, 5.6vw, 1.625rem); line-height:1.35; color:var(--ink); letter-spacing:-.01em;
  font-variation-settings:"SOFT" 40,"opsz" 60;
}
.kept .from{ margin:0; }
.wait{ margin:20px 0 0; font-size:0.9375rem; color:var(--ink-2); }
.kept .keepbtn{ margin-top:14px; min-height:44px; padding:0 16px; }
.kept .keepbtn[aria-busy="true"]{ opacity:.6; }
.keepbtn .kb-label{ display:inline-flex; align-items:center; gap:8px; }
.keepbtn svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }
.keepbtn.is-saved{ color:var(--ok); border-color:var(--ok); }
.keepnote{ margin:10px 0 0; font-size:0.875rem; color:var(--ink-2); }

/* ---------- home: lines you kept (nine quiet slots, no counts) ---------- */
.shelf{ margin:18px 0 0; padding:16px 16px 14px; border:1px solid var(--rule); border-radius:3px; background:var(--bg-2); }
.shelf-h{ margin:0; font-size:0.875rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-2); }
.shelf-cap{ margin:2px 0 12px; font-size:0.875rem; color:var(--ink-3); }
.slots{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.slot{ width:44px; height:44px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; }
.slot.empty{ border:1px dashed var(--rule); }
button.slot{ border:1px solid var(--accent); background:var(--card); color:var(--accent-ink); line-height:1; padding:0; gap:1px; }
/* each kept line shows its deck number, with a small quote mark */
button.slot .sq{ font-family:var(--ff-display); font-style:italic; font-size:1rem; position:relative; top:-4px; }
button.slot .sn{ font-family:var(--ff-sans); font-weight:700; font-size:0.9375rem; font-variant-numeric:tabular-nums; }
button.slot.perfect{ border-width:2px; }
button.slot[aria-expanded="true"]{ background:var(--accent); color:#fff; }
.shelf-open .kept{ margin-top:14px; }
.kitline{ margin:22px 0 0; }
.invite{
  margin:28px 0 0; padding:20px 18px; border:1px solid var(--rule); border-radius:3px; background:var(--card);
}
.invite h2{ font-family:var(--ff-display); font-weight:600; font-size:1.375rem; line-height:1.2; margin:6px 0 8px; letter-spacing:-.01em; }
.invite p{ margin:0 0 14px; color:var(--ink-2); }

/* ---------- help + footer ---------- */
.help{
  margin:44px 0 0; padding:14px 16px; border:1px solid var(--rule); border-radius:3px;
  font-size:0.9375rem; line-height:1.6; color:var(--ink-2);
}
.help strong{ color:var(--ink); }
.help a{ color:var(--accent-ink); }
/* r5: the crisis links are 44 px tap targets (as on /3am); the negative
   margin keeps the lines of the note evenly spaced */
.help a.call, .help a:not(.call){
  display:inline-block; padding:10px 4px; margin:-10px 0; min-height:44px; box-sizing:border-box; line-height:24px; vertical-align:baseline;
}
.help a.call{ font-weight:700; color:var(--accent-ink); text-decoration:underline; text-underline-offset:3px; }
.cfoot{ border-top:1px solid var(--rule); padding:22px 0 30px; font-size:0.875rem; color:var(--ink-3); }
.cfoot .col{ display:flex; flex-wrap:wrap; gap:6px 18px; align-items:center; }
.cfoot a{ color:var(--ink-3); text-decoration:none; display:inline-flex; align-items:center; min-height:44px; }
.cfoot .fb-brand{ font-family:var(--ff-display); font-weight:800; font-size:0.9375rem; color:var(--ink-2); margin-right:auto; }
.reset{ min-height:44px; font-size:0.875rem; color:var(--ink-3); text-decoration:underline; text-underline-offset:3px; margin-top:18px; display:inline-block; }

/* ---------- /3am bridge ---------- */
.kit h1{ font-size:clamp(2.25rem, 10vw, 3.625rem); margin:10px 0 14px; }
.kit h1 em{ font-style:italic; color:var(--accent-ink); font-weight:500; }
.offer{ list-style:none; margin:24px 0 0; padding:0; border-top:1px solid var(--rule); }
.offer li{ display:grid; grid-template-columns:34px 1fr; gap:12px; padding:14px 0; border-bottom:1px solid var(--rule-soft); }
.offer .n{ font-family:var(--ff-display); font-style:italic; color:var(--accent-ink); font-size:1.125rem; line-height:1.4; }
.offer b{ display:block; font-weight:600; color:var(--ink); }
.offer span.d{ color:var(--ink-2); font-size:0.9375rem; }
.signup{ margin:28px 0 0; padding:20px 18px; background:var(--card); border:1px solid var(--rule); border-radius:3px; }
.signup label{ display:block; font-size:0.875rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-3); margin-bottom:8px; }
.signup input[type="email"]{
  width:100%; min-height:50px; padding:12px 14px; font:inherit; font-size:1rem;
  background:var(--bg); color:var(--ink); border:1px solid var(--rule); border-radius:2px;
}
.signup input[type="email"]:focus{ outline:2px solid var(--accent); outline-offset:-1px; border-color:transparent; }
.signup .btn{ margin-top:10px; }
.signup .note{ margin:12px 0 0; font-size:0.875rem; color:var(--ink-3); }
.series{ margin:36px 0 0; display:grid; grid-template-columns:84px 1fr; gap:16px; align-items:center; }
.series .b2{ width:84px; aspect-ratio:1/1; border:1px solid var(--rule); border-radius:3px; background:var(--card);
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:2px; }
.series .b2 b{ font-family:var(--ff-display); font-style:italic; font-weight:600; font-size:1.375rem; color:var(--accent-ink); line-height:1; }
.series .b2 span{ font-size:0.875rem; font-weight:700; letter-spacing:.02em; color:var(--ink-3); line-height:1.25; }
.series h2{ font-family:var(--ff-display); font-weight:600; font-size:1.25rem; margin:4px 0 4px; }
.series p{ margin:0; color:var(--ink-2); font-size:0.9375rem; }

/* ---------- hover: only for a real mouse, so a tap never leaves a sticky look ---------- */
@media (hover:hover) and (pointer:fine){
  .iconbtn:hover{ color:var(--ink); border-color:var(--ink-3); }
  .btn:hover{ background:var(--btn-hover-bg); border-color:var(--btn-hover-bg); color:var(--btn-hover-ink); }
  .btn.ghost:hover{ color:var(--accent-ink); border-color:var(--accent); background:transparent; }
  .btn[disabled]:hover, .btn[aria-disabled="true"]:hover{ background:transparent; border-color:var(--line); color:var(--ink-3); }
  .deck button:hover{ background:var(--rule-soft); }
  /* day: a lighter row keeps the muted text above 4.5:1 */
  :root[data-theme="day"] .deck button:hover{ background:var(--card); }
  .review-card:hover{ background:var(--card-hi); }
  .opt:hover:not([aria-disabled="true"]){ border-color:var(--ink-3); background:var(--card-hi); }
  .qhead .close:hover{ color:var(--ink); }
  .help a.call:hover{ color:var(--ink); }
  .cfoot a:hover{ color:var(--ink); }
}

/* ---------- small phones: the question view in one compact header line ---------- */
@media (max-width:374px){
  .cbar-in{ min-height:50px; }
  .qscreen{ padding-top:12px; }
  .qhead{ gap:8px; }
  .qhead .qpips{ display:none; }
  .qdeck{ display:inline; margin-left:auto; font-size:0.875rem; font-weight:700; color:var(--accent-ink); white-space:nowrap; }
  .qdeck + .qcnt{ margin-left:0; }
  .qsep{ display:inline; }
  .qmeta{ display:none; }
  .bar{ margin:6px 0 14px; }
  .bar2{ margin:-11px 0 12px; }
  .qtext{ margin-bottom:14px; }
  .opts{ gap:8px; }
  .opt{ padding:12px 13px; min-height:50px; }
}

/* ---------- 260 px, or 150 % text on a small phone: Start stays above the fold ---------- */
@media (max-width:300px){
  .screen{ padding-top:14px; }
  .hero{ grid-template-columns:64px 1fr; gap:12px; }
  .hero .cover{ width:64px; transform:none; }
  .hero h1{ font-size:1.5rem; margin:4px 0 4px; }
  .hook{ font-size:1.0625rem; margin-top:12px; }
  .hook + .cta-row{ margin-top:12px; }
  .iconbtn .tl{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .iconbtn{ padding:0 13px; }
}

/* ---------- very narrow phones (and zoom) ---------- */
@media (max-width:360px){
  .screen{ padding-top:18px; }
  .qhead{ gap:8px; }
  .qhead .close{ padding-right:4px; }
  .bar{ margin:8px 0 16px; }
  .bar2{ margin:-12px 0 13px; }
  .qmeta{ margin-bottom:8px; }
  .qtext{ font-size:1.375rem; margin-bottom:14px; }
  .opts{ gap:8px; }
  .opt{ padding:12px 13px; min-height:50px; gap:10px; }
  .nextbar .btn{ letter-spacing:.04em; padding-inline:12px; }
  .strip{ gap:4px; }
}

@media (prefers-reduced-motion:no-preference){
  .fb{ animation:fb-in .22s var(--ease) both; }
  .fb.ok .vmark::after{ animation:exhale .3s cubic-bezier(.2,.6,.3,1) 1 both; }
  .opt.is-right.is-picked{ animation:glow .3s ease-out 1; }
  .opts.got .opt.is-right .key svg path{ stroke-dasharray:22; stroke-dashoffset:22; animation:draw .3s cubic-bezier(.16,.8,.3,1) forwards; }
}
@media (prefers-reduced-motion:no-preference){
  /* deck end: the pips fill in one by one, about 600 ms in all */
  .done .strip i{ animation:pip-in .3s cubic-bezier(.2,.6,.3,1) both; animation-delay:var(--d,0ms); }
  /* a miss: a soft settle on the picked option, no shake */
  .opts.missed .opt.is-wrong.is-picked{ animation:settle .15s ease-out 1; }
}
@media (prefers-reduced-motion:no-preference){
  /* a deck done all right on the first try: its shelf line glows once */
  button.slot.glow{ animation:slot-glow 1.6s ease-out 1 both; }
}
@keyframes slot-glow{ 0%{ box-shadow:0 0 0 0 var(--ok-bg); } 40%{ box-shadow:0 0 0 8px var(--ok-bg), 0 0 24px var(--accent); } 100%{ box-shadow:0 0 0 0 transparent; } }
@keyframes pip-in{ from{ opacity:0; transform:scaleX(.3); } to{ opacity:1; transform:none; } }
@keyframes settle{ 0%{ transform:translateY(2px) scale(.99); } 100%{ transform:none; } }
@keyframes draw{ to{ stroke-dashoffset:0; } }
@keyframes fb-in{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
@keyframes exhale{ 0%{ opacity:.6; transform:scale(1); } 100%{ opacity:0; transform:scale(1.8); } }
@keyframes glow{ 0%{ box-shadow:0 0 0 0 var(--ok-bg), 0 0 0 var(--ok-bg); } 40%{ box-shadow:0 0 0 6px var(--ok-bg), 0 0 30px var(--ok-bg); } 100%{ box-shadow:0 0 0 3px var(--ok-bg), 0 0 22px var(--ok-bg); } }
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ transition:none!important; animation:none!important; }
}
