/* donaldneff.com — prestige editorial design system
   Shared by index.html and future /procedures/ pages. */

:root {
  --paper: #FDFCFA;
  --ink: #16151A;
  --ink-soft: #55524C;
  --ink-faint: #8B8780;
  --burgundy: #7A1F2B;
  --burgundy-dark: #5E1620;
  --charcoal: #26242B;
  --charcoal-deep: #1C1B20;
  --charcoal-text: #B9B5BE;
  --hairline: #E4E0D6;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 18px; font-size: 15px;
}
.skip-link:focus { left: 0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ── Type ───────────────────────────────────────────── */

.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 18px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }

.display {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

.lede { font-size: 20px; color: var(--ink-soft); max-width: 38em; }

.accent { color: var(--burgundy); }

.section-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--burgundy);
  display: block;
  margin-bottom: 6px;
}

/* ── Buttons ────────────────────────────────────────── */

.btn, .btn-ghost {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--burgundy);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn { background: var(--burgundy); color: var(--paper); }
.btn:hover { background: var(--burgundy-dark); border-color: var(--burgundy-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

/* ── Nav ────────────────────────────────────────────── */

#site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 0.3s ease;
}
#site-nav.scrolled { box-shadow: 0 1px 18px rgba(22, 21, 26, 0.08); }

.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 28px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.nav-name {
  font-family: var(--serif); font-size: 19px; color: var(--ink); white-space: nowrap;
}
.nav-name:hover { text-decoration: none; }
.nav-name .accent { font-size: 15px; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-soft);
}
.nav-links a:not(.btn):hover { color: var(--burgundy); text-decoration: none; }
.nav-links .btn { padding: 11px 20px; }

#menu-btn {
  display: none;
  background: none; border: 1px solid var(--hairline); color: var(--ink);
  padding: 9px 11px; cursor: pointer;
}

#mobile-menu {
  display: none;
  border-top: 1px solid var(--hairline);
  padding: 18px 28px 24px;
  flex-direction: column; gap: 16px;
}
#mobile-menu a { font-size: 16px; font-weight: 500; color: var(--ink); }
#site-nav.open #mobile-menu { display: flex; }

/* ── Masthead ───────────────────────────────────────── */

.masthead { border-bottom: 1px solid var(--hairline); }

.masthead-grid {
  max-width: 1120px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px;
  align-items: stretch;
}

.masthead-copy { padding: 84px 0 92px; }

.masthead h1 {
  font-size: clamp(56px, 9vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.cred-line {
  font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 26px;
}

.masthead .lede { margin: 0 0 38px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.portrait-panel {
  position: relative;
  background: var(--charcoal);
  border-left: 6px solid var(--burgundy);
  display: flex; flex-direction: column;
  min-height: 480px;
}
.portrait-panel img {
  flex: 1; width: 100%; height: 100%; object-fit: cover; object-position: top;
}

/* ── Sections ───────────────────────────────────────── */

section { padding: 96px 0; }

.section-head { margin-bottom: 56px; }

.rule-top { border-top: 1px solid var(--hairline); }

/* 01 patient voice */
.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-bottom: 44px; }
.voice h3 { font-size: 24px; margin-bottom: 12px; }
.voice p { font-size: 16px; color: var(--ink-soft); margin: 0; }
.verify-link { font-size: 14px; color: var(--ink-faint); }
.verify-link a { color: var(--burgundy); }

/* 02 story */
.story-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 56px; align-items: start; }
.pull-quote {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.25;
  color: var(--burgundy);
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
}
.story-body p { margin: 0 0 22px; color: var(--ink-soft); }
.story-body p:last-child { margin-bottom: 0; }
.story-body strong { color: var(--ink); font-weight: 600; }

/* 03 expertise */
.expertise-list { border-top: 1px solid var(--hairline); }
.expertise-item {
  display: grid; grid-template-columns: 64px 1fr 1.4fr; gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
}
.expertise-item .num { font-family: var(--serif); font-size: 17px; color: var(--burgundy); }
.expertise-item h3 { font-size: 23px; line-height: 1.2; }
.expertise-item p { font-size: 16px; color: var(--ink-soft); margin: 0; }

/* 04 teaching & research */
.teach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; border-top: 1px solid var(--hairline); }
.teach-item { padding: 28px 0; border-bottom: 1px solid var(--hairline); }
.teach-item h3 { font-size: 21px; margin-bottom: 8px; }
.teach-item p { font-size: 16px; color: var(--ink-soft); margin: 0; }

/* 05 publications */
.pub-list { border-top: 1px solid var(--hairline); margin-bottom: 30px; }
.pub-item {
  display: grid; grid-template-columns: 52px 1fr; gap: 22px;
  padding: 20px 0; border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft); font-size: 16px; line-height: 1.55;
}
.pub-item:hover { color: var(--ink); text-decoration: none; }
.pub-item .num { font-family: var(--serif); color: var(--burgundy); font-size: 15px; }
.pub-foot { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; font-size: 15px; }
#pubs-toggle { cursor: pointer; font-family: var(--sans); }

/* 06 mission — dark panel */
.mission {
  background: var(--charcoal);
  color: var(--charcoal-text);
  border-top: 4px solid var(--burgundy);
}
.mission .kicker, .mission .section-num { color: #C98B95; }
.mission blockquote {
  font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1.2;
  color: var(--paper);
  margin: 0 0 26px; max-width: 18em;
}
.mission p { max-width: 40em; margin: 0; font-size: 17px; }

/* 07 credentials */
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.cred-col h3 {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--burgundy);
  margin-bottom: 18px;
}
.cred-col ul { list-style: none; margin: 0; padding: 0; }
.cred-col li {
  font-size: 16px; color: var(--ink-soft);
  padding: 10px 0; border-bottom: 1px solid var(--hairline);
}

/* contact */
.contact { text-align: center; }
.contact .lede { margin: 0 auto 38px; }
.contact .cta-row { justify-content: center; }
.address { font-size: 15px; color: var(--ink-faint); margin-top: 34px; }

/* footer */
footer {
  background: var(--charcoal-deep);
  color: var(--charcoal-text);
  font-size: 14px;
  text-align: center;
  padding: 30px 28px;
}
footer .sep { margin: 0 10px; opacity: 0.4; }

/* ── Reveal animation ───────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .btn, .btn-ghost, #site-nav { transition: none; }
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 900px) {
  .masthead-grid { grid-template-columns: 1fr; gap: 0; }
  .masthead-copy { padding: 56px 0 48px; }
  .portrait-panel { min-height: 0; margin: 0 -28px; border-left: none; border-top: 6px solid var(--burgundy); }
  .portrait-panel img { max-height: 460px; object-position: center 22%; }
  .voices-grid, .cred-grid { grid-template-columns: 1fr; gap: 34px; }
  .story-grid { grid-template-columns: 1fr; gap: 34px; }
  .teach-grid { grid-template-columns: 1fr; gap: 0; }
  .expertise-item { grid-template-columns: 44px 1fr; }
  .expertise-item p { grid-column: 2; }
  .nav-links a:not(.btn) { display: none; }
  #menu-btn { display: block; }
  section { padding: 72px 0; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .lede { font-size: 18px; }
  .nav-inner { padding: 0 16px; gap: 10px; }
  .nav-links { gap: 10px; }
  .nav-links .btn { padding: 10px 12px; font-size: 11px; letter-spacing: 0.06em; white-space: nowrap; }
  .nav-name { font-size: 17px; }
  .nav-name .accent { display: none; }
  #mobile-menu { padding: 18px 16px 24px; }
  .cta-row .btn, .cta-row .btn-ghost { width: 100%; text-align: center; }
  .pub-item { grid-template-columns: 36px 1fr; gap: 14px; }
}
