/* ── base.css — the first CSS layer: tokens, buttons, header, focus rings ─────
   Loaded right after components.css on every page. theme.css and site.css,
   loaded later, override much of it (type, colours, the header's look), so
   check those first before changing a look here. The layers, in load order:
   components → base → [shop, page-blocks] → theme → [inner-pages] → site →
   footer → the page's own CSS (the ones in brackets only where a page needs them). */
:root {
  --navy: #00396C; --gold: #F7B744; --gold-60: #FFD487; --gold-30: #FDE9C7; --slate: #5D7E9B; --mist: #BACEDF; --white: #FFFFFF; --grey: #F1F1F1;
  --ink: #0F1B2A; --text: #2B3A4B; --muted: #66758A; --line: #E3E9F0; --soft: #F4F7FA; --ice: #EAF1F8; --ok: #1F9D55;
  --font: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif; --display: var(--font); --mono: ui-monospace, Consolas, monospace; --serif: var(--font);
  --ease: cubic-bezier(.2, .7, .2, 1); --r-lg: 24px; --r-md: 18px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 42, 0.06), 0 8px 24px -12px rgba(15, 27, 42, 0.18);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1280px, calc(100vw - 40px)); margin: 0 auto; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.02em; }
.h1 { font: 800 clamp(34px, 4.6vw, 64px)/1.02 var(--font); }
.h2 { font: 800 clamp(26px, 3vw, 42px)/1.08 var(--font); }
.h3 { font: 700 20px/1.25 var(--font); }
.kicker { font: 700 12px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: #8C5E0E; margin: 0 0 12px; }
.lede { margin: 0; font: 500 clamp(16px, 1.25vw, 18px)/1.6 var(--font); color: var(--muted); max-width: 640px; }
.hl { color: #8C5E0E; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sec { padding: 56px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head a { font: 700 14px/1 var(--font); color: var(--navy); text-decoration: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; font: 700 15px/1 var(--font); white-space: nowrap; transition: transform 160ms var(--ease), box-shadow 200ms ease, background 160ms ease; }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: none; }
.btn .ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; margin-right: -6px; } .btn .ic svg { width: 14px; height: 14px; }
.btn.gold { background: var(--gold); color: var(--ink); } .btn.gold .ic { background: var(--ink); color: var(--gold); }
.btn.gold:hover { box-shadow: 0 10px 22px -12px rgba(247, 183, 68, 0.95); }
.btn.navy { background: var(--navy); color: #fff; } .btn.navy .ic { background: var(--gold); color: var(--navy); }
.btn.white { background: #fff; color: var(--ink); border-color: var(--line); } .btn.white .ic { background: var(--ink); color: #fff; }
.btn.black { background: var(--ink); color: #fff; } .btn.black .ic { background: var(--gold); color: var(--ink); }
.btn.glass { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.35); } .btn.glass .ic { background: #fff; color: var(--ink); }
.btn.plain .ic { display: none; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* header: white, calm */
.nav { position: sticky; top: 0; z-index: 50; height: 68px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 0 24px; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); }
.nav .logo { width: 118px; } .nav .logo img { width: 100%; height: auto; }
.nav .logo .lg-white { display: none !important; } .nav .logo .lg-color { display: block !important; }
.nav .pill { display: flex; gap: 2px; justify-self: start; }
.nav .pill a, .nav .more > button { text-decoration: none; font: 600 14.5px/1 var(--font); color: var(--text); padding: 10px 12px; border-radius: 10px; background: none; border: 0; cursor: pointer; }
.nav .pill a:hover, .nav .more > button:hover, .nav .more > button[aria-expanded="true"] { background: var(--soft); }
.nav .pill a[aria-current="page"], .nav .more > button[aria-current="page"] { color: var(--navy); background: var(--ice); }
.nav .cta { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line) !important; background: #fff !important; color: var(--ink) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.icon-btn:hover { background: var(--soft) !important; }
.site-foot { background: var(--ink) !important; }

/* reveal: one gentle move (motion.js adds .in) */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }
/* the motion modes (app/fx.js, README "Motion"). The static mode (the Animations button set to Off, or ?static=1,
   on any device): the finished state, and no CSS animation anywhere, pseudo-elements included. A reduce-motion device
   before app/fx.js has run (its first paint) holds its animations the same way. Calm (a reduce-motion device, no
   choice saved) is fx-motion + fx-calm: the animations play, reveals fade in place, and each file's html.fx-calm
   rules hold the big moves. */
@media (prefers-reduced-motion: reduce) { html:not(.motion):not(.fx-motion) .rv { opacity: 1; transform: none; transition: none; } html:not(.motion):not(.fx-motion) *, html:not(.motion):not(.fx-motion) *::before, html:not(.motion):not(.fx-motion) *::after { animation: none !important; } }
html.fx-reduce .rv { opacity: 1; transform: none; transition: none; }
html.fx-reduce *, html.fx-reduce *::before, html.fx-reduce *::after { animation: none !important; }
html.fx-calm .rv { transform: none; }
@media (max-width: 900px) { .nav { grid-template-columns: auto 1fr; gap: 12px; padding: 0 14px; } .nav .logo { width: 100px; } }
/* five tabs + More need ~1200px; below that the menu button takes over
   (this must come after `.nav .pill { display: flex }` above, which was
   overriding the phone rule in components.css) */
@media (max-width: 1200px) {
  .nav .pill { display: none; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav .cta { justify-self: end; }
  .nav .burger { display: inline-grid; margin-left: 4px; }
}
@media (max-width: 600px) { .nav .cta .btn { display: none; } .nav .cta { gap: 6px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* focus you can see: navy on light, gold on dark (audit: gold on white was ~2:1) */
:focus-visible, .fld input:focus, .fld select:focus, .fld textarea:focus { outline: 3px solid var(--navy) !important; outline-offset: 2px; }
html.dark :focus-visible, html.dark .fld input:focus, html.dark .fld select:focus, html.dark .fld textarea:focus, .dsec :focus-visible, .demo5 :focus-visible, .site-foot :focus-visible { outline-color: var(--gold) !important; }
.sb-search:focus-within { outline: 3px solid var(--navy); outline-offset: 2px; } html.dark .sb-search:focus-within { outline-color: var(--gold); }
