/* FizzPop Media brand for the pages clients and their customers see: the Forms Portal (/),
   the submit result pages and the expired-link page (src/brand-page.ts).

   The fizzpopmedia site repo owns the brand. These are copies of:
     fizzpopmedia: src/styles/global.css (@theme palette, fonts, card shadow),
                   public/fonts/*.woff2, public/images/logo.svg
   After a brand change there, run `npm run brand:sync`: it re-copies the fonts and logo and
   lists any palette value below that no longer matches. It never edits this file.
   Pages link this file as /brand/brand.css?v=<first 8 hex of its sha256> (it is cached a day): after
   editing it, update that version in public/index.html and src/brand-page.ts. test/brand.test.ts
   fails until they match. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/brand/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/brand/plus-jakarta-sans-latin.woff2") format("woff2"); }

:root {
  /* Palette: the site's names and values. */
  --color-navy-950: #061229;
  --color-navy-900: #0b1f3f;
  --color-navy-800: #102a52;
  --color-navy-700: #173766;
  --color-navy-600: #234a80;
  --color-navy-100: #e6ecf5;
  --color-navy-50: #f4f7fb;

  --color-orange-700: #c9530f;
  --color-orange-600: #f26b1d;
  --color-orange-500: #f77f3b;
  --color-orange-100: #ffe6d5;
  --color-orange-50: #fff4ec;

  --font-heading: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --shadow-card: 0 1px 2px rgb(11 31 63 / 0.04), 0 8px 24px -8px rgb(11 31 63 / 0.12);

  /* Roles. Light only, like fizzpopmedia.com. */
  --bg: var(--color-navy-50);
  --surface: #ffffff;
  --border: var(--color-navy-100);
  --text: var(--color-navy-900);
  --muted: var(--color-navy-600);
  --accent: var(--color-orange-600);
  --link: var(--color-orange-700); /* orange-600 text on white fails AA; 700 passes */
  --focus: var(--color-navy-900);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; color: var(--color-navy-900); letter-spacing: -0.01em; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--color-orange-600); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-card); padding: 24px; }

/* White on orange-600 is 3.04:1: the brand exception fizzpopmedia.com already accepts for its buttons. */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--color-orange-600); border: 1px solid var(--color-orange-600); color: #ffffff; font-weight: 600; border-radius: 8px; padding: 8px 16px; min-height: 40px; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s; }
.btn-primary:hover { background: var(--color-orange-700); border-color: var(--color-orange-700); color: #ffffff; }
.btn-primary:disabled { opacity: .6; pointer-events: none; }

/* Like the site: the logo is a white wordmark on a navy-900 bar, the footer a navy-950 band. */
.brand-header { display: flex; align-items: center; min-height: 64px; padding: 0 16px; background: var(--color-navy-900); border-bottom: 1px solid rgb(255 255 255 / 0.05); }
.brand-header a { display: inline-flex; border-radius: 4px; }
.brand-header img { display: block; height: 28px; width: auto; max-width: 100%; }
.brand-footer { font-size: 12px; color: rgb(255 255 255 / 0.75); text-align: center; padding: 20px 16px; background: var(--color-navy-950); }
.brand-footer a { color: #ffffff; }
.brand-footer a:hover { color: var(--color-orange-500); }
.brand-header :focus-visible, .brand-footer :focus-visible { outline-color: #ffffff; }

@media (prefers-reduced-motion: reduce) { .btn-primary { transition: none; } }
