/* ==========================================================================
   Base — reset, element defaults, typography, focus
   ALT TEXT CONVENTION (applies site-wide):
   - Photographs of Dr. Kamel describe what he is doing, not "doctor photo".
   - Purely decorative panels use alt="" so screen readers skip them.
   - Placeholder frames say so explicitly, e.g.
     alt="Placeholder — before and after photograph pending patient consent".
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  color: var(--color-heading);
  /* Cormorant defaults to old-style figures, which sit below the baseline and
     read as a typo next to capitals ("3D", "All-on-4"). Force lining figures. */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-normal);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

/* Cormorant has a small x-height and fine hairlines, so smaller headings
   take a little more weight to stay solid. */
h3, h4 { font-weight: 500; letter-spacing: var(--tracking-normal); }

h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
  margin: 0 0 var(--space-4);
  max-width: 68ch;
  text-wrap: pretty;
}

a {
  color: var(--color-accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--color-accent-hover); }

img, svg, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
li { margin-bottom: var(--space-2); }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-7) 0;
}

blockquote { margin: 0; }

/* --- Focus: one consistent ring, never removed -------------------------- */

:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }
/* The standard ring (#1F6FB2) is only 2.6:1 against navy, so dark surfaces
   use the light cyan instead (6.7:1). */
.topbar :focus-visible,
.hero__frame :focus-visible,
.section--dark :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--color-accent-on-dark); }

/* --- Skip link ---------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  background: var(--color-surface-dark);
  color: var(--color-text-on-dark);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top var(--duration-fast) var(--ease-out);
}
.skip-link:focus {
  top: var(--space-4);
  color: var(--color-text-on-dark);
}

/* --- Utilities ---------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.lede {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* Hero headline accent — an italic of the same serif, as in the reference. */
.accent-emphasis {
  font-style: italic;
  font-weight: 300;
  color: var(--color-accent-on-dark);
}

/* Letter-spaced caps label, as used in the reference for section and place
   labels. Used sparingly — for genuine labels, not above every heading. */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-caption);
  margin-bottom: var(--space-4);
}
.section--dark .eyebrow,
.hero__body .eyebrow { color: var(--color-accent-on-dark); }
