/* Schlosser Studio kit, version 2. The shared look of every Schlosser Studio product site.
   Dark by default (owner, 2026-11-17), like schlosserstudio.com. A site where light is clearly better or required
   opts in with <html data-ss-theme="light">. Printing is always light.
   Installed into each site as /studio/ by ventures/_studio/install.mjs. Do not edit the copy in a site:
   change ventures/_studio (owner approval needed) and re-install.

   Each site picks its own colors; they need not match the studio's (owner, 2026-11-17). The site's own stylesheet,
   loaded after this one, sets its palette on :root, for example
     :root { --ss-bg:#1b1410; --ss-surface:#2a1f18; --ss-ink:#f6ede4; --ss-muted:#cdbfb1; --ss-line:#4a3a2e;
             --ss-accent:#f2a541; --ss-accent-ink:#1b1410; --ss-accent-text-dark:#f7c27a; }
   (a light site sets --ss-accent-text instead, on :root[data-ss-theme="light"]). Check it with tools/check-accent.mjs.
   The navy below is only the fallback for a site that sets no palette. Everything here is scoped to <body class="ss"> and
   uses :where() so the site's own rules win without !important. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Studio colors, from schlosserstudio.com: the mark and the pin band use them; sites need not. */
  --ss-midnight: #0c2340; --ss-lake: #236192; --ss-aurora: #78be20; --ss-moonlight: #9ea2a2;
  /* The product's own colors. Each site sets these and the neutrals below (defaults are the studio's). */
  --ss-accent: #5aa9e6;          /* fills: buttons, the header stripe, badges: 3:1 or more against the page */
  --ss-accent-ink: #0c2340;      /* text on an accent fill: 4.5:1 or more */
  --ss-accent-text-dark: #8fc3ec;/* accent as text or links on the dark page and cards: 4.5:1 or more */
  --ss-accent-text: #1d5480;     /* the same on light pages: only for sites with data-ss-theme="light" */
  /* Neutrals (dark, the default) */
  --ss-bg: #0a1b33; --ss-surface: #11294a; --ss-ink: #eef2f7; --ss-muted: #b3bdca; --ss-line: #26496f;
  --ss-link: var(--ss-accent-text-dark); --ss-focus: var(--ss-accent);
  --ss-accent-soft: #16365c;
  /* Footer: follows the site's palette unless a site sets these. */
  --ss-footer-bg: var(--ss-surface); --ss-footer-ink: var(--ss-ink); --ss-footer-muted: var(--ss-muted); --ss-footer-line: var(--ss-accent);
  /* Type and shape */
  --ss-font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ss-display: "Barlow Condensed", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --ss-radius: 6px; --ss-radius-lg: 10px; --ss-max: 64rem; --ss-read: 42rem;
  color-scheme: dark;
}
/* Light, only where it is clearly better or required (say why in the venture's README). */
:root[data-ss-theme="light"] {
  --ss-bg: #f5f7fa; --ss-surface: #ffffff; --ss-ink: #0f1d33; --ss-muted: #4a5a70; --ss-line: #d3dbe6;
  --ss-link: var(--ss-accent-text); --ss-accent-soft: #e6eef6; color-scheme: light;
}
@supports (color: color-mix(in srgb, red, red)) {
  :root { --ss-accent-soft: color-mix(in srgb, var(--ss-accent) 16%, var(--ss-surface)); }
  :root[data-ss-theme="light"] { --ss-accent-soft: color-mix(in srgb, var(--ss-accent) 11%, var(--ss-surface)); }
}

/* ---------- base ---------- */
:where(body.ss) { margin: 0; background: var(--ss-bg); color: var(--ss-ink); font: 400 1rem/1.6 var(--ss-font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: anywhere; }
:where(.ss) :where(h1, h2, h3) { font-family: var(--ss-display); font-weight: 700; letter-spacing: .01em; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
:where(.ss) :where(h1) { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.6rem); }
:where(.ss) :where(h2) { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); }
:where(.ss) :where(h3) { font-size: 1.3rem; font-weight: 600; }
:where(.ss) :where(h4) { font-size: 1rem; font-weight: 700; margin: 0 0 .4em; }
:where(.ss) :where(p, ul, ol) { margin: 0 0 1em; }
:where(.ss) :where(a) { color: var(--ss-link); text-underline-offset: .2em; text-decoration-thickness: .08em; }
:where(.ss) :where(a:hover) { text-decoration-thickness: .14em; }
:where(.ss) :where(img, svg) { max-width: 100%; height: auto; }
:where(.ss) :where(input, select, textarea) { font: inherit; font-size: max(16px, 1em); color: var(--ss-ink); background: var(--ss-surface);
  border: 1px solid var(--ss-line); border-radius: var(--ss-radius); padding: .55rem .7rem; min-height: 44px; box-sizing: border-box; }
:where(.ss) :where(label) { font-weight: 600; }
:where(.ss) :where(hr) { border: 0; border-top: 1px solid var(--ss-line); margin: 2rem 0; }
:where(.ss) :where(table) { border-collapse: collapse; width: 100%; }
:where(.ss) :where(th, td) { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--ss-line); }
:where(.ss) :focus-visible { outline: 3px solid var(--ss-focus); outline-offset: 2px; }
::selection { background: var(--ss-accent); color: var(--ss-accent-ink); }

/* ---------- layout ---------- */
.ss-wrap { box-sizing: border-box; width: 100%; max-width: var(--ss-max); margin-inline: auto; padding-inline: 1rem; }
.ss-read { max-width: var(--ss-read); }
.ss-main { padding-block: 2rem 3rem; }
.ss-section { padding-block: 2rem; }
.ss-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.ss-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ss-skip { position: absolute; left: -9999px; top: .75rem; z-index: 20; background: var(--ss-accent); color: var(--ss-accent-ink); font-weight: 700; padding: .5rem .8rem; border-radius: var(--ss-radius); }
.ss-skip:focus { left: .75rem; }
@media (min-width: 40rem) { .ss-wrap { padding-inline: 1.5rem; } .ss-main { padding-block: 3rem 4rem; } }

/* ---------- header: the product's name, its color stripe, and the studio badge ---------- */
.ss-header { background: var(--ss-surface); border-top: 5px solid var(--ss-accent); border-bottom: 1px solid var(--ss-line); }
.ss-header__in { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding-block: .8rem; }
.ss-product { font-family: var(--ss-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--ss-ink); text-decoration: none; letter-spacing: .01em; margin-right: auto; }
.ss-nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .95rem; }
.ss-nav a { color: var(--ss-ink); text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.ss-nav a:hover, .ss-nav a[aria-current="page"] { border-bottom-color: var(--ss-accent); }
.ss-by { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; color: var(--ss-muted); text-decoration: none; white-space: nowrap; }
.ss-by img { width: 22px; height: 22px; border-radius: 5px; }
.ss-by:hover { color: var(--ss-ink); }

/* ---------- page parts ---------- */
.ss-hero { padding-block: 2.5rem 1.5rem; }
.ss-eyebrow { display: inline-block; font-size: .95rem; font-weight: 600; color: var(--ss-link); margin-bottom: .6rem; }
.ss-lede { font-size: 1.15rem; color: var(--ss-muted); max-width: var(--ss-read); }
.ss-card { background: var(--ss-surface); border: 1px solid var(--ss-line); border-radius: var(--ss-radius-lg); padding: 1.25rem; }
.ss-card > :last-child { margin-bottom: 0; }
.ss-note { background: var(--ss-accent-soft); border-left: 4px solid var(--ss-accent); border-radius: var(--ss-radius); padding: .8rem 1rem; }
.ss-note > :last-child { margin-bottom: 0; }
.ss-badge { display: inline-block; font-size: .8rem; font-weight: 700; background: var(--ss-accent); color: var(--ss-accent-ink); border-radius: 999px; padding: .2rem .65rem; }
.ss-muted { color: var(--ss-muted); }
.ss-small { font-size: .875rem; }

/* ---------- buttons ---------- */
.ss-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; box-sizing: border-box; padding: .6rem 1.25rem;
  border: 2px solid var(--ss-accent); border-radius: var(--ss-radius); background: var(--ss-accent); color: var(--ss-accent-ink);
  font: 600 1rem/1.2 var(--ss-font); text-decoration: none; cursor: pointer; transition: filter .15s ease-out, box-shadow .15s ease-out; }
.ss-btn:hover { filter: brightness(1.08); box-shadow: 0 4px 14px rgb(0 0 0 / .25); }
.ss-btn--ghost { background: transparent; color: var(--ss-link); }
.ss-btn--ghost:hover { background: var(--ss-accent-soft); filter: none; }
.ss-btn--lg { font-size: 1.1rem; padding: .8rem 1.6rem; min-height: 52px; }
.ss-btn[disabled], .ss-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; filter: none; box-shadow: none; }
.ss-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- buy box: the same everywhere so checkout looks familiar ---------- */
.ss-buy { background: var(--ss-surface); border: 2px solid var(--ss-accent); border-radius: var(--ss-radius-lg); padding: 1.25rem 1.25rem 1rem; }
.ss-buy__price { font-family: var(--ss-display); font-weight: 700; font-size: 2.6rem; line-height: 1; margin: 0 0 .25rem; }
.ss-buy__price small { font-family: var(--ss-font); font-size: .95rem; font-weight: 500; color: var(--ss-muted); margin-left: .35rem; }
.ss-buy ul { padding-left: 1.2rem; }
.ss-buy__fine { font-size: .85rem; color: var(--ss-muted); margin: .75rem 0 0; }

/* ---------- footer: the same words and layout on every site, in the site's own colors ---------- */
.ss-footer { background: var(--ss-footer-bg); color: var(--ss-footer-ink); font-size: .9rem; margin-top: 2rem; border-top: 3px solid var(--ss-footer-line); }
.ss-footer a { color: var(--ss-footer-ink); text-decoration-color: color-mix(in srgb, var(--ss-footer-ink) 45%, transparent); }
.ss-footer a:hover { text-decoration-color: var(--ss-footer-line); }
.ss-footer__in { display: grid; gap: 1rem; padding-block: 2rem 1.5rem; }
.ss-footer__brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--ss-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em; color: var(--ss-footer-ink); }
.ss-footer__brand img { width: 40px; height: 40px; border-radius: 10px; }
.ss-footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.ss-footer__fine { color: var(--ss-footer-muted); font-size: .8rem; margin: 0; }
.ss-footer__fine + .ss-footer__fine { margin-top: -.6rem; }

@media (prefers-reduced-motion: reduce) { .ss-btn { transition: none; } }
/* Printouts (logs, checklists, worksheets) are always light, whatever the screen theme. */
@media print {
  :root, :root[data-ss-theme] { --ss-bg: #fff; --ss-surface: #fff; --ss-ink: #000; --ss-muted: #333; --ss-line: #999;
    --ss-link: #000; --ss-accent-soft: #f2f2f2; color-scheme: light; }
  .ss-header, .ss-footer, .ss-btn { display: none !important; }
  :where(body.ss) { background: #fff; color: #000; }
}

/* Ads (owner, 2026-11-23): an ad slot stays hidden unless studio/ads.js turned ads on for this page (README, "Ads"). */
.ss-ad { display: none; }
.ss-ads-on .ss-ad { display: block; max-width: 728px; margin: 2.5rem auto; }
.ss-ads-on .ss-ad::before { content: "Advertisement"; display: block; text-align: center; font-size: .75rem; color: var(--ss-muted); margin-bottom: .35rem; }
.ss-ad ins.adsbygoogle { display: block; min-height: 250px; }
