/* Shared foundations. Page-specific layout lives in css/brand.css and css/style.css. */
@font-face {
  font-family: "Neo Montserrat";
  src: url("assets/brand/montserrat-black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --neo-night: #202447;
  --neo-blue: #434b97;
  --neo-amber: #f9b233;
  --neo-lilac: #a9add8;
  --neo-paper: #fff;
  --neo-mist: #e7e8f4;
  --neo-line: #c5c8df;
  --neo-light-line: rgb(255 255 255 / 42%);
  --neo-display: "Neo Montserrat", Montserrat, Arial, sans-serif;
  --font-body: Roboto, Arial, sans-serif;
  --content-max: 77.5rem;
  --page-gutter: max(5%, calc((100% - var(--content-max)) / 2));
  --section-space: clamp(2.75rem, 6vw, 6rem);
  --measure: 68ch;
  --radius-pill: 99rem;
  --radius-panel: .75rem;
  --control-size: 2.75rem;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --subheading-size: clamp(1.06rem, 1.5vw, 1.4rem);
  --heading-size: clamp(1.8rem, min(4.2vw, 7svh), 3.65rem);
  --label-size: clamp(.875rem, 1.05vw, 1rem);
  --transition: 220ms ease-out;
}

@media (max-width: 600px) and (orientation: portrait) {
  :root { --heading-size: clamp(1.55rem, 6.8vw, 2.3rem); }
}
@media (orientation: landscape) and (max-height: 540px) {
  :root { --heading-size: clamp(1.45rem, 3.6vw, 2rem); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 clamp(1rem, 1.15vw, 1.125rem)/1.5 var(--font-body);
  background: var(--neo-paper);
  color: var(--neo-night);
}
h1, h2, h3 {
  margin: 0;
  font: 900 1.4rem/1.12 var(--neo-display);
  text-wrap: balance;
}
h1, h2 { letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 7.5vw, 7.25rem); }
h2 { color: var(--neo-blue); font-size: var(--heading-size); }
h3 { font-size: var(--subheading-size); }
p, blockquote, figure { margin: 0; }
p + p { margin-top: .65em; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-underline-offset: .2em; }
:where(a, button, video, [tabindex]):focus-visible {
  outline: 3px solid var(--neo-night);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--neo-paper);
}
::selection { color: var(--neo-night); background: var(--neo-amber); }
[hidden] { display: none !important; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-size);
  padding: .65em 1.35em;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--neo-amber);
  color: var(--neo-night);
  text-decoration: none;
  font-weight: 700;
}
.skip {
  position: absolute;
  z-index: 10;
  top: .5rem;
  left: 1rem;
  padding: .6em 1em;
  transform: translateY(calc(-100% - 1rem));
  color: var(--neo-night);
  background: var(--neo-paper);
}
.skip:focus { transform: none; }
@media (hover: hover) {
  a:hover { text-decoration-thickness: .13em; }
  .cta:hover { background: #ffc65d; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
