:root {
  --bg:        #F4F1EA;
  --bg-alt:    #EAE5D7;
  --ink:       #1B1A17;
  --ink-soft:  #2A2722;
  --muted:     #6B645B;
  --rule:      #D9D2C2;
  --accent:    #475C4E;
  --accent-2:  #D6DCCF;
  --on-accent: #F4F1EA;

  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans:  "Geist", "DM Sans", ui-sans-serif, system-ui, sans-serif;

  --container: 1180px;
  --reading:    720px;
  --gutter:     clamp(20px, 4vw, 48px);
  --section-y:  clamp(72px, 10vw, 140px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
a.link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity .2s ease;
}
a.link:hover { opacity: .65; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: var(--on-accent); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.reading {
  max-width: var(--reading);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0 0 28px;
  color: var(--ink);
  text-wrap: balance;
}

.h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 1.4em;
}

.body-md { font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.body-sm { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* Header */

.utility {
  background: var(--ink);
  color: var(--bg);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 24px;
  flex-wrap: wrap;
}
.utility .creds {
  color: color-mix(in oklab, var(--bg) 70%, transparent);
}
.utility .creds span { white-space: nowrap; }
.utility .creds span + span::before {
  content: "\00B7";
  margin: 0 10px;
  opacity: .5;
}
.utility .phone { font-weight: 500; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  min-width: 0;
}
.brand .name {
  font-size: 22px;
  color: var(--ink);
  white-space: nowrap;
}
.brand .post {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--sans);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 14.5px;
  flex-wrap: nowrap;
}
.nav a {
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav a:hover { color: var(--accent); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .15s ease, opacity .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.site-header .cta { flex-shrink: 0; }
.cta:hover { opacity: .92; }
.cta.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.cta.ghost:hover { background: var(--ink); color: var(--on-accent); opacity: 1; }

@media (max-width: 1180px) {
  .brand .post { display: none; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
}

/* Hero */

.hero {
  padding-top: clamp(56px, 8vw, 110px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
}
.hero-text { padding-bottom: 8px; }
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 3 / 2; max-height: 60vh; }
}

/* Credentials strip */

.creds-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.creds-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 36px;
}
.creds-strip .cred { display: inline-flex; align-items: center; gap: 10px; }
.creds-strip .cred:nth-child(3n+2) { justify-self: center; }
.creds-strip .cred:nth-child(3n+3) { justify-self: end; }
.creds-strip .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

@media (max-width: 820px) {
  .creds-strip .container { grid-template-columns: 1fr; gap: 8px; }
  .creds-strip .cred:nth-child(3n+2),
  .creds-strip .cred:nth-child(3n+3) { justify-self: start; }
}

/* Sections */

section { scroll-margin-top: 96px; }

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.section.tight { padding-top: clamp(56px, 7vw, 90px); padding-bottom: clamp(56px, 7vw, 90px); }
.section.alt {
  background: var(--bg-alt);
}

.section-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(40px, 5vw, 64px);
  align-items: baseline;
}
.section-head .label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  align-self: start;
  width: fit-content;
}
.section-head .title { font-family: var(--serif); }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; }
}

/* Specialties */

.specialties {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.specialty {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: 44px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.specialty:last-child { border-bottom: 1px solid var(--rule); }
.specialty .num {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.specialty .num span {
  font-size: 38px;
  color: var(--ink);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.specialty h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--ink);
}
@media (max-width: 820px) {
  .specialty { grid-template-columns: 1fr; gap: 16px; }
}

/* About + Bio */

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.bio-portrait {
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
}
.bio-portrait img { width: 100%; height: 100%; object-fit: cover; }
.bio-meta {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bio-meta strong { color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-portrait { max-width: 420px; }
}

/* Note callout */
.note {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 2px solid var(--accent);
  background: color-mix(in oklab, var(--accent-2) 60%, var(--bg));
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  border-radius: 0 4px 4px 0;
}
.note .note-label {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* Modalities */

.modalities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.modality {
  background: var(--bg);
  padding: 28px 24px;
}
.modality .abbr {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1;
}
.modality .name {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.35;
}
@media (max-width: 720px) {
  .modalities { grid-template-columns: repeat(2, 1fr); }
}

/* Split / Fees */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

.fee-card {
  border: 1px solid var(--rule);
  padding: 26px 28px;
  border-radius: 4px;
  background: var(--bg);
}
.fee-card .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  gap: 16px;
}
.fee-card .row:last-child { border-bottom: 0; }
.fee-card .row:first-child { padding-top: 0; }
.fee-card .label { color: var(--muted); font-size: 14.5px; }
.fee-card .value {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.fee-card .value small { font-size: 13px; color: var(--muted); margin-left: 6px; font-family: var(--sans); }

/* Bryan / Associate */

.associate-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.associate-portrait {
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
}
.associate-portrait img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 820px) {
  .associate-grid { grid-template-columns: 1fr; }
  .associate-portrait { max-width: 420px; }
}

/* Contact / Footer */

.contact {
  background: var(--ink);
  color: var(--bg);
  padding-top: var(--section-y);
  padding-bottom: 60px;
}
.contact .h1 { color: var(--bg); }
.contact .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: 40px;
}
.contact .col h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
  margin: 0 0 14px;
  font-weight: 500;
}
.contact .col p, .contact .col a {
  color: var(--bg);
  font-size: 15.5px;
  line-height: 1.7;
  display: block;
  margin: 0;
}
.contact .col a:hover { opacity: .7; }
.contact .legal {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: color-mix(in oklab, var(--bg) 50%, transparent);
  letter-spacing: 0.04em;
  gap: 16px;
  flex-wrap: wrap;
}
.contact .legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 18px;
  color: color-mix(in oklab, var(--bg) 70%, transparent);
}
.contact .legal-links a {
  color: color-mix(in oklab, var(--bg) 70%, transparent);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.contact .legal-links a:hover,
.contact .legal-links a[aria-current="page"] {
  color: var(--bg);
  border-bottom-color: color-mix(in oklab, var(--bg) 50%, transparent);
}
@media (max-width: 820px) {
  .contact .grid { grid-template-columns: 1fr; }
}

/* Sub-page / Article layout */

.article-hero {
  padding-top: clamp(72px, 9vw, 130px);
  padding-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}
.back-link::before { content: "\2190"; }
.back-link:hover { color: var(--accent); }

.article-body {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.article-body .reading { margin: 0 auto 0 0; }
.article-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 48px 0 14px;
  color: var(--ink);
  text-wrap: balance;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p {
  font-size: 17.5px;
  line-height: 1.68;
  color: var(--ink-soft);
  margin: 0 0 1.1em;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  width: fit-content;
}
.read-more::after { content: "\2192"; transition: transform .2s ease; }
.read-more:hover::after { transform: translateX(4px); }

.sub-topics {
  margin-top: 24px;
  padding: 20px 24px;
  background: color-mix(in oklab, var(--accent) 6%, transparent);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.sub-topics-label {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.sub-topics-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sub-topics-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  transition: border-color .2s ease, background .2s ease;
  width: fit-content;
}
.sub-topics-links a:hover {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 4%, var(--bg));
}

.cta-strip {
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.cta-strip .h1 { margin-bottom: 16px; }
.cta-strip p { margin: 0 auto 26px; }
.cta-strip .hero-actions { justify-content: center; }

/* Accessibility */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  z-index: 1000;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  left: 0;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }
