/* ==========================================================================
   base.css — shared foundation for the New Bets marketing one-pagers.

   Source of truth lives at shared/base.css. `node tools/build.mjs` copies it
   into waddle/assets/ and stylesketch/assets/ so each site folder stays
   independently deployable. Edit the shared copy, never the generated ones.

   Nothing brand-specific belongs here. Each site sets its own tokens and
   type in its own styles.css.
   ========================================================================== */

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  /* Anchor jumps from the nav shouldn't tuck section headings under the
     sticky header. */
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button, input {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; border: 0; background: none; }

a { color: inherit; }

ul { list-style: none; }

h1, h2, h3 { line-height: 1.15; text-wrap: balance; }

p { text-wrap: pretty; }

/* ---- accessibility ---- */

/* Visible focus for keyboard users only — the sites are dense with links and
   a permanent ring on mouse click reads as a rendering bug. */
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.5rem; }

/* Screen-reader-only, still focusable. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

/* ---- layout primitives ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw, 1080px);
  margin-inline: auto;
  padding-inline: var(--gutter, 20px);
}

.section { padding-block: var(--section-y, 72px); }

.stack > * + * { margin-top: var(--stack, 1rem); }

.center { text-align: center; }

.js-reveal { opacity: 1; transform: none; }
.js-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal { opacity: 1; transform: none; }
}
