/* SMOS-194 — ISOLATION, NOT DESIGN. Read this before adding a line.

   The v2 site's 17 stylesheets are vendored byte-identical and nothing may be written to make a
   section match the static build (01-HOMEPAGE.md §12). This file does not touch the design. It
   undoes rules that are not Artistic's at all: SimplifiedOS's own global CSS, which every public
   route carries (the (frontend) root layout links /platform-theme.css and imports smos-home.css,
   the legacy Sufii sheet whose `.hero`, `.sheet`, `.nav-links` are unscoped). Where one of those
   matches a v2 element and v2 does not set that property itself, the platform's value shows
   through: measured, `.sheet { max-width: 460px }` collapsed the FAQ grid to a column (23% of the
   section), and `* { margin: 0; padding: 0 }` removed every browser-default margin v2 relies on.

   HOW IT STAYS OUT OF V2'S WAY. It is linked after the platform's sheets and BEFORE v2's (see
   ArtisticV2View), and every rule has exactly the specificity of the rule it undoes (`:where()`
   adds none). So it beats the platform rule by order and loses to any v2 rule of equal or higher
   specificity by order. `revert` hands the property back to the browser default, which is what
   the static page has underneath its own sheets.

   THE LIST IS MEASURED, NOT GUESSED: scripts/artistic-v2/audit-leaks.ts lists every non-v2 rule
   that reaches the v2 markup and exits 1 on one this file does not cover. Run it on each new
   template's page. One rule per leak, selector copied from the audit. */

/* leak: * — platform-theme.css `* { margin: 0; padding: 0; box-sizing: border-box }`.
   box-sizing is v2's own too (base.css `* { box-sizing: border-box }`), so only the spacing goes. */
:where(.aw2-root, .aw2-root *) { margin: revert; padding: revert; }

/* platform-theme.css `body { -webkit-font-smoothing: antialiased }` is inherited; v2 sets none,
   so the static page renders with the browser's default smoothing. */
:where(.aw2-root) { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }

/* leak: img — platform-theme.css `img { max-width: 100%; display: block }` is identical to v2's
   own base.css rule, so it changes nothing and needs no undo. Listed so the audit counts it. */

/* smos-home.css (legacy Sufii, unscoped). */
:where(.aw2-root) .nav-links { display: revert; gap: revert; font-size: revert; font-weight: revert; position: revert; left: revert; transform: revert; }
/* leak: .nav-links, .nav-cta .tel — `display: none` at narrow widths; the rule above reverts display. */
:where(.aw2-root) .nav-cta { display: revert; align-items: revert; gap: revert; }
:where(.aw2-root) .hero { position: revert; min-height: revert; display: revert; align-items: revert; padding: revert; transition: revert; }
:where(.aw2-root) .hero h1 { font-family: revert; font-size: revert; line-height: revert; font-weight: revert; letter-spacing: revert; }
/* NOT `revert` for this one, and the reason generalises. `revert` drops every author rule for the
   property, including v2's own lower-specificity ones: base.css sets `h1 { margin: 0 }` (0,0,1),
   which smos-home's `.hero h1 { margin-bottom: 22px }` (0,1,1) beats. Reverting brought back the
   browser's 0.67em and moved the headline (measured, the hero's only remaining diff). Where v2
   sets a property only at lower specificity than the leak, this file repeats v2's value, and says
   which v2 rule it is. */
:where(.aw2-root) .hero h1 { margin-bottom: 0; /* = base.css h1,h2,h3,p,figure { margin: 0 } */ }
:where(.aw2-root) .hero h1 em { font-style: revert; font-weight: revert; }
:where(.aw2-root) .hero-video { position: revert; inset: revert; width: revert; height: revert; object-fit: revert; z-index: revert; }
:where(.aw2-root) .sheet { background: revert; width: revert; max-width: revert; border-radius: revert; padding: revert; animation: revert; }

/* FONT COLLISION (02-FANOUT §2.1 item 6). The (frontend) root layout links Google Fonts for
   Woodbridge on every route, and that request (`Archivo:ital,wght@0,300..800;1,300..800`) defines
   `Archivo` normal 300–800, the same family name as v2's self-hosted face (fonts.css, normal
   100–900). Chrome groups faces by their descriptors and, when two groups both contain the
   requested weight, uses the first defined. Measured on /workshop: Google's latin Archivo
   `loaded`, v2's `unloaded`.

   What it costs TODAY is nothing visible: Google's latin file and v2's archivo-100-900.woff2 are
   the same bytes (sha256 7150c0ec…, measured 15 Nov), and canvas widths at 300–600 match to the
   1/1000 px. The /workshop failure blamed on it was not the font: it passes 0.000% at all three
   widths with and without this rule. What it risks is a silent change. Google re-releases
   families, and then every v2 page would set its sans in a build nobody approved, from a third
   party, with no test able to see it before the visitor does.

   The fix is one face with Google's descriptors exactly (normal, 300 800) and v2's file. It joins
   the SAME group as Google's faces, and inside a group the face defined last wins for every
   character its unicode-range covers. This sheet is in <body>, after the <head> link, and has no
   unicode-range, so v2's file sets every character at 300–800; outside that range v2's own
   100–900 face is the only exact match. Only v2 pages link this sheet, so no other tenant's
   rendering can change (measured: Woodbridge, Woodbridge Printing, Sufii and Return To Sound
   homepages 0.000% old build vs new at 390/768/1440). The link stays in the root layout on
   purpose: os.css, wb.css, wa.css, proposals, calendar, the letterhead and the Concierge theme
   all name Archivo and rely on it.

   IBM Plex Mono needs nothing: Google's descriptors (400, 500 normal) equal v2's, so v2's later
   faces already win (measured `loaded`). Archivo italic needs nothing: v2 declares none.
   tests/int/artistic-v2.int.spec.ts pins the root layout's Archivo range to the one below, so
   widening that request fails a test instead of putting Google's face back. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('fonts/archivo-100-900.woff2') format('woff2'); }
