/* Auromone marketing base layer: reset, type styles, grounds, grid, grain.
   Consumes ds/tokens.css. Loads no fonts: pages load /assets/fonts/fonts.css, kits inline their @font-face. */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
img, svg, video { max-width: 100%; }

/* Ground locals: day by default, so components work with no ground class. Beyond colour they carry the primary button
   (sanguine + white; inverted on deep) and the chart band and axis (dark variants on night and deep).
   --au-g-accent is brand red as a graphic (bars, segments, dots, display numerals): red-500, stepping to red-200 on deep so it
   never sits red on red; --au-g-on-accent is a line icon drawn on it. --au-g-link is an inline text link (underlined): the foundation's
   link role, --au-text-link (red-600), on day; red-700 on shell, the AA step-down (red-600 on neutral-100 is 4.20:1); red-400 on
   night; bone on deep. --au-c-band-outer / -inner are the chart's two percentile ribbons (outer 80%, inner 50%) and --au-c-band-edge
   their hairline edge, light on day and shell, dark on night and deep. */
:root {
  --au-g-bg: var(--au-ground-day-bg);
  --au-g-text: var(--au-ground-day-text);
  --au-g-text-2: var(--au-ground-day-text-2);
  --au-g-hairline: var(--au-ground-day-hairline);
  --au-g-raised: var(--au-ground-day-raised);
  --au-g-primary-bg: var(--au-color-red-700);
  --au-g-primary-fg: var(--au-color-white);
  --au-g-primary-hover: var(--au-color-red-800);
  --au-c-band: var(--au-chart-band);
  --au-c-axis: var(--au-chart-axis);
  --au-c-band-outer: var(--au-chart-band-outer);
  --au-c-band-inner: var(--au-chart-band-inner);
  --au-c-band-edge: var(--au-chart-band-edge);
  --au-g-mark: var(--au-color-red-700);
  --au-g-accent: var(--au-color-red-500);
  --au-g-on-accent: var(--au-color-white);
  --au-g-link: var(--au-text-link);
}
body {
  background: var(--au-g-bg);
  color: var(--au-g-text);
  font-family: var(--au-type-body-family);
  font-size: var(--au-type-body-size);
  line-height: var(--au-type-body-line);
  letter-spacing: var(--au-type-body-track);
  font-weight: var(--au-type-body-weight);
  font-feature-settings: var(--au-type-body-features);
}

/* Type styles */
.au-t-display-2xl {
  font-family: var(--au-type-display-2xl-family);
  font-size: var(--au-type-display-2xl-size);
  line-height: var(--au-type-display-2xl-line);
  letter-spacing: var(--au-type-display-2xl-track);
  font-weight: var(--au-type-display-2xl-weight);
  font-feature-settings: var(--au-type-display-2xl-features);
}
.au-t-display-xl {
  font-family: var(--au-type-display-xl-family);
  font-size: var(--au-type-display-xl-size);
  line-height: var(--au-type-display-xl-line);
  letter-spacing: var(--au-type-display-xl-track);
  font-weight: var(--au-type-display-xl-weight);
  font-feature-settings: var(--au-type-display-xl-features);
}
.au-t-display-l {
  font-family: var(--au-type-display-l-family);
  font-size: var(--au-type-display-l-size);
  line-height: var(--au-type-display-l-line);
  letter-spacing: var(--au-type-display-l-track);
  font-weight: var(--au-type-display-l-weight);
  font-feature-settings: var(--au-type-display-l-features);
}
.au-t-headline {
  font-family: var(--au-type-headline-family);
  font-size: var(--au-type-headline-size);
  line-height: var(--au-type-headline-line);
  letter-spacing: var(--au-type-headline-track);
  font-weight: var(--au-type-headline-weight);
  font-feature-settings: var(--au-type-headline-features);
}
.au-t-title {
  font-family: var(--au-type-title-family);
  font-size: var(--au-type-title-size);
  line-height: var(--au-type-title-line);
  letter-spacing: var(--au-type-title-track);
  font-weight: var(--au-type-title-weight);
  font-feature-settings: var(--au-type-title-features);
}
.au-t-body-l {
  font-family: var(--au-type-body-l-family);
  font-size: var(--au-type-body-l-size);
  line-height: var(--au-type-body-l-line);
  letter-spacing: var(--au-type-body-l-track);
  font-weight: var(--au-type-body-l-weight);
  font-feature-settings: var(--au-type-body-l-features);
}
.au-t-body {
  font-family: var(--au-type-body-family);
  font-size: var(--au-type-body-size);
  line-height: var(--au-type-body-line);
  letter-spacing: var(--au-type-body-track);
  font-weight: var(--au-type-body-weight);
  font-feature-settings: var(--au-type-body-features);
}
.au-t-body-s {
  font-family: var(--au-type-body-s-family);
  font-size: var(--au-type-body-s-size);
  line-height: var(--au-type-body-s-line);
  letter-spacing: var(--au-type-body-s-track);
  font-weight: var(--au-type-body-s-weight);
  font-feature-settings: var(--au-type-body-s-features);
}
.au-t-caption {
  font-family: var(--au-type-caption-family);
  font-size: var(--au-type-caption-size);
  line-height: var(--au-type-caption-line);
  letter-spacing: var(--au-type-caption-track);
  font-weight: var(--au-type-caption-weight);
  font-feature-settings: var(--au-type-caption-features);
}
.au-t-button {
  font-family: var(--au-type-button-family);
  font-size: var(--au-type-button-size);
  line-height: var(--au-type-button-line);
  letter-spacing: var(--au-type-button-track);
  font-weight: var(--au-type-button-weight);
  font-feature-settings: var(--au-type-button-features);
}
.au-t-label {
  font-family: var(--au-type-label-family);
  font-size: var(--au-type-label-size);
  line-height: var(--au-type-label-line);
  letter-spacing: var(--au-type-label-track);
  font-weight: var(--au-type-label-weight);
  font-feature-settings: var(--au-type-label-features);
}
.au-t-eyebrow {
  font-family: var(--au-type-eyebrow-family);
  font-size: var(--au-type-eyebrow-size);
  line-height: var(--au-type-eyebrow-line);
  letter-spacing: var(--au-type-eyebrow-track);
  font-weight: var(--au-type-eyebrow-weight);
  text-transform: uppercase;
  font-feature-settings: var(--au-type-eyebrow-features);
}
.au-t-numeral-xl {
  font-family: var(--au-type-numeral-xl-family);
  font-size: var(--au-type-numeral-xl-size);
  line-height: var(--au-type-numeral-xl-line);
  letter-spacing: var(--au-type-numeral-xl-track);
  font-weight: var(--au-type-numeral-xl-weight);
  font-feature-settings: var(--au-type-numeral-xl-features);
}
.au-t-numeral-l {
  font-family: var(--au-type-numeral-l-family);
  font-size: var(--au-type-numeral-l-size);
  line-height: var(--au-type-numeral-l-line);
  letter-spacing: var(--au-type-numeral-l-track);
  font-weight: var(--au-type-numeral-l-weight);
  font-feature-settings: var(--au-type-numeral-l-features);
}
.au-t-numeral-m {
  font-family: var(--au-type-numeral-m-family);
  font-size: var(--au-type-numeral-m-size);
  line-height: var(--au-type-numeral-m-line);
  letter-spacing: var(--au-type-numeral-m-track);
  font-weight: var(--au-type-numeral-m-weight);
  font-feature-settings: var(--au-type-numeral-m-features);
}
.au-t-numeral-s {
  font-family: var(--au-type-numeral-s-family);
  font-size: var(--au-type-numeral-s-size);
  line-height: var(--au-type-numeral-s-line);
  letter-spacing: var(--au-type-numeral-s-track);
  font-weight: var(--au-type-numeral-s-weight);
  font-feature-settings: var(--au-type-numeral-s-features);
}

/* Grounds */
.au-g-day {
  --au-g-bg: var(--au-ground-day-bg);
  --au-g-text: var(--au-ground-day-text);
  --au-g-text-2: var(--au-ground-day-text-2);
  --au-g-hairline: var(--au-ground-day-hairline);
  --au-g-raised: var(--au-ground-day-raised);
  --au-g-primary-bg: var(--au-color-red-700);
  --au-g-primary-fg: var(--au-color-white);
  --au-g-primary-hover: var(--au-color-red-800);
  --au-c-band: var(--au-chart-band);
  --au-c-axis: var(--au-chart-axis);
  --au-c-band-outer: var(--au-chart-band-outer);
  --au-c-band-inner: var(--au-chart-band-inner);
  --au-c-band-edge: var(--au-chart-band-edge);
  --au-g-mark: var(--au-color-red-700);
  --au-g-accent: var(--au-color-red-500);
  --au-g-on-accent: var(--au-color-white);
  --au-g-link: var(--au-text-link);
  background: var(--au-ground-day-bg);
  color: var(--au-ground-day-text);
}
.au-g-shell {
  --au-g-bg: var(--au-ground-shell-bg);
  --au-g-text: var(--au-ground-shell-text);
  --au-g-text-2: var(--au-ground-shell-text-2);
  --au-g-hairline: var(--au-ground-shell-hairline);
  --au-g-raised: var(--au-ground-shell-raised);
  --au-g-primary-bg: var(--au-color-red-700);
  --au-g-primary-fg: var(--au-color-white);
  --au-g-primary-hover: var(--au-color-red-800);
  --au-c-band: var(--au-chart-band);
  --au-c-axis: var(--au-chart-axis);
  --au-c-band-outer: var(--au-chart-band-outer);
  --au-c-band-inner: var(--au-chart-band-inner);
  --au-c-band-edge: var(--au-chart-band-edge);
  --au-g-mark: var(--au-color-red-700);
  --au-g-accent: var(--au-color-red-500);
  --au-g-on-accent: var(--au-color-white);
  --au-g-link: var(--au-color-red-700);
  background: var(--au-ground-shell-bg);
  color: var(--au-ground-shell-text);
}
.au-g-night {
  --au-g-bg: var(--au-ground-night-bg);
  --au-g-text: var(--au-ground-night-text);
  --au-g-text-2: var(--au-ground-night-text-2);
  --au-g-hairline: var(--au-ground-night-hairline);
  --au-g-raised: var(--au-ground-night-raised);
  --au-g-primary-bg: var(--au-color-red-700);
  --au-g-primary-fg: var(--au-color-white);
  --au-g-primary-hover: var(--au-color-red-800);
  --au-c-band: var(--au-chart-band-dark);
  --au-c-axis: var(--au-chart-axis-dark);
  --au-c-band-outer: var(--au-chart-band-outer-dark);
  --au-c-band-inner: var(--au-chart-band-inner-dark);
  --au-c-band-edge: var(--au-chart-band-edge-dark);
  --au-g-mark: var(--au-color-red-500);
  --au-g-accent: var(--au-color-red-500);
  --au-g-on-accent: var(--au-color-white);
  --au-g-link: var(--au-color-red-400);
  background: var(--au-ground-night-bg);
  color: var(--au-ground-night-text);
}
.au-g-deep {
  --au-g-bg: var(--au-ground-deep-bg);
  --au-g-text: var(--au-ground-deep-text);
  --au-g-text-2: var(--au-ground-deep-text-2);
  --au-g-hairline: var(--au-ground-deep-hairline);
  --au-g-raised: var(--au-ground-deep-raised);
  --au-g-primary-bg: var(--au-color-neutral-50);
  --au-g-primary-fg: var(--au-color-red-700);
  --au-g-primary-hover: var(--au-color-neutral-100);
  --au-c-band: var(--au-chart-band-dark);
  --au-c-axis: var(--au-chart-axis-dark);
  --au-c-band-outer: var(--au-chart-band-outer-dark);
  --au-c-band-inner: var(--au-chart-band-inner-dark);
  --au-c-band-edge: var(--au-chart-band-edge-dark);
  --au-g-mark: var(--au-color-red-200);
  --au-g-accent: var(--au-color-red-200);
  --au-g-on-accent: var(--au-color-red-950);
  --au-g-link: var(--au-color-neutral-50);
  background: var(--au-ground-deep-bg);
  background-image: var(--au-ground-deep-gradient);
  color: var(--au-ground-deep-text);
}

/* Grain: a noise overlay above the ground, under the copy (children sit above it). */
.au-grain { position: relative; isolation: isolate; }
.au-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--au-grain-opacity);
  mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
}
.au-grain > * { position: relative; z-index: 1; }

/* Layout */
.au-container {
  width: 100%;
  max-width: var(--au-layout-max);
  margin-inline: auto;
  padding-inline: var(--au-layout-margin);
}
.au-grid {
  display: grid;
  grid-template-columns: repeat(var(--au-layout-columns), minmax(0, 1fr));
  column-gap: var(--au-layout-gutter);
}
.au-section {
  padding-block: var(--au-layout-section);
}

/* Website pages only (kits never render these): the breadcrumb build.mjs writes with fixed class names (renderCrumb:
   <nav class="crumb ac-crumb">; chrome.css only resets its list), and links build.mjs parks until their page is released
   (data-pending-url, shown as plain text). site.css used to carry both; pages on the system load base.css instead. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html { -webkit-text-size-adjust: 100%; }
.crumb {
  max-width: var(--au-layout-max);
  margin-inline: auto;
  padding: var(--au-space-6) var(--au-layout-margin) 0;
  color: var(--au-g-text-2);
  font-family: var(--au-type-caption-family);
  font-size: var(--au-type-caption-size);
  line-height: var(--au-type-caption-line);
  letter-spacing: var(--au-type-caption-track);
  font-weight: var(--au-type-caption-weight);
  font-feature-settings: var(--au-type-caption-features);
}
.crumb a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
.crumb a:focus-visible { outline: 2px solid var(--au-g-text); outline-offset: 2px; }
@media (hover: hover) {
  .crumb a:hover { color: var(--au-g-text); text-decoration: underline; }
}
.crumb i { margin: 0 var(--au-space-2); font-style: normal; }
.crumb [aria-current="page"] { color: var(--au-g-text); }
a[data-pending-url] { color: inherit; text-decoration: none; cursor: default; }
