@font-face {
  font-family: Lora;
  src: url("assets/lora.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("assets/public-sans.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("assets/public-sans-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ivory: #f6f2e7;
  --paper: #fcfaf5;
  --sage: #aec3ab;
  --forest: #293e34;
  --muted: #59665b;
  --line: #d4dacd;
  --mist: #e7ebdd;
  --gutter: 60px;
  --section-space: 88px;
  --nav-height: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--forest);
  font: 16px/1.75 "Public Sans", sans-serif;
  letter-spacing: -.02em;
}
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3, .brand {
  font-family: Lora, Georgia, serif;
  font-weight: 400;
  letter-spacing: -.02em;
}
h2 { font-size: 40px; line-height: 1.2; }
h3, .update-title, .brand { font-size: 25px; line-height: 1.3; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button { color: inherit; font: inherit; letter-spacing: inherit; }
address { font-style: normal; }
:focus-visible { outline: 2px solid #527255; outline-offset: 4px; }

.container { width: 100%; max-width: 1080px; margin-inline: auto; }
.section { padding: var(--section-space) var(--gutter); }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.stack > * { max-width: 100%; }
.stack.compact { gap: 20px; }
.paper { background: var(--paper); }
.mist { background: var(--mist); }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.6; }
.label { font-size: 11px; line-height: 1.5; font-weight: 600; letter-spacing: .12em; }
.prose p + p { margin-top: 20px; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: var(--paper);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  padding: 24px var(--gutter);
  background: var(--ivory);
}
.navigation, .brand-row, .main-links { display: flex; align-items: center; }
.navigation { justify-content: space-between; gap: 20px; }
.main-links { gap: 24px; font-size: 13px; line-height: 1.5; }
.menu-toggle { display: none; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-height: 43.5px;
  padding: 12px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--forest);
  color: var(--paper);
  font: 600 13px/1.5 "Public Sans", sans-serif;
  letter-spacing: normal;
  cursor: pointer;
}
.button:hover { background: #3b5243; text-decoration: none; }
.button:active { background: #1d3026; }
.updates {
  padding: 20px var(--gutter);
  background: var(--sage);
  text-align: center;
}
.updates p { margin-top: 6px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: 80px;
}
.woodland {
  height: 360px;
  border-radius: 8px;
  background: url("assets/woodland-pattern.svg") top left / 64px auto repeat;
}
.service-grid, .appointment-options, .office {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.service-grid { grid-auto-rows: 1fr; }
#services h2 { max-width: min(100%, 680px); }
.service-card .label { color: var(--muted); }
.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--paper);
}
.service-card, .outline-card {
  padding: 28px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.counselor { grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); }
.portrait {
  position: relative;
  display: block;
  --portrait-height: 390px;
  container-type: inline-size;
  width: 100%;
  overflow: hidden;
  border-radius: 120px 120px 8px 8px;
}
.portrait picture { display: block; height: var(--portrait-height); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait .portrait-expanded {
  object-fit: contain;
  position: absolute;
  inset: 0;
  opacity: 0;
}
/* Match the expanded portrait’s intrinsic 626 × 762 dimensions. */
.portrait.is-expanded picture { height: calc(100cqw * 762 / 626); }
.portrait.is-expanded .portrait-expanded { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .portrait picture { transition: height 180ms ease; }
  .portrait-expanded { transition: opacity 180ms ease; }
}
.biography { width: 100%; }
.biography .prose { margin-bottom: 20px; }

.appointment-options { gap: 48px; }
.office { gap: 60px; }
.office address span { display: block; }
.office address span + span { margin-top: 20px; }
.hours { display: flex; flex-direction: column; gap: 20px; }
.hours div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  box-shadow: inset 0 -1px var(--line);
  font-size: 13px;
  line-height: 1.6;
}
.map { display: block; width: 100%; height: 260px; border: 0; border-radius: 8px; }
.portal { background: var(--sage); text-align: center; }
.portal .stack { align-items: center; }

.site-footer {
  overflow: hidden;
  border-radius: 40px 40px 0 0;
  background: #f7f5ee;
}
.footer-wrap { max-width: 1200px; margin: auto; padding-inline: 40px; }
.footer-columns {
  display: grid;
  grid-template-columns: minmax(0,304fr) minmax(0,480fr) minmax(0,272fr);
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 4px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: normal;
  color: #263f32;
}
.footer-identity, .footer-navigation, .footer-contact { display: grid; gap: 14px; }
.footer-title { font-size: 25px; line-height: 1.3; letter-spacing: normal; }
.footer-identity > p { font: 13px/1.8 Lora, Georgia, serif; color: inherit; }
.footer-identity > .icon { width: 36px; height: 36px; }
.footer-navigation { padding-inline: 24px; align-content: start; gap: 24px; }
.footer-navigation nav { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; }
.footer-contact { gap: 10px; }
.with-icon { display: flex; align-items: flex-start; gap: 10px; }
.icon { display: block; width: 16px; height: 16px; flex: none; }
.with-icon .icon { margin-top: 2px; }
.footer-book { gap: 12px; line-height: 1.7; background: #263f32; border-radius: 7px; padding-inline: 18px; font-size: 12px; }
.copyright { background: #284831; color: #f7f5ee; font-size: 10px; line-height: 17px; letter-spacing: normal; }
.copyright .footer-wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 20px; }
.copyright span { margin-inline: 8px; }

@media (width < 1200px) {
  :root { --gutter: 36px; --section-space: 64px; --nav-height: 76px; }
  h2 { font-size: 34px; }
  .site-header { padding: 0 24px; }
  .navigation { display: block; }
  .brand-row { height: 76px; justify-content: space-between; gap: 12px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
  }
  .main-links { display: none; padding: 8px 0 24px; align-items: flex-start; flex-direction: column; gap: 20px; }
  .menu-open .main-links { display: flex; }
  .split, .office, .appointment-options { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .portrait { --portrait-height: 435px; }
  .footer-wrap { padding-inline: 24px; }
  .footer-columns { grid-template-columns: minmax(0,1fr); gap: 28px; padding-top: 40px; }
  .footer-navigation { padding: 24px 0; }
  .footer-navigation + div { padding-bottom: 56px; }
  .copyright a { display: block; margin-top: 14px; }
  .copyright .footer-wrap { flex-direction: column; min-height: 117px; justify-content: flex-start; }
}

@media (width < 810px) {
  :root { --gutter: 24px; --section-space: 56px; }
  h2 { font-size: 30px; }
  .portrait { --portrait-height: 390px; }
  .service-grid { grid-template-columns: minmax(0,1fr); grid-auto-rows: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
