/* BLOOM DATES · base styles (R1a). Needs tokens.css (+ fonts.css). Mobile first; body and every control at 16 px. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text);
  font: var(--t-body);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  font-variant-numeric: lining-nums;
}
input, select, textarea, button { font: inherit; font-size: 16px; color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1 { font: var(--t-h1); letter-spacing: var(--tracking-display); }
h2 { font: var(--t-h2); letter-spacing: var(--tracking-display); }
h3 { font: var(--t-h3); }
/* Atelier signature: the second half of a display title in wine italic. */
h1 em, h2 em, .bd-display em { font-style: italic; color: var(--c-accent); }
p { max-width: 68ch; }
a { color: var(--c-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--c-accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
/* Titles that scripts focus (tabindex="-1": confirmation, result and error titles) show the ring only after keyboard
   use; <html data-bd-pointer> marks pointer use (components.js trackInputModality, public-form.js). */
[data-bd-pointer] [tabindex="-1"]:focus { outline: none; }
::selection { background: var(--c-accent-tint); color: var(--c-text); }
[hidden] { display: none; }

.bd-display { font: var(--t-display); letter-spacing: var(--tracking-display); }
.bd-eyebrow { font: var(--t-caption); letter-spacing: var(--tracking-caption); text-transform: uppercase; color: var(--c-text-muted); }
.bd-muted { color: var(--c-text-muted); }
.bd-small { font: var(--t-small); }
.bd-num { font-variant-numeric: tabular-nums lining-nums; }
.bd-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;
}
.bd-skip-link {
  position: absolute; left: var(--s-2); top: -100px; z-index: 100;
  padding: var(--s-3) var(--s-4); background: var(--c-surface); color: var(--c-accent); font-weight: 600;
}
.bd-skip-link:focus { top: var(--s-2); }

/* Components only declare transitions under (prefers-reduced-motion: no-preference). This backstop removes any other
   transition; it must not set transition-duration alone, which would animate `all` properties on every element. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms; animation-iteration-count: 1; transition: none; scroll-behavior: auto; }
}
