@font-face {
  font-family: Montserrat;
  src: url('/Montserrat-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url('/Montserrat-Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url('/Montserrat-SemiBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Montserrat, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --mineral: #f2eadf;
  --paper: #fffdfc;
  --wine: #461a27;
  --wine-deep: #2c0f18;
  --rose: #d7a29a;
  --ink: #241e20;
  --muted: #62575a;
  --line: rgba(70, 26, 39, 0.14);
  background: var(--mineral);
  color: var(--ink);
}

* { box-sizing: border-box; }

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  isolation: isolate;
  background: var(--mineral);
}

body::before {
  position: fixed;
  z-index: -2;
  inset: -24px;
  background: url('/clinic-background.webp') center / cover no-repeat;
  content: '';
  filter: blur(22px);
  transform: scale(1.04);
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: rgba(242, 234, 223, 0.62);
  content: '';
}

a { color: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #7b3145;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--wine);
  color: var(--paper);
  font-weight: 600;
}

.skip-link:focus { transform: translateY(0); }

.page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 24px;
}

.link-card {
  width: min(100%, 448px);
  padding: 38px 38px 30px;
  border: 1px solid rgba(70, 26, 39, 0.08);
  border-radius: 24px;
  background: rgba(255, 253, 252, 0.94);
  box-shadow: 0 24px 80px rgba(54, 23, 31, 0.11), 0 2px 8px rgba(54, 23, 31, 0.04);
  text-align: center;
}

.profile-photo {
  display: block;
  width: 132px;
  height: 132px;
  margin: 0 auto 16px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(44, 15, 24, 0.16);
  object-fit: cover;
  object-position: center 40%;
}

.brand-lockup { display: flex; flex-direction: column; align-items: center; }

.brand-lockup img { display: block; width: 166px; height: auto; }

.brand-rule { width: 36px; height: 1px; margin-top: 7px; background: var(--rose); }

.brand-signature {
  margin: 9px 0 0;
  color: var(--wine);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.96rem;
  font-style: italic;
  letter-spacing: 0.01em;
}

.eyebrow {
  margin: 20px 0 13px;
  color: #654854;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.6;
  text-transform: uppercase;
}

h1 {
  margin: 0 auto 8px;
  color: var(--wine-deep);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.02rem, 4.2vw, 1.22rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.3;
  white-space: nowrap;
}

.intro {
  max-width: 330px;
  margin: 15px auto 25px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.official-links { display: grid; gap: 11px; }

.link-button {
  position: relative;
  display: flex;
  min-height: 68px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 13px 52px 13px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--wine);
  text-align: left;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.link-button:hover {
  transform: translateY(-1px);
  border-color: rgba(70, 26, 39, 0.42);
  background: #fbf5f3;
}

.link-button > span:first-child { font-size: 0.88rem; font-weight: 600; line-height: 1.4; }

.link-detail { margin-top: 3px; color: var(--muted); font-size: 0.7rem; line-height: 1.4; }

.arrow { position: absolute; top: 50%; right: 18px; transform: translateY(-50%); color: #754454; font-size: 1.1rem; }

.link-button--primary {
  min-height: 76px;
  border-color: var(--wine);
  background: var(--wine);
  color: var(--paper);
}

.link-button--primary:hover { border-color: var(--wine-deep); background: var(--wine-deep); }
.link-button--primary .link-detail, .link-button--primary .arrow { color: #f7e9e7; }

.location {
  margin-top: 25px;
  text-align: left;
}

.location-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.location h2 {
  margin: 0;
  color: var(--wine-deep);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.16rem;
  font-weight: 400;
}

.directions-link {
  flex: 0 0 auto;
  color: var(--wine);
  font-size: 0.72rem;
  font-weight: 600;
  text-underline-offset: 3px;
}

.map-frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eee7df;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.medical-note {
  margin: 23px 4px 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

.page-footer {
  display: flex;
  width: min(100%, 700px);
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 20px;
  color: #62575a;
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
}

.page-footer button {
  border: 0;
  background: transparent;
  color: var(--wine);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.consent-panel:not([hidden]) {
  position: fixed;
  z-index: 10;
  inset: auto 0 0;
  display: block;
  max-height: 90vh;
  overflow: auto;
  padding: 8px;
  background: rgba(44, 15, 24, 0.3);
}

.consent-inner {
  max-width: 520px;
  margin: auto;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 12px 38px rgba(44, 15, 24, 0.2);
  text-align: left;
}

.consent-inner h2 { margin: 0 0 5px; color: var(--wine); font-family: Georgia, 'Times New Roman', serif; font-size: 1rem; }
.consent-inner p { margin: 0; color: var(--ink); font-size: 0.72rem; line-height: 1.45; }
.privacy-card h2 { margin: 0 0 10px; color: var(--wine); font-family: Georgia, 'Times New Roman', serif; font-size: 1.2rem; }
.privacy-card p { color: var(--ink); font-size: 0.83rem; line-height: 1.6; }
.consent-options, .consent-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 9px; }
.consent-options label { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; }
.consent-options input { width: 17px; height: 17px; accent-color: var(--wine); }
.consent-actions button { min-height: 36px; padding: 6px 11px; border: 1px solid var(--wine); border-radius: 7px; background: var(--paper); color: var(--wine); font: inherit; font-size: 0.7rem; cursor: pointer; }
.consent-actions button:last-child { background: var(--wine); color: var(--paper); }
.privacy-card { text-align: left; }
.privacy-card h1 { margin: 20px 0; white-space: normal; }
.privacy-card h2 { margin-top: 22px; }

@media (max-width: 480px) {
  .page-shell { justify-content: flex-start; padding: 28px 15px 20px; }
  .link-card { padding: 31px 21px 25px; border-radius: 20px; }
  .profile-photo { width: 120px; height: 120px; margin-bottom: 16px; }
  .eyebrow { margin-top: 26px; font-size: 0.62rem; letter-spacing: 0.085em; }
  h1 { font-size: 1.02rem; }
  .intro { max-width: 290px; font-size: 0.84rem; }
  .page-footer { margin-top: 16px; font-size: 0.64rem; }
}

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