@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-fe3ac7ee.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif-6c5b1c87.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif-italic-126f9d71.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --cream: #fffdfa;
  --ink: #172a24;
  --muted: #526158;
  --green: #283f34;
  --green-dark: #172c24;
  --sage-pale: #e9ede4;
  --border: #dfdfd6;
  --sand: #e6c59f;
  --display: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --radius: 20px;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

main { flex: 1; }
section[id] { scroll-margin-top: 1.5rem; }

:focus-visible {
  outline: 2px solid #a45635;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--cream);
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  transform: translateY(-160%);
  padding: .6rem 1rem;
  background: var(--cream);
  border-radius: .5rem;
}

.skip-link:focus { transform: none; }

.shell { width: min(1328px, calc(100% - 3rem)); margin-inline: auto; }
.content-width { width: min(1168px, calc(100% - 3rem)); margin-inline: auto; }

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  vertical-align: middle;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.018em;
  line-height: 1;
}

h2 { font-size: clamp(2.5rem, 4.2vw, 3.65rem); }

.button, .text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

.button {
  border-radius: 999px;
  padding: .65rem 1.2rem;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.button-outline {
  border: 1px solid #b9c3b8;
  color: var(--green-dark);
}

.button-outline:hover { background: var(--sage-pale); }

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

.text-link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: .3em;
  text-decoration-color: #9aa99d;
}

.text-link:hover { text-decoration-color: currentColor; }

.site-header { position: relative; z-index: 2; }

.site-header-inner {
  display: grid;
  min-height: 78px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: start;
  gap: .65rem;
  color: var(--green-dark);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.brand-name { font-weight: 500; }

.brand-mark {
  display: grid;
  width: 36px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
}

.brand-mark .icon { width: 23px; height: 23px; }

.desktop-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.desktop-directory { justify-self: end; white-space: nowrap; }

.desktop-nav a, .site-footer nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 600;
}

.desktop-nav a:hover, .site-footer nav a:hover, .mobile-nav a:hover {
  text-decoration: underline;
  text-underline-offset: .28em;
}

.mobile-nav { display: none; }

.hero { position: relative; }

.hero-visual {
  position: relative;
  display: grid;
  min-height: clamp(425px, 40vw, 540px);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  background: #182b21;
  color: var(--cream);
}

.hero-visual > img {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 78%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
}

.hero-visual::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #182b21 4%, #182b21 21%, #182b21da 36%, #182b2150 59%, #182b2108 100%);
  content: "";
}

.hero-copy { padding: 3.75rem clamp(2rem, 6vw, 6rem) 5.1rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1.05rem;
  color: var(--sand);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow .icon { width: 1.05rem; height: 1.05rem; }

.hero h1 { font-size: clamp(4rem, 6.2vw, 6.1rem); line-height: .94; }
.hero h1 em { color: var(--sand); font-weight: inherit; }
.hero-copy > p:last-child { max-width: 25rem; margin-top: 1.45rem; color: #f0eee4; font-size: 1.1rem; }
.hero-search { position: relative; width: min(780px, calc(100% - 3rem)); margin: -42px auto 0; }

.discovery-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) auto;
  align-items: center;
  gap: .45rem;
  padding: .55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 12px 28px #232b2115;
  color: var(--ink);
}

.discovery-search > .button { min-height: 58px; padding-inline: clamp(1rem, 2vw, 1.75rem); }
.search-field { position: relative; display: flex; min-width: 0; align-items: center; gap: .65rem; padding: .2rem .7rem; }
.search-field > div { min-width: 0; flex: 1; }
.search-field > .icon { color: var(--green); }
.search-field label { display: block; color: var(--ink); font-size: .875rem; font-weight: 700; }
.search-field input, .search-field select { width: 100%; min-height: 30px; color: var(--muted); font: inherit; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field select { appearance: none; padding-right: 1.5rem; }
.search-keyword { border-right: 1px solid var(--border); }
.search-area .icon:last-child { position: absolute; right: .9rem; bottom: .65rem; width: .9rem; height: .9rem; pointer-events: none; }

.discovery-section, .area-section { padding-block: clamp(3.15rem, 6vw, 5.5rem); }
.area-section { background: #ecede5; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  margin-bottom: 1.55rem;
}

.section-heading p, .guide-section > div > p, .directory-intro > p {
  margin-top: .6rem;
  color: var(--muted);
}

.section-heading > .text-link { flex: 0 0 auto; }

.tile-grid { display: grid; gap: 1rem; }
.treatment-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.area-grid, .venue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.treatment-card, .venue-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
}

.treatment-card { transition: border-color 160ms ease, box-shadow 160ms ease; }
.treatment-card:hover { border-color: #8c9e90; box-shadow: 0 9px 22px #232b2115; }
.treatment-card img { width: 100%; aspect-ratio: 1.65; object-fit: cover; background: #847060; }
.treatment-card-copy { padding: 1rem 1.05rem 1.2rem; }
.treatment-card-copy h3, .venue-card h3 { font-size: clamp(1.8rem, 2.6vw, 2.2rem); }
.treatment-card-copy p, .venue-card-body > p { margin-top: .4rem; color: var(--muted); font-size: .94rem; }

.area-card {
  position: relative;
  display: flex;
  min-height: 235px;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background: var(--green-dark);
  color: white;
}

.area-card img, .area-card::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.area-card img { z-index: -2; object-fit: cover; transition: transform 230ms ease; }
.area-card::after { z-index: -1; background: linear-gradient(0deg, #111d17f5 0%, #111d17b0 27%, #111d1700 68%); content: ""; }
.area-card:hover img { transform: scale(1.04); }
.area-card-copy { padding: 1.3rem 1.4rem; }
.area-card-copy span, .venue-card-area { display: flex; align-items: center; gap: .3rem; font-size: .875rem; font-weight: 600; }
.area-card-copy .icon, .venue-card-area .icon { width: 1rem; height: 1rem; }
.area-card-copy h3 { margin-top: .28rem; font-size: clamp(2.35rem, 4vw, 3.25rem); }

.directory-note {
  display: flex;
  align-items: center;
  gap: .9rem 1.1rem;
  border: 1px solid #d7dfd3;
  border-radius: var(--radius);
  padding: clamp(1.05rem, 3vw, 1.8rem);
  background: var(--sage-pale);
}

.directory-note h3 { margin-bottom: .35rem; font-family: var(--body); font-size: 1.15rem; font-weight: 700; }
.directory-note p { color: var(--muted); }
.note-icon { display: grid; width: 46px; aspect-ratio: 1; flex: 0 0 auto; place-items: center; border: 1px solid #becdbf; border-radius: 50%; color: var(--green); }

.guide-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 1.5rem 3rem;
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 5.6vw, 5rem);
}

.guide-questions details { border-bottom: 1px solid var(--border); }
.guide-questions p { padding: 0 2rem 1rem 0; color: var(--muted); }
.guide-questions summary { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-weight: 650; }
.guide-questions details[open] .icon { transform: rotate(180deg); }

.site-footer { background: var(--green-dark); color: #f1eee6; }
.site-footer .brand { color: var(--cream); }
.site-footer .brand-mark { background: #3d5345; }
.site-footer p { color: #d6dfd4; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem 2rem; padding-block: 2rem 1.6rem; }
.footer-top p { margin-top: .45rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 1.3rem; }

.directory-page { width: min(1460px, calc(100% - 3rem)); padding-block: 1.5rem clamp(3rem, 7vw, 6rem); }
.breadcrumb { display: flex; min-height: 44px; align-items: center; gap: .65rem; color: var(--muted); font-size: .9rem; }
.breadcrumb a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: .2em; }
.directory-intro { border-radius: var(--radius); padding: clamp(1.35rem, 3.5vw, 2.75rem); background: var(--sage-pale); }
.directory-intro h1 { font-size: clamp(2.65rem, 5.3vw, 4.75rem); text-wrap: balance; }
.treatment-guide { margin-top: 1.5rem; padding: 1.15rem 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--cream); }
.treatment-guide h2 { margin-bottom: .25rem; font-size: 2.15rem; }
.treatment-guide p { color: var(--muted); }

.directory-browser {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

.directory-filters {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
}

.directory-filters summary { padding: .8rem 1rem; font-weight: 700; cursor: pointer; }
.directory-filters form { display: grid; align-items: end; gap: .85rem 1rem; padding: .25rem 1rem 1rem; }
.directory-filters label, .directory-filters legend { font-size: .9rem; font-weight: 650; }
.directory-filter-field { display: grid; min-width: 0; gap: .25rem; }
.directory-filter-field input, .directory-filter-field select {
  width: 100%;
  min-height: 44px;
  padding: .48rem .65rem;
  border: 1px solid #a7b1a6;
  border-radius: .55rem;
  background: var(--paper);
  color: var(--ink);
}
.directory-filter-field select { padding-right: 1.65rem; }
.directory-filters fieldset { min-width: 0; }
.directory-filter-options, .directory-filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .85rem; }
.directory-filter-check { display: flex; min-height: 44px; align-items: center; gap: .55rem; cursor: pointer; }
.directory-filter-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--green); }
.directory-results-heading { align-items: center; margin-bottom: 0; }
.directory-results-heading h2 { overflow-wrap: anywhere; }
.directory-results { min-width: 0; }
.directory-view {
  display: flex;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--cream);
}
.directory-view a {
  display: grid;
  min-height: 44px;
  min-width: 54px;
  place-items: center;
  border-radius: 999px;
  padding-inline: .6rem;
  font-size: .9rem;
  font-weight: 650;
}
.directory-view a:hover { background: var(--sage-pale); }
.directory-view a[aria-current="page"] { background: var(--green); color: var(--cream); }
.directory-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin-top: 1.35rem; }

.directory-map {
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
}
.directory-map-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; padding: .75rem 1rem; }
.directory-map-header h3 { font-size: clamp(1.55rem, 3vw, 2rem); }
.directory-map-header .button { min-height: 44px; padding-inline: .85rem; }
.directory-map-canvas { height: clamp(295px, 47vh, 430px); background: var(--sage-pale); }
.directory-map-status { padding: .65rem 1rem; color: var(--muted); font-size: .9rem; }
.directory-map-status:empty { padding: 0; }
.directory-map-canvas .maplibregl-ctrl-group button { width: 44px; height: 44px; }
.directory-map-canvas .maplibregl-popup-close-button { width: 44px; min-height: 44px; font-size: 1.25rem; }
.directory-map-canvas .maplibregl-popup-content { padding: .9rem 2.75rem .9rem .9rem; color: var(--ink); font: .9rem/1.45 var(--body); }
.directory-map-canvas .maplibregl-popup-content article + article { margin-top: .65rem; padding-top: .65rem; border-top: 1px solid var(--border); }
.directory-map-canvas .maplibregl-popup-content a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; }
.directory-user-location { width: 16px; height: 16px; border: 2px solid white; border-radius: 50%; background: #2466a6; }

@media (min-width: 901px) {
  .directory-map { position: sticky; top: .75rem; z-index: 1; }
}

@media (min-width: 641px) {
  .directory-filters form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .directory-filter-actions { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .directory-filters form { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)) max-content max-content; }
  .directory-filter-actions { grid-column: auto; }
  .directory-results .venue-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 1.6vw, 1.5rem);
  }
  .directory-results .venue-card h3 { font-size: clamp(1.65rem, 1.8vw, 2.05rem); }
  .directory-results .venue-card-body { padding: 1.3rem; }
}

@media (max-width: 480px) {
  .directory-results-heading { gap: .55rem; }
  .directory-results-heading h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
}

.venue-card-cover { position: relative; display: grid; aspect-ratio: 16 / 9; place-items: center; background: radial-gradient(ellipse at 52% 100%, #dfe6d8, #bdcdbd); }
.venue-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.venue-card-cover .icon { width: 45px; height: 45px; color: #455f4e; }
.venue-card h3 { overflow-wrap: anywhere; }
.venue-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.15rem; }
.venue-card-area { margin-block: .35rem .15rem; color: var(--green); }
.venue-card-area .icon { flex: none; }
.venue-card .venue-directory-score { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; color: var(--green); }
.venue-directory-score .icon { color: #92583b; fill: #e6c59f; }
.venue-directory-score strong { color: var(--ink); font-size: 1.1rem; }
.venue-directory-score strong span { font-weight: 500; }
.directory-scoring { margin-bottom: .85rem; }
.directory-rankings { display: flex; flex-wrap: wrap; }
.directory-ranking-description { margin-block: .5rem; color: var(--muted); }
.recommendation-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-block: .35rem;
  padding: .14rem .6rem;
  border-radius: 1rem;
  background: var(--sage-pale);
  color: var(--green);
  font-size: .8rem;
  font-weight: 650;
}
.recommendation-badge:hover { text-decoration: underline; }
.recommendations-page { padding-block: 1.5rem clamp(3rem, 7vw, 6rem); }
.recommendations-list { display: grid; gap: 1rem; }
.recommendation {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  scroll-margin-top: 6rem;
}
.recommendation-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.recommendation-copy h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.recommendation-text { max-width: 70ch; margin-block: .8rem; color: var(--muted); }
.recommendation-text p + p { margin-top: .7rem; }
@media (min-width: 760px) {
  .recommendation:has(.recommendation-photo) { grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr); }
}

@media (max-width: 900px) {
  .site-header-inner { grid-template-columns: auto 1fr auto; }
  .desktop-nav { justify-content: center; gap: 1rem; }
  .desktop-nav a, .desktop-directory { font-size: .9rem; }
  .area-card { min-height: 195px; }
}

@media (max-width: 860px) {
  .site-header-inner { min-height: 64px; grid-template-columns: 1fr auto; }
  .desktop-nav, .desktop-directory { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker { display: none; }

  .mobile-nav nav {
    position: absolute;
    z-index: 3;
    top: calc(100% - 3px);
    right: 1rem;
    display: grid;
    width: min(18rem, calc(100vw - 2rem));
    padding: .45rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--cream);
    box-shadow: 0 10px 32px #232b2124;
  }

  .mobile-nav a { display: flex; min-height: 44px; align-items: center; padding: .4rem .8rem; font-weight: 600; }
}

@media (max-width: 760px) {
  .treatment-grid, .venue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { flex-wrap: wrap; align-items: flex-start; }
  .footer-top { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .shell, .content-width { width: calc(100% - 2rem); }
  .hero-visual { min-height: 390px; align-items: end; border-radius: 22px; }
  .hero-visual > img { width: 100%; height: 100%; object-position: 58% 50%; }
  .hero-visual::after { background: linear-gradient(0deg, #15271efb 0%, #15271eea 28%, #15271e70 61%, #15271e10 100%); }
  .hero-copy { padding: 6rem 1.2rem 2.3rem; }
  .hero h1 { font-size: clamp(3rem, 11vw, 4.2rem); }
  .hero-line-break { display: none; }
  .hero-copy > p:last-child { margin-top: .9rem; font-size: 1rem; }
  .eyebrow { margin-bottom: .75rem; }
  .hero-search { width: calc(100% - 1rem); margin-top: -15px; }
  .discovery-search { grid-template-columns: minmax(0, 1fr); gap: .35rem; padding: .55rem; }
  .discovery-search > .button { min-height: 48px; }
  .search-field { min-height: 55px; padding: .2rem .6rem; }
  .search-field input, .search-field select { min-height: 32px; }
  .search-keyword { border-right: 0; border-bottom: 1px solid var(--border); }
  .search-area .icon:last-child { bottom: .65rem; }
  .discovery-section, .area-section { padding-block: 2.8rem; }
  .section-heading { margin-bottom: 1rem; }
  .tile-grid { gap: .75rem; }
  .treatment-card-copy { padding: .75rem .65rem .9rem; }
  .treatment-card-copy h3 { font-size: 1.7rem; }
  .treatment-card-copy p { font-size: .875rem; line-height: 1.4; }
  .area-grid, .venue-grid, .guide-section { grid-template-columns: minmax(0, 1fr); }
  .area-card { min-height: 190px; }
  .directory-note { align-items: flex-start; }
  .guide-section { gap: .9rem; }
  .footer-top { align-items: flex-start; padding-block: 1.4rem 1rem; }
  .directory-intro .discovery-search { margin-top: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
