/* Hallmark · base layer: the Floor decisions, shared by every page · theme: brand (Coral dealt 1/3) · v2.0.0 */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scrollbar-color: var(--dim2) var(--bg); }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: var(--text-md, 16px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: var(--focus-ring); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: var(--fw-display, 700);
  letter-spacing: var(--tracking-display, -0.03em);
  line-height: 1.06;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-display); max-width: 21ch; }
h2 { font-size: var(--text-section); max-width: 30ch; }
h3 { font-size: var(--text-title); line-height: 1.22; max-width: 40ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
.lead { font-size: var(--text-lead); line-height: 1.5; color: var(--dim); max-width: 52ch; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 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;
  }
}
