:root {
  --navy: #0B2B50;
  --slate: #6A8BA3;
  --slate-text: #3d5a72;
  --paper: #FAFBFD;
  --line: rgba(106, 139, 163, 0.4);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.6;
  background: var(--paper);
}

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

.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;
}

a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.sheet {
  width: min(1080px, calc(100% - 48px));
  margin: clamp(20px, 4vh, 48px) auto 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(11, 43, 80, 0.04), 0 24px 48px -28px rgba(11, 43, 80, 0.38);
  padding: clamp(28px, 4vw, 52px) clamp(22px, 4.5vw, 60px) clamp(32px, 4vw, 52px);
}

.site-header {
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.logo { width: min(268px, 78%); height: auto; }

.layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  grid-template-areas:
    "portrait intro"
    "portrait story"
    "registration registration";
  column-gap: 56px;
  row-gap: 8px;
  align-items: start;
}

.portrait {
  grid-area: portrait;
  margin: 4px 0 0;
  width: 100%;
  max-width: 300px;
  padding: 0 16px 16px 0;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 2px;
  box-shadow: 14px 14px 0 0 rgba(106, 139, 163, 0.38);
}

.intro { grid-area: intro; min-width: 0; }
.story { grid-area: story; min-width: 0; padding-top: 4px; }

.registration {
  grid-area: registration;
  min-width: 0;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.registration h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  line-height: 1.2;
  color: var(--navy);
}

.registration__lead {
  margin: 0 0 16px;
  max-width: 42em;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
}

.registration__frame {
  display: block;
  width: 100%;
  height: 1680px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.registration__fallback {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.registration__fallback a {
  color: var(--navy);
  font-weight: 600;
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--navy);
}

h1 .amp {
  font-style: italic;
  font-weight: 400;
}

.status {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 11px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.physician {
  margin: 18px 0 0;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--navy);
}

.physician__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.28rem;
}

.tagline {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.4;
  text-wrap: balance;
  color: var(--navy);
}

.tagline em { font-style: italic; font-weight: 400; }

.note {
  margin: 14px 0 0;
  max-width: 40em;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--navy);
  text-wrap: pretty;
}

.badge {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  max-width: 100%;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.badge img { width: 84px; height: auto; }

.badge span {
  border-bottom: 1px solid var(--slate);
  padding-bottom: 2px;
}

.badge:hover span { border-color: var(--navy); }

.site-footer {
  margin-top: auto;
  padding: 20px 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate-text);
}

.site-footer p { margin: 0; }

.mark { width: 16px; height: auto; opacity: 0.8; }

@media (max-width: 900px) {
  .sheet { width: min(640px, calc(100% - 32px)); }

  .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "portrait"
      "story"
      "registration";
    row-gap: 26px;
  }

  .portrait { max-width: 250px; margin-top: 0; }

  h1 { max-width: 18ch; font-size: clamp(1.85rem, 7.4vw, 2.45rem); }

  .story { padding-top: 0; }

  .registration { margin-top: 8px; }
  .registration__frame { height: 1960px; }
}

@media (max-width: 420px) {
  .sheet {
    width: calc(100% - 20px);
    padding: 22px 16px 26px;
    border-radius: 8px;
  }

  .logo { width: min(220px, 86%); }

  .site-header { margin-bottom: 22px; padding-bottom: 16px; }

  .status { font-size: 0.92rem; }

  .badge { align-items: flex-start; }
}

@media (forced-colors: active) {
  .status,
  .sheet { border: 1px solid CanvasText; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
