/* Bayou Braces. The "middle ground" look (branch older-preview). Loaded last on every page the site serves (after
   site.css, site-b.css and page.css or lp.css), where <html> carries the class "o". _src/tools/build_older.py adds the
   class and this file to each page; a.html and smile-options.html do not load it.
   Round 5 (2026-11-27): "roll out this version across the site". The homepage rules came first; the inner pages, the
   blog and the ad landing pages are at the end of the file.

   Round 3 (2026-11-27): a middle ground. Christian: "i like the outlined sticker cards aspect. so basically a middle
   ground. and a slight color pop with the colors from the currently deployed version. but keep the font the same as
   the calm version (i like that change) and the sparkles too".

   So this file is now a thin layer. Everything it does not mention is the main site's own look: ink outlines, hard
   offset edges, hover lifts, sparkles, the wave breaks, the cookie box, main's greens, gold and orange.
   What this layer keeps from the preview:
   - the font treatment: Montserrat at 600, sentence case; a headline's accent line is Instrument Serif italic in green
   - the grounds: warm off-white and deep green instead of main's paper and brighter greens
   - no grid paper and no wandering paths behind sections
   - the smile wall as rectangles; the ticker at half speed
   The section order, the photos and the wording are set in build_older.py, which also takes out the drawn stickers
   (stars, bolt, peace sign): round 4, "remove the stickers like these". */

html.o{
  --paper:#F6F2E9; --paper-2:#EFEADD; --sage:#EFEADD; --tile:#FBF8F1;
  --deep:#17381B; --deep-2:#122D16; --deep-3:#0C2110;
  --serif:"Instrument Serif","Iowan Old Style",Georgia,serif;
  scrollbar-color:var(--deep) var(--deep-3);
}

/* ---------- grounds: no paper grid, no wandering paths. The wave between sections is drawn by site.js and filled with
   the next section's ground, read from the colors below ---------- */
.o main > section,.o body > section,.o .final,.o .board,.o .mirrors,.o .reviews,.o .offices{background-image:none !important}
.o .treat{background-color:var(--paper)}
.o .compare{background-color:var(--paper-2)}
.o .visit{background-color:var(--paper)}
.o .docs{background-color:var(--paper)}
.o .tech{background-color:var(--paper-2)}
.o .faq{background-color:var(--paper)}
.o .blog{background-color:var(--paper-2)}
.o .board,.o .mirrors,.o .reviews{background-color:var(--deep)}
.o .promise,.o .offices{background-color:var(--deep-2)}
.o .final{background-color:var(--deep);color:var(--on-dark)}
.o .offer{background-color:var(--gold)}

/* ---------- type: the part of the preview he asked to keep ---------- */
.o h1,.o h2,.o h3,.o h4,.o .giant,.o .statement,.o .ask-h,.o .offer-h{font-weight:600;letter-spacing:-.028em}
/* Accent lines: main's leaf green on light grounds, main's light green on dark ones.
   Sizes: at 600 the sans line set about 3% narrower than main's 800, so headings are 3.5% larger; the italic line is
   1.25em so it carries as much of the line as the heavy sans did (its lowercase is a little taller than the sans). */
.o h1 em,.o h2 em,.o .statement em,.o .giant em{font-family:var(--serif);font-style:italic;font-weight:400;letter-spacing:-.012em;font-size:1.25em;line-height:.96;color:var(--leaf)}
.o :is(.hero,.console,.board,.promise,.mirrors,.reviews,.offices,.final,.pg-hero,.pg-sec.is-c,.lp-offices,.lp-final) :is(h1,h2,.giant,.statement) em,.o .statement em{color:var(--lime)}
.o .final h2 em{color:var(--lime)}
.o:not(.pg):not(.lp) h1{font-size:clamp(2.95rem,min(6.42vw,10.97vh),6.52rem)}
.o main h2{font-size:clamp(2.48rem,4.66vw,4.45rem)}
.o main .blog h2{font-size:clamp(2.28rem,3.93vw,3.73rem)}
@media (max-width:380px){.o:not(.pg):not(.lp) h1{font-size:2.54rem}.o main h2,.o main .blog h2{font-size:2.12rem}}
.o .giant{font-size:clamp(3rem,13.4vw,14rem);line-height:.98;text-transform:none}
.o .giant em{-webkit-text-fill-color:currentColor;background:none !important;animation:none !important}
.o-motto{margin-top:20px !important;font:italic 400 1.5rem/1.2 var(--serif) !important;color:var(--lime)}
/* every heavy display weight comes down to 600 */
.o :is(.offer-amt,.offer-what,.rx-card h3,.more2 h4,.menu-links a,.menu-links summary,.step-n,.tile-t h3,.ages dt,.cmp thead th,.cmp tbody th,.doc h3,.rev-stats dd,.off-name,.duo-copy h3,.who-h,.who-body h4,.post h3,.vrev-h,.ck-top h2,.ck-cat h3,.nav-col-h,.nav-all){font-weight:600}
.o .offer-amt b{font-weight:700}
.o .btn{font-family:var(--sans);font-weight:600;letter-spacing:0}
.o .tile b{font-weight:600}
.o .ticker-run span{font-weight:600;letter-spacing:0;text-transform:none}
.o .foot-mark{font-weight:600;text-transform:none;letter-spacing:-.04em}

/* ---------- the two shapes kept from the preview ---------- */
/* the smile wall: rectangles with main's outline and offset edge, not circles */
/* both kinds of figure in the wall (.wall-face and .tile-photo) get one frame: a 2.5px ink outline, one radius, one
   7px offset edge and main's hover lift */
.o .wall-face,.o .wall .tile-photo{aspect-ratio:4/3;border-radius:var(--r);border:2.5px solid var(--ink);box-shadow:7px 7px 0 var(--ink);transition:transform .28s var(--ease),box-shadow .28s var(--ease)}
.o .wall-face:hover,.o .wall .tile-photo:hover{transform:translate(-2px,-2px);box-shadow:10px 10px 0 var(--ink)}
/* the ticker runs at half speed */
.o .ticker-run{animation-duration:120s}

/* ---------- the cookie box: exactly main's, so its own ground, paper and type ---------- */
.o .ck-bar{--paper:#F4F6F0;background:#0F2E14}
.o .ck-bar h2{font-weight:800;letter-spacing:-.02em}
.o .ck-bar .btn{font-family:var(--display);font-weight:700;letter-spacing:-.01em}

/* ---------- a slight color pop: main's colors at full strength on edges, tags and stickers; softened where main fills
   a whole treatment card with them ---------- */
.o .rx-night{--rx:color-mix(in srgb,var(--lime) 50%,var(--tile))}
.o .rx-braces{--rx:color-mix(in srgb,var(--z-orange) 34%,var(--tile))}

/* ---------- the hero sparkles: the italic line ends about one em sooner than main's heavy sans, so the three at its
   end move in with it ---------- */
.o .sparks svg:nth-child(1){--x:6.02em}
.o .sparks svg:nth-child(2){--x:6.44em}
.o .sparks svg:nth-child(3){--x:6.5em}

/* ---------- round 4: no drawn stickers on this version (build_older.py takes them out). In the closing band the photo
   takes the width of the paragraph above it, so nothing sits beside an empty slot ---------- */
.o .final-copy .final-pic{width:min(100%,490px)}

/* =====================================================================================================================
   Round 5: the rest of the site. Same rules as the homepage: the font treatment and the grounds change, main's outlines,
   offset edges, tags, colors, waves, sparkles and cookie box stay. No wording, photo or form markup is touched.
   ===================================================================================================================== */

/* ---------- grounds: no grid paper behind page heroes and deep bands (their colors follow --paper, --sage and --deep) */
.o .pg-hero,.o .pg-sec,.o .pg-related,.o .lp-why,.o .lp-early,.o .lp-offices{background-image:none !important}

/* ---------- inner pages and blog (page.css): heading sizes 3.5% up, as on the homepage. --fit is written by
   build_pages.py for main's wider accent line; the italic line is narrower, so it still fits its column */
.o .pg-hero h1{font-size:clamp(2.59rem,5.59vw,5.18rem)}
@media (min-width:1024px){.o .pg-hero:not(.pg-hero-plain) h1{font-size:calc(clamp(2.59rem,5.59vw,5.18rem) * var(--fit,1))}}
.o .pg-hero h1.pg-post-h{font-size:clamp(2.07rem,3.83vw,3.62rem)}
.o main .pg-sec h2{font-size:clamp(2.28rem,3.93vw,3.62rem)}
.o main .pg-article h2{font-size:clamp(1.66rem,2.69vw,2.38rem)}
/* the accent line never wraps (main lets the longest wrap under 480px). build_older.py writes a long line's estimated
   width in em on it (--ech); where the copy has the whole row, the line shrinks just enough to fit the row */
.o .pg-hero h1 em{white-space:nowrap}
@media (max-width:1023px){.o :is(h1,h2) em[style*="--ech"]{font-size:min(1.25em,calc((100vw - 2 * var(--gut)) / var(--ech)))}
  /* page and landing heroes end the line with a sparkle (.56em past the last letter): room for it too */
  .o :is(.pg-hero,.lp-hero) h1 em[style*="--ech"]{font-size:min(1.25em,calc((100vw - 2 * var(--gut)) / (var(--ech) + .6)))}}
/* headings inside cards, steps, people and articles take the lighter weight */
.o :is(.pg-card h3,.pg-steps-row h3,.pg-person h3,.pg-article h3,.lp-why-list h3,.lp-off-row h3){font-weight:600}
.o .lp-sticker b{font-weight:700}

/* ---------- ad landing pages (lp.css) ---------- */
.o.lp .hero h1{font-size:clamp(2.59rem,5.28vw,4.97rem)}
