/* NDBlueprint site styles, shared by every page.
   Everything here is lifted from the app's dark mode (ndblueprint-polish:
   src/app/styles/base.css, bevel.css, daily-review.css, motion.css and
   components/question/answer-option.tsx), so the site and the app are one look.
   Each page adds its own layout in an inline <style>; do not restyle these here. */

@font-face{font-family:"Unbounded";src:url("/unbounded-latin.woff2") format("woff2");font-weight:200 900;font-style:normal;font-display:swap}
@font-face{font-family:"Literata";src:url("/fonts/literata-latin.woff2") format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:"Literata";src:url("/fonts/literata-italic-latin.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}

:root{
  /* the app's dark palette */
  --bg:#0a1117;            /* page */
  --pane:#12191f;          /* recessed content pane */
  --card:#111c24;          /* gray-900: cards */
  --raised:#1b2a35;        /* gray-800 */
  --edge:#2a3d4b;          /* gray-700: quiet borders */
  --edge-strong:#4a606d;   /* gray-600 */
  --ink:#d6e2ea;           /* text */
  --ink-bright:#f4f8fa;
  --ink-soft:#a9c0cd;      /* gray-300: secondary text, 9:1 on --bg */
  --ink-faint:#8fa9b8;     /* gray-400: notes, 7:1 on --bg */
  --ice:#7cc7e8; --ice-bright:#b8e6f7; --ice-deep:#3f93bd; --ice-ink:#04212e;
  --right:#4ade80; --wrong:#f87171;
  --gold:#f5c83c;
  /* Daily Review's twilight */
  --dr-fill:linear-gradient(135deg,#1d1946 0%,#151a35 55%,#1f1a30 100%);
  --dr-ink:#ece8ff; --dr-soft:#aea6d6; --dr-violet:#8f7cf0;
  /* bevel (dark) */
  --bv-hi:rgb(255 255 255 / .11); --bv-hi-side:rgb(255 255 255 / .04);
  --bv-lo:rgb(0 0 0 / .5); --bv-lo-side:rgb(0 0 0 / .22);
  --bv-drop-1:rgb(0 0 0 / .45); --bv-drop-2:rgb(0 0 0 / .35);
  --ease-out:cubic-bezier(.23,1,.32,1);
  --sans:ui-sans-serif,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --serif:"Iowan Old Style","Literata","Palatino Linotype",Palatino,Georgia,serif;
  --wordmark:"Unbounded",ui-sans-serif,-apple-system,Arial,sans-serif;
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:1.0625rem;line-height:1.6;-webkit-font-smoothing:antialiased}
img,svg{display:block;max-width:100%}
a{color:var(--ice-bright)}
:focus-visible{outline:2px solid var(--ice-bright);outline-offset:3px;border-radius:6px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.px{image-rendering:pixelated;image-rendering:crisp-edges}

/* ── wordmark chip (same as the app header and the current site) ── */
.brand{font-family:var(--wordmark);display:inline-block;padding:6px 15px;border-radius:9px;font-size:.88rem;font-weight:400;letter-spacing:.005em;color:var(--ice-ink);text-decoration:none;
  background:linear-gradient(155deg,#d4f1fc 0%,var(--ice-bright) 38%,var(--ice) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),inset 0 -2px 0 rgba(0,0,0,.16),0 0 0 1px rgba(255,255,255,.22),0 3px 8px rgba(0,0,0,.38)}
.brand b{font-weight:900;margin-right:.09em}

/* ── buttons: the app's ice "Start" button and its quiet outline button ── */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:.5em;min-height:48px;padding:0 22px;border-radius:8px;border:1px solid transparent;font:600 1rem/1 var(--sans);text-decoration:none;cursor:pointer;transition:filter .2s ease,border-color .2s ease,scale .12s ease}
.btn::after{content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),inset 0 -2px 0 rgba(0,0,0,.16),0 1px 1px var(--bv-drop-1),0 3px 5px -2px var(--bv-drop-2)}
.btn:active{scale:.97}
.btn-ice{color:var(--ice-ink);background:linear-gradient(155deg,#d4f1fc 0%,var(--ice-bright) 38%,var(--ice) 100%)}
.btn-ice b{font-weight:800}
@media (hover:hover){.btn-ice:hover{filter:brightness(1.06)}}
.btn-quiet{color:var(--ink);background:var(--card);border-color:var(--edge)}
.btn-quiet::after{box-shadow:inset 0 1px 0 var(--bv-hi),inset 0 -2px 0 var(--bv-lo),inset 1px 0 0 var(--bv-hi-side),inset -1px 0 0 var(--bv-lo-side),0 1px 1px var(--bv-drop-1),0 3px 5px -2px var(--bv-drop-2)}
@media (hover:hover){.btn-quiet:hover{border-color:var(--edge-strong)}}

/* ── the question, exactly as the app draws it (answer-option.tsx) ── */
.q{font-family:var(--sans);color:var(--ink);text-align:left}
.q-meta{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:.875rem;color:var(--ink-faint)}
.q-meta img{width:24px;height:24px}
.q-stem{margin:0 0 24px;font-size:1rem;line-height:1.625;color:var(--ink)}
.q-opts{display:grid;gap:12px}
.opt{display:flex;width:100%;gap:14px;padding:14px 16px;border-radius:6px;border:1px solid var(--edge);background:transparent;color:inherit;font:inherit;font-size:1rem;text-align:left;cursor:pointer;user-select:none;-webkit-user-select:none;
  transition:color .3s,border-color .3s,box-shadow .3s}
@media (hover:hover){.opt:hover{border-color:#587280}}
.opt:active{scale:.985}
.opt .badge{display:flex;flex:none;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;border:1px solid var(--edge-strong);font-size:.875rem;font-weight:600;color:var(--ink-soft);transition:color .3s,background-color .3s,border-color .3s}
.opt-body{min-width:0;flex:1;padding-top:2px;line-height:1.375}
.why{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .26s ease-out,opacity .26s ease-out}
.why>span{min-height:0;overflow:hidden;visibility:hidden;display:block}
.why b{display:block;margin-top:12px;font-size:.875rem;font-weight:700}
.why i{display:block;margin-top:6px;font-style:normal;font-size:.875rem;line-height:1.625;color:var(--ink-soft)}
.opt.is-wrong,.opt.is-right,.opt.is-open{cursor:default}
.opt.is-wrong .why,.opt.is-right .why,.opt.is-open .why{grid-template-rows:1fr;opacity:1}
.opt.is-wrong .why>span,.opt.is-right .why>span,.opt.is-open .why>span{visibility:visible}
.opt.is-wrong{border-color:var(--wrong);box-shadow:0 0 12px 2px rgba(248,113,113,.3)}
.opt.is-wrong .badge{border-color:var(--wrong);background:var(--wrong);color:#0a1117}
.opt.is-wrong .why b{color:var(--wrong)}
.opt.is-right{border-color:var(--right);box-shadow:0 0 12px 2px rgba(74,222,128,.3)}
.opt.is-right .badge{border-color:var(--right);background:var(--right);color:#0a1117}
.opt.is-right .why b{color:var(--right)}
/* read, not picked: neutral, a thin grey rule instead of a verdict */
.opt.is-readable{cursor:pointer}
.opt.is-open{border-color:#587280;cursor:pointer}
.opt.is-open .why b{display:none}
.opt.is-open .why i{margin-top:12px;padding-left:12px;border-left:2px solid var(--edge-strong)}
.opt .chev{flex:none;width:16px;height:16px;margin-top:6px;color:var(--ink-faint);display:none;transition:rotate .2s}
.opt.is-readable .chev{display:block}
.opt.is-open .chev{rotate:180deg}
@media (min-width:768px){.q-stem{font-size:1.25rem}.opt{font-size:1.125rem}.why b,.why i{font-size:1rem}}

/* under the answers: the five Daily Review stars and one quiet line */
.q-result{display:flex;align-items:center;gap:14px;flex-wrap:wrap;min-height:56px;margin-top:18px;font-size:.9375rem;color:var(--ink-soft)}
.q-result p{margin:0;flex:1;min-width:14rem}
.q-result strong{color:var(--ink);font-weight:600}
.q-again{appearance:none;border:0;background:none;padding:0;color:var(--ice-bright);font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.stars{display:inline-flex;gap:2px}
.star{position:relative;width:26px;height:26px;flex:none}
.star svg{position:absolute;inset:0;width:100%;height:100%;shape-rendering:crispEdges}
.star .lit{opacity:0;transition:opacity 90ms steps(2)}
.star.is-on .lit{opacity:1}
.star.is-hop{animation:star-hop 420ms steps(6) both}
@keyframes star-hop{0%{transform:translateY(0) scale(1)}35%{transform:translateY(-9px) scale(1.25)}70%{transform:translateY(0) scale(1.1)}100%{transform:translateY(0) scale(1)}}
.star-lg{width:39px;height:39px}
.keys{font-size:.8125rem;color:var(--ink-faint)}
.keys kbd{display:inline-block;min-width:1.5em;padding:1px 5px;border-radius:4px;border:1px solid var(--edge);background:var(--card);font:600 .75rem/1.5 var(--sans);text-align:center;color:var(--ink-soft)}
@media (pointer:coarse){.keys{display:none}}

/* without JavaScript the question shows its answer, already explained */
.no-js .opt{cursor:default}
.no-js .opt[data-correct]{border-color:var(--right);box-shadow:0 0 12px 2px rgba(74,222,128,.3)}
.no-js .opt[data-correct] .badge{border-color:var(--right);background:var(--right);color:#0a1117}
.no-js .opt[data-correct] .why{grid-template-rows:1fr;opacity:1}
.no-js .opt[data-correct] .why>span{visibility:visible}
.no-js .opt[data-correct] .why b{color:var(--right)}
.no-js .keys,.no-js .q-result{display:none}

/* ── Study Guide language: lab-pattern pill, arrow line, accented table ── */
.pill{display:inline-block;padding:1px 9px;border-radius:6px;border:1.5px solid #a9c0cd;background:#f4f8fa;color:#10202b;font-size:.875em;white-space:nowrap}
.pill b,.arrow-line b{font-weight:800}
.arrow-line{margin:0;padding:10px 14px;border-left:3px solid var(--ice);background:rgb(124 199 232 / .07);border-radius:0 6px 6px 0;color:var(--ink)}
.tag{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;font-size:.75rem;font-weight:700;letter-spacing:.01em}
.tag-concept{background:#33475a;color:#e9f1f5}.tag-bottom{background:#2f6fb0;color:#fff}.tag-how{background:#2f7d4f;color:#fff}
.tag-facts{background:#b9892b;color:#1b1503}.tag-apart{background:#6f55b8;color:#fff}.tag-traps{background:#9b2c2c;color:#fff}
.tag-hy{background:#e0458f;color:#fff}
.tbl{width:100%;border-collapse:collapse;font-size:.9375rem;line-height:1.45}
.tbl th,.tbl td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--edge)}
.tbl thead th{font-size:.8125rem;font-weight:700;color:var(--ink-bright)}
.tbl tbody th{font-weight:700;color:var(--ink-bright);white-space:nowrap}
.tbl .acc-blue{background:rgb(124 199 232 / .10)}.tbl thead .acc-blue{background:rgb(124 199 232 / .2)}
.tbl .acc-peach{background:rgb(243 154 82 / .10)}.tbl thead .acc-peach{background:rgb(243 154 82 / .2)}
.tbl .acc-green{background:rgb(74 222 128 / .09)}.tbl thead .acc-green{background:rgb(74 222 128 / .18)}

/* ── Daily Review's twilight card with its slowly turning rim ── */
@property --dr-angle{syntax:"<angle>";initial-value:0deg;inherits:false}
.dr-card{position:relative;border:1.5px solid transparent;border-radius:12px;color:var(--dr-ink);
  background:var(--dr-fill) padding-box,conic-gradient(from var(--dr-angle),#8f7cf0,#4fc3d8,#f0b45f,#e879a8,#8f7cf0) border-box;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 26px -8px rgb(143 124 240 / .65)}
.dr-card .soft{color:var(--dr-soft)}

/* ── shared page chrome (direction C, "Lights out") ── */
@view-transition{navigation:auto}
:root{
  --m:clamp(1rem,2.2vw,2rem);            /* outer margin */
  --g:clamp(.75rem,1.4vw,1.5rem);        /* grid gap */
  --display:min(7.4vw,clamp(1.72rem,.9rem + 2.4vw,2.9rem));
  --h2:clamp(1.6rem,1.1rem + 1.7vw,2.4rem);
  --lead:1.25rem;
  --small:.875rem;
  --bevel:inset 0 1px 0 var(--bv-hi),inset 0 -2px 0 var(--bv-lo),inset 1px 0 0 var(--bv-hi-side),inset -1px 0 0 var(--bv-lo-side),0 1px 1px var(--bv-drop-1),0 3px 5px -2px var(--bv-drop-2);
}
body{overflow-x:clip}
::selection{background:var(--ice);color:var(--ice-ink)}
h1,h2,h3,p,ul,ol{margin:0}
.wrap{padding-inline:var(--m);max-width:1760px;margin-inline:auto}
.display{font-family:var(--serif);font-weight:400;font-size:var(--display);line-height:1.1;letter-spacing:-.018em;color:var(--ink-bright);text-wrap:balance}
.h2{font-family:var(--serif);font-weight:400;font-size:var(--h2);line-height:1.12;letter-spacing:-.015em;color:var(--ink-bright);text-wrap:balance}
.skip{position:absolute;left:var(--m);top:-60px;z-index:10;padding:10px 14px;border-radius:8px;background:var(--ice-bright);color:var(--ice-ink);font-weight:600;text-decoration:none}
.skip:focus{top:10px}
/* header: wordmark, two links, Instagram */
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:14px;view-transition-name:site-top}
.top nav{display:flex;align-items:center;gap:clamp(10px,2vw,28px)}
.top nav a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);text-decoration:none;font-size:1rem}
.top nav a[aria-current="page"]{color:var(--ink-bright)}
.top nav .ig{justify-content:center;min-width:44px}
.top nav .ig svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (hover:hover){.top nav a:hover{color:var(--ink-bright);text-decoration:underline;text-underline-offset:.2em}}
.brand{view-transition-name:site-brand}
/* footer: two quiet lines */
.foot{margin-top:clamp(88px,11vw,168px);padding-block:28px 40px;background:var(--pane);color:var(--ink-soft);font-size:var(--small);line-height:1.6;view-transition-name:site-foot}
.foot p+p{margin-top:8px}
.foot a{color:var(--ink)}
/* card surface used across pages */
.card{border:1px solid var(--edge);border-radius:12px;background:var(--card);box-shadow:var(--bevel)}

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