/* Notchloop public design system: one paper notebook from the home page through every article and into the app.
   Cream paper on a desk, graphite ink, blue ballpoint for your marks, red pen for the teacher's.
   Scoped to the public classes so nothing leaks into the React notebook (#app, .nb). */

@font-face{font-family:'Newsreader Variable';font-style:normal;font-weight:200 800;font-display:swap;src:url(/fonts/newsreader-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:'Newsreader Variable';font-style:italic;font-weight:200 800;font-display:swap;src:url(/fonts/newsreader-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:'Caveat Variable';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/caveat-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}
/* The unicode-range is the latin subset these files contain (same as the app's @fontsource files), so no file is fetched just to look for a glyph it lacks.
   Metric-matched stand-ins while the web fonts load, so text barely moves when they swap in (measured against the real fonts). */
@font-face{font-family:'Newsreader Fallback';font-style:normal;font-weight:200 500;src:local('Georgia');size-adjust:95.67%;ascent-override:77.35%;descent-override:27.18%;line-gap-override:0%}
@font-face{font-family:'Newsreader Fallback';font-style:normal;font-weight:501 800;src:local('Georgia Bold'),local('Georgia-Bold');size-adjust:91%;ascent-override:81.3%;descent-override:28.6%;line-gap-override:0%}
@font-face{font-family:'Newsreader Fallback';font-style:italic;font-weight:200 800;src:local('Georgia Italic'),local('Georgia-Italic');size-adjust:87.99%;ascent-override:84.1%;descent-override:29.55%;line-gap-override:0%}
@font-face{font-family:'Caveat Fallback';font-style:normal;font-weight:400 700;src:local('Bradley Hand'),local('BradleyHandITCTT-Bold');size-adjust:77.14%;ascent-override:124.44%;descent-override:38.89%;line-gap-override:0%}

:root{
 color-scheme:light;
 --desk:#efe8d8;--card:#fffcf3;--wash:#f3ecdc;--ink:#26231e;--pencil:#5f584c;--rule:#d9e1ec;--rule-strong:#b9ad96;--margin:#e7a49a;
 --blue:#1f4596;--blue-wash:#e4eaf7;--red:#b02a1f;--red-wash:#fbe7e2;--green:#2d6a3e;--edge:#e3d9c4;--right-wash:#e9f3e6;
 --serif:'Newsreader Variable','Newsreader Fallback',Georgia,'Noto Serif','Droid Serif','Times New Roman',serif;
 --hand:'Caveat Variable','Caveat Fallback','Bradley Hand','Segoe Print','Comic Sans MS',cursive;
 --shadow:0 1px 0 var(--edge),0 6px 16px -10px rgba(60,40,10,.35);
 --margin-x:48px;
 --tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 32'%3E%3Cpath d='M4 17c3 2 6 6 8 11 4-10 11-19 21-25' fill='none' stroke='%23b02a1f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 --ring:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 40'%3E%3Cpath d='M27 4C15 2 4 9 4 21s11 16 21 15 15-9 14-18C38 10 31 5 21 6' fill='none' stroke='%231f4596' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
*,*::before,*::after{box-sizing:border-box}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
html{scroll-padding-top:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--desk);color:var(--ink);font-family:var(--serif);font-size:17px;line-height:1.6}
[hidden]{display:none!important}

/* page frame */
.shell{max-width:1120px;margin-inline:auto;padding-inline:32px}
.skip{position:absolute;left:16px;top:-100px;z-index:10;background:var(--ink);color:var(--card);padding:10px 16px;border-radius:4px;font:600 16px var(--serif);text-decoration:none}
.skip:focus{top:12px}
:is(.skip,.site-head,.site-foot,.doc,.home,:where(#login)) :is(a,button,summary,[tabindex]):focus-visible,.skip:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:2px}

/* header */
.site-head{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;padding:18px 0;border-bottom:1px solid var(--rule-strong)}
.brand{display:inline-flex;align-items:center;gap:10px;font:600 24px/1 var(--serif);letter-spacing:-.02em;color:var(--ink);text-decoration:none;min-height:44px}
.brand-mark{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:var(--red);color:#fff;font:700 27px/1 var(--hand);padding-bottom:3px}
.site-nav{display:flex;align-items:center;flex-wrap:wrap;gap:4px 20px}
.site-nav a:not(.button,.gsi-button){color:var(--ink);font-size:16px;text-decoration:none;padding-block:10px;background:linear-gradient(var(--red),var(--red)) 0 85%/0 2px no-repeat}
.site-nav a:not(.button,.gsi-button):hover{background-size:100% 2px}
.site-nav a[aria-current=page]{background-size:100% 2px}
.site-head .button{margin-left:4px;white-space:nowrap}
/* phone menu: a <details> drop-down, no script needed; hidden on wide screens */
.site-head{position:relative}
.site-menu{display:none}
.site-menu>summary{list-style:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:1px solid var(--ink);border-radius:4px;font:600 15px/1 var(--serif);color:var(--ink);cursor:pointer;user-select:none}
.site-menu>summary::-webkit-details-marker{display:none}
.site-menu>summary::before{content:'';width:16px;height:12px;background:linear-gradient(currentColor,currentColor) 0 0/100% 2px no-repeat,linear-gradient(currentColor,currentColor) 0 5px/100% 2px no-repeat,linear-gradient(currentColor,currentColor) 0 10px/100% 2px no-repeat}
.site-menu[open]>summary{background:var(--wash)}
.site-menu[open]>summary::before{background:linear-gradient(45deg,transparent 45%,currentColor 45% 58%,transparent 58%),linear-gradient(-45deg,transparent 45%,currentColor 45% 58%,transparent 58%);width:14px;height:14px}
.menu-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:20;width:min(320px,100%);max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px);overflow-y:auto;overscroll-behavior:contain;background:var(--card);border:1px solid var(--edge);border-radius:3px;box-shadow:0 14px 30px -14px rgba(60,40,10,.5);padding:6px 18px}
.menu-panel a:not(.button){display:flex;align-items:center;min-height:48px;border-bottom:1px solid var(--rule);color:var(--ink);font-size:18px;text-decoration:none}
.menu-panel a:last-child{border-bottom:0}
.vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* links and text inside public content */
:is(.doc,.home,#login,.site-foot) a:not(.button,.gsi-button,.brand){color:var(--blue);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
:is(.doc,.home,#login) a:not(.button,.gsi-button,.brand):hover{text-decoration-thickness:2px}
:is(.doc,.home) :is(h1,h2,h3){font-family:var(--serif);font-weight:500;letter-spacing:-.015em;color:var(--ink);text-wrap:balance}
:is(.doc,.home) h1{font-size:clamp(36px,5.2vw,54px);line-height:1.08;margin:0 0 18px}
:is(.doc,.home) h2{font-size:clamp(26px,3.2vw,32px);line-height:1.2;margin:0 0 16px}
:is(.doc,.home) h3{font-size:21px;line-height:1.35;margin:26px 0 8px}
:is(.doc,.home) :is(p,li,dd,dt,td,th){overflow-wrap:break-word}
:is(.doc,.home) code{font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace;font-size:.84em;background:var(--wash);border:1px solid var(--edge);padding:1px 5px;border-radius:3px;white-space:nowrap}
.home code.wrap{white-space:normal;overflow-wrap:anywhere}
.doc code.command{display:block;margin:8px 0 4px;padding:10px 12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8em;line-height:1.5;user-select:all}
:is(.doc,.home) strong{font-weight:650}
:is(.doc,.home) ::selection{background:#fff0a8}

/* article column */
.doc{max-width:784px;margin-inline:auto;padding:28px 0 56px;font-size:18px;line-height:1.7}
.crumbs{font-size:15px;line-height:1.5;color:var(--pencil);margin:0 0 30px}
.crumbs a{color:var(--pencil)!important}
.crumbs [aria-current]{color:var(--ink)}
.kicker{font:600 29px/1.15 var(--hand);color:var(--red);margin:0 0 6px;transform:rotate(-1.5deg);transform-origin:left;display:inline-block}
.doc>h1{max-width:20ch}
.lead{font-size:21px;line-height:1.55;color:var(--ink);max-width:62ch;margin:0 0 34px}

/* paper: a ruled index card with the red margin line */
.paper{position:relative;background:var(--card);border:1px solid var(--edge);border-radius:3px;box-shadow:var(--shadow);margin:0 0 26px;padding:34px 44px 30px calc(var(--margin-x) + 26px);
 background-image:linear-gradient(90deg,transparent calc(var(--margin-x) - 1px),var(--margin) calc(var(--margin-x) - 1px),var(--margin) var(--margin-x),transparent var(--margin-x))}
.paper>:first-child{margin-top:0}
.paper>:last-child{margin-bottom:0}
.paper :is(p,ul,ol,dl,blockquote){max-width:68ch}
.paper p{margin:0 0 16px}
.paper :is(ul,ol):not(.steps,.quiz-demo-options,.chat,.idea-list,.commands){padding-left:1.25em;margin:0 0 18px}
.paper :is(ul,ol):not(.steps,.quiz-demo-options,.chat,.idea-list,.commands) li{margin-bottom:8px;padding-left:4px}
.paper ul:not(.chat,.idea-list) li::marker{color:var(--red)}
.paper ol:not(.steps,.quiz-demo-options) li::marker{color:var(--red);font-weight:600}
.paper blockquote{margin:0 0 18px;padding-left:18px;border-left:3px solid var(--blue-wash);font-style:italic}

/* handwriting */
.hand{font:500 27px/1.3 var(--hand);color:var(--blue);margin:6px 0 14px}
.red-pen{font:500 25px/1.3 var(--hand);color:var(--red);margin:10px 0 0}
.doc .red-pen,.home .red-pen{max-width:56ch}

/* numbered steps, each number circled in ballpoint */
.steps{list-style:none;counter-reset:step;padding:0;margin:8px 0 22px}
.steps>li{counter-increment:step;position:relative;padding:4px 0 0 64px;margin:0 0 22px;min-height:44px}
.steps>li:last-child{margin-bottom:0}
.steps>li::before{content:counter(step);position:absolute;left:0;top:-2px;width:46px;height:42px;display:grid;place-items:center;padding-top:2px;font:600 28px/1 var(--hand);color:var(--blue);background:var(--ring) center/100% 100% no-repeat}
.steps>li>:is(h3,strong:first-child){display:block;font-size:20px;font-weight:600;margin:0 0 4px;line-height:1.4}
.steps>li>p{margin:4px 0 0}

/* definition list of facts */
.facts{display:grid;grid-template-columns:minmax(9em,auto) 1fr;gap:0;margin:6px 0 22px}
.facts dt{padding-right:24px!important}
.facts dt,.facts dd{padding:10px 0;border-bottom:1px solid var(--rule)}
.facts dt{font-weight:650}
.facts dd{margin:0}
.facts dt:first-of-type,.facts dt:first-of-type+dd{border-top:1px solid var(--rule)}

/* a static example quiz, drawn like the app's quiz sheet */
.quiz-demo{background:var(--card);border:1px solid var(--edge);border-radius:3px;box-shadow:var(--shadow);padding:6px 22px 20px;margin:8px 0 24px;max-width:640px}
.paper .quiz-demo{background:#fffefa}
.quiz-demo-note{margin:0 -22px 16px!important;padding:0 22px;font:500 24px/32px var(--hand);color:var(--blue);background:repeating-linear-gradient(transparent 0 31px,var(--rule) 31px 32px);border-bottom:1px dashed var(--edge);padding-bottom:8px}
.quiz-demo-note::before{content:'From your note';display:block;font:600 13px/32px var(--serif);letter-spacing:.07em;text-transform:uppercase;color:var(--pencil)}
.quiz-demo-q{font-size:20px;font-weight:500;line-height:1.45;margin:0 0 12px!important}
.quiz-demo-options{list-style:none;counter-reset:opt;padding:0;margin:0 0 6px;display:grid;gap:6px}
.quiz-demo-options li{counter-increment:opt;position:relative;min-height:48px;padding:10px 50px 10px 58px;margin:0;border:1px solid transparent;border-radius:4px;font-size:17px;line-height:1.45;display:flex;align-items:center}
.quiz-demo-options li::before{content:counter(opt,upper-alpha);position:absolute;left:10px;top:50%;margin-top:-17px;width:34px;height:34px;display:grid;place-items:center;border:1.5px solid var(--pencil);border-radius:50%;font:600 15px/1 var(--serif);color:var(--pencil);background:var(--card)}
.quiz-demo-options li.is-right{background:var(--right-wash);border-color:#cfe2c9}
.quiz-demo-options li.is-right::after{content:'';content:'' / ' (correct answer)';position:absolute;right:10px;top:50%;margin-top:-17px;width:36px;height:32px;background:var(--tick) center/contain no-repeat}
.quiz-demo-options li.is-wrong{text-decoration:line-through;text-decoration-color:var(--red);text-decoration-thickness:2px}
.quiz-demo-options li.is-wrong::before{background:var(--blue);border-color:var(--blue);color:#fff}
.quiz-demo-options li.is-wrong::after{content:'';content:'' / ' (your answer)'}
.quiz-demo>.red-pen{margin-top:12px}
.quiz-demo>:last-child{margin-bottom:0}

/* asides and citations */
.margin-note{position:relative;font:500 25px/1.3 var(--hand);color:var(--blue);max-width:34ch!important;margin:4px 0 20px auto!important;padding:4px 0 4px 22px;transform:rotate(-1.2deg);border-left:2px solid var(--margin)}
.source{font-size:15px!important;line-height:1.55;color:var(--pencil);border-top:1px dashed var(--rule-strong);padding-top:10px;margin-top:6px!important}
.source a{overflow-wrap:anywhere}

/* frequently asked questions */
.faq details{border-bottom:1px dashed var(--rule-strong)}
.faq details:first-of-type{border-top:1px dashed var(--rule-strong)}
.faq summary{list-style:none;cursor:pointer;position:relative;padding:14px 8px 14px 36px;font-size:19px;font-weight:600;line-height:1.4;min-height:48px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::before{content:'+';position:absolute;left:4px;top:8px;font:600 32px/1 var(--hand);color:var(--red)}
.faq details[open]>summary::before{content:'\2212'}
@media (hover:hover){.faq summary:hover{color:var(--blue)}}
.faq details>:not(summary){margin:0 0 16px 36px;max-width:64ch}

/* closing call to action: a card taped to the page */
.cta{text-align:left;margin-top:40px}
.cta::before{content:'';position:absolute;top:-12px;left:50%;width:120px;height:26px;margin-left:-60px;background:rgba(232,220,180,.75);border:1px solid rgba(185,173,150,.45);transform:rotate(-2deg);box-shadow:0 1px 2px rgba(60,40,10,.12)}
.cta h2{margin-bottom:10px}
.cta p:last-child{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}

/* buttons: ink-filled primary, pencil-outlined quiet */
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 20px;border:1px solid var(--ink);border-radius:4px;background:var(--ink);color:var(--card);font:600 16px/1.3 var(--serif);text-decoration:none;cursor:pointer;text-align:center;transition:background 120ms,transform 80ms ease-out}
.button:hover{background:#000;color:var(--card)}
.button:active{transform:translateY(1px);background:#000}
.button.is-quiet:active{background:var(--edge)}
:is(.site-head,.site-foot,.home,.doc,#login) :is(a,button,summary){-webkit-tap-highlight-color:rgba(31,69,150,.14)}
:is(.site-head,.site-foot,.home,.doc,#login) .button,.site-menu>summary{-webkit-tap-highlight-color:transparent}
.site-menu>summary:active{background:var(--edge)}
.menu-panel a:not(.button):active,.foot-nav a:active,.faq summary:active{background:var(--wash)}
.button.is-quiet{background:transparent;color:var(--ink)}
.button.is-quiet:hover{background:var(--wash)}
.button:focus-visible{outline:3px solid var(--blue);outline-offset:2px}

/* tables */
.table-wrap{overflow-x:auto;margin:8px 0 22px;border-radius:2px}
.table-wrap table{width:100%;border-collapse:collapse;font-size:16px;line-height:1.5;background:var(--card)}
.table-wrap caption{text-align:left;font-size:15px;color:var(--pencil);padding-bottom:6px}
.table-wrap th{text-align:left;font-weight:650;color:var(--ink);border-bottom:2px solid var(--ink);padding:8px 12px 8px 0;vertical-align:bottom}
.table-wrap td{border-bottom:1px solid var(--rule);padding:9px 12px 9px 0;vertical-align:top}
.table-wrap tbody th{border-bottom:1px solid var(--rule);font-weight:500;vertical-align:top}

/* related pages */
.related{margin-top:44px;padding-top:20px;border-top:2px solid var(--ink)}
.related h2{font:600 30px/1.2 var(--hand)!important;color:var(--red)!important;letter-spacing:0!important;margin:0 0 8px!important}
.related ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:0 28px}
.related li{border-bottom:1px solid var(--rule-strong)}
.related a{display:block;padding:12px 26px 12px 0;position:relative;font-size:18px;line-height:1.4;text-decoration:none!important}
.related a::after{content:'\2192';position:absolute;right:4px;top:12px;color:var(--red)}
.related a:hover{text-decoration:underline!important}

/* footer */
.site-foot{display:grid;grid-template-columns:auto 1fr;gap:6px 32px;align-items:center;border-top:1px solid var(--rule-strong);padding:30px 0 48px;margin-top:24px;color:var(--pencil);font-size:15px}
.site-foot .brand{font-size:21px}
.site-foot>p{margin:0;font:500 23px/1.2 var(--hand);color:var(--blue);text-wrap:balance}
.foot-nav{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:2px 22px;margin-top:12px}
.foot-nav a{color:#4b453b!important;padding-block:8px;text-decoration:none!important}
.foot-nav a:hover{color:var(--ink)!important;text-decoration:underline!important}

/* ===== home page: one headline, one sentence, one button, one example ===== */
.home{padding:8px 0 24px;font-size:18px;line-height:1.65}
.hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:72px;align-items:center;padding:56px 0 24px}
.hero h1{font-size:clamp(40px,5.6vw,68px);line-height:1.04;letter-spacing:-.025em;margin:0 0 22px}
.hero h1 em{font-style:normal;padding-bottom:.08em;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 7.5c22-4 47-5.500 78-3.800 38 2 76 .5 116-2.200' fill='none' stroke='%23b02a1f' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat 0 100%/100% .16em}
.hero-line{font-size:23px;line-height:1.45;color:#3d382f;max-width:24em;margin:0 0 32px;text-wrap:pretty}
.hero-line:has(+ .hero-audience){margin-bottom:12px}
.hero-audience{font-size:17px;line-height:1.4;color:#5a5346;font-weight:600;margin:0 0 28px}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 6px}
.hero .actions .button{min-height:58px;padding:14px 30px;font-size:19px;box-shadow:0 2px 0 #000,0 14px 22px -14px rgba(30,20,5,.7)}
.hero .actions .button::after{content:'\2192';content:'\2192' / '';font-size:1.1em;line-height:1;transition:transform 160ms ease-out}
.hero .actions .button:hover::after{transform:translateX(3px)}
.hero .actions .button:active{box-shadow:0 1px 0 #000}
.actions{align-items:center;gap:8px 24px}
.actions .access{display:inline-flex;align-items:center;min-height:44px;font-size:17px}
.demo-label{font:650 13px/1.4 var(--serif);letter-spacing:.08em;text-transform:uppercase;color:var(--pencil);margin:0 0 8px}
.demo-note{font:500 28px/1.25 var(--hand);color:var(--blue);margin:0}
.more{margin:18px 0 0!important;font-weight:600}
.more-links{display:flex;flex-wrap:wrap;gap:0 22px;margin:18px 0 0!important;font-weight:600;max-width:none!important}
.more-links a{display:inline-flex;align-items:center;min-height:44px}
.home .steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 40px;margin:0;max-width:none}
.home .steps>li{margin:0}

.section{margin:0 0 30px}
.section-head{max-width:46em;margin:56px 0 22px}
.section-head .kicker{margin-bottom:4px}
.section-head h2{margin-bottom:10px}
.section-head p:not(.kicker){margin:0;font-size:19px}
.split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px 48px;align-items:start}
.split>:only-child{grid-column:1/-1}
.home .paper p{margin:0 0 14px}

/* Telegram chat example */
.chat{list-style:none;margin:0;padding:18px 16px;display:flex;flex-direction:column;gap:10px;background:var(--wash);border:1px solid var(--edge);border-radius:14px;max-width:420px;width:100%;font-size:16px;line-height:1.5}
.chat>li{max-width:88%;padding:9px 14px 10px;border-radius:14px;background:var(--card);border:1px solid var(--edge);box-shadow:0 1px 0 var(--edge)}
.chat>li.is-me{align-self:flex-end;background:var(--blue-wash);border-color:#c7d3ee}
.chat-from{display:block;font-size:13px;font-weight:650;color:var(--pencil);letter-spacing:.02em;margin-bottom:2px}
.chat p{margin:0 0 4px}
.chat p:last-child{margin:0}
.chat-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px}
.chat-keys span{display:grid;place-items:center;min-height:38px;border-radius:8px;background:var(--wash);border:1px solid var(--edge);font-weight:650;color:var(--ink)}
.chat-keys span.is-tapped{background:var(--blue);border-color:var(--blue);color:#fff}
.chat .red-pen{font-size:22px;margin:2px 0 0}
.commands{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:0;margin:4px 0 16px;list-style:none;max-width:30em!important}
.commands code{display:block;text-align:center;padding:5px 4px!important;font-size:15px!important;color:var(--ink)}
.commands li{margin:0!important;padding:0!important}

/* ===== signed in: keep the header and footer, hide the public story ===== */
.signed-in .home,.signed-in .site-nav,.signed-in .site-menu,.signed-in .skip{display:none!important}
.signed-in .site-head{padding-block:14px;position:relative!important}
.signed-in .site-head::before{content:none}
.signed-in .site-head{border-bottom:1px solid var(--rule-strong)!important}
.signed-in #app{min-height:60vh}

/* ===== small screens ===== */
@media (max-width:900px){
 .hero{grid-template-columns:1fr;gap:40px;padding:48px 0 48px}
 .hero-try{max-width:600px}
 .home .steps{grid-template-columns:1fr;gap:18px}
 .split{grid-template-columns:minmax(0,1fr)}
 .split .margin-note{order:-1;margin:0 0 4px!important}
}
@media (max-width:620px){
 :root{--margin-x:22px}
 html{scroll-padding-top:76px}
 .shell{padding-inline:16px}
 body{font-size:16px}
 /* sticky one-row bar: opaque paper, full-bleed background and hairline */
 .site-head{position:sticky;top:0;z-index:30;flex-wrap:nowrap;gap:8px;padding:8px 0;min-height:61px;border-bottom:0}
 .site-head::before{content:'';position:absolute;z-index:-1;inset:0 -16px;background:rgba(239,232,216,.86);-webkit-backdrop-filter:blur(12px) saturate(1.2);backdrop-filter:blur(12px) saturate(1.2);border-bottom:1px solid var(--rule-strong)}
 .brand{font-size:21px;gap:8px;margin-right:auto}
 .brand-mark{flex-basis:32px;width:32px;height:32px;font-size:23px}
 .site-nav a:not(.button,.gsi-button){display:none}
 /* the sign-in stays in the sticky bar; "with Google" is kept for screen readers only */
 .site-head .gsi-button{margin:0;padding:0 10px;gap:8px}
 .gsi-more{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 .site-head .site-nav .button{margin:0;padding:8px 14px;font-size:15px;min-height:44px}
 .site-menu{display:block}
 .site-menu>summary{width:44px;height:44px;padding:0;justify-content:center;font-size:0;gap:0}
 .skip:focus{top:70px}
 .doc{font-size:17px;padding-top:18px}
 .crumbs{margin-bottom:20px}
 .lead{font-size:19px}
 .paper{padding:20px 16px 20px calc(var(--margin-x) + 13px);margin-bottom:16px}
 .kicker{font-size:23px}
 .hand{font-size:24px}
 .red-pen{font-size:22px}
 .margin-note{font-size:22px;margin:4px 0 0 8px!important}
 .steps>li{padding-left:52px;margin-bottom:16px}
 .home .steps{gap:12px}
 .steps>li>:is(h3,strong:first-child){font-size:18px;margin-bottom:0}
 .steps>li>p{margin-top:0;font-size:16px;line-height:1.45}
 .more-links{gap:0 16px;margin-top:6px!important;font-size:15px}
 .facts{grid-template-columns:1fr}
 .facts dt{border-bottom:0!important;padding-bottom:0}
 .facts dd{padding-top:2px}
 .facts dt:first-of-type+dd{border-top:0}
 .quiz-demo{padding:0 14px 12px}
 .quiz-demo-note{margin:0 -14px 10px!important;padding:0 14px 4px;font-size:21px;line-height:28px;background-image:repeating-linear-gradient(transparent 0 27px,var(--rule) 27px 28px)}
 .quiz-demo-note::before{line-height:28px;font-size:12px}
 .quiz-demo-q{font-size:18px;line-height:1.4;margin-bottom:8px!important}
 .quiz-demo-options{gap:2px;margin-bottom:0}
 .quiz-demo-options li{min-height:40px;padding:4px 42px 4px 50px;font-size:16px}
 .quiz-demo-options li::before{left:6px;width:30px;height:30px;margin-top:-15px}
 .quiz-demo-options li.is-right::after{right:4px;width:30px}
 .quiz-demo>.red-pen{margin-top:6px;line-height:1.2}
 .faq summary{font-size:17px;padding:12px 6px 12px 28px;min-height:44px}
 .faq summary::before{top:6px}
 .faq details>:not(summary){margin-left:0;font-size:16px}
 .related h2{font-size:28px!important}
 .home{font-size:16px;line-height:1.6;padding-top:0}
 .hero{gap:28px;padding:28px 0 32px}
 .hero h1{font-size:clamp(34px,10.6vw,46px);margin-bottom:14px}
 .hero-line{font-size:19px;line-height:1.4;margin-bottom:22px}
 .hero .actions .button{flex:1 1 auto;min-height:56px;font-size:18px}
 .actions .access{font-size:16px}
 .demo-label{font-size:12px;margin-bottom:6px}
 .demo-note{font-size:24px}
 .section{margin-bottom:8px}
 .section-head{margin:28px 0 10px}
 .section-head .kicker{margin-bottom:0}
 .section-head h2{font-size:23px;line-height:1.2;margin-bottom:4px}
 .section-head p:not(.kicker){font-size:16px}
 .home .paper p{margin-bottom:10px}
 .split{gap:14px}
 .split .margin-note{transform:rotate(-1deg)}
 .chat{padding:8px;gap:6px;font-size:15px;line-height:1.4;max-width:none;border-radius:12px}
 .chat>li{max-width:100%;padding:6px 10px 8px;border-radius:10px}
 .chat-from{font-size:12px;margin-bottom:0}
 .chat-keys{margin-top:6px;gap:4px}
 .chat-keys span{min-height:30px;border-radius:6px}
 .chat .red-pen{font-size:20px;line-height:1.2}
 .commands{margin:2px 0 0;gap:4px;grid-template-columns:repeat(auto-fill,minmax(4.45em,1fr))}
 .commands code{font-size:12.5px!important;padding:5px 0!important;letter-spacing:-.02em}
 .home .paper p.more{margin-top:12px!important}
 .cta{margin-top:28px}
 .cta h2{font-size:24px}
 .cta p:last-child{gap:8px;margin-top:14px}
 .cta .button{flex:1 1 auto;min-height:48px}
 .site-foot{grid-template-columns:1fr;padding:20px 0 32px;margin-top:16px;gap:2px}
 .site-foot>p{font-size:21px}
 .foot-nav{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;margin-top:8px}
 .foot-nav a{min-height:44px;display:flex;align-items:center;padding-block:4px;line-height:1.25;font-size:16px}
}
@media (max-width:620px) and (max-height:480px){
 .site-head{position:relative}
 html{scroll-padding-top:16px}
}
@media (max-width:279px){
 .site-head{position:relative;flex-wrap:wrap}
 .site-menu{margin-left:auto}
 html{scroll-padding-top:16px}
}
@media (max-width:299px){
 .brand-name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media (max-width:359px){
 .site-head .site-nav .button{padding-inline:12px}
 .kicker{font-size:21px}
 .hero{padding-top:20px;gap:22px}
 .hero-line{font-size:17px;margin-bottom:18px}
 .demo-note{font-size:22px}
 .quiz-demo-note{font-size:20px}
 .quiz-demo-q{font-size:17px}
}
@media (max-width:400px){
 .steps>li{padding-left:44px}
 .steps>li::before{width:38px;height:36px;font-size:24px}
 .quiz-demo-options li{padding-left:48px}
}
@media (prefers-reduced-motion:reduce){
 *,*::before,*::after{transition:none!important;animation:none!important}
 .kicker,.margin-note,.cta::before{transform:none}
}
@media print{
 body{background:#fff}
 .site-head .site-nav,.skip,.cta,.related{display:none}
 .paper,.quiz-demo{box-shadow:none;break-inside:avoid}
}

/* Study guide index */
.guide-list{list-style:none;margin:0;padding:0}
.guide-list li{padding:14px 0;border-bottom:1px dashed var(--rule-strong,#b9ad96)}
.guide-list li:last-child{border-bottom:0}
.guide-list h2{font-size:1.25rem;margin:0 0 4px}
.guide-list p{margin:0}

/* Study guide "Try it": right under the answer, one question in the style Notchloop asks, then the sign-in ask.
   guide-try.js turns the options into buttons; without it, "Show the answer" reveals the answer. */
.guide-doc>.crumbs{margin-bottom:18px}
.guide-doc>h1{max-width:23ch;font-size:clamp(34px,4.4vw,46px);margin-bottom:14px}
.guide-doc>.lead{font-size:20px;margin-bottom:22px}
.guide-try{margin:0 0 34px;padding:14px 24px 14px;background:var(--card);border:1px solid var(--edge);border-radius:3px;box-shadow:var(--shadow);font-size:16px;line-height:1.5}
:is(.doc,.home) .try-h{font:600 26px/1.2 var(--hand);color:var(--red);letter-spacing:0;margin:0 0 4px}
.try-note{margin:0 0 8px}
.try-note .try-note-label{font-weight:600;margin-right:6px}
.try-note .demo-label{display:inline;margin:0 6px 0 0;font-size:12px}
.try-note .demo-note{display:inline;font-size:22px;line-height:1.25}
.guide-try .quiz-demo-q{font-size:19px;font-weight:550;line-height:1.35;margin:0 0 8px!important}
.guide-try .quiz-demo-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;margin:0 0 8px}
.guide-try .quiz-demo-options li{min-height:44px;padding:6px 38px 6px 50px;font-size:16px;line-height:1.3}
.guide-try .quiz-demo-options li::before{left:8px;width:30px;height:30px;margin-top:-15px;font-size:14px;pointer-events:none;z-index:1}
.guide-try .quiz-demo-options li.is-right::after{right:8px;width:30px;height:28px;margin-top:-14px}
.guide-try.is-live .quiz-demo-options li{padding:0}
.try-option{display:flex;align-items:center;width:100%;min-height:44px;margin:0;padding:6px 38px 6px 50px;border:1px solid var(--rule-strong);border-radius:4px;background:#fffefa;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.try-option:hover{border-color:var(--blue);background:var(--blue-wash)}
.try-option:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.try-options.is-answered .try-option{cursor:default;background:transparent;border-color:transparent}
.try-options.is-answered li.is-right .try-option{border-color:#cfe2c9}
.try-options li.is-wrong .try-option{text-decoration:line-through;text-decoration-color:var(--red);text-decoration-thickness:2px}
.try-answer{margin:0 0 6px}
.try-answer summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer;color:var(--blue);font-weight:600}
.try-answer p{margin:0 0 8px}
.try-result{margin:0 0 8px;font-weight:550}
.try-result:empty{margin:0}
.try-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px;border-top:1px dashed var(--rule-strong);padding-top:10px}
.try-line{margin:0;flex:1 1 18em;color:#3d382f}
.try-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0}
.try-small{font-size:14px;color:var(--pencil)}
.guide-try.is-answered .try-line{font-weight:600;color:var(--ink)}
.guide-try .gsi-button:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:20px}
@media (max-width:620px){
 .guide-doc>.lead{font-size:18px;margin-bottom:16px}
 .guide-try{padding:10px 14px 12px;margin-bottom:22px}
 :is(.doc,.home) .try-h{font-size:23px}
 .try-note .demo-note{font-size:20px}
 .guide-try .quiz-demo-q{font-size:17px}
 .guide-try .quiz-demo-options{grid-template-columns:minmax(0,1fr);gap:4px}
 .guide-try .quiz-demo-options li,.try-option{font-size:15px}
}
@media print{.guide-try{display:none}}
/* the home page hero uses the same card: a 2 by 2 answer grid, and the sign-in only appears once you have answered */
/* top-aligned so answering (the card grows) never moves the headline */
.hero{align-items:start}
.hero-try{margin:12px 0 0;padding:18px 26px 20px;border-radius:6px;box-shadow:0 1px 0 var(--edge),0 24px 40px -26px rgba(60,40,10,.45)}
.hero-try .quiz-demo-q{font-size:22px;line-height:1.35}
.try-from{margin:0 0 6px;line-height:1.3}
.try-from .demo-label{display:inline;margin:0 4px 0 0}
.try-title{font:500 23px/1.2 var(--hand);color:var(--blue)}
.hero-small{margin:10px 0 0;font-size:14px;line-height:1.5;color:var(--pencil)}
.hero-small a{color:var(--blue)}
.hero-try.is-live:not(.is-answered) .try-cta{display:none}
.hero-try .try-note .demo-note{display:block;margin-top:2px}
@media (max-width:620px){
 .hero-try{padding:12px 14px 14px;margin:0}
 .hero-try .quiz-demo-q{font-size:19px}
 .hero-small{font-size:13.5px}
}
/* small phones: no reordering (focus order must match what you see); tighter spacing, and the price and
   privacy line moves into the card, where it shows after answering, so the question peeks above the fold */
@media (max-width:360px){
 .hero{gap:18px}
 .hero h1{margin-bottom:10px}
 .hero-audience{margin-bottom:14px}
 .hero .actions{gap:0 16px}
 .hero-small{display:none}
}
@media (min-width:361px){
 .hero-try .quiz-demo-options{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hero-try .quiz-demo-options li,.hero-try .try-option{padding-right:34px}
}

/* Google Sign-In button (owner request 2026-12-02; Google branding guidelines, light theme) */
.gsi-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;box-sizing:border-box;height:40px;min-height:40px;padding:0 12px;border:1px solid #747775;border-radius:20px;background:#fff;color:#1f1f1f;font:500 14px/20px Roboto,"Google Sans",Arial,system-ui,sans-serif;letter-spacing:.25px;text-decoration:none;white-space:nowrap;cursor:pointer;vertical-align:middle;transition:background-color 218ms,box-shadow 218ms}
.gsi-button .gsi-logo{flex:none;width:20px;height:20px}
.gsi-button:hover{background:#f8f8f8;box-shadow:0 1px 2px rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15);color:#1f1f1f}
.gsi-button:active{background:#ececec}
.gsi-button:focus-visible{outline:2px solid #0b57d0;outline-offset:2px}
.site-head .gsi-button{margin-left:4px}
