/* ───────── McCants-Pearsall: shared base (every page) ─────────
   Each page sets its own look by overriding the tokens below on its body class.
   Shared here: reset, type scale, buttons, fields, reveal motion, site nav, ATG footer. */

/* Self-hosted variable fonts (SIL OFL 1.1, see /fonts/LICENSE.txt) */
@font-face { font-family: "Parkinsans"; src: url("../fonts/parkinsans-latin-wght.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* Brand palette carried over from the Squarespace site */
  --navy: #0C2340;
  --navy-2: #13305A;
  --blue: #0572B0;
  --blue-2: #2E8FCB;
  --red: #A11F20;
  --paper: #FFFFFF;
  --mist: #EEEEEE;
  --slate: #4A5464;
  --ink: #0B1626;

  /* Page theme (overridden per page) */
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #5B6575;
  --line: rgba(12, 35, 64, .14);
  --accent: var(--blue);
  --faint: rgba(255, 255, 255, .14);

  --font-display: "Parkinsans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: var(--paper); color: var(--navy); font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ───────── Type ───────── */
.eyebrow {
  font: 500 13px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.h2 {
  font: 300 clamp(34px, 4.6vw, 64px)/1.04 var(--font-display); letter-spacing: -.035em; text-wrap: balance;
}
.h3 { font: 500 clamp(21px, 1.6vw, 25px)/1.2 var(--font-display); letter-spacing: -.02em; }
.lede { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.7; color: var(--muted); }

/* ───────── Buttons: pill with an arrow dot (Politian-style) ───────── */
.btn {
  --b-bg: var(--navy); --b-fg: var(--paper); --b-dot: var(--paper); --b-dot-fg: var(--navy);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 6px 6px 6px 24px; border: 1px solid transparent; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); cursor: pointer; isolation: isolate; overflow: hidden;
  font: 500 15px/1 var(--font-body); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn::before {
  /* hover wash sweeps in from the dot side */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--b-wash, var(--blue)); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { color: var(--b-wash-fg, var(--paper)); }
.btn:active { transform: scale(.98); }
.btn__dot {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--b-dot); color: var(--b-dot-fg); transition: transform .45s var(--ease);
}
.btn__dot svg { width: 18px; height: 18px; }
.btn:hover .btn__dot, .btn:focus-visible .btn__dot { transform: rotate(-45deg); }
.btn:has(use[href$="i-play"]):hover .btn__dot { transform: scale(1.08); }
.btn--sm { min-height: 44px; padding-left: 18px; gap: 10px; font-size: 14px; }
.btn--sm .btn__dot { width: 32px; height: 32px; }
.btn--sm .btn__dot svg { width: 15px; height: 15px; }
.btn--solid { --b-bg: var(--navy); --b-wash: var(--blue); }
.btn--light { --b-bg: var(--paper); --b-fg: var(--navy); --b-dot: var(--navy); --b-dot-fg: var(--paper); --b-wash: var(--blue); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--paper); --b-dot: rgba(255,255,255,.14); --b-dot-fg: var(--paper); --b-wash: var(--paper); --b-wash-fg: var(--navy); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover .btn__dot, .btn--ghost:focus-visible .btn__dot { background: var(--navy); }
.btn--red { --b-bg: var(--red); --b-wash: var(--paper); --b-wash-fg: var(--navy); --b-dot: var(--paper); --b-dot-fg: var(--red); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ───────── Form fields ───────── */
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { font: 500 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--font-body);
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(5, 114, 176, .14); }
.field [aria-invalid="true"] { border-color: var(--red); }
.form__status { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form__status.is-ok { color: #1D7A45; }
.form__status.is-err { color: var(--red); }

/* ───────── Reveal on scroll ───────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ───────── Shared site nav ───────── */
.nav {
  --n-fg: var(--paper); --n-pill: rgba(255, 255, 255, .1); --n-line: rgba(255, 255, 255, .16);
  --n-glass: rgba(12, 35, 64, .88); --n-active: var(--paper); --n-active-fg: var(--navy);
  position: fixed; inset: 12px 0 auto; z-index: 50; pointer-events: none;
  transition: transform .5s var(--ease);
}
.nav__bar {
  pointer-events: auto; display: flex; align-items: center; gap: 12px;
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; height: var(--nav-h);
  padding: 0 10px 0 22px; border-radius: 999px; color: var(--n-fg);
  background: transparent; border: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.is-scrolled .nav__bar {
  background: var(--n-glass); border-color: var(--n-line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, .45);
}
.nav.is-hidden { transform: translateY(calc(-100% - 20px)); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font: 700 19px/1 var(--font-display); letter-spacing: -.03em; }
.nav__mark { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--n-fg); color: var(--n-active-fg); }
.nav__links ul { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--n-pill); border: 1px solid var(--n-line); }
.nav__links a {
  display: block; padding: 9px 16px; border-radius: 999px; text-decoration: none;
  font: 500 14px/1 var(--font-body); letter-spacing: .01em; color: var(--n-fg); opacity: .82;
  transition: background .3s, color .3s, opacity .3s;
}
.nav__links a:hover { opacity: 1; background: var(--n-pill); }
.nav__links a[aria-current="page"] { opacity: 1; background: var(--n-active); color: var(--n-active-fg); }
.nav__cta { margin-left: 6px; --b-bg: var(--paper); --b-fg: var(--navy); --b-dot: var(--navy); --b-dot-fg: var(--paper); --b-wash: var(--blue); }
.nav__toggle {
  display: none; place-items: center; width: 48px; height: 48px; border: 1px solid var(--n-line); border-radius: 50%;
  background: var(--n-pill); color: var(--n-fg); cursor: pointer;
}
.nav__ico { width: 22px; height: 22px; }
.nav__ico--close, .nav.is-open .nav__ico--open { display: none; }
.nav.is-open .nav__ico--close { display: block; }
.nav__sheet {
  pointer-events: auto; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 8px auto 0; padding: 14px;
  border-radius: 28px; background: var(--navy); color: var(--paper); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
  display: grid; gap: 10px; transform-origin: top center; animation: sheet-in .4s var(--ease);
}
.nav__sheet[hidden] { display: none; }
.nav__sheet ul { display: grid; }
.nav__sheet li + li { border-top: 1px solid rgba(255,255,255,.1); }
.nav__sheet a:not(.btn) {
  display: flex; justify-content: space-between; align-items: center; padding: 18px 10px; text-decoration: none;
  font: 300 30px/1.1 var(--font-display); letter-spacing: -.03em;
}
.nav__sheet a[aria-current="page"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.nav__sheet .btn { justify-content: space-between; --b-bg: var(--paper); --b-fg: var(--navy); --b-dot: var(--navy); --b-dot-fg: var(--paper); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .nav__bar { padding: 0 8px 0 18px; }
}

/* ───────── ATG branding footer (shared house block) ─────────
   Portable: set the three --atg-foot-* tokens per site; nothing else changes. */
.atg-foot {
  --atg-foot-fg: var(--paper, #fff);
  --atg-foot-muted: rgba(255, 255, 255, .69);
  --atg-foot-line: var(--faint, rgba(255, 255, 255, .14));
  text-align: center; color: var(--atg-foot-fg);
  border-top: 1px solid var(--atg-foot-line);
  padding: clamp(36px, 6vh, 56px) 16px calc(clamp(28px, 5vh, 44px) + var(--dock-space, 0px));
  transition: padding .5s ease;
}
.atg-foot__copy { margin: 0; font-size: clamp(15px, 1vw + 8px, 18px); font-weight: 500; }
.atg-foot__credit {
  margin: 2.25vh 0 0; font-family: system-ui, sans-serif; font-size: 90%; font-weight: 400;
  text-transform: lowercase; color: #eee;
}
.atg-foot__brand { display: inline-block; margin-left: .14rem; text-transform: lowercase; }
.atg-foot__brand a { color: var(--atg-foot-fg); text-decoration: none; }
.atg-foot__brand a:hover { text-decoration: underline; text-underline-offset: 3px; }
.atg-foot__brand::after {
  /* external-link mark as a masked SVG so it takes the text colour; swap to FA ("\f14c") on sites that load the kit */
  content: ""; display: inline-block; width: .74em; height: .74em; margin-left: .3rem; vertical-align: -.04em;
  background-color: currentColor; opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-8.5 8.5'/%3E%3Cpath d='M19 14.5V19a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 4 19V7a1.5 1.5 0 0 1 1.5-1.5H10'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-8.5 8.5'/%3E%3Cpath d='M19 14.5V19a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 4 19V7a1.5 1.5 0 0 1 1.5-1.5H10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.atg-foot__brand b { font-weight: 700; }
.atg-foot__tag-link { display: inline-block; margin-top: 1.5vh; border-radius: 50%; }
.atg-foot__tag {
  display: inline-block; vertical-align: middle; border-radius: 50%;
  filter: grayscale(100%); transform: scale(1);
  transition: filter 1s ease-in-out, transform 1s ease-in-out;
}
.atg-foot__tag-link:hover .atg-foot__tag,
.atg-foot__tag-link:focus-visible .atg-foot__tag { filter: grayscale(0%); transform: scale(1.25); }
.atg-foot__tag-link:focus-visible { outline: 2px solid var(--atg-foot-fg); outline-offset: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
