/* ===========================================================
   Cuts by Kylie
   Palette drawn from a salon colour chart: plum, blush, brass.
   Display: Fraunces (soft optical axis). UI: Karla.
   =========================================================== */

:root {
  --plum-900: #2A1626;
  --plum-700: #5E2750;
  --plum-500: #7C3A6A;
  --blush:    #E8C9D4;
  --blush-50: #F6EAEF;
  --bone:     #F7F3F0;
  --bone-dim: #EFE8E4;
  --brass:    #9C7538;
  --white:    #FFFFFF;
  --muted:    #7D6872;
  --line:     #E2D6DC;
  --ok:       #2F6B4F;
  --warn:     #9A4B1F;
  --danger:   #9B2C3A;

  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ui: "Karla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 64ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 2px;
}

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

/* Any display rule beats the user-agent [hidden] rule, so make it stick. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--plum-900);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

p { margin: 0 0 1.1em; max-width: var(--measure); }

a { color: var(--plum-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum-900); }

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

img, svg { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - var(--gutter) * 2, 1120px); margin-inline: auto; }
.wrap-narrow { width: min(100% - var(--gutter) * 2, 720px); margin-inline: auto; }

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--bone-dim { background: var(--bone-dim); }
.section--plum { background: var(--plum-900); color: var(--bone); }
.section--plum h2, .section--plum h3 { color: var(--white); }
.section--plum a { color: var(--blush); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--plum-900); color: var(--white); padding: 0.7rem 1.1rem;
  transition: top .15s;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--bone);
  position: sticky; top: 0; z-index: 40;
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem 1rem; padding-block: 0.9rem; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--plum-900);
  text-decoration: none;
  display: inline-flex; align-items: baseline; gap: .42rem;
}
.wordmark em {
  font-style: italic;
  color: var(--plum-700);
}
.nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.6rem); flex-wrap: wrap; }
.nav a {
  font-size: 0.95rem; text-decoration: none; color: var(--plum-900);
  padding-block: .35rem; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--plum-700); }
.nav__book { display: none; }
@media (min-width: 640px) { .nav__book { display: inline-flex; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ui); font-size: 1rem; font-weight: 600; line-height: 1.2;
  padding: 0.85rem 1.5rem; border: 1.5px solid var(--plum-700);
  background: var(--plum-700); color: var(--white);
  text-decoration: none; cursor: pointer; border-radius: var(--radius);
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.btn:hover { background: var(--plum-900); border-color: var(--plum-900); color: var(--white); }
.btn--ghost { background: transparent; color: var(--plum-700); }
.btn--ghost:hover { background: var(--plum-700); color: var(--white); }
.btn--quiet {
  background: transparent; color: var(--plum-900); border-color: var(--line);
  font-weight: 500;
}
.btn--quiet:hover { background: var(--white); border-color: var(--plum-700); color: var(--plum-900); }
.btn--danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn--sm { padding: .5rem .9rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- hero ---------- */

.hero {
  background: var(--bone);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}
.hero__lede {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: var(--muted);
  max-width: 34ch;
}
.hero h1 { margin-bottom: .35em; }
.hero h1 .swash {
  font-style: italic;
  font-variation-settings: "SOFT" 90, "WONK" 1;
  color: var(--plum-700);
  display: block;
}
.hero__meta {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  display: grid; gap: .35rem; font-size: .95rem; color: var(--muted);
  max-width: 34ch;
}
.hero__meta strong { color: var(--plum-900); font-weight: 600; }

/* The booking starter sits in the hero: the first step of the task
   the page exists for, not a link to it. */
.starter {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--plum-700);
  padding: clamp(1.25rem, 3vw, 1.9rem);
}
.starter h2 {
  font-size: 1.35rem; margin-bottom: .2em;
}
.starter__hint { font-size: .93rem; color: var(--muted); margin-bottom: 1.1rem; }
.starter__list { display: grid; gap: .5rem; margin-bottom: 1.1rem; }
.starter__item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--bone); border: 1.5px solid transparent;
  padding: .7rem .9rem; font-family: var(--ui); font-size: 1rem; color: var(--plum-900);
  transition: border-color .12s ease, background .12s ease;
}
.starter__item:hover { border-color: var(--blush); background: var(--blush-50); }
.starter__item input { position: absolute; opacity: 0; pointer-events: none; }
.starter__item:has(input:checked) {
  border-color: var(--plum-700); background: var(--blush-50);
}
.starter__item:has(input:focus-visible) { outline: 3px solid var(--brass); outline-offset: 2px; }
.starter__name { font-weight: 600; }
.starter__cost { color: var(--muted); font-size: .92rem; white-space: nowrap; }
.starter__more { font-size: .93rem; }

/* ---------- service menu (dot leaders) ---------- */

.menu-group + .menu-group { margin-top: clamp(2rem, 4vw, 3rem); }
.menu-group__head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.menu-group__head h3 { margin-bottom: .3em; }
.menu-group__blurb { color: var(--muted); font-size: .97rem; max-width: 52ch; margin-bottom: 1.2rem; }

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: .25rem 1rem;
  padding-block: .62rem;
  border-bottom: 1px solid var(--line);
}
.menu-row__lead {
  display: flex; align-items: baseline; gap: .5rem; min-width: 0;
}
.menu-row__name { font-weight: 600; }
.menu-row__leader {
  flex: 1 1 auto; min-width: 1.5rem; height: 0; align-self: center;
  border-bottom: 2px dotted #C9B3BD;
  transform: translateY(-.15em);
  opacity: .9;
}
.menu-row__time { font-size: .88rem; color: var(--muted); white-space: nowrap; margin-left: .35rem; }
.menu-row__price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-row__price .qualifier { font-weight: 400; color: var(--muted); font-size: .85rem; margin-right: .2rem; }
.menu-row__name a {
  color: inherit; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.menu-row__name a:hover, .menu-row__name a:focus-visible {
  color: var(--plum-700); border-bottom-color: var(--plum-700);
}
.menu-row__qualifier { color: var(--muted); font-size: .85rem; }

/* ---------- booking flow ---------- */

.steps {
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center;
  margin-bottom: 1.75rem; font-size: .92rem; color: var(--muted);
}
.steps li { list-style: none; display: flex; align-items: center; gap: .45rem; }
.steps__dot {
  width: .55rem; height: .55rem; border-radius: 50%; background: var(--line); flex: none;
}
.steps li[aria-current="step"] { color: var(--plum-900); font-weight: 600; }
.steps li[aria-current="step"] .steps__dot { background: var(--plum-700); }
.steps li[data-done="1"] .steps__dot { background: var(--blush); }
.steps ol { display: contents; }

.daypick { display: grid; gap: 1.5rem; }
.day {
  background: var(--white); border: 1px solid var(--line); padding: 1.1rem 1.2rem;
}
.day__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: .85rem; flex-wrap: wrap;
}
.day__date { font-family: var(--display); font-size: 1.22rem; font-weight: 600; font-variation-settings: "SOFT" 40, "WONK" 1; }
.day__count { font-size: .88rem; color: var(--muted); }
.slots { display: flex; flex-wrap: wrap; gap: .45rem; }
.slot-band + .slot-band { margin-top: .85rem; }
.slot-band__label {
  font-size: .82rem; color: var(--muted); margin-bottom: .4rem;
  display: flex; align-items: baseline; gap: .5rem;
}
.slot-band__label::after {
  content: ""; flex: 1 1 auto; border-bottom: 1px solid var(--line);
  transform: translateY(-.25em);
}
.day__away {
  font-size: .9rem; color: var(--muted); background: var(--blush-50);
  border: 1px dashed var(--blush); padding: .7rem .9rem;
}
.slot {
  font-family: var(--ui); font-size: .95rem; font-weight: 600;
  padding: .55rem .8rem; border: 1.5px solid var(--line); background: var(--bone);
  color: var(--plum-900); cursor: pointer; text-decoration: none;
  font-variant-numeric: tabular-nums; border-radius: var(--radius);
  transition: border-color .12s, background .12s, color .12s;
}
.slot:hover { border-color: var(--plum-700); background: var(--plum-700); color: var(--white); }

/* ---------- forms ---------- */

.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field__hint { font-size: .87rem; color: var(--muted); margin: -.1rem 0 .4rem; }
.input, .select, .textarea {
  width: 100%; font-family: var(--ui); font-size: 1rem; color: var(--plum-900);
  padding: .72rem .85rem; background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--plum-700); outline: 3px solid var(--brass); outline-offset: 1px;
}
.textarea { min-height: 6rem; resize: vertical; }
.checkline { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.checkline input { margin-top: .32rem; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--plum-700); }
.field-row { display: grid; gap: 1.15rem; }
@media (min-width: 620px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }

.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-top: 4px solid var(--plum-700);
  padding: clamp(1.25rem, 3.5vw, 2rem);
}

/* ---------- summary panel ---------- */

.summary {
  background: var(--blush-50); border: 1px solid var(--blush);
  padding: 1.15rem 1.25rem; margin-bottom: 1.5rem;
}
.summary h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; font-size: .97rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }

/* ---------- appointment cards ---------- */

.appt {
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--plum-700);
  padding: 1.1rem 1.25rem; display: grid; gap: .55rem;
}
.appt + .appt { margin-top: .9rem; }
.appt--past { border-left-color: var(--line); color: var(--muted); }
.appt--cancelled { border-left-color: var(--danger); }
.appt__when { font-family: var(--display); font-size: 1.2rem; font-weight: 600; font-variation-settings: "SOFT" 40, "WONK" 1; color: var(--plum-900); }
.appt--past .appt__when, .appt--cancelled .appt__when { color: var(--muted); }
.appt__meta { font-size: .95rem; color: var(--muted); }
.appt__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }

.tag {
  display: inline-block; font-size: .78rem; font-weight: 700;
  padding: .18rem .5rem; border: 1px solid currentColor; border-radius: var(--radius);
}
.tag--confirmed { color: var(--ok); }
.tag--completed { color: var(--muted); }
.tag--cancelled { color: var(--danger); }
.tag--no_show { color: var(--warn); }

/* ---------- notices ---------- */

.notice {
  padding: .9rem 1.1rem; border: 1px solid var(--line); background: var(--white);
  border-left: 4px solid var(--plum-700); margin-bottom: 1.25rem; font-size: .97rem;
}
.notice p:last-child { margin-bottom: 0; }
.notice--success { border-left-color: var(--ok); }
.notice--error { border-left-color: var(--danger); }
.notice--info { border-left-color: var(--brass); }

.empty {
  border: 1.5px dashed var(--line); padding: 2rem 1.5rem; text-align: center;
  color: var(--muted); background: var(--white);
}
.empty p { margin-inline: auto; }

/* ---------- footer ---------- */

.footer { background: var(--plum-900); color: var(--bone); padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer a { color: var(--blush); }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer h3 { font-size: 1.05rem; color: var(--white); margin-bottom: .6rem; }
.footer__hours { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.footer__hours li { display: flex; justify-content: space-between; gap: 1rem; padding-block: .2rem; max-width: 20rem; }
.footer__hours .closed { color: var(--blush); opacity: .65; }
.footer__fine {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(247, 243, 240, .18);
  font-size: .86rem; opacity: .75; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
}

/* ---------- admin ---------- */

.admin-shell { display: grid; min-height: 100vh; grid-template-rows: auto 1fr; }
.admin-bar {
  background: var(--plum-900); color: var(--bone);
  padding-block: .8rem;
}
.admin-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.admin-bar a { color: var(--bone); text-decoration: none; font-size: .95rem; }
.admin-bar nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.admin-bar nav a { padding-block: .2rem; border-bottom: 2px solid transparent; }
.admin-bar nav a:hover, .admin-bar nav a[aria-current="page"] { border-bottom-color: var(--blush); }
.admin-bar__brand { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }

.stat-row { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--white); border: 1px solid var(--line); padding: 1rem 1.1rem; }
.stat__n { font-family: var(--display); font-size: 2rem; font-weight: 600; line-height: 1; font-variation-settings: "SOFT" 40; }
.stat__l { font-size: .88rem; color: var(--muted); margin-top: .3rem; }

.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
table.data { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .85rem; color: var(--muted); font-weight: 600; background: var(--bone); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

.filterbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin-bottom: 1.25rem; }
.filterbar .field { margin-bottom: 0; }
.filterbar .select, .filterbar .input { min-width: 10rem; width: auto; }

.hours-grid { display: grid; gap: .6rem; }
.hours-row {
  display: grid; gap: .6rem; align-items: center;
  grid-template-columns: 1fr;
  background: var(--white); border: 1px solid var(--line); padding: .7rem .9rem;
}
@media (min-width: 680px) { .hours-row { grid-template-columns: 9rem 1fr 1fr 7rem; } }
.hours-row__day { font-weight: 600; }

.page-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.page-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 0; }

/* ---------- install prompt ---------- */

.install {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 1rem;
  max-width: 26rem; margin-inline: auto; z-index: 60;
  background: var(--plum-900); color: var(--bone);
  padding: 1rem 1.1rem; display: none; gap: .9rem; align-items: center;
  box-shadow: 0 10px 30px rgba(42, 22, 38, .28);
}
.install[data-open="1"] { display: flex; }
.install p { margin: 0; font-size: .93rem; flex: 1 1 100%; }
@media (min-width: 420px) { .install p { flex: 1 1 auto; } }
.install .btn { white-space: nowrap; }
.install .btn { background: var(--blush); border-color: var(--blush); color: var(--plum-900); }
.install .btn:hover { background: var(--white); border-color: var(--white); color: var(--plum-900); }
.install__close {
  background: none; border: 0; color: var(--blush); font-size: 1.35rem; line-height: 1;
  cursor: pointer; padding: .2rem .4rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .masthead, .footer, .install, .appt__actions, .btn { display: none !important; }
  body { background: #fff; }
}

/* The "how it runs" band pairs prose with the practical facts. */
@media (min-width: 880px) {
  [data-two-col] { grid-template-columns: 1fr 1fr !important; }
}

/* Reserve room so the install bar never covers the end of the page. */
body.has-install-bar { padding-bottom: 7rem; }

/* ---------- the Get the app page ---------- */

.install-guide {
  background: var(--white); border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 1.8rem); margin-top: 2rem;
}
.install-guide[data-primary="1"] { border-top: 4px solid var(--plum-700); }
.install-guide h2 { font-size: 1.4rem; margin-bottom: .3em; }
.install-guide__note { font-size: .92rem; color: var(--muted); max-width: 46ch; }

/* Numbered because installing genuinely is a sequence. */
.install-steps { list-style: none; margin: 1.25rem 0 0; padding: 0; counter-reset: step; }
.install-steps li {
  display: grid; grid-template-columns: 2rem 1fr; gap: .9rem;
  align-items: start; padding-block: .6rem;
}
.install-steps li + li { border-top: 1px solid var(--line); }
.install-steps__n {
  font-family: var(--display); font-variation-settings: "SOFT" 40;
  font-weight: 600; font-size: 1.05rem; line-height: 1.6;
  color: var(--plum-700); text-align: center;
  border-bottom: 2px solid var(--blush);
}
