:root {
  --paper: #f6f4ef;
  --paper-2: #ece9e1;
  --ink: #222522;
  --muted: #686b65;
  --line: #cbc8be;
  --white: #fffefb;
  --sage: #b9c5b5;
  --sage-deep: #536455;
  --coral: #e2715f;
  --cobalt: #315f93;
  --marigold: #d69a2b;
  --cream-accent: #eadfc8;
  --cream-ink: #40392f;
  --cream-muted: #6f6556;
  --shadow: rgba(56, 54, 49, 0.11);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}
button, input, select { font: inherit; }
button { color: inherit; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
}
.skip-link:focus { top: 12px; }

.site-header {
  width: min(1180px, 100%);
  margin-inline: auto;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 38px);
}
.wordmark {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-links {
  display: flex;
  gap: 25px;
  color: var(--muted);
  font-size: 0.82rem;
}
.site-links button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.site-links button:hover,
.site-links button:focus-visible { color: var(--ink); }
.nav-cta { justify-self: end; }

.btn {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  padding: 11px 17px;
  cursor: pointer;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.82rem;
}
.btn:hover { background: var(--sage-deep); border-color: var(--sage-deep); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--paper-2); border-color: var(--ink); }

.hero {
  flex: 1;
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 30px clamp(20px, 4vw, 38px) 36px;
  gap: 44px;
  min-height: 0;
}
.hero-art,
.hero-copy { min-width: 0; }
.hero-art img {
  width: 100%;
  max-height: min(68vh, 640px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  clip-path: inset(0 4% 0 4% round 44% 46% 9% 8%);
}
.hero-copy h1 {
  font: 400 clamp(2.7rem, 5vw, 5.4rem) / 0.96 var(--display);
  letter-spacing: -0.04em;
  margin: 0;
}
.pathways { display: grid; gap: 24px; margin-top: 42px; }
.pathway { border-top: 1px solid var(--line); padding: 22px 0 4px; }
.pathway:first-child { border-top: 0; padding-top: 0; }
.pathway-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 10px;
}
.pathway h2 {
  margin: 0;
  font: 500 1.45rem var(--display);
}
.pathway small { color: var(--muted); font-size: 0.75rem; }

.silk-gallery-button {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 132px 1fr auto;
  align-items: center;
  gap: 17px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.silk-gallery-button:hover { border-color: var(--ink); background: var(--paper-2); }
.silk-gallery-button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.silk-gallery-button img { width: 132px; height: 92px; object-fit: cover; }
.silk-gallery-button strong { display: block; font: 500 1.45rem var(--display); }
.silk-gallery-button small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.75rem; }
.silk-gallery-button .pathway-arrow { padding: 12px 17px 12px 0; font-size: 1.25rem; }

.mini-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini-service {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: start;
  border: 1px solid var(--line);
  padding: 10px;
  min-height: 68px;
  background: color-mix(in srgb, var(--white) 70%, transparent);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.mini-service:hover { border-color: var(--ink); background: var(--paper-2); }
.mini-service:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.mini-service i {
  grid-area: 1 / 1;
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin-bottom: 7px;
}
.mini-service:nth-child(1) i { background: var(--coral); }
.mini-service:nth-child(2) i { background: var(--cobalt); }
.mini-service:nth-child(3) i { background: var(--marigold); }
.mini-service > span:not(.pathway-arrow) {
  grid-area: 2 / 1;
  display: block;
  font-size: 0.72rem;
  line-height: 1.2;
}
.mini-service .pathway-arrow {
  grid-area: 1 / 2 / -1 / 3;
  align-self: center;
  padding: 0 2px 0 8px;
  font-size: 1.25rem;
}

.studio-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--cream-accent);
  color: var(--cream-ink);
  padding: 17px max(clamp(20px, 4vw, 38px), calc((100% - 1180px) / 2 + 20px));
  font-size: 0.72rem;
}
.studio-footer-brand { display: flex; align-items: center; gap: 15px; min-width: 0; }
.studio-footer-name { font-weight: 600; letter-spacing: 0.08em; white-space: nowrap; }
.footer-swatches { display: flex; align-items: center; gap: 5px; }
.footer-swatches i { display: block; width: 18px; height: 10px; opacity: 0.92; }
.footer-swatches i:nth-child(1) {
  background: var(--coral);
  border-radius: 62% 38% 54% 46% / 48% 61% 39% 52%;
  transform: rotate(-7deg);
}
.footer-swatches i:nth-child(2) {
  width: 16px;
  background: var(--cobalt);
  border-radius: 38% 62% 44% 56% / 57% 42% 58% 43%;
  transform: rotate(5deg);
}
.footer-swatches i:nth-child(3) {
  width: 17px;
  background: var(--marigold);
  border-radius: 55% 45% 65% 35% / 42% 58% 39% 61%;
  transform: rotate(-3deg);
}
.studio-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  color: var(--cream-muted);
}
.studio-footer-links button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.studio-footer-links button:hover { color: var(--cream-ink); }

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(560px, calc(100% - 24px));
  color: var(--ink);
}
dialog::backdrop { background: rgba(18, 22, 18, 0.67); backdrop-filter: blur(4px); }
#silk-dialog.silk-grid-open { width: min(940px, calc(100% - 24px)); }
#booking-dialog { width: min(940px, calc(100% - 24px)); }

.booking {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.booking-service-detail {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 540px;
  padding: 36px 34px 32px;
  background: var(--paper-2);
  border-right: 1px solid var(--line);
}
.booking-service-detail::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--service-accent, var(--coral));
}
.booking-service-detail h2 {
  max-width: 9ch;
  margin: 0 0 15px;
  font: 500 clamp(2.1rem, 4vw, 3.4rem) / 0.95 var(--display);
  letter-spacing: -0.035em;
}
.booking-service-detail > div > p { margin: 0; max-width: 34ch; color: var(--muted); font-size: 0.9rem; }
.service-facts { display: grid; gap: 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.service-fact {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}
.service-fact span { color: var(--muted); }
.booking-service-note { margin-top: 26px; font: 500 1.05rem / 1.3 var(--display); color: var(--sage-deep); }
.booking-head { display: flex; justify-content: flex-end; align-items: flex-start; padding: 18px 24px 0; }
.icon-btn {
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.booking-body { padding: 22px 32px 30px; }
.field { margin-bottom: 20px; }
.field > label, .field > span { display: block; font-size: 0.79rem; font-weight: 600; margin-bottom: 8px; }
.service-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.service-options label { cursor: pointer; }
.service-options label:nth-child(1) { --option-accent: var(--coral); }
.service-options label:nth-child(2) { --option-accent: var(--cobalt); }
.service-options label:nth-child(3) { --option-accent: var(--marigold); }
.service-options input { position: absolute; opacity: 0; pointer-events: none; }
.service-options span {
  display: block;
  border: 1px solid var(--line);
  min-height: 66px;
  padding: 11px;
  font-size: 0.8rem;
}
.service-options input:checked + span {
  border-color: var(--ink);
  background: var(--paper-2);
  box-shadow: inset 0 -3px var(--option-accent);
}
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type="date"], select {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 11px;
  border-radius: 0;
}
.request-preview {
  display: none;
  background: var(--paper-2);
  padding: 14px;
  margin: 18px 0;
  white-space: pre-line;
  font-size: 0.86rem;
}
.request-preview.show { display: block; }
.booking-actions { display: flex; justify-content: flex-end; gap: 8px; }

.gallery-modal, .care-page, .notes-page {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}
.gallery-head, .care-page-head, .notes-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px 17px;
  border-bottom: 1px solid var(--line);
}
.gallery-head h2, .care-page-head h2, .notes-page-head h2 {
  margin: 0 0 3px;
  font: 500 1.85rem var(--display);
}
.gallery-head p, .care-page-head p, .notes-page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.gallery-head-actions { display: flex; align-items: center; gap: 10px; }
.gallery-view-toggle {
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 11px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.gallery-view-toggle:hover { border-color: var(--ink); background: var(--paper-2); }
.gallery-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px;
  background: var(--paper-2);
}
.gallery-stage img {
  height: min(58vh, 500px);
  min-height: 300px;
  object-fit: cover;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 7px 16px var(--shadow);
}
.gallery-caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 15px 24px 18px;
}
.gallery-navigation { display: grid; justify-items: center; gap: 5px; }
.gallery-navigation span { color: var(--muted); font-size: 0.75rem; line-height: 1; }
.gallery-controls { display: flex; gap: 6px; }
.gallery-controls button {
  width: 38px;
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.gallery-controls button:hover { border-color: var(--ink); background: var(--paper-2); }
.gallery-inquiry {
  display: none;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 24px 19px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.gallery-inquiry.show { display: grid; }
.gallery-inquiry p { margin: 0; color: var(--muted); font-size: 0.8rem; }
.gallery-inquiry strong { display: block; margin-bottom: 2px; color: var(--ink); font: 500 1.05rem var(--display); }
.gallery-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px;
  background: var(--paper-2);
}
.gallery-grid.show { display: grid; }
.gallery-grid-item {
  border: 1px solid var(--line);
  padding: 8px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 7px 16px var(--shadow);
}
.gallery-grid-item:hover { border-color: var(--ink); }
.gallery-grid-item:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.gallery-grid-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-grid-item span { display: block; padding: 10px 3px 3px; font: 500 0.94rem var(--display); }

.care-page-head { padding: 30px 30px 23px; }
.care-page-head h2 {
  font: 500 2.2rem / 1 var(--display);
  letter-spacing: -0.025em;
}
.care-page-head p { max-width: 45ch; font-size: 0.86rem; }
.care-page-body, .notes-page-body { padding: 24px 30px 30px; }
.care-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.care-values div { border-top: 3px solid var(--sage); padding-top: 12px; }
.care-values div:nth-child(2) { border-color: var(--coral); }
.care-values div:nth-child(3) { border-color: var(--cobalt); }
.care-values strong { display: block; margin-bottom: 5px; font: 500 1.08rem var(--display); }
.care-values p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.care-offerings { border-top: 1px solid var(--line); }
.care-offering {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.care-offering h3 { margin: 0 0 3px; font: 500 1.15rem var(--display); }
.care-offering p { margin: 0; color: var(--muted); font-size: 0.76rem; }

.notes-list { display: grid; gap: 22px; }
.note { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.note:last-child { padding-bottom: 0; border-bottom: 0; }
.note time {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.note h3 { margin: 0 0 6px; font: 500 1.2rem var(--display); }
.note p { margin: 0; color: var(--muted); font-size: 0.86rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 15px;
  font-size: 0.82rem;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 30;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 760px) {
  .site-header {
    height: auto;
    min-height: 61px;
    padding: 12px 17px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "links links";
    gap: 10px 16px;
  }
  .wordmark { grid-area: brand; align-self: center; }
  .nav-cta {
    grid-area: cta;
    font-size: 0.74rem;
    padding: 8px 10px;
  }
  .site-links {
    grid-area: links;
    gap: 16px;
  }
  .hero { grid-template-columns: 1fr; padding: 22px 20px 35px; gap: 24px; }
  .hero-copy h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .hero-art img { aspect-ratio: 4 / 3; clip-path: inset(0 2% round 44% 44% 8% 8%); }
  .silk-gallery-button { grid-template-columns: 94px 1fr auto; min-height: 78px; gap: 12px; }
  .silk-gallery-button img { width: 94px; height: 78px; }
  .silk-gallery-button strong { font-size: 1.2rem; }
  .silk-gallery-button .pathway-arrow { padding-right: 12px; }
  .mini-services { grid-template-columns: 1fr; }
  .mini-service {
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .mini-service i { margin: 0; flex: 0 0 auto; }
  .mini-service > span:not(.pathway-arrow) { flex: 1; }
  .mini-service .pathway-arrow { margin-left: auto; padding: 0 4px; }
  .studio-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 15px 17px;
  }
  .studio-footer-links { justify-content: flex-start; gap: 7px 16px; }
  #booking-dialog { width: min(100% - 18px, 620px); max-height: calc(100dvh - 18px); }
  .booking { grid-template-columns: 1fr; overflow: visible; }
  .booking-service-detail {
    min-height: 0;
    padding: 27px 20px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .booking-service-detail h2 { max-width: none; font-size: 2.25rem; margin-bottom: 10px; }
  .service-facts { grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 20px; }
  .service-fact { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; }
  .service-fact:last-child { grid-column: 1 / -1; }
  .booking-service-note { display: none; }
  .booking-head, .booking-body, .care-page-head, .care-page-body, .notes-page-head, .notes-page-body {
    padding-left: 20px;
    padding-right: 20px;
  }
  .gallery-head { padding: 18px 18px 14px; }
  .gallery-stage { padding: 14px; }
  .gallery-stage img { padding: 6px; }
  .gallery-caption { padding: 14px 18px 16px; }
  .gallery-inquiry { grid-template-columns: 1fr; gap: 12px; padding: 15px 18px 18px; }
  .gallery-inquiry .btn { width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 14px; }
  .service-options, .booking-grid, .care-values { grid-template-columns: 1fr; }
  .care-offering { grid-template-columns: 1fr; gap: 10px; }
  .care-offering .btn { width: 100%; }
  .booking-actions { flex-direction: column-reverse; }
  .booking-actions .btn { width: 100%; }
}

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