/* Tansy & Comb: a salon. Fine-stroked type with air around it, blush paper, one button of tansy yellow. */

:root {
  --black: #151112;
  --paper: #faf3ee;
  --blush: #f1d6d1;
  --mauve: #8f5f6b;
  --tansy: #e6bd3a;

  --bg: var(--paper);
  --fg: var(--black);
  --accent: var(--tansy);
  --accent-ink: var(--black);
  --focus: var(--mauve);
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --badge-bg: var(--black);
  --slot-line: rgba(21, 17, 18, .4);
  --slot-pill: rgba(21, 17, 18, .85);

  --display: "Italiana", "Didot", Georgia, serif;
  --body: "Mulish", "Helvetica Neue", Arial, sans-serif;
}

body { font-family: var(--body); font-size: 1.0625rem; }

.heading { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 5vw, 4.25rem); line-height: 1.05; letter-spacing: .01em; max-width: 16ch; }

.button {
  display: inline-block;
  padding: .95rem 1.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--tansy);
  color: var(--black);
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s;
}
.button:hover { background: var(--blush); }
.link { text-underline-offset: .4em; text-decoration-thickness: 1px; }

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  color: #fff;
  --focus: var(--tansy);
}
.wordmark { font-family: var(--display); font-size: 1.8rem; letter-spacing: .04em; text-decoration: none; }
.wordmark i { font-style: normal; color: var(--tansy); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.site-nav a { text-decoration: none; letter-spacing: .03em; }
.site-nav a:hover { color: var(--tansy); }
.site-nav__cta { padding: .45rem 1.2rem; border: 1px solid #fff; border-radius: 999px; }
@media (max-width: 46rem) {
  .site-nav__extra { display: none; }
  .wordmark { font-size: 1.45rem; }
}

/* ---------- Hero: title high on the left, the rest low on the right ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 7.5rem var(--gutter) clamp(5.5rem, 10vh, 7rem);
  color: #fff;
  --focus: var(--tansy);
}
.hero__shade { background: linear-gradient(180deg, rgba(21, 17, 18, .55) 0%, rgba(21, 17, 18, .2) 45%, rgba(21, 17, 18, .6) 100%); }
.hero__content { display: grid; align-content: space-between; gap: 2.5rem; min-height: calc(100vh - 14rem); min-height: calc(100svh - 14rem); }
.hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 9.4vw, 8.5rem); line-height: .98; letter-spacing: .01em; }
.hero__after { justify-self: end; max-width: 30rem; }
.hero__lede { font-size: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 1.75rem; }

/* ---------- Salon ---------- */

.salon { padding-block: clamp(4.5rem, 10vw, 9rem); }
.salon__text { max-width: 36rem; margin-top: 1.5rem; }

.team { display: grid; gap: 2.5rem 1.5rem; margin-top: 3.5rem; }
@media (min-width: 46rem) {
  .team { grid-template-columns: repeat(3, 1fr); }
  .team li:nth-child(2) { margin-top: 4rem; }
  .team li:nth-child(3) { margin-top: 8rem; }
}
.team .slot { aspect-ratio: 4 / 5; border-radius: 50% 50% 0 0 / 38% 38% 0 0; }
.team h3 { margin-top: 1rem; font-family: var(--display); font-weight: 400; font-size: 2rem; }
.team p { color: #5b4a4d; }
.slot--1 { background: radial-gradient(ellipse at 50% 38%, #c9a79f 0 17%, transparent 18%), radial-gradient(ellipse at 50% 108%, #b48f96 0 46%, transparent 47%), var(--blush); }
.slot--2 { background: radial-gradient(ellipse at 50% 38%, #b9a59a 0 17%, transparent 18%), radial-gradient(ellipse at 50% 108%, #8f7f76 0 46%, transparent 47%), #e9dfd6; }
.slot--3 { background: radial-gradient(ellipse at 50% 38%, #b98f84 0 17%, transparent 18%), radial-gradient(ellipse at 50% 108%, #c9a85a 0 46%, transparent 47%), #f3e6c4; }

/* ---------- Colour before / after ---------- */

.colour { padding-block: clamp(4.5rem, 10vw, 9rem); background: var(--blush); }
.colour__grid { display: grid; gap: 2.5rem clamp(2rem, 7vw, 7rem); align-items: center; }
@media (min-width: 56rem) { .colour__grid { grid-template-columns: 1fr 1fr; } }
.colour__text { max-width: 30rem; margin-top: 1.5rem; }
.colour__flag { display: inline-block; margin-top: 1.5rem; padding: .35rem .9rem; border: 1px dashed var(--mauve); border-radius: 999px; font-size: .9rem; color: #6d4350; }

.compare { position: relative; aspect-ratio: 5 / 6; max-width: 30rem; border-radius: 999px 999px 1rem 1rem; overflow: hidden; --pos: 50%; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare__img--after { clip-path: inset(0 0 0 var(--pos)); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare__handle::after { content: ""; position: absolute; left: 50%; top: 62%; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem; border-radius: 50%; background: var(--tansy); box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.compare__range:focus-visible ~ .compare__handle::after { outline: 3px solid var(--black); outline-offset: 3px; }
.compare__tag { position: absolute; bottom: 1rem; padding: .2rem .7rem; border-radius: 999px; background: rgba(21, 17, 18, .82); color: #fff; font-size: .85rem; pointer-events: none; }
.compare__tag--before { left: 1rem; }
.compare__tag--after { right: 1rem; }

/* ---------- Price list ---------- */

.prices { padding-block: clamp(4.5rem, 10vw, 9rem); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.25rem; }
.filter { padding: .55rem 1.2rem; border: 1px solid var(--black); border-radius: 999px; background: none; letter-spacing: .02em; cursor: pointer; }
.filter:hover { background: var(--blush); }
.filter[aria-pressed="true"] { background: var(--black); color: var(--paper); }
.filter-count { margin-top: 1rem; color: #5b4a4d; }

.list { margin-top: 2rem; column-gap: clamp(2rem, 7vw, 6rem); }
@media (min-width: 54rem) { .list { columns: 2; } }
.list__item { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1.5rem; padding-block: 1rem; border-bottom: 1px solid #cdbdb8; break-inside: avoid; }
.list__name { font-family: var(--display); font-size: 1.55rem; line-height: 1.2; }
.list__price { grid-row: span 2; align-self: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.list__time { grid-column: 1; color: #5b4a4d; font-size: .95rem; }

.quote { max-width: 46rem; margin: clamp(4rem, 9vw, 7rem) auto 0; text-align: center; }
.quote__flag { display: inline-block; padding: .2rem .9rem; border-radius: 999px; background: var(--blush); font-size: .85rem; }
.quote blockquote { margin-top: 1.25rem; font-family: var(--display); font-size: clamp(1.8rem, 3.8vw, 3rem); line-height: 1.15; }
.quote figcaption { margin-top: 1rem; color: #5b4a4d; font-size: .95rem; }

/* ---------- Book ---------- */

.book { padding-block: clamp(4.5rem, 10vw, 9rem); background: var(--black); color: var(--paper); --focus: var(--tansy); }
.book__grid { display: grid; gap: 3rem clamp(2rem, 7vw, 7rem); }
@media (min-width: 56rem) { .book__grid { grid-template-columns: 1fr 1fr; } }
.book__text { max-width: 27rem; margin-top: 1.5rem; color: #dccfc9; }
.book__text a { color: #fff; }
.hours { margin-top: 2rem; max-width: 24rem; }
.hours > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .7rem; border-bottom: 1px solid #4a3f41; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-content: start; }
.form .field:nth-child(n + 3), .form .button, .form__status { grid-column: 1 / -1; }
.form .button { justify-self: start; }
@media (max-width: 30rem) { .form { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field input, .field select { width: 100%; min-height: 3.1rem; padding: .7rem 1.1rem; border: 1px solid #8a7b7e; border-radius: 999px; background: transparent; color-scheme: dark; }
.form__status { min-height: 1.6em; color: var(--tansy); }

/* ---------- Footer ---------- */

.site-footer { padding-block: 2.5rem 6.5rem; background: var(--black); color: #c9bbb6; border-top: 1px solid #3a3032; }
.site-footer .wrap { display: grid; gap: 1rem; }
.site-footer p { max-width: 36rem; }
