/* ───────────────────────────────────────────────────────────────
   DeftBid — Marketing Landing Page ("Ink" direction)
   B1 · Page scaffold & container — global resets, layout container,
        section rhythm. Load after fonts.css + tokens.css.
   ─────────────────────────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans, 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
  background: var(--paper, #EEF1F5);
  color: var(--ink, #14171C);
  line-height: var(--leading-body, 1.5);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;              /* the page body must never scroll horizontally */
}

/* Balanced, tidy wrapping on long text. */
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

img, svg, video { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ── Layout container: centered, max 1180, 28px gutters ───────── */
.container {
  width: 100%;
  max-width: calc(var(--container-max, 1180px) + var(--gutter, 28px) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter, 28px);
}

/* ── Section vertical rhythm ──────────────────────────────────── */
.section { padding-block: var(--section-pad, clamp(64px, 8vw, 104px)); }

/* Dark bands need position/overflow context for the A6 textures. */
.band-dark {
  position: relative;
  overflow: hidden;
  background: var(--ink-hero, #0E1014);
  color: #fff;
}
.band-light { background: var(--paper, #EEF1F5); }
.band-white { background: var(--card, #FFFFFF); }

/* Content above decorative textures. */
.layer { position: relative; z-index: 1; }

/* Visually-hidden (skip link, a11y labels). */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: #fff; color: var(--ink, #14171C); padding: 10px 16px;
  border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

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