:root {
  color-scheme: dark;
  --brand: #154734;
  --page: light-dark(#fcfaf6, #23242a);
  --card: light-dark(#fffefa, #2f3037);
  --paper-warm: light-dark(#eee4d5, #3c322e);
  --paper-sage: light-dark(#dae6dc, #2e3e37);
  --pattern-ink: light-dark(#15473423, #c6dac42b);
  --ink: light-dark(#292722, #f4f0e8);
  --muted: light-dark(#57544e, #cbc7c0);
  --accent: light-dark(var(--brand), #e5d1b4);
  --line: light-dark(#ded8ce, #4c4c52);
  --control-line: light-dark(#867b6d, #9d978e);
  --icon-ink: light-dark(#745435, #e6c8a2);
  --icon-tint: light-dark(#f2e9dc, #433a35);
  --button-bg: light-dark(var(--brand), #e5d1b4);
  --button-hover: light-dark(#0f3728, #efdfc7);
  --button-text: light-dark(#ffffff, #23242a);
  --focus: var(--accent);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', sans-serif;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}

:root[data-theme='light'] {
  color-scheme: light;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body, h1, h2, h3, p, dl, dd {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}

h2 {
  color: var(--accent);
  font-size: clamp(2.25rem, 4.5vw, 3.65rem);
  letter-spacing: -.045em;
}

h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  letter-spacing: -.023em;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: .23em;
}

button {
  font: inherit;
}

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

.wrap {
  width: min(75rem, 100% - 2 * clamp(1rem, 5vw, 3.5rem));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon-library {
  position: absolute;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-tile {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: .45rem;
  background: var(--icon-tint);
  color: var(--icon-ink);
}

.skip-link {
  position: fixed;
  z-index: 3;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  translate: 0 calc(-100% - 1rem);
  background: var(--page);
  color: var(--ink);
}

.skip-link:focus {
  translate: 0;
}

.site-header {
  position: relative;
  z-index: 2;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto 1fr;
  align-items: center;
  min-height: 5rem;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .75rem;
  min-width: 0;
  padding-block: .6rem;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 3.375rem;
  height: 3.375rem;
  flex: 0 0 auto;
}

.brand-name {
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.3;
}

.brand-name small {
  display: block;
  margin-top: .12rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 450;
}

.site-nav, .header-actions {
  display: flex;
  align-items: center;
}

.site-nav {
  gap: clamp(.9rem, 2.3vw, 2rem);
}

.header-actions {
  justify-self: end;
  gap: clamp(.55rem, 2vw, 1.1rem);
}

.site-nav a, .header-home {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  inset: auto 0 .3rem;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  scale: 0 1;
  transform-origin: left center;
  content: '';
}

.site-nav a:is(:hover, :focus-visible) {
  color: var(--accent);
}

.site-nav a:is(:hover, :focus-visible)::after {
  scale: 1;
}

.site-nav .nav-phone {
  gap: .4rem;
  color: var(--accent);
  font-weight: 650;
}

.nav-phone .icon {
  width: 1rem;
  height: 1rem;
}

.header-home:hover, .site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.header-home {
  color: var(--accent);
  font-weight: 650;
}

.theme-toggle {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--control-line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--card);
}

.theme-icon {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  box-shadow: inset -.3rem -.18rem currentColor;
  transform: rotate(-22deg);
}

.theme-toggle[aria-pressed='true'] .theme-icon {
  width: .65rem;
  height: .65rem;
  background: currentColor;
  box-shadow: 0 -.55rem 0 -.23rem, 0 .55rem 0 -.23rem, -.55rem 0 0 -.23rem, .55rem 0 0 -.23rem,
    -.39rem -.39rem 0 -.23rem, .39rem -.39rem 0 -.23rem, -.39rem .39rem 0 -.23rem, .39rem .39rem 0 -.23rem;
  transform: none;
}

.hero, .practices, .about, .faq {
  position: relative;
  isolation: isolate;
}

.hero {
  overflow: clip;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 89% 10%, var(--paper-sage), transparent 61%),
    radial-gradient(ellipse at 71% 114%, var(--paper-warm), transparent 58%),
    linear-gradient(115deg, var(--page) 24%, light-dark(#f5eee4, #2e2f37));
}

.hero::before, .practices::before, .about::before, .faq::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: '';
}

.hero::before {
  background:
    repeating-linear-gradient(122deg, var(--pattern-ink) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(32deg, light-dark(#74543515, #e6c8a21b) 0 1px, transparent 1px 86px);
  mask-image: linear-gradient(103deg, transparent 18%, #000 88%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6.25rem);
  padding-block: clamp(3.25rem, 7vw, 6.75rem);
}

.hero-content {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .095em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.35rem;
  height: 2px;
  flex: 0 0 auto;
  background: var(--accent);
  content: '';
}

.hero h1 {
  font-size: clamp(3.1rem, 7.15vw, 7rem);
  line-height: .94;
  letter-spacing: -.058em;
  text-wrap: wrap;
}

.hero-intro {
  max-width: 37ch;
  margin-top: 1.65rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.hero-actions {
  margin-top: 1.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3rem;
  padding: .65rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .35rem;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background-color: var(--button-bg);
  background-image: linear-gradient(125deg, light-dark(#ffffff17, #ffffff29), transparent 74%);
  color: var(--button-text);
}

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

.button-outline {
  border-color: var(--control-line);
  color: var(--ink);
}

.button-outline:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.hero-contact, .career-dates {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: .6rem;
  box-shadow: 0 .85rem 2.7rem light-dark(#3225170d, #0a0a0c30);
}

.hero-contact {
  border-top: 2px solid var(--accent);
  background-image: linear-gradient(145deg, var(--card) 33%, color-mix(in srgb, var(--card) 77%, var(--paper-sage)));
}

.hero-contact a, .career-dates > div {
  padding: clamp(1rem, 2.7vw, 1.75rem);
}

.hero-contact a {
  display: flex;
  align-items: flex-start;
  gap: clamp(.75rem, 2vw, 1.1rem);
  text-decoration: none;
}

.hero-contact a + a, .career-dates > div + div {
  border-top: 1px solid var(--line);
}

.hero-contact strong, .hero-contact-label, .hero-contact strong + span {
  display: block;
}

.hero-contact strong {
  font-size: clamp(1rem, 1.65vw, 1.25rem);
}

.hero-contact a:hover strong {
  text-decoration: underline;
}

.hero-contact-label, .hero-contact strong + span {
  color: var(--muted);
}

.hero-contact-label {
  font-size: .875rem;
  font-weight: 650;
}

.section {
  padding-block: clamp(3.2rem, 7vw, 6.5rem);
}

.practices {
  background:
    radial-gradient(ellipse at 110% 0%, var(--paper-sage), transparent 57%),
    linear-gradient(145deg, var(--page) 31%, light-dark(#f1eade, #2b2b32));
}

.practices::before {
  background: radial-gradient(circle, var(--pattern-ink) 1px, transparent 1.45px) 0 0 / 1.05rem 1.05rem;
  mask-image: linear-gradient(130deg, transparent 26%, #000 91%);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 1.7vw, 1.45rem);
  padding: 0;
  margin: clamp(1.55rem, 3.7vw, 2.65rem) 0 0;
  list-style: none;
}

.practice-grid li {
  min-width: 0;
  padding: clamp(1.15rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: linear-gradient(155deg, var(--card) 48%, color-mix(in srgb, var(--card) 79%, var(--paper-warm)));
  box-shadow: 0 .3rem 1rem light-dark(#32251706, #0a0a0c26);
}

.practice-grid .icon-tile {
  margin-bottom: .95rem;
  background: light-dark(#e4eee7, #35423b);
  color: light-dark(var(--brand), #bdd5c6);
}

.practice-grid h3 {
  color: var(--ink);
}

.practice-grid p, .about-content p, .faq-list p, .document p {
  color: var(--muted);
}

.practice-grid p {
  max-width: 37ch;
  margin-top: .6rem;
}

.about {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 99% 80%, var(--paper-sage), transparent 63%),
    linear-gradient(120deg, var(--paper-warm), var(--page) 61%);
}

.about::before {
  background: repeating-radial-gradient(ellipse at 85% 97%, transparent 0 2.75rem, var(--pattern-ink) 2.75rem calc(2.75rem + 1px), transparent calc(2.75rem + 1px) 4.5rem);
  mask-image: linear-gradient(95deg, transparent 28%, #000 95%);
}

.about-inner, .faq-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(2rem, 6.5vw, 6rem);
}

.about-content {
  align-self: center;
}

.about-content p {
  max-width: 59ch;
  margin-top: 1rem;
}

.career-dates dt {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.1rem);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.2vw, 1.7rem);
  line-height: 1.22;
}

.career-dates dd {
  margin-left: calc(2.75rem + clamp(.75rem, 2vw, 1.1rem));
  color: var(--muted);
}

.faq {
  background:
    radial-gradient(ellipse at 12% 90%, var(--paper-warm), transparent 61%),
    linear-gradient(130deg, var(--page) 52%, light-dark(#ecf1eb, #2d3431));
}

.faq::before {
  background:
    radial-gradient(circle at 5px 7px, currentColor .65px, transparent 1.15px) 0 0 / 23px 29px,
    radial-gradient(circle at 13px 15px, currentColor .5px, transparent 1px) 0 0 / 37px 31px,
    radial-gradient(circle at 19px 4px, currentColor .45px, transparent .9px) 0 0 / 31px 23px;
  mask-image: radial-gradient(ellipse at 10% 80%, #000, transparent 80%);
  opacity: .08;
}

.faq-inner {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
}

.faq-heading {
  max-width: 29rem;
}

.faq-list {
  display: grid;
  align-self: center;
  gap: .75rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--card);
}

.faq-list details[open] {
  border-color: color-mix(in srgb, var(--accent) 43%, var(--line));
}

.faq-list summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  min-height: 3.75rem;
  padding: .85rem clamp(1rem, 2.6vw, 1.45rem);
  list-style: none;
  font-weight: 650;
  line-height: 1.42;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  width: .85rem;
  height: .85rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  color: var(--accent);
  content: '';
}

.faq-list summary .icon, .map-copy h3 .icon, .contact-label .icon, .footer-inner a .icon {
  color: var(--icon-ink);
}

.faq-list details[open] summary::after {
  background-size: 100% 2px, 0 0;
}

.faq-list summary:hover {
  color: var(--accent);
}

.faq-list p {
  padding: 0 clamp(1rem, 2.6vw, 1.45rem) 1rem calc(clamp(1rem, 2.6vw, 1.45rem) + 2rem);
}

.contact {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-top: 1px solid var(--line);
  background-color: light-dark(#f3eee6, #2a2b30);
}

.contact-scenery {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.contact-scenery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.08);
  filter: blur(8px) saturate(.48) brightness(.86);
  opacity: .36;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr .8fr 1.3fr;
  gap: .85rem;
  margin-block: 1.7rem 2.25rem;
  font-style: normal;
}

.contact-item {
  display: flex;
  min-width: 0;
  min-height: 7rem;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--card);
  overflow-wrap: anywhere;
}

.contact-item a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .2rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
}

.location {
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--card);
}

.map-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: clamp(1rem, 2.7vw, 1.6rem);
}

.map-copy h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.map-copy p {
  margin-top: .35rem;
  color: var(--muted);
  font-size: .9rem;
}

.map-panel {
  height: clamp(19rem, 40vw, 29rem);
  border-top: 1px solid var(--line);
  border-radius: 0 0 .55rem .55rem;
  background: light-dark(#e9e5de, #393b43);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(110deg, light-dark(#f3efe8, #1b1c21), color-mix(in srgb, var(--page) 70%, var(--paper-sage)));
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 4.5rem;
  gap: .4rem 1rem;
  padding-block: .7rem;
  color: var(--muted);
  font-size: .875rem;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.75rem;
}

.footer-inner a .icon {
  width: 1rem;
  height: 1rem;
}

.inner-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.inner-page .header-inner {
  grid-template-columns: 1fr auto;
}

.document {
  flex: 1;
  background:
    radial-gradient(ellipse at 100% 0%, var(--paper-sage), transparent 60%),
    linear-gradient(132deg, var(--page) 43%, var(--paper-warm));
}

.document-inner {
  max-width: 50rem;
  overflow-wrap: anywhere;
}

.document h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  letter-spacing: -.045em;
}

.document h2 {
  margin: 2rem 0 .65rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -.02em;
}

.document p + p, .document .button {
  margin-top: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }

  .hero .eyebrow, .hero h1, .hero-intro, .hero-actions, .hero-contact {
    animation: rise-in .65s cubic-bezier(.2, .7, .25, 1) both;
    animation-delay: var(--arrival-delay, 0ms);
  }

  .hero h1 { --arrival-delay: 65ms; }
  .hero-intro { --arrival-delay: 120ms; }
  .hero-actions { --arrival-delay: 180ms; }
  .hero-contact { --arrival-delay: 200ms; }

  .hero::before {
    animation: pattern-in 1.4s ease-out both;
  }

  .site-nav a::after {
    transition: scale .2s ease;
  }

  .button, .theme-toggle {
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  }

  .button:active, .theme-toggle:active {
    transform: scale(.97);
  }

  .faq-list details, .faq-list summary::after {
    transition: border-color .25s ease, background-size .25s ease;
  }

  .faq-list details[open] > p {
    animation: rise-in .28s ease-out both;
  }

  @media (hover: hover) {
    .button:hover {
      transform: translateY(-2px);
      box-shadow: 0 .4rem .75rem light-dark(#2735281f, #00000044);
    }

    .button:hover:active {
      transform: scale(.97);
    }

    .practice-grid li {
      transition: box-shadow .25s ease, border-color .25s ease;
    }

    .practice-grid .icon-tile {
      transition: transform .25s ease;
    }

    .practice-grid li:hover {
      border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
      box-shadow: 0 .7rem 1.55rem light-dark(#27352817, #00000044);
    }

    .practice-grid li:hover .icon-tile {
      transform: translateY(-3px) rotate(-6deg);
    }
  }

  @supports (animation-timeline: view()) and (animation-range: entry 0% entry 72%) {
    :where(.practices h2, .practice-grid li, .about-content, .career-dates, .faq-heading, .faq-list details, .contact h2, .contact-item) {
      animation: rise-in auto linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 72%;
    }

    :where(.faq-list details, .contact-item):focus-within {
      animation: none;
    }
  }
}

@keyframes rise-in {
  from { opacity: .48; translate: 0 .75rem; }
  to { opacity: 1; translate: 0; }
}

@keyframes pattern-in {
  from { opacity: .15; translate: 1.25rem 0; }
  to { opacity: 1; translate: 0; }
}

@media (min-width: 58rem) {
  :root {
    scroll-padding-top: 5.5rem;
  }

  .site-header {
    position: sticky;
    top: 0;
  }
}

@media (max-width: 57.99rem) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 1rem;
  }

  .site-nav {
    grid-area: 2 / 1 / 3 / -1;
    flex-wrap: wrap;
    gap: 0 clamp(.65rem, 3vw, 1.5rem);
    border-top: 1px solid var(--line);
  }

  .hero-inner {
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-item:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 42rem) {
  .hero-inner, .about-inner, .faq-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-heading {
    max-width: none;
  }
}

@media (max-width: 32rem) {
  .brand {
    gap: .5rem;
  }

  .brand-mark {
    width: 2.8rem;
    height: 2.8rem;
  }

  .brand-name, .site-nav a, .header-home {
    font-size: .875rem;
  }

  .site-nav {
    justify-content: space-between;
  }

  .site-nav .nav-phone {
    flex-basis: 100%;
    grid-column: 1 / -1;
    justify-content: center;
  }

  .site-nav .nav-phone::after {
    content: none;
  }

  .site-nav .nav-phone:hover {
    text-decoration: underline;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 13vw, 4.3rem);
  }

  .practice-grid, .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-item {
    min-height: 0;
  }
}

@media (max-width: 24rem) {
  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
