/* HIMG Medical — base: reset, typography, layout helpers */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration-color: rgba(6, 86, 84, .35); text-underline-offset: 4px; }
a:hover { color: var(--walnut); text-decoration-color: currentColor; }

p { margin: 0 0 1em; max-width: 68ch; }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.12; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; }
h4 { font-family: var(--font); font-weight: 600; font-size: 1.0625rem; }
/* Playfair defaults to old-style digits; phone numbers, addresses and figures read better as lining numerals */
h1, h2, h3, .trust-item b, .visit dd, .cm-value, .steps li::before { font-variant-numeric: lining-nums; }

ul[role="list"] { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  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: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--ivory); padding: 10px 16px; border-radius: var(--radius-s);
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--ivory); }

/* focus: brand on light backgrounds, champagne on brand ones */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
.on-brand :focus-visible, .site-header :focus-visible, .hero :focus-visible,
.section.deep :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--champagne); }

.muted { color: var(--muted); }
.center { text-align: center; }
