/* =====================================================================================
   SITE THEME: the main site in Direction A ("Gold Arcade"), on branch site-redesign. NOT DEPLOYED.
   Loads AFTER each page's inline <style>, so it wins on equal selectors. Fonts, colours and the pixel-frame
   tokens come from learn/reader/theme.css (loaded before the inline styles), so the site and /learn share one look.
   Identity stays gold / black / cream. Pixel styling is for accents only (frames, badges, small labels); body text
   stays DM Sans. The lion is shown only at whole-number sizes with image-rendering: pixelated.
   The gold-edged lion is used only on black (the nav and the footer). No page puts the lion on a light background.
   ===================================================================================== */
@font-face{font-family:'Fraunces';src:url(fonts/fraunces-700-italic-latin.woff2) format('woff2');font-weight:700;font-style:italic;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--nav-h:76px;--muted:#6b655b}   /* the old muted grey (#9a9490) was 2.7:1 on cream; this is 5.6:1 */
@media(max-width:768px){:root{--nav-h:68px}}   /* phones: 68 so the 60 px lion (the same one as desktop) fits */

/* ---------- headings: Fraunces 700 (the pages ask for Cormorant weights 300-600; there is one face, 700) ---------- */
h1,h2,h3{font-weight:700}
.hero-name{font-weight:700;letter-spacing:-.025em;line-height:.9}
/* outlined "Danadel": Fraunces' contours overlap inside the letters, and a plain stroke draws those inner edges.
   Painting the stroke first and then a fill in the hero's background colour on top hides everything inside the
   letters, leaving one clean outline. Half the stroke sits under the fill, so it is doubled to keep the same weight. */
.hero-name .last{color:var(--bg);-webkit-text-fill-color:var(--bg);-webkit-text-stroke:clamp(3px,.032em,5px) var(--gold);paint-order:stroke fill}   /* about 2px visible on desktop, 1.5px on a phone */

/* ---------- nav: the same black bar as /learn, the lion at 1x of its grid ---------- */
nav.site-nav{background:var(--ink);-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom:0;box-shadow:0 3px 0 var(--gold2);padding-top:0;padding-bottom:0;height:var(--nav-h)}
.nav-logo{display:inline-flex;align-items:center;gap:.7rem;line-height:0}
.nav-logo .site-lion{display:block;width:60px;height:60px}   /* every width: 60 css px = whole device pixels per block at 1x, 2x, 3x */
.site-wm{display:block;height:13px;width:auto}
@media(max-width:768px){nav.site-nav{padding-left:22px;padding-right:22px}.nav-logo .site-wm{height:10px}}   /* 22, not 22.4: the lion starts on a whole pixel */
.nav-links a,.nav-disabled{color:var(--dim);font-weight:500}
.nav-links a:hover,.nav-links a.active,.nav-links a[aria-current]{color:var(--gold3)}
.nav-disabled{opacity:.6}
.nav-cta,.nav-cta-end{font-family:var(--f-pixel)!important;font-size:16px!important;font-weight:400!important;letter-spacing:0!important;text-transform:uppercase;
  background:var(--gold3)!important;color:var(--ink)!important;border:0!important;border-radius:0!important;padding:.45rem .8rem!important;box-shadow:none}
.nav-cta:hover,.nav-cta-end:hover{background:#ffe08f!important;color:var(--ink)!important}
.nav-hamburger span{background:var(--gold3);border-radius:0;height:3px}
.mobile-menu{top:var(--nav-h);background:var(--bg);border-bottom:0;box-shadow:0 3px 0 var(--ink),0 6px 0 var(--gold2)}
.mega-panel{background:var(--card);border:0;border-radius:0;box-shadow:var(--frame-drop);margin-top:3px}
.mega-card-cover{border-radius:0;box-shadow:var(--frame-soft);border:0}
.mega-card-cover img{border-radius:0}
.mega-viewall{font-family:var(--f-pixel);font-size:16px;letter-spacing:0}
.mega-list-soon .mega-list-tag,.mal-soon .mal-tag,.nav-soon,.soon-tag{font-family:var(--f-pixel);font-size:16px;letter-spacing:0}

/* ---------- small labels in the pixel font (16 px: Silkscreen is only sharp at multiples of 8) ---------- */
.section-label,.hero-eyebrow,.legal-eyebrow,.fact-label,.stat-label,.fg-label,.email-card-label,.lang-level,.feat-howto-label,.page-hero-meta,.cs-lang{
  font-family:var(--f-pixel);font-size:16px;font-weight:400;letter-spacing:0;line-height:1.25;text-transform:uppercase}
.section-label,.hero-eyebrow,.legal-eyebrow{color:var(--gold-text)}
.courses-teaser .section-label{color:var(--gold3)}
.feat-badge{font-family:var(--f-pixel);font-size:16px;font-weight:400;letter-spacing:0;text-transform:uppercase;border:0;border-radius:0;padding:.05rem .4rem;background:var(--gold3);color:var(--ink)}

/* ---------- buttons: square, framed, with the gold drop on the main action ---------- */
.btn,.hero-btn,.fc-buy,.fc-cta,.product-btn,.buy-bar-btn,.sticky-btn,.btn-send,.follow-btn,.cs-btn,.paywall-btn{border-radius:0!important}
.btn-primary,.hero-btn,.fc-buy,.fc-cta,.product-btn.buy,.buy-bar-btn,.sticky-btn,.btn-send,.paywall-btn{background:var(--ink);color:var(--gold3);border:0;
  box-shadow:var(--frame-sm-drop);margin:2px 6px 6px 2px;font-weight:600;transition:transform .08s,box-shadow .08s}
.btn-primary:hover,.hero-btn:hover,.fc-buy:hover,.fc-cta:hover,.product-btn.buy:hover,.buy-bar-btn:hover,.sticky-btn:hover,.btn-send:hover,.paywall-btn:hover{background:#26231c;color:var(--gold3);box-shadow:var(--frame-sm-drop)}
.btn-primary:active,.hero-btn:active,.fc-buy:active,.fc-cta:active,.buy-bar-btn:active{transform:translate(2px,2px);box-shadow:var(--frame-sm)}
.btn-outline,.btn-outline-gold,.follow-btn,.cs-btn,.product-btn.soon{background:transparent;border:0!important;box-shadow:var(--frame-soft);margin:2px}
.btn-outline-gold{color:var(--gold-text)}

/* ---------- framed cards ---------- */
/* (.feat-guide is a full-width black band, not a card: it keeps its own background) */
.fact-card,.fg-card,.fgd-card,.feat-soon,.cs-card,.feat-book{border-radius:0!important;border:0!important;box-shadow:var(--frame-soft)}
/* the flashcard demo: NOTHING on .fc-card-inner (the element that rotates with preserve-3d). A box-shadow or a background on it flattens
   the 3D context in WebKit, backface-visibility stops working and the back face paints mirrored on top at rest (seen on production on
   2026-11-16, when it carried --frame-soft). The faces carry the frame instead, so it flips with the card. */
.fc-card-inner{background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important}
.feat-guide{border-bottom:0;box-shadow:inset 0 -3px 0 var(--gold2)}
.feat-cover-inline,.feat-visual img,.fg-card-cover,.fg-card-cover img{border-radius:0!important}

/* ---------- the pixel frame as shared classes (2026-11-16, style pass A): one source for the hero cards, the product cards
   and the main buttons. The recipe is theme.css's: --frame-drop = a 3 px ink outline drawn by four flat shadows (notched
   corners) plus a two-step gold drop; --frame-soft = a 2 px outline in the edge colour, no drop. Nothing here changes text.
   .frame-card           a cream card with the outline and the gold drop (hero Arabic and Farsi, the ebook cards, the flashcard
                         demo card, the newsletter box)
   .frame-card--soft     the quiet version: soft outline, no drop, transparent (hero Spanish and Italian, the language rows)
   .frame-card--on-dark  on a black band the outline is gold and the drop the darker gold (the covers on guides.html and flashcards.html)
   .frame-btn            the main action: black, gold text, a small gold drop; 44 px tall on phones, 48 from 1024 px
   .frame-btn--gold      the main action on a black band: gold fill, ink text, a darker gold drop */
.frame-card{background:var(--card);border:0!important;border-radius:0!important;box-shadow:var(--frame-drop)}
.frame-card--soft{background:transparent;box-shadow:var(--frame-soft)}
.frame-card--on-dark{background:var(--card);box-shadow:0 -3px 0 var(--gold2),0 3px 0 var(--gold2),-3px 0 0 var(--gold2),3px 0 0 var(--gold2),6px 6px 0 var(--gold),3px 6px 0 var(--gold),6px 3px 0 var(--gold)}
.frame-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;background:var(--ink)!important;color:var(--gold3)!important;border:0!important;border-radius:0!important;box-shadow:3px 3px 0 var(--gold2)!important;margin:0 3px 3px 0;min-height:44px;font-weight:600;transition:background .15s,transform .08s,box-shadow .08s}
.frame-btn:hover{background:#26231c!important;color:var(--gold3)!important;box-shadow:3px 3px 0 var(--gold2)!important}
.frame-btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--gold2)!important}
.frame-btn.frame-btn--gold{background:var(--gold3)!important;color:var(--ink)!important;box-shadow:3px 3px 0 var(--gold)!important}
.frame-btn.frame-btn--gold:hover{background:#ffe08f!important;color:var(--ink)!important;box-shadow:3px 3px 0 var(--gold)!important}
.frame-btn.frame-btn--gold:active{box-shadow:1px 1px 0 var(--gold)!important}
@media(min-width:1024px){.frame-btn{min-height:48px}}
/* where the frame is applied (style pass A), the pieces inside lose their own borders so there is one frame per card */
.frame-card .fg-card-cover{border:0;box-shadow:none;background:transparent;padding:0}
.fg-card.frame-card{padding:1.2rem 1.2rem 1.6rem}   /* the cover used to carry its own border; the card's frame needs a little air around it */
.fc-face.frame-card{background:#14110d;border-radius:0!important}
/* belt and braces for engines whose compositor ignores backface-visibility (Playwright's headless WebKit paints the back face mirrored
   at rest; Chromium and Safari do not): the face that is turned away is also hidden, swapped at the midpoint of the 0.6 s flip */
.fc-card:not(.flipped) .fc-back,.fc-card.flipped .fc-front{visibility:hidden;transition:visibility 0s .3s}
.fc-card:not(.flipped) .fc-front,.fc-card.flipped .fc-back{visibility:visible;transition:visibility 0s .3s}
.frame-card.nl-inner{padding:clamp(1.4rem,4vw,2.4rem) clamp(1rem,3vw,2rem);margin:3px auto 6px}
.frame-card--on-dark img{border-radius:0!important}
/* the demo's buy row (.fc-cta) is a plain row: the button inside it (.fc-buy.frame-btn) carries the one frame */
.fc-cta{background:transparent!important;box-shadow:none!important;margin:0!important}
/* the flashcard demo's language tabs: soft frame, the chosen one black with the small gold drop (the script toggles .active) */
.fc-lang-btn{border:0!important;border-radius:0!important;box-shadow:var(--frame-soft);margin:2px 4px 4px 2px}
.fc-lang-btn.active{background:var(--ink);color:var(--gold3);box-shadow:var(--frame-soft),3px 3px 0 var(--gold2)}
.fc-lang-btn.is-soon.active{background:transparent;color:var(--gold-text);box-shadow:var(--frame-soft)}

/* ---------- desktop scale (2026-11-17): one container and one scale for the sections under the home hero, from 1024 px up.
   --wrap is the hero's card row. Every clamp() starts at about the section's old size at 1440 px and grows with the screen the
   way the hero's own clamps do (first number: 1440, then 1920, then 2560). The pixel labels step from 16 to 24 px on the widest
   screens because Silkscreen is only sharp at multiples of 8. Used by index.html's "DESKTOP SCALE" block; free for the other
   pages. Nothing here applies under 1024 px. ---------- */
@media(min-width:1024px){:root{
  --wrap:clamp(1220px,70vw,1800px);
  --t-h2:clamp(3.2rem,1.5rem + 1.7vw,5.2rem);       /* section headings: 51 / 57 / 68 px */
  --t-h3:clamp(1.45rem,.8rem + .72vw,2.1rem);      /* card titles: 23 / 27 / 31 */
  --t-body:clamp(.95rem,.55rem + .45vw,1.35rem);   /* body copy: 15 / 17 / 20 */
  --t-btn:clamp(.72rem,.45rem + .3vw,1rem);        /* button and link labels: 11.5 / 13 / 15 */
  --btn-h:clamp(48px,36px + .85vw,64px);           /* buttons: 48 / 52 / 58 */
  --t-pixel:16px;                                  /* Silkscreen labels; 24 from 2200 px */
  --sp-section:clamp(7rem,2.5rem + 5.5vw,12rem);   /* a section's top and bottom: 119 / 146 / 181 */
  --sp-side:clamp(2rem,3vw,4.5rem);                /* a section's sides: 43 / 58 / 72 */
  --sp-block:clamp(2.4rem,1rem + 1.4vw,4rem);      /* heading to content, content to buttons: 38 / 43 / 52 */
  --sp-gap:clamp(1.9rem,.4rem + 1.6vw,3.6rem);     /* between cards in a row: 29 / 37 / 47 */
  --sp-el:clamp(1rem,.4rem + .55vw,1.6rem);        /* small steps inside a card: 16 / 17 / 20 */
  --sp-col:clamp(6rem,2rem + 4.4vw,9.5rem);        /* between two columns: 95 / 116 / 145 */
  --fc-w:clamp(400px,160px + 16.7vw,560px);        /* the flashcard demo card, 4:3: 400 / 480 / 560 */
  --cover-w:clamp(220px,60px + 11.2vw,360px);      /* an ebook cover: 221 / 275 / 347 */
  --nl-w:clamp(500px,200px + 20.8vw,720px);        /* the newsletter box: 500 / 600 / 720 */
}}
@media(min-width:2200px){:root{--t-pixel:24px}}

/* ---------- the account button in the nav (2026-11-17, nav-account.js). Nothing is drawn where accounts are off. ----------
   Signed out: a quiet soft-framed "Sign in" in the pixel font, dimmer than Free Guide. Signed in: a 40 px cream tile with the
   person's initial, gold outline and gold drop (the frame recipe on black). The first time it appears it slides in (.is-new)
   instead of jumping; later pages draw it from the cache before the first paint. Under 1100 px (2026-11-19) the nav hands off to the
   hamburger, where the same thing is one row (.mobile-acct-row). */
.nav-acct{display:inline-flex;align-items:center;justify-content:center;margin-left:1.1rem;text-decoration:none;white-space:nowrap;line-height:1;text-transform:uppercase;
  transition:opacity .25s,width .25s,margin .25s,padding .25s,background .15s,color .15s}
/* signed out: the nav items' own face (DM Sans .8rem, 500, .14em), in the soft frame */
.nav-acct.nav-acct--out{font-family:var(--f-body);font-size:.8rem;font-weight:500;letter-spacing:.14em;color:var(--dim);padding:.45rem .8rem;min-height:36px;box-shadow:0 -2px 0 var(--edge),0 2px 0 var(--edge),-2px 0 0 var(--edge),2px 0 0 var(--edge)}
.nav-acct.nav-acct--out:hover{color:var(--gold3);box-shadow:0 -2px 0 var(--gold2),0 2px 0 var(--gold2),-2px 0 0 var(--gold2),2px 0 0 var(--gold2)}
.nav-acct.nav-acct--in{width:40px;height:40px;padding:0;margin-right:4px;background:var(--card);color:var(--ink);font-family:var(--f-pixel);font-size:16px;font-weight:400;letter-spacing:0;
  box-shadow:0 -2px 0 var(--gold2),0 2px 0 var(--gold2),-2px 0 0 var(--gold2),2px 0 0 var(--gold2),4px 4px 0 var(--gold),2px 4px 0 var(--gold),4px 2px 0 var(--gold)}
.nav-acct.nav-acct--in:hover{background:var(--gold3)}
.nav-acct.is-new{opacity:0;width:0;min-width:0;margin-left:0;margin-right:0;padding-left:0;padding-right:0;overflow:hidden}
@media(max-width:1100px){.nav-acct{display:none}}
.mobile-menu-links>li>a.mobile-acct-row{display:flex;align-items:center;justify-content:center;gap:.7rem;color:var(--ink2)}
.mobile-menu-links>li>a.mobile-acct-row:hover{color:var(--gold-text)}
.mobile-acct-row .nav-acct-tile{width:32px;height:32px;display:inline-grid;place-items:center;background:var(--card);color:var(--ink);font-family:var(--f-pixel);font-size:16px;line-height:1;text-transform:uppercase;
  box-shadow:0 -2px 0 var(--ink),0 2px 0 var(--ink),-2px 0 0 var(--ink),2px 0 0 var(--ink),3px 3px 0 var(--gold2)}

/* ---------- the profile photo (2026-11-17): one framed <picture>, 4:5 (800 x 1000 source), on the home page and about.html.
   The frame is .frame-card's (ink outline, gold drop); the margins leave room for the drop. ---------- */
.profile-photo{display:block;padding:0;margin:3px 6px 6px 3px;line-height:0}
.profile-photo picture,.profile-photo img{display:block;width:100%;height:auto}
.profile-photo img{aspect-ratio:4/5;object-fit:cover}

/* ---------- the one reveal (2026-11-17, assets/reveal.js): every .reveal enters the same way, opacity 0 to 1 and 24 px up, 0.7 s,
   cubic-bezier(.22,1,.36,1), once, at about 15 percent in view; the children of a [data-reveal-group] are 0.08 s apart (the script
   sets --reveal-delay). Nothing is hidden until the script has put js-reveal on <html>, so without JavaScript everything shows; with
   prefers-reduced-motion nothing moves and nothing is hidden. Transforms only: the layout never shifts. ---------- */
html.js-reveal .reveal{opacity:0;transform:translateY(24px);transition:opacity .7s cubic-bezier(.22,1,.36,1),transform .7s cubic-bezier(.22,1,.36,1);transition-delay:var(--reveal-delay,0s)}
html.js-reveal .reveal.visible{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){html.js-reveal .reveal{opacity:1;transform:none;transition:none}}

/* ---------- footer: black, the gold-edged lion ---------- */
.footer-logo{display:inline-flex;align-items:center;gap:.6rem;line-height:0}
.footer-logo .lion{width:60px;height:60px}

/* ---------- the newsletter pop-up and inline forms (subscribe.js) ---------- */
.sb-card{border-radius:0!important;border:0!important;box-shadow:var(--frame-drop),0 24px 60px rgba(0,0,0,.3)!important}
.sb-eyebrow{font-family:var(--f-pixel)!important;font-size:16px!important;letter-spacing:0!important;color:var(--gold-text)!important}
.sb-dark .sb-eyebrow{color:var(--gold3)!important}
.sb-f input,.sb-sel-btn{border-radius:0!important}
.sb-f button,.sb-dl{border-radius:0!important;background:var(--ink)!important;color:var(--gold3)!important;box-shadow:var(--frame-sm-drop)!important;border:0!important}
.sb-dark .sb-f button,.sb-dark .sb-dl{background:var(--gold3)!important;color:var(--ink)!important;box-shadow:none!important}
/* /join: the second action under "You're in." (the free guide) is the quiet one: outlined, not a second black block */
.sb-spot .sb-dl.sb-dl2{background:transparent!important;color:var(--ink)!important;box-shadow:inset 0 0 0 1px var(--gold)!important}
.sb-spot .sb-dl.sb-dl2:hover{background:var(--gold3)!important;color:var(--ink)!important}
.sb-sel-list{border-radius:0!important;box-shadow:var(--frame-drop)!important}

/* on the black bands (ebook features, the courses teaser) the main button is gold, or it would vanish into the background */
.feat-guide .btn-primary,.feat-guide .fc-buy,.feat-guide .fc-cta,.feat-guide .product-btn.buy,.courses-teaser .btn-primary{background:var(--gold3);color:var(--ink);box-shadow:4px 4px 0 var(--gold)}
.feat-guide .btn-primary:hover,.feat-guide .fc-buy:hover,.feat-guide .fc-cta:hover,.courses-teaser .btn-primary:hover{background:#ffe08f;color:var(--ink);box-shadow:4px 4px 0 var(--gold)}

/* feedback form: the consent tick was the one visible native checkbox. The input stays (keyboard, form value, screen
   readers) but is invisible; the label draws a pixel box that fills gold with a black tick when checked. */
.fb-consent{position:relative;border-radius:0}
.fb-consent input{position:absolute;opacity:0;width:44px;height:44px;margin:0;left:.5rem;top:.5rem;cursor:pointer}
.fb-consent label{position:relative;padding-left:2.3rem;min-height:24px}
.fb-consent label::before{content:"";position:absolute;left:0;top:.1rem;width:20px;height:20px;background:var(--card);box-shadow:inset 0 0 0 2px var(--ink)}
.fb-consent input:checked+label::before{background:var(--gold3);box-shadow:inset 0 0 0 2px var(--ink)}
.fb-consent input:checked+label::after{content:"";position:absolute;left:5px;top:calc(.1rem + 6px);width:10px;height:8px;background:var(--ink);
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 4' shape-rendering='crispEdges'><path d='M4 0h1v1H4zM3 1h1v1H3zM0 1h1v1H0zM1 2h1v1H1zM2 2h1v1H2zM1 3h1v1H1z'/></svg>") center/100% no-repeat;
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 4' shape-rendering='crispEdges'><path d='M4 0h1v1H4zM3 1h1v1H3zM0 1h1v1H0zM1 2h1v1H1zM2 2h1v1H2zM1 3h1v1H1z'/></svg>") center/100% no-repeat}
.fb-consent input:focus-visible+label::before{outline:3px solid var(--gold-text);outline-offset:3px}

/* ---------- line breaks ---------- */
/* the contact address never splits: one line, sized to its card (container units), from a 320 px phone up */
.email-card{container-type:inline-size}
.email-card-link{white-space:nowrap;overflow-wrap:normal;word-break:keep-all;font-size:clamp(1rem,5.6vw,2.2rem);font-size:clamp(.95rem,5.8cqi,2.2rem);max-width:100%}
@media(max-width:600px){.email-card{padding:2.4rem 1rem}}
/* headings balance their lines; paragraphs avoid a lone last word */
h1,h2,h3,.hero-tagline,.section-title{text-wrap:balance}
p,li,blockquote,figcaption{text-wrap:pretty}
/* buttons balance too, so a trailing arrow never sits alone on the second line */
.btn,.hero-btn,.fc-buy,.fc-cta,.btn-send,.product-btn,.buy-bar-btn,.sticky-btn,.follow-btn{text-wrap:balance;text-align:center}

/* ---------- home hero: everything up to "Start learning" fits the first screen, with room under it ----------
   The name is sized by width AND height (the smaller wins), spacing shrinks with the screen height, and the
   followers count is one slim line under the button instead of a block above the name. Fraunces 700 (the one face
   loaded; 800 would add a file for a heavier name that already reads strong). */
.hero{min-height:calc(100svh - 0px);padding:calc(var(--nav-h) + clamp(1rem,5vh,3.5rem)) 1.4rem clamp(2.5rem,7vh,4.5rem);justify-content:center}
.hero .hero-eyebrow{order:1;margin-bottom:clamp(.7rem,2.6vh,1.6rem)}
.hero .hero-name{order:2;font-weight:700;font-size:clamp(3.2rem,min(13.5vw,17.5vh),10.5rem);line-height:.88;margin-bottom:clamp(.7rem,3vh,1.8rem)}
.hero .hero-ornament{order:3;margin-bottom:clamp(.5rem,2vh,1.2rem)}
.hero .hero-line{order:4;margin-bottom:clamp(1.1rem,4vh,2.4rem);font-size:clamp(1rem,min(2.2vw,3vh),1.35rem);line-height:1.55}
.hero .hero-btn{order:5;min-height:60px;padding:0 2.4rem;gap:.9rem;font-family:var(--f-body);font-size:1.05rem;font-weight:700;letter-spacing:.12em;
  background:var(--ink);color:var(--gold3);box-shadow:var(--frame-sm),6px 6px 0 var(--gold2),3px 6px 0 var(--gold2),6px 3px 0 var(--gold2);margin:0 6px 6px 0}
.hero .hero-btn svg{width:20px;height:20px;stroke-width:2.2}
.hero .hero-btn:hover{background:#26231c;color:var(--gold3)}
.hero .hero-btn.gold{background:var(--gold3);color:var(--ink);box-shadow:var(--frame-sm),6px 6px 0 var(--ink),3px 6px 0 var(--ink),6px 3px 0 var(--ink)}
/* followers: one compact line above the name. Default = plain line (a big gold number, a small caption beside it);
   .fl.badge = the same inside a small pixel-framed badge (kept for comparison) */
.hero [data-followers]{order:0;margin-bottom:clamp(.6rem,2.4vh,1.4rem)}
.hero .fl{position:static;transform:none;display:block;text-align:center;padding:0;font-size:.7rem;line-height:1.45;white-space:nowrap}
/* above 600 px: the number and caption are inline, so they share a baseline and stay one centred line */
.hero .fl-num,.hero .fl-label{display:inline;white-space:inherit}   /* inherit: the p{text-wrap:pretty} rule would turn wrapping back on */
.hero .fl::before,.hero .fl::after{display:none}
.hero .fl-num{font-family:var(--f-head);font-weight:700;font-size:clamp(1.7rem,4.2vh,2.3rem);line-height:1;color:var(--gold-text)}
.hero .fl-label{font-size:.7rem;letter-spacing:.14em;line-height:1.45;color:var(--body-text,#4a4640);margin-left:.55rem}
/* 600 px and under: the phone layout as it was before the one-line change (number beside a caption wrapped to 15em) */
@media(max-width:600px){
  .hero .fl{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;gap:.6rem;font-size:inherit;line-height:inherit;white-space:normal}
  .hero .fl-num,.hero .fl-label{display:block;white-space:normal}
  .hero .fl-label{text-align:left;max-width:15em;margin-left:0}
}
.hero .fl.badge{display:inline-flex;width:auto;margin:0 auto;padding:.4rem .85rem;background:var(--card);box-shadow:var(--frame-soft)}
.hero .fl.badge .fl-num{font-size:clamp(1.4rem,3.4vh,1.8rem)}
@media(max-width:700px){.hero{padding-top:calc(var(--nav-h) + clamp(.8rem,4vh,2rem))}.hero .hero-name{font-size:min(18vw,13vh)}.hero .hero-btn{min-height:56px;padding:0 1.8rem;font-size:1rem}}
/* the two hairlines framed the old followers block; with the new layout they cut across the button */
.hero::before,.hero::after{display:none}
/* the bio page hero also has a row of language pills, once pinned to the bottom: put it in the flow under the button */
.hero .hero-langs{order:7;position:static;margin-top:clamp(1rem,3vh,1.8rem)}
/* ---------- nav: one "Lessons" item lists the languages; the live one carries a filled tag ---------- */
.nav-live-tag{font-family:var(--f-pixel);font-size:12px;font-weight:400;letter-spacing:0;text-transform:uppercase;line-height:1.4;
  padding:0 .3rem;margin-left:.35rem;background:var(--gold3);color:var(--ink);vertical-align:1px;white-space:nowrap}
/* ---------- language hubs: free lessons first ---------- */
.lang-start{background:var(--bg);padding:clamp(3rem,7vw,5rem) clamp(1.4rem,5vw,3rem);text-align:center;border-bottom:1px solid var(--border,rgba(125,111,74,.22))}
.lang-start-inner{max-width:640px;margin:0 auto}
.lang-start .section-label{color:var(--gold-text)}
.lang-start-title{font-family:var(--f-head);font-weight:700;font-size:clamp(2rem,4.5vw,3rem);line-height:1.1;color:var(--ink);margin:.4rem 0 1rem;text-wrap:balance}
.lang-start-text{color:var(--body-text,#3b372f);font-size:1.05rem;line-height:1.7;margin:0 auto 1.8rem;max-width:34rem}
.lang-start-btn{display:inline-flex;align-items:center;justify-content:center;gap:.7rem;min-height:60px;padding:0 2.2rem;background:var(--ink);color:var(--gold3);
  font-family:var(--f-body);font-weight:700;font-size:1.05rem;letter-spacing:.06em;text-decoration:none;box-shadow:var(--frame-sm-drop);margin:2px 6px 6px 2px}
.lang-start-btn:hover{background:#26231c}
.lang-start-btn.is-soon{background:var(--bg2,#efe8d6);color:var(--muted);box-shadow:var(--frame-soft);cursor:default}
.lang-start-alt{display:block;width:max-content;max-width:100%;margin:1.1rem auto 0;padding:.6rem 0;color:var(--gold-text);font-weight:500;text-decoration:underline;text-underline-offset:3px}
/* language hubs open on this band (no dark title band since 2026-11-06): clear the fixed nav, then breathe */
.lang-start-top{padding-top:calc(var(--nav-h) + clamp(2.6rem,7vh,4.5rem))}
.lang-start-native{font-family:var(--f-head);font-size:1.35rem;line-height:1.4;color:var(--gold-text);margin:0 0 .5rem}
.lang-start-native[dir="rtl"]{font-family:var(--f-rtl,serif);font-size:1.5rem}
.lang-start-sub{display:block;margin-top:.5rem;font-size:.6em;line-height:1.3;font-weight:600;color:var(--ink2,#2a2720)}
/* the quote that used to sit in the dark band, now inside the story */
.lang-pullquote{margin:2rem 0;padding:.4rem 0 .4rem 1.4rem;border-left:4px solid var(--gold)}
.lang-pullquote p{font-family:var(--f-head);font-style:italic;font-size:clamp(1.25rem,2.4vw,1.6rem);line-height:1.5;color:var(--ink);margin:0}
.lang-pullquote cite{display:block;margin-top:.6rem;font-style:normal;font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-text)}
/* in-page links (Or go straight to the ebook) land below the fixed nav */
#ebook{scroll-margin-top:calc(var(--nav-h) + 1rem)}
/* the language pages' fact cards pushed the page 4 to 6 px sideways at 360 px (live since before 2026-11-06): let them shrink */
.fact-grid>.fact-card{min-width:0}
@media(max-width:400px){.fact-card{padding:1rem .5rem!important}.fact-num{font-size:2rem!important}}
@media(max-width:420px){.lang-start-btn{padding:0 1.1rem;gap:.5rem;font-size:.98rem;letter-spacing:.02em}}
/* ---------- home hero only: option B, a cream-to-gold ordered dither in 4 px blocks, the base of the hero (2026-11-06) ----------
   The hero's height comes from its content: room under the nav that grows with the screen, the content, a fixed 32 px gap
   (20 px on phones), then the band (80 px desktop, 48 px phone; inline SVGs of 500 and 355 bytes; the bottom row is solid). The hero ends at the band's bottom
   edge, so the band is never stranded, never behind the button, and the next section starts right under it. */
.hero.hero-dither{min-height:0;justify-content:flex-start;
  padding-top:calc(var(--nav-h) + clamp(1.4rem,9vh,9rem));padding-bottom:calc(32px + 80px);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='80' shape-rendering='crispEdges'%3E%3Cpath fill='%23f0cc72' fill-opacity='.6' d='M0 16h4v4h-4zM8 24h4v4h-4zM0 32h4v4h-4zM8 32h4v4h-4zM0 40h4v4h-4zM8 40h4v4h-4zM12 44h4v4h-4zM0 48h4v4h-4zM8 48h4v4h-4zM4 52h4v4h-4zM12 52h4v4h-4zM0 56h4v4h-4zM8 56h4v4h-4zM4 60h4v4h-4zM12 60h4v4h-4zM0 64h4v4h-4zM4 64h4v4h-4zM8 64h4v4h-4zM4 68h4v4h-4zM12 68h4v4h-4zM0 72h4v4h-4zM8 72h4v4h-4zM12 72h4v4h-4zM0 76h4v4h-4zM4 76h4v4h-4zM8 76h4v4h-4zM12 76h4v4h-4z'/%3E%3C/svg%3E");background-repeat:repeat-x;background-position:left bottom;background-size:16px 80px}
@media(max-width:700px){.hero.hero-dither{padding-top:calc(var(--nav-h) + clamp(1.2rem,6vh,3rem));padding-bottom:calc(20px + 48px);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='48' shape-rendering='crispEdges'%3E%3Cpath fill='%23f0cc72' fill-opacity='.6' d='M0 16h4v4h-4zM8 16h4v4h-4zM0 24h4v4h-4zM8 24h4v4h-4zM12 28h4v4h-4zM0 32h4v4h-4zM8 32h4v4h-4zM4 36h4v4h-4zM12 36h4v4h-4zM0 40h4v4h-4zM8 40h4v4h-4zM12 40h4v4h-4zM0 44h4v4h-4zM4 44h4v4h-4zM8 44h4v4h-4zM12 44h4v4h-4z'/%3E%3C/svg%3E");background-size:16px 48px}}
/* the next section starts at the band: no hairline, and its own top space trimmed so no bare cream sits under the band (the section
   right after the hero carries .after-hero; it was the flashcard demo, since 2026-11-17 the About section) */
.hero.hero-dither+.divider{display:none}
.hero.hero-dither~.after-hero{padding-top:clamp(2.5rem,6vh,3.5rem)}
/* free guide page: the title on one line from 1280 px (Fraunces 700, about 53 to 64 px), balanced lines below that; the gold subtitle stays on its own line */
.fgd .fgd-inner{max-width:1200px}
.fgd .fgd-head{max-width:none}
.fgd .fgd-title{font-family:var(--f-head);font-weight:700;font-size:clamp(2.1rem,4vw,3.6rem);line-height:1.08;text-wrap:balance;max-width:100%}
.fgd .fgd-title span{white-space:normal;text-wrap:balance;font-weight:500}
@media(min-width:700px) and (max-width:1279px){.fgd .fgd-title{font-size:clamp(2.6rem,6vw,3.6rem)}}
@media(min-width:1280px){.fgd .fgd-title{white-space:nowrap}}

/* ---------- 2ND-EDITION COVERS (2026-11-25): every ebook cover on the site is a <picture class="cv"> of the light copies in
   assets/covers/ (ebook-<language>-<width>.webp with a .jpg fallback; 88, 240, 480 and 720 px wide, 1360 for Arabic too, all 10:13).
   The wrapper is a block so the cover sits exactly where the old <img> did; the img keeps its own width rules and the height
   follows the width (the width and height attributes only reserve the shape). ---------- */
picture.cv{display:block}
picture.cv>img{height:auto}
.mega-list-cover picture{display:block}

/* ---------- THE SALE BANNER (2026-11-25, Black Friday; round 2 the same day: gold, so it stands apart from the black nav): on index, shop,
   guides and flashcards a full-width band right under the nav's gold rule (links.html puts the same content in its banner slot, a gold
   .frame-card). Gold (--gold3, 12.5:1 with the ink text; --gold2 would be 9.2:1), black text, a 3 px ink rule under it. Hidden
   (display:none, no room taken) unless the script in the page's head put "bf-on" on <html>: from Fri 27 Nov 2026 00:00 to Mon 30 Nov
   2026 23:59, Chicago time, or with ?bf=1 in the address. It sits in the page's flow: its top margin is the nav's height (so the fixed nav
   never covers it) and its bottom margin takes the same height back, so everything under it moves down by exactly the banner's own height
   and each page's own room for the nav still works. It scrolls away under the nav (z-index under the nav's 200 and the phone menu's 199).
   Phones and tablets (under 1024 px): about 63 px, the message on at most two lines with "Shop the sale →" as a bold link at its end, the
   small note under it. From 1024 px: about 62 px, the message on one line at 18 px with "30% off everything" bold, the note small under it,
   and "Shop the sale →" as a real button (.frame-btn, 44 px) beside them. Only one of the two links is ever displayed. ---------- */
.bf-bar{display:none;position:relative;z-index:150;margin:var(--nav-h) 0 calc(-1 * var(--nav-h));padding:.4rem 12px .45rem;background:var(--gold3);color:var(--ink);box-shadow:0 3px 0 var(--ink);text-align:center;font-family:var(--f-body)}
html.bf-on .bf-bar{display:block}
.bf-in{max-width:1400px;margin:0 auto;display:flex;flex-direction:column;align-items:center}
.bf-text{display:flex;flex-direction:column;align-items:center;row-gap:.1rem}
.bf-msg{margin:0;font-size:.8125rem;line-height:1.3;font-weight:500;color:var(--ink);text-wrap:balance}
.bf-msg b,.bf-tag{font-weight:700}
.bf-link{color:var(--ink);font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;white-space:nowrap}
.bf-link:hover{color:var(--ink2)}
.bf-note{margin:0;font-size:.6875rem;line-height:1.3;color:var(--ink2)}
.bf-btn{display:none}
@media(min-width:1024px){
  .bf-bar{padding:.5rem 24px}
  .bf-in{flex-direction:row;justify-content:center;column-gap:1.5rem}
  .bf-text{align-items:flex-start;text-align:left;row-gap:0}
  .bf-msg{font-size:clamp(1.0625rem,.8rem + .4vw,1.125rem);line-height:1.3;white-space:nowrap}
  .bf-tag{text-transform:uppercase;letter-spacing:.04em}
  .bf-note{font-size:.8125rem}
  .bf-link{display:none}
  .bf-btn.frame-btn{display:inline-flex;flex:none;min-height:44px;padding:.45rem 1.2rem;font-family:var(--f-body);font-size:1rem;font-weight:700;line-height:1.2;text-decoration:none;white-space:nowrap;box-shadow:3px 3px 0 var(--gold)!important}   /* the darker gold drop shows on the gold band */
  .bf-btn.frame-btn:active{box-shadow:1px 1px 0 var(--gold)!important}
}
