:root {
    color-scheme: light;
    --color-primary: #2386C6;
    --color-primary-hover: #17618F;
    --color-primary-dark: #17618F;
    --color-primary-light: #EAF4FA;
    --color-accent: #C73B01;
    --color-accent-hover: #A73101;
    --color-accent-light: #FFF0E8;
    --color-accent-strong: var(--color-primary-dark);
    --color-text: #172E3E;
    --color-text-muted: #52636D;
    --color-background: #FFFFFF;
    --color-background-soft: #FAF8F4;
    --color-border: #DFE5E6;
    --color-footer: #172E3E;
    --color-footer-text: #CCD9E1;
    --color-bg: var(--color-background-soft);
    --color-surface: var(--color-background);
    --color-ink: var(--color-text);
    --color-muted: var(--color-text-muted);
    --color-line: var(--color-border);
    --color-focus: var(--color-primary-dark);
    --color-debug-bg: var(--color-accent-light);
    --color-debug-line: #E7CFC1;
    --font-heading: "DM Serif Display", Georgia, "Times New Roman", serif;
    --font-body: Inter, "Segoe UI", Arial, sans-serif;
    --font-sans: var(--font-body);
    --text-h1: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
    --text-h2: clamp(1.5rem, 1.2rem + .95vw, 2rem);
    --text-h3: clamp(1.1875rem, 1.05rem + .45vw, 1.4375rem);
    --text-h4: clamp(1.125rem, 1.075rem + .2vw, 1.25rem);
    --text-card: var(--text-h3);
    --text-form-title: clamp(1.375rem, 1.2rem + .6vw, 1.625rem);
    --text-h5: 1.125rem;
    --text-h6: 1.0625rem;
    --text-body: 1rem;
    --text-nav: .875rem;
    --text-button: .875rem;
    --text-label: .875rem;
    --text-small: .8125rem;
    --text-clinic-name: clamp(.9375rem, .9rem + .15vw, 1rem);
    --leading-heading: 1.18;
    --leading-body: 1.75;
    --tracking-heading: -.025em;
    --weight-heading: 400;
    --weight-ui: 600;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;
    --section-space: clamp(3rem, 5vw, 4.5rem);
    --hero-space: clamp(2.5rem, 5vw, 4.25rem);
    --gutter: clamp(2rem, 7vw, 6rem);
    --radius: 1.25rem;
    --shadow: 0 16px 48px rgb(23 46 62 / .08);
    --max: 76rem;
    --header-height: 5.75rem;
    --scroll-offset: calc(var(--header-height) + 1rem);
    --ease: cubic-bezier(.22, 1, .36, 1);
}
@font-face {
    font-family: "DM Serif Display";
    src: url("../fonts/dm-serif-display-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Inter;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font: 400 var(--text-body) / var(--leading-body) var(--font-body);
    color: var(--color-ink);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-heading);
    letter-spacing: var(--tracking-heading);
    line-height: var(--leading-heading);
    text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: 1.12; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }
h5 { font-size: var(--text-h5); }
h6 { font-size: var(--text-h6); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
label { font-size: var(--text-label); font-weight: var(--weight-ui); }
::placeholder { color: var(--color-muted); opacity: 1; }
::selection { background: var(--color-primary-light); color: var(--color-ink); }
p + p { margin-top: .75rem; }
a { color: var(--color-primary-dark); text-underline-offset: .22em; }
a:hover { color: var(--color-accent); }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.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;
}
[id] { scroll-margin-top: var(--scroll-offset); }
@media (prefers-reduced-motion: no-preference) {
    [data-reveal] { transition: opacity .65s var(--ease), transform .65s var(--ease); }
    .motion-ready [data-reveal]:not(.is-revealed) { opacity: 0; transform: translateY(20px); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}
