/* The Marketing Cartel · base. Element defaults only; consumes tokens.css. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-top) + var(--nav-h) + var(--space-6));
  hanging-punctuation: first last;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: var(--w-body) var(--text-body) / var(--lh-body) var(--font-sans);
  font-synthesis: none;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-sans-heavy);
  font-weight: var(--w-heading);
  letter-spacing: var(--track-heading);
  line-height: var(--lh-tight);
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: var(--track-tight); line-height: var(--lh-snug); }
h4 { font-size: var(--text-h4); letter-spacing: var(--track-tight); line-height: var(--lh-snug); }

p, ul, ol, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }   /* zero specificity: a component's own padding wins */

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }

/* The accent phrase: Newsreader italic, regular weight, same colour as the title, one per title.
   The serif's x-height is ~19% smaller than Archivo's, so it is set 6% larger to sit level with the sans. */
em.acc {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  line-height: 0;
  letter-spacing: -.012em;
  color: inherit;
}

::selection { background: var(--selection); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }
/* after a click the ring stays hidden (theme.js tracks the last input); text fields keep it */
:root[data-input="pointer"] :focus-visible:not(input, textarea, select) { outline: none; }

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

.eyebrow {
  font: var(--w-strong) var(--text-xs) / 1.2 var(--font-sans);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--fg-muted);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
  }
}
