/* Page base for the Hallmark build, on top of the Urbanit design system.
   Colours, fonts, spacing steps and radii are the system's own tokens (tokens.css); this file
   only adds the page scale the system does not define yet (type sizes, section gaps, motion,
   z levels) and the base rules every page shares. Candidates to move into tokens.json. */

:root {
  --text-sm: 0.9375rem;
  --text-md: 1.125rem;
  --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.3125rem);
  --text-title: clamp(1.375rem, 0.75vw + 1rem, 1.625rem);
  --text-section: clamp(2.125rem, 4vw, 3.25rem);
  --text-figure: clamp(1.75rem, 2.4vw + 0.5rem, 2.75rem);

  --section-gap-s: var(--space-11);
  --section-gap: 144px;
  --section-gap-l: 176px;
  --nav-h: 73px;

  --display-weight: 600;
  --tracking-display: -0.01em;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;

  --z-base: 1;
  --z-sticky-nav: 300;

  /* Dark-surface pairs the system leaves to rgba literals in bundle.css */
  --on-band-line: color-mix(in oklab, var(--on-band) 22%, transparent);
  --on-footer-line: color-mix(in oklab, var(--on-footer) 20%, transparent);
  --photo-keyline: color-mix(in oklab, var(--ink) 8%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: var(--space-10); scrollbar-color: var(--ink-muted) var(--surface); }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; caret-color: var(--mauve); }
::selection { background: var(--tint-mauve); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-synthesis: none; letter-spacing: var(--tracking-display); overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; } h2 { max-width: 30ch; } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Picture slots: the owner's own photographs replace the stand-ins without touching the layout */
[data-slot] { position: relative; overflow: hidden; margin: 0; background: var(--tint-cement); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: var(--z-base); }
[data-slot]::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--photo-keyline); pointer-events: none; }

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