/* Auction Clips Tools: shared theme. Load after fonts.css and before a tool's own CSS.
   Sources (website repo, commit f2de9d0; the version numbers are the ?v= values the
   teleprompter page loaded): assets/site.css v32 and assets/blog.css v19. Rules and token
   values are copied exactly; only the rules for classes the tool pages keep are here
   (base resets, wrap, skip link, header, brand, buttons, form fields, footer, breadcrumbs,
   and the page-heading block). Website-only rules are left out on purpose.
   No imports and no remote files: everything is served from this repo.
   Exception: the tokens after the "Studio additions" marker in :root are new for
   Auction Clips Studio and are not from the website. */

:root{
  /* 2026-12-02 Studio restyle: the warm charcoal and paper tones were replaced by
     neutral iOS-style darks (the taste check read the old paper text as cream).
     The accent is ONE token: change --accent to rebrand every page and overlay. */
  --bg:#111112;       /* page ground */
  --surface:#1C1C1E;  /* grouped panel, one step up */
  --raised:#2C2C2E;   /* controls and filled buttons on a panel */
  --line:#38383A;     /* separators */
  --text:#F5F5F7;     /* primary label */
  --soft:#E5E5EA;     /* body copy on dark */
  --dim:#A1A1A6;      /* secondary label (7.4:1 on --bg) */
  --faint:#8E8E93;    /* tertiary label (5.6:1 on --bg, 4.9:1 on --surface) */
  --accent:#FFD23F;   /* Marker Yellow: the one accent (see docs/design-direction.md) */
  --accent-ink:#15130F;
  --yellow:var(--accent); /* old name, kept so every existing rule follows --accent */
  --bad:#FF8A7A;      /* form errors */

  --display:"Saira",system-ui,sans-serif;
  --body:"Hanken Grotesk",system-ui,sans-serif;
  --mono:"Azeret Mono",ui-monospace,monospace;

  --wrap:1360px; --gut:40px; --r:12px;
  --r-panel:16px;     /* grouped panels; controls use --r, chips 999px */
  --press:cubic-bezier(.2,.8,.2,1);

  /* ---- Studio additions (2026-12-02). NOT copied from the website: everything
     below this line is new for Auction Clips Studio. See docs/design-direction.md. */
  --live:#EF4136;     /* Rec Red, same value as the website's --rec (site.css f2de9d0):
                         ONLY the LIVE pill dot/text and the SOLD stamp */
  --live-ink:#15130F; /* text on a --live fill (4.84:1); white on --live is only 3.83:1 */

  --rail-w:232px;           /* dashboard left rail, open */
  --rail-w-collapsed:84px;  /* rail on tablets: icons and short labels only */
  --topbar-h:64px;          /* dashboard top bar (show picker + LIVE pill) */

  /* Overlays (viewer-facing OBS browser sources). Sizes are proposals for a
     1920x1080 canvas; overlay.css (STEP 11) applies them. */
  --ov-bg:transparent;              /* page background: always transparent */
  --ov-panel:rgba(21,19,15,.88);    /* card fill behind text */
  --ov-text:#FFFFFF;                /* main overlay text */
  --ov-dim:#D9D3C7;                 /* secondary overlay text */
  --ov-accent:var(--yellow);        /* the one accent, same as the site */
  --ov-stroke:rgba(0,0,0,.65);      /* text shadow / outline for busy video */
  --ov-line:rgba(255,255,255,.14);  /* hairline border on cards */
  --ov-radius:12px;
  --ov-safe:5%;                     /* safe-area inset from each canvas edge */
  --ov-w-s:480px; --ov-w-m:720px; --ov-w-l:960px;
}

/* base (site.css) */
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{background:var(--bg);color:var(--text);font-family:var(--body);font-size:17px;line-height:1.55;font-weight:500;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,video{display:block;max-width:100%}
a{color:inherit}
.wrap{width:100%;max-width:calc(var(--wrap) + 2*var(--gut));margin:0 auto;padding:0 var(--gut)}
:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
.skip{position:absolute;left:16px;top:-100px;z-index:100;background:var(--yellow);color:#15130F;padding:12px 18px;font-weight:800;border-radius:var(--r)}
.skip:focus{top:12px}

/* type (site.css) */
h1,h2,h3{font-family:var(--display);font-weight:800;letter-spacing:-.018em;text-wrap:balance}
h1{font-size:clamp(40px,5vw,72px);line-height:1}
h2{font-size:clamp(32px,3.6vw,54px);line-height:1.04}
.intro-lg{font-size:20px;line-height:1.55;color:var(--text);max-width:640px}

/* buttons (site.css) */
/* Studio restyle: capsule buttons with an iOS-style press (scale + dim on :active).
   Primary = accent fill; secondary (.btn-ghost) = a filled grey capsule, not an outline. */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 24px;border-radius:999px;border:0;font-family:var(--body);font-weight:700;font-size:17px;text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s,color .15s,transform .18s var(--press),opacity .18s}
.btn:active{transform:scale(.96);opacity:.85}
.btn-bid{background:var(--accent);color:var(--accent-ink)}
.btn-bid:hover{background:color-mix(in srgb,var(--accent) 82%,#fff)}
.btn-ghost{color:var(--text);background:var(--raised)}
.btn-ghost:hover{background:#3A3A3C}
.btn-sm{min-height:44px;font-size:15px;padding:0 18px}
.btn[disabled]{opacity:.5;cursor:not-allowed;transform:none}
@media (prefers-reduced-motion:reduce){.btn,.btn:active{transition:none;transform:none}}

/* brand and header (site.css) */
.brand{font-family:var(--display);font-weight:800;font-size:24px;letter-spacing:-.02em;text-decoration:none;white-space:nowrap}
.top{position:sticky;top:0;z-index:50;background:var(--bg);border-bottom:1px solid var(--line)}
.top-in{display:flex;align-items:center;gap:36px;height:76px}
.top .brand{display:inline-block;padding:8px 0;font-size:28px}
.top-in .brand{margin-right:auto} /* tools pages have no nav, so the brand pushes the header link right */

/* form fields (site.css) */
.form{display:grid;grid-template-columns:1fr 1fr;gap:22px 24px}
.field{display:flex;flex-direction:column;gap:8px;min-width:0;border:0}
.field.full{grid-column:1/-1}
.field>label,.field legend{font-size:15px;font-weight:700;color:var(--text)}
.field legend{margin-bottom:8px}
.field .opt{font-weight:500;color:var(--dim)}
.form input[type=text],.form input[type=email],.form input[type=tel],.form select{height:48px;width:100%;padding:0 14px;background:var(--raised);border:1px solid transparent;border-radius:var(--r);color:var(--text);font:500 16px var(--body)}
.form input::placeholder{color:var(--faint)}
.form input:focus,.form select:focus{outline:3px solid var(--yellow);outline-offset:0;border-color:transparent}
.form input[aria-invalid="true"]{border-color:var(--bad);border-width:2px}
.field .hint{font-size:13px;line-height:1.4;color:var(--dim)}

/* footer (site.css) */
footer{border-top:1px solid var(--line);padding:30px 0 40px;color:var(--dim);font-size:15px}
.foot-in{display:flex;flex-wrap:wrap;gap:12px 32px;align-items:center}
.foot-in .brand{font-size:20px;color:var(--text)}
footer nav{margin-left:auto;display:flex;gap:24px}
footer nav a{display:inline-flex;justify-content:center;min-width:44px;padding:12px 0}
footer nav a:hover{color:var(--yellow)}
footer .tm{flex-basis:100%;font-size:13px;color:var(--faint)}

/* breadcrumbs (blog.css) */
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:4px 10px;font-family:var(--mono);font-weight:500;font-size:13px;color:var(--dim)}
.crumbs li+li::before{content:"/";margin-right:10px;color:#6B655B}
.crumbs a{display:inline-block;padding:6px 0;color:var(--soft);text-decoration:none}
.crumbs a:hover{color:var(--yellow)}
.crumbs [aria-current]{padding:6px 0}

/* page heading (blog.css): kicker pill, page wrap, heading with Archivo Expanded and a yellow line */
.post-kick{display:inline-flex;margin-bottom:16px;font:600 14px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:#15130F;background:var(--yellow);border-radius:999px;padding:6px 14px}
.blog-wrap{padding-top:36px;padding-bottom:96px}
.blog-head{margin:36px 0 8px}
.blog-head h1{font-family:"Archivo",var(--display);font-stretch:112%;font-weight:800;letter-spacing:-.03em;font-size:clamp(44px,5.5vw,84px);line-height:.98}
.blog-head .intro-lg{margin-top:20px;max-width:720px}
.blog-head::after{content:"";display:block;height:3px;margin-top:32px;border-radius:2px;background:var(--yellow)}

/* narrower screens (site.css, header lines only) */
@media (max-width:1000px){
  .top-in{gap:10px}
  .top-in .brand{margin-right:auto}
}
/* phone (site.css, then blog.css; only the lines for the rules above) */
@media (max-width:820px){
  :root{--gut:16px}
  .top-in{height:68px;gap:8px}
  .top .brand{font-size:24px}
  .top-in .btn-sm{min-height:44px;font-size:15px;padding:0 14px}
  .intro-lg{font-size:18px}
  .form{grid-template-columns:1fr}
  .form .btn{width:100%}
  footer nav{margin-left:0}
}
@media (max-width:820px){
  .blog-wrap{padding-top:20px;padding-bottom:64px}
  .blog-head{margin:24px 0 4px}
  .blog-head h1{font-size:clamp(38px,11.5vw,54px);line-height:1}
  .blog-head::after{margin-top:24px}
}
