/* ==========================================================================
   ADSVIO - BASE
   Fonts, reset, typography, layout primitives, motion baseline.
   ========================================================================== */

/* ---- Self-hosted fonts (no CDN: no render-blocking round trip, no GDPR
        question). Both faces are SIL Open Font License 1.1. ---------------- */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
                 U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
                 U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
                 U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
                 U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sticky header clearance for in-page anchors */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}
button { background: none; border: 0; padding: 0; cursor: pointer; }

/* ---- Typography --------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-heading);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: 800;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; }

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  line-height: 1.55;
  text-wrap: pretty;
}

p { text-wrap: pretty; }

/* Measure - capped at ~68 characters */
.measure     { max-width: 68ch; }
.measure-tight { max-width: 54ch; }

/* Utility type - eyebrows, labels, data captions */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-util);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-util);
  color: var(--ink-soft);
  line-height: 1.4;
  margin: 0 0 var(--s-3);
}
.eyebrow--mango { color: var(--mango-press); }  /* 13px - needs the darkest step */
.eyebrow--dark  { color: var(--on-dark-soft); }

.small { font-size: var(--fs-small); }
.soft  { color: var(--ink-soft); }

a { color: var(--mango-press); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mango-ink); }

/* --sun is a highlighter: it underlines a word. Nothing more. */
.mark {
  background-image: linear-gradient(var(--sun), var(--sun));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.22em;
  padding: 0 0.06em;
}
.mark--mango { background-image: linear-gradient(var(--mango), var(--mango)); }

/* ---- Focus - visible on every interactive element ----------------------- */

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--mango);
  outline-offset: 2px;
  border-radius: 3px;
}
.on-dark :focus-visible,
.footer :focus-visible { outline-color: var(--sun); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: calc(var(--z-modal) + 1);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: var(--r-btn);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: top var(--dur-hover) var(--ease);
}
.skip-link:focus-visible { top: 12px; color: var(--paper); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- Layout ------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--deep  { background: var(--paper-deep); }
.section--dark  { background: var(--teal-deep); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark .lead { color: var(--on-dark-soft); }

/* Section heading block */
.section-head { margin-bottom: var(--s-6); }
.section-head .lead { margin-top: var(--s-3); }

.grid { display: grid; gap: var(--s-3); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.stack-4 > * + * { margin-top: var(--s-4); }
.stack-3 > * + * { margin-top: var(--s-3); }
.stack-2 > * + * { margin-top: var(--s-2); }

.hairline { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---- [hidden] must actually hide -----------------------------------------
   The UA rule [hidden]{display:none} loses to any author rule that sets a
   display, so a component styled `display:flex` stays visible - and stays in
   the tab order - with the attribute on. The whole offer flow toggles
   `hidden`, so this is stated once, globally, rather than per component. */
[hidden] { display: none !important; }

/* ---- Scroll reveal ------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity   var(--dur-reveal) var(--ease),
    transform var(--dur-reveal) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* No-JS: never leave content invisible */
.no-js .reveal { opacity: 1; transform: none; }

/* ---- Reduced motion - everything off ------------------------------------ */

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