:root {
  --ink: #18212a;
  --muted: #58616b;
  --paper: #f7f4ed;
  --surface: #fffdf8;
  --line: #ded6c6;
  --wine: #7f2635;
  --wine-dark: #581927;
  --olive: #6c7752;
  --gold: #b98c42;
  --shadow: 0 20px 60px rgba(24, 33, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
  overflow-wrap: anywhere;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 42px);
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(247, 244, 237, 0.94);
  border-bottom: 1px solid rgba(222, 214, 198, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 330px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: var(--surface);
  background: var(--wine);
  border-radius: 6px;
  font-family: Georgia, serif;
  font-size: 1.3rem;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  background: var(--surface);
}

.brand-mark img + span {
  display: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.08rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
}

.brand .brand-name {
  margin-top: 4px;
  font-family: "Snell Roundhand", "Apple Chancery", "Palatino Linotype", Palatino, Georgia, serif;
  color: var(--wine);
  font-size: 1.42rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 10px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(127, 38, 53, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding-top: 86px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(24, 33, 42, 0.74), rgba(24, 33, 42, 0.34) 48%, rgba(24, 33, 42, 0.06)),
    url("assets/hero-legal-variants.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background: linear-gradient(180deg, rgba(247, 244, 237, 0), var(--paper));
}

.hero-content {
  width: min(760px, calc(100% - 40px));
  margin: 0 clamp(20px, 7vw, 96px) 11vh;
  color: var(--surface);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-eyebrow {
  margin-bottom: 18px;
  font-size: clamp(0.98rem, 1.6vw, 1.18rem);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 7vw, 5.8rem);
  font-weight: 500;
}

h2 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 690px;
  color: rgba(255, 253, 248, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  color: var(--surface);
  background: var(--wine);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--wine-dark);
}

.button.secondary {
  color: var(--surface);
  border-color: rgba(255, 253, 248, 0.5);
  background: rgba(255, 253, 248, 0.08);
}

.button.outline {
  color: var(--wine);
  border-color: rgba(127, 38, 53, 0.28);
  background: rgba(255, 253, 248, 0.74);
}

.button.outline:hover,
.button.outline:focus-visible {
  border-color: var(--wine);
  background: var(--surface);
}

.quick-contact {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr;
  gap: 1px;
  width: min(1120px, calc(100% - 40px));
  margin: -42px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.quick-contact div {
  padding: 22px;
  background: var(--surface);
}

.quick-contact span,
.contact-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-contact strong,
.contact-list strong {
  font-size: 1rem;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 11vw, 132px) 0 0;
}

.split {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(34px, 7vw, 92px);
}

.split p {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.08rem;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 880px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.method-list div {
  padding: 20px;
  background: var(--surface);
}

.method-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.method-list strong {
  display: block;
  color: var(--ink);
  line-height: 1.35;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}

.practice-grid article {
  min-height: 190px;
  padding: 26px;
  background: var(--surface);
}

.practice-detail {
  display: grid;
  grid-template-columns: 0.32fr minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.62);
}

.practice-detail h3,
.practice-detail p {
  margin: 0;
}

.text-link {
  color: var(--wine);
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.practice-grid p,
.timeline p,
.deontology p,
.contact-copy p,
.site-footer p {
  color: var(--muted);
}

.timeline-section {
  width: min(1120px, calc(100% - 40px));
}

.curriculum-intro {
  color: var(--muted);
  font-size: 1.08rem;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.credential-grid article {
  min-height: 220px;
  padding: 26px;
  background: var(--surface);
}

.credential-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--wine);
  font-weight: 850;
}

.credential-grid p {
  color: var(--muted);
}

.cv-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.cv-panels article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.62);
}

.cv-panels ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

.cv-panels li::marker {
  color: var(--wine);
}

.deontology {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.deontology-content {
  display: grid;
  gap: 22px;
}

blockquote {
  margin: 0;
  padding: 30px;
  color: var(--surface);
  background: var(--olive);
  border-radius: 6px;
}

blockquote p {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.18;
}

cite {
  color: rgba(255, 253, 248, 0.72);
  font-style: normal;
}

.deontology-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.rules-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.74);
}

.rules-panel h3 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.rules-panel ol {
  display: grid;
  gap: 10px;
  padding-left: 24px;
  margin: 0;
  color: var(--muted);
}

.rules-panel li::marker {
  color: var(--wine);
  font-weight: 850;
}

.rules-panel p {
  margin: 18px 0 0;
  font-size: 0.95rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  padding-bottom: clamp(72px, 10vw, 120px);
}

.contact-copy {
  align-self: center;
}

.contact-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 26px 0 28px;
  list-style: none;
}

.directions {
  margin: 30px 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.directions h3 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.directions-grid {
  display: grid;
  gap: 16px;
}

.directions-grid div {
  padding-left: 16px;
  border-left: 3px solid rgba(127, 38, 53, 0.24);
}

.directions-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.directions-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.location-panel {
  align-self: stretch;
  display: grid;
  align-content: end;
  min-height: 420px;
  padding: clamp(28px, 5vw, 44px);
  color: var(--surface);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(24, 33, 42, 0.34), rgba(24, 33, 42, 0.9)),
    url("assets/hero-legal-variants.png");
  background-position: center;
  background-size: cover;
}

.location-panel span {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.location-panel h3 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
}

.location-panel p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 253, 248, 0.82);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--surface);
  background: var(--ink);
}

.site-footer div,
.site-footer span {
  display: block;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 253, 248, 0.68);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  color: rgba(255, 253, 248, 0.82);
  font-weight: 750;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--surface);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-page {
  min-height: calc(100vh - 160px);
}

.legal-content {
  width: min(820px, calc(100% - 40px));
  padding-bottom: clamp(72px, 10vw, 120px);
}

.legal-content h1 {
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
}

.legal-content p {
  color: var(--muted);
}

.legal-note {
  margin-top: 40px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.updates-content {
  width: min(1120px, calc(100% - 40px));
}

.updates-content > p {
  max-width: 840px;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.updates-grid article {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 320px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.68);
}

.updates-grid span {
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.updates-grid h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.updates-grid p {
  margin: 0;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 84px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    color: var(--ink);
  }

  .quick-contact,
  .practice-grid,
  .method-list,
  .practice-detail,
  .credential-grid,
  .cv-panels,
  .updates-grid,
  .split,
  .deontology,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    margin-bottom: 110px;
  }

  .site-footer {
    display: grid;
  }

  .static-nav {
    position: static;
    display: flex;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .static-nav a {
    color: var(--muted);
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
    gap: 12px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand small {
    font-size: 0.78rem;
  }

  .brand .brand-name {
    font-size: 1.16rem;
  }

  .hero-content,
  .section,
  .quick-contact,
  .timeline-section {
    width: calc(100% - 28px);
  }

  .hero-content {
    margin-inline: 14px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-actions,
  .button,
  .map-actions {
    width: 100%;
  }

  .practice-grid article {
    min-height: auto;
  }
}
