:root {
  --paper: #F7F7F4;
  --mist: #E9ECE7;
  --oat: #D8D0C4;
  --ink: #22302B;
  --ink-2: #3d4a45;
  --moss: #5D6E64;
  --line: rgba(34, 48, 43, .14);
  --danger: #9b3b2f;

  --serif: "Marcellus", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --g: clamp(16px, 4vw, 80px);
  --section: clamp(80px, 10vw, 170px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.9em;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 500 .95rem/1 var(--sans); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s ease;
}
.btn:hover { background: #33453e; }
.btn:disabled { background: #9aa39f; cursor: not-allowed; }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.quiet:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.text-link {
  font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: border-color .25s ease;
}
.text-link:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px var(--g);
  position: relative; z-index: 5;
}
.wordmark { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.wordmark small { font-family: var(--sans); font-size: .8rem; letter-spacing: .04em; color: var(--moss); margin-left: .6em; }
.site-header nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-links { display: flex; gap: 2.2rem; padding: .7rem 1.4rem; }
.nav-links a { text-decoration: none; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Home: the header sits over the split hero */
.home .site-header {
  position: absolute; inset: 0 0 auto 0;
  display: grid; grid-template-columns: 5fr 7fr;
}
.home .site-header nav { justify-content: flex-end; }
.home .nav-links { background: rgba(247, 247, 244, .85); backdrop-filter: blur(8px); border-radius: 999px; }

/* ---------- Hero (home) ---------- */
.hero { display: grid; grid-template-columns: 5fr 7fr; min-height: max(100vh, 760px); }
.hero-copy {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 160px clamp(32px, 5vw, 96px) clamp(48px, 7vh, 88px) var(--g);
}
.hero h1 { font-size: clamp(3rem, 4.6vw, 5.6rem); line-height: 1.05; letter-spacing: -.01em; max-width: 11ch; }
.hero .lead { margin-top: clamp(24px, 3vh, 40px); max-width: 36ch; font-size: clamp(1.1rem, 1.25vw, 1.3rem); font-weight: 300; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: clamp(28px, 4vh, 48px); }
.hero-facts {
  margin-top: clamp(48px, 9vh, 120px); padding-top: 22px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  font-size: .92rem; color: var(--moss);
}
.hero-facts strong { display: block; font-weight: 500; color: var(--ink); }
.hero-image { position: relative; overflow: hidden; background: var(--oat); }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

@media (prefers-reduced-motion: no-preference) {
  .hero-image img { animation: settle 2.6s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > * { animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .15s; }
  .hero-copy > :nth-child(3) { animation-delay: .3s; }
  .hero-copy > :nth-child(4) { animation-delay: .45s; }
}
@keyframes settle { from { transform: scale(1.07); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Shared section pieces ---------- */
.section-head h2 { font-size: clamp(2.3rem, 3.6vw, 4rem); line-height: 1.08; letter-spacing: -.005em; }
.section-head p { color: var(--moss); max-width: 46ch; margin-top: 1.1rem; font-size: 1.08rem; }
.more { margin-top: clamp(28px, 3vw, 44px); }

.page-head { padding: clamp(48px, 7vw, 120px) var(--g) clamp(40px, 5vw, 80px); max-width: 1100px; }
.page-head h1 { font-size: clamp(2.8rem, 5vw, 5.4rem); line-height: 1.04; letter-spacing: -.01em; }
.page-head p { margin-top: 1.3rem; max-width: 52ch; font-size: clamp(1.08rem, 1.2vw, 1.25rem); font-weight: 300; color: var(--ink-2); }

/* ---------- How a visit goes ---------- */
.visit {
  display: grid; grid-template-columns: 6fr 6fr; gap: clamp(48px, 7vw, 140px);
  padding: var(--section) var(--g) var(--section) 0; align-items: start;
}
.visit-images { position: relative; padding-bottom: clamp(60px, 8vw, 140px); }
.visit-images .main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.visit-images .inset {
  position: absolute; right: calc(-1 * clamp(24px, 3.5vw, 70px)); bottom: 0;
  width: 38%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 999px 999px 0 0; border: 10px solid var(--paper);
}
.visit-copy { padding-top: clamp(0px, 4vw, 60px); max-width: 640px; }
.steps { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 3.2rem 1fr auto; column-gap: 1.2rem;
  padding: 1.7rem 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--moss); }
.steps h3 { font-size: 1.5rem; line-height: 1.2; }
.steps .time { font-size: .9rem; color: var(--moss); white-space: nowrap; padding-top: .3rem; }
.steps p { grid-column: 2 / 4; margin-top: .55rem; color: var(--ink-2); max-width: 48ch; }

/* ---------- Work mosaic (home) ---------- */
.work { background: var(--mist); padding: var(--section) var(--g); }
.work .section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(36px, 4vw, 64px); }
.work .section-head p { margin-top: 0; }
.mosaic {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  grid-template-rows: repeat(2, clamp(260px, 30vw, 520px));
  gap: clamp(10px, 1.1vw, 18px);
}
.mosaic figure, .gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--oat); }
.mosaic img, .gallery img { width: 100%; height: 100%; object-fit: cover; }
figcaption.tag {
  position: absolute; left: 0; bottom: 0; margin: 14px; padding: .45rem .9rem;
  background: rgba(247, 247, 244, .92); border-radius: 999px; font-size: .88rem;
}
.m-waves { grid-row: 1 / 3; }
.m-sleek { grid-column: 4; grid-row: 1 / 3; }
.m-blonde { grid-column: 2 / 4; grid-row: 2; }
.m-blonde img { object-position: 50% 28%; }
.m-bob img { object-position: 50% 35%; }

/* ---------- Gallery (work page) ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(220px, 22vw, 420px);
  gap: clamp(10px, 1.1vw, 18px); padding: 0 var(--g);
}
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.gallery .big { grid-column: span 2; grid-row: span 2; }

/* ---------- Prices ---------- */
.split {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 120px);
  padding: 0 var(--g) var(--section) 0;
}
.split-image { position: relative; }
.split-image img { position: sticky; top: 0; width: 100%; height: 100vh; object-fit: cover; }
.price-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 72px); }
.price-group h3 { font-size: 1.55rem; margin-bottom: .6rem; }
.price-group dl, dl.featured { margin: 0; }
.price-group:last-child { grid-column: 1 / -1; }
.price-group:last-child dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 4vw, 72px); }
.price-row {
  display: grid; grid-template-columns: 1fr auto 3.6rem; column-gap: 1rem; align-items: baseline;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
}
.price-row dt { font-weight: 500; }
.price-row dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-row .note { grid-column: 1 / 3; font-size: .92rem; color: var(--moss); margin-top: .15rem; }
.price-row .row-book {
  grid-column: 3; grid-row: 1; justify-self: end;
  font-size: .88rem; font-weight: 500; color: var(--moss); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line);
}
.price-row .row-book:hover { color: var(--ink); text-decoration-color: var(--ink); }
.note-box { margin-top: clamp(36px, 4vw, 56px); padding: 1.6rem 1.8rem; background: var(--mist); max-width: 62ch; color: var(--ink-2); }

.featured-wrap {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 120px);
  padding: var(--section) var(--g);
}
dl.featured { columns: 2; column-gap: clamp(32px, 4vw, 72px); }
dl.featured .price-row { break-inside: avoid; }

/* ---------- Stylists ---------- */
.stylists { list-style: none; padding: 0; margin: clamp(32px, 4vw, 56px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stylists li { border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.stylists h3 { font-size: 1.6rem; }
.stylists p { color: var(--ink-2); }
.stylists .days { color: var(--moss); font-size: .92rem; margin-top: .4rem; }

/* ---------- Find us / visit ---------- */
.find { display: grid; grid-template-columns: 7fr 5fr; background: var(--mist); min-height: 88vh; }
.find-image { position: relative; overflow: hidden; }
.find-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.find-copy {
  padding: clamp(64px, 8vw, 140px) var(--g) clamp(64px, 8vw, 140px) clamp(40px, 5vw, 96px);
  display: flex; flex-direction: column; justify-content: center;
}
.find-copy address { font-style: normal; margin-top: 2rem; font-size: 1.15rem; line-height: 1.6; }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; margin-top: 2.2rem; }
.hours th, .hours td { text-align: left; font-weight: 400; padding: .62rem 0; border-bottom: 1px solid var(--line); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.closed td { color: var(--moss); }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; margin-top: 2.6rem; }
.practical { margin-top: 2rem; font-size: .95rem; color: var(--moss); max-width: 44ch; }

.info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 72px);
  padding: var(--section) var(--g);
}
.info-grid h2 { font-size: 1.7rem; margin-bottom: .8rem; }
.info-grid p { color: var(--ink-2); max-width: 40ch; }
.info-grid p + p { margin-top: .8rem; }

/* ---------- Booking ---------- */
.book-layout { display: grid; grid-template-columns: 4fr 8fr; min-height: calc(100vh - 100px); }
.book-aside { position: relative; }
.book-aside img { position: sticky; top: 0; width: 100%; height: 100vh; object-fit: cover; object-position: 60% 50%; }
.book-main { padding: clamp(40px, 5vw, 88px) var(--g) var(--section) clamp(40px, 5vw, 110px); max-width: 1180px; }
.book-main > h1 { font-size: clamp(2.6rem, 4vw, 4.4rem); line-height: 1.05; }
.book-main > .intro { margin-top: 1rem; color: var(--ink-2); max-width: 56ch; }

.step { border: 0; margin: 0; padding: clamp(32px, 3.4vw, 52px) 0; border-top: 1px solid var(--line); min-width: 0; }
.step:first-of-type { margin-top: clamp(32px, 4vw, 56px); }
.step legend, .step .legend {
  display: flex; align-items: baseline; gap: 1rem; padding: 0; float: left; width: 100%;
  font-family: var(--serif); font-size: clamp(1.5rem, 1.9vw, 1.9rem); line-height: 1.2; margin-bottom: 1.4rem;
}
.step legend + * { clear: both; }
.step .num { font-size: 1.05rem; color: var(--moss); min-width: 1.2rem; }
.step[disabled] { opacity: .45; }
.step .hint { color: var(--moss); font-size: .95rem; margin: -.6rem 0 1.2rem; clear: both; }

.service-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem clamp(20px, 2.4vw, 40px); clear: both; }
.service-groups > .hint { grid-column: 1 / -1; max-width: 60ch; margin: 0; }
.service-groups h3 { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--moss); margin-bottom: .6rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .card {
  display: grid; grid-template-columns: 1fr auto; column-gap: .8rem;
  padding: .85rem 1rem; margin-bottom: .5rem;
  border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); background: #fff;
  transition: box-shadow .2s ease, background-color .2s ease;
}
.choice .card small { grid-column: 1 / -1; color: var(--moss); font-size: .86rem; }
.choice:hover .card { box-shadow: inset 0 0 0 1px var(--moss); }
.choice input:checked + .card { background: var(--ink); color: var(--paper); box-shadow: none; }
.choice input:checked + .card small { color: #c8d1cc; }
.choice input:focus-visible + .card { outline: 2px solid var(--ink); outline-offset: 2px; }

.stylist-choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; clear: both; }
.stylist-choices .card { grid-template-columns: 1fr; min-height: 100%; }

.when { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: clamp(28px, 3.5vw, 64px); align-items: start; clear: both; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.cal-head strong { font-weight: 500; }
.cal-nav { display: flex; gap: .4rem; }
.icon-btn {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); font-size: 1.1rem; line-height: 1;
}
.icon-btn:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: .8rem; color: var(--moss); padding-bottom: .3rem; }
.cal-day {
  aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  font-variant-numeric: tabular-nums; font-size: .98rem;
}
.cal-day.available { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.cal-day.available:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.cal-day:disabled { color: #a9b0ac; cursor: default; }
.cal-day[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.cal-legend { font-size: .85rem; color: var(--moss); margin-top: .8rem; }

.times h3 { font-family: var(--sans); font-size: 1rem; font-weight: 500; margin-bottom: 1rem; }
.time-group { margin-bottom: 1.2rem; }
.time-group h4 { margin: 0 0 .5rem; font-size: .88rem; font-weight: 400; color: var(--moss); }
.time-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.time-list .choice .card { display: block; padding: .55rem .95rem; margin: 0; border-radius: 999px; font-variant-numeric: tabular-nums; font-size: .95rem; }
.times .empty { color: var(--moss); max-width: 40ch; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; max-width: 760px; clear: both; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .95rem; }
.field label span { font-weight: 400; color: var(--moss); }
.field input, .field textarea {
  padding: .8rem .95rem; border: 0; border-radius: 10px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.field .error { color: var(--danger); font-size: .9rem; }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); }
.hp { position: absolute; left: -9999px; }

.summary {
  margin-top: 2rem; padding: 1.4rem 1.6rem; background: var(--mist); border-radius: 12px; max-width: 760px;
  display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.6rem;
}
.summary dt { color: var(--moss); }
.summary dd { margin: 0; }
.confirm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.6rem; }
.confirm-row p { color: var(--moss); font-size: .92rem; max-width: 46ch; }
.alert { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 10px; background: #f6e6e2; color: var(--danger); max-width: 760px; }
.alert:empty { display: none; }

.done { padding-top: clamp(32px, 4vw, 56px); max-width: 760px; }
.done .ref { display: inline-block; margin-top: 1rem; padding: .4rem .9rem; border-radius: 999px; background: var(--mist); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.done .actions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; margin-top: 2rem; }
.done p { margin-top: 1rem; color: var(--ink-2); }

/* ---------- Simple pages (manage, 404) ---------- */
.narrow { padding: clamp(48px, 7vw, 120px) var(--g) var(--section); max-width: 880px; }
.narrow h1 { font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.05; }
.narrow > p { margin-top: 1rem; color: var(--ink-2); max-width: 56ch; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px var(--g) 40px; border-top: 1px solid var(--line); color: var(--moss); font-size: .92rem; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-main address { font-style: normal; }
.footer-main a { text-decoration: none; }
.footer-main a:hover { text-decoration: underline; }
.site-footer .wordmark { color: var(--ink); font-size: 1.4rem; }
.credits { margin-top: 48px; font-size: .8rem; max-width: 120ch; }
.credits a { text-decoration-color: var(--line); text-underline-offset: 3px; }

/* ---------- Smaller screens (desktop is the focus; this keeps it tidy) ---------- */
@media (max-width: 1100px) {
  .service-groups { grid-template-columns: 1fr 1fr; }
  .stylist-choices { grid-template-columns: 1fr 1fr; }
  .when { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .site-header, .home .site-header { display: flex; padding: 18px var(--g); }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-image { order: -1; height: 62vh; }
  .hero-copy { padding: 40px var(--g) 56px; }
  .visit, .split, .featured-wrap { grid-template-columns: 1fr; padding-left: var(--g); }
  .visit-images .inset { right: 0; }
  .split-image img, .book-aside img { position: static; height: 50vh; }
  .work .section-head { flex-direction: column; align-items: flex-start; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 300px; }
  .mosaic figure { grid-column: auto; grid-row: auto; }
  .mosaic .m-waves { grid-row: span 2; }
  .mosaic .m-sleek, .mosaic .m-blonde { grid-column: 1 / -1; }
  .m-sleek img { object-position: 50% 42%; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .find { grid-template-columns: 1fr; }
  .find-image { height: 50vh; }
  .find-copy { padding: 56px var(--g); }
  .info-grid, .stylists { grid-template-columns: 1fr; }
  .book-layout { grid-template-columns: 1fr; }
  .book-aside { display: none; }
  .book-main { padding: 32px var(--g) 80px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .price-cols, .price-group:last-child dl, .fields { grid-template-columns: 1fr; }
  dl.featured { columns: 1; }
  .hero-facts, .service-groups, .stylist-choices { grid-template-columns: 1fr; }
  .mosaic { grid-auto-rows: 220px; }
  figcaption.tag { margin: 8px; font-size: .8rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .tall, .gallery .wide, .gallery .big { grid-row: auto; grid-column: auto; }
}
