/* FADEHOUSE main stylesheet. Layout + components. All values come from tokens.css. */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

.visually-hidden {
  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: fixed;
  top: var(--s-3); left: var(--s-3);
  z-index: var(--z-skip);
  background: var(--chalk);
  color: var(--charcoal);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-1);
  font-weight: 600;
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

/* ---------- text roles ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-display);
  text-transform: uppercase;
  line-height: var(--lh-heading);
  letter-spacing: 0.01em;
  margin: 0;
}
h1 { font-size: var(--t-display); font-weight: 800; line-height: var(--lh-tight); }
h2 { font-size: var(--t-h2); font-weight: 750; }
h3 { font-size: var(--t-h3); font-weight: 700; }

.kick {
  font-size: var(--t-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--muted);
  margin: 0 0 var(--s-4);
}

.lead {
  font-size: var(--t-lead);
  max-width: var(--measure);
  margin: 0;
}

.wine { color: var(--accent); }

.sample-chip {
  display: inline-block;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  padding: 0.1em 0.7em;
  margin-left: var(--s-2);
  vertical-align: middle;
}

.quiet-note { font-size: var(--t-small); color: var(--muted); }
.quiet-note a { color: inherit; }
.quiet-link { color: var(--muted); }

/* ---------- layout ---------- */
.lane {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--edge);
}
.lane--narrow { max-width: 46rem; }

.patch {
  padding-block: var(--section-pad);
  background: var(--bg);
  color: var(--fg);
  position: relative;
}

/* barber-pole hairline: the brand divider. Pure CSS, no images. */
.pole-stripe {
  height: 8px;
  background: repeating-linear-gradient(
    -55deg,
    var(--wine-raw) 0 14px,
    var(--chalk) 14px 22px,
    var(--charcoal-3) 22px 36px
  );
}
.front-window .pole-stripe,
.closing-band .pole-stripe {
  position: absolute;
  left: 0; right: 0; bottom: 0;
}

/* ---------- shop bar (sticky header) ---------- */
.shop-bar {
  position: sticky;
  top: 0;
  z-index: var(--z-bar);
  background: var(--charcoal);
  color: var(--chalk);
  border-bottom: 1px solid var(--line);
}
.shop-bar .lane {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 3.6rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-display);
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  text-decoration: none;
}
.wordmark svg { width: 22px; height: 22px; }
.bar-actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.bar-tel {
  text-decoration: none;
  font-weight: 600;
  font-size: var(--t-small);
  white-space: nowrap;
}
.bar-tel:hover { color: var(--accent); }

/* ---------- actions (buttons) ---------- */
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--r-pill);
  padding: 0.72em 1.5em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out), background var(--dur-1) linear;
}
.action--fill {
  background: var(--accent);
  color: var(--charcoal);
  border-color: var(--accent);
}
[data-tone="chalk"] .action--fill { color: var(--chalk); }
.action--fill:hover { transform: translateY(-1px); }
.action--line {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.action--line:hover { border-color: var(--fg); }

/* ---------- 01 front window ---------- */
.front-window { padding-block: clamp(5rem, 16vh, 9rem) calc(var(--section-pad) + 8px); overflow: clip; }
.front-window::before {
  /* art slot: faint diagonal pinstripe wall. To use a photo instead,
     replace this pseudo-element with an <img> panel; keep contrast high. */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent 0 34px,
    rgba(241, 238, 230, 0.035) 34px 36px
  );
  pointer-events: none;
}
.front-window .lane { position: relative; }
.front-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.front-window .lead { margin-top: var(--s-5); }

/* the chip only knows the time once the script reads the hours: until then,
   and forever if scripts are off, it stays out of the hero entirely */
.open-chip[hidden] { display: none; }
.open-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--muted);
}
.open-chip::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--muted);
}
.open-chip.is-open { color: var(--chalk); }
.open-chip.is-open::before { background: #58b269; }
.open-chip.is-shut::before { background: var(--accent); }

.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin: var(--s-7) 0 0;
  padding: 0;
  font-size: var(--t-small);
  color: var(--muted);
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.trust-strip li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- 02 menu board ---------- */
.board-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6) var(--s-9);
  margin-top: var(--s-7);
}
.menu-group h3 {
  color: var(--accent);
  border-bottom: 2px solid var(--fg);
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-3);
}
.menu-group h3 + ul { margin-bottom: var(--s-6); }
.menu-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cut-row {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.cut-name { font-weight: 600; }
.cut-name small { font-weight: 400; color: var(--muted); }
.cut-mins {
  font-size: var(--t-label);
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cut-dots {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-0.28em);
  min-width: var(--s-5);
}
.cut-price {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-wide);
  font-weight: 750;
  font-size: 1.15rem;
}
.book-link {
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  padding: 0.25em 0.9em;
  white-space: nowrap;
}
/* hover flips to the ground the row sits on, so the label stays readable
   whichever tone the section is wearing */
.book-link:hover { background: var(--accent); color: var(--bg); }
.board-note {
  margin: var(--s-6) 0 0;
  font-size: var(--t-small);
  color: var(--muted);
}

/* ---------- 03 book a chair ---------- */
.step-dots {
  list-style: none;
  display: flex;
  gap: var(--s-4);
  margin: var(--s-5) 0 var(--s-6);
  padding: 0;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
}
.step-dots li { display: inline-flex; align-items: center; gap: var(--s-2); }
.step-dots li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.step-dots li.is-here { color: var(--fg); }
.step-dots li.is-here::before { background: var(--accent); }
.step-dots li.is-done::before { background: var(--accent); }

.wizard-step {
  min-inline-size: 0; /* a fieldset defaults to min-content: never let it push the page wide */
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-5);
  margin: 0 0 var(--s-5);
  background: var(--bg-2);
}
.wizard-step legend {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-display);
  font-weight: 700;
  font-size: var(--t-h3);
  text-transform: uppercase;
  padding-inline: var(--s-2);
}
/* JS reveals steps one at a time; without JS every step is open */
html.js .wizard-step[data-later] { display: none; }
html.js .wizard-step.is-live { display: block; }

/* Without JS every step is already open, so the step counter and the
   next/back buttons steer nothing: take the dead controls off the page. */
html:not(.js) .step-dots,
html:not(.js) [data-back],
html:not(.js) .step-acts:not(:has([type="submit"])) { display: none; }

/* No-JS notice by the submit button: the form still posts to the shop
   mailbox, but a mailto post is browser roulette, so the phone number
   and the address are printed where the visitor is about to press. */
.no-js-note { display: none; }
html:not(.js) .no-js-note {
  display: block;
  margin: var(--s-4) 0 0;
  padding: var(--s-4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-2);
  font-size: var(--t-small);
  max-width: var(--measure);
  /* the shop address is one long unbreakable word: let it wrap, and stop the
     fieldset around it from taking its min-content width at 320 */
  overflow-wrap: anywhere;
}
html:not(.js) .no-js-note a { color: var(--accent); }
/* the draft only exists when the script that writes it is running */
.draft-note { display: none; }
html.js .draft-note { display: block; margin-top: var(--s-4); }

.pick-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-3);
}
.pick {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  cursor: pointer;
}
.pick:hover { border-color: var(--line-strong); }
.pick:has(input:checked) {
  border-color: var(--accent);
  background: rgba(206, 98, 135, 0.08);
}
.pick input { accent-color: var(--wine-bright); margin: 0; }
.pick small { display: block; color: var(--muted); font-size: var(--t-label); }

.step-acts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.field { margin-top: var(--s-4); }
.field label {
  display: block;
  font-size: var(--t-small);
  font-weight: 600;
  margin-bottom: var(--s-1);
}
.field input {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  padding: 0.6em 0.8em;
}
.field input:focus-visible { outline-offset: 1px; }
.field.is-invalid input { border-color: var(--accent); }
.field-oops {
  color: var(--accent);
  font-size: var(--t-small);
  font-weight: 600;
  margin: var(--s-2) 0 0;
}

/* honeypot: gone from view, from tab order, and from assistive tech */
.trap-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.oops-box {
  border: 1px solid var(--accent);
  border-radius: var(--r-2);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-5);
}
.oops-box p { margin: 0 0 var(--s-2); font-weight: 700; }
.oops-box ul { margin: 0; padding-left: 1.2em; }
.oops-box a { color: var(--accent); }

.hand-panel {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-2);
  padding: var(--s-5);
  margin-top: var(--s-5);
}
.hand-panel textarea {
  width: 100%;
  font: inherit;
  font-size: var(--t-small);
  color: var(--fg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  padding: var(--s-3);
  margin-top: var(--s-3);
  resize: vertical;
}

/* ---------- 04 step trio ---------- */
.trio-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin: var(--s-7) 0 0;
  padding: 0;
  counter-reset: none;
}
.trio-num {
  display: inline-grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: var(--s-3);
}
.trio h3 { margin-bottom: var(--s-2); }
.trio p { margin: 0; color: var(--muted); }

/* ---------- 05 review slips ---------- */
.slip-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.review-slip {
  margin: 0;
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.review-slip blockquote { margin: 0; }
.review-slip p { margin: 0; font-size: var(--t-lead); line-height: 1.4; }
.review-slip figcaption {
  margin-top: auto;
  font-size: var(--t-small);
  color: var(--muted);
  font-weight: 600;
}

/* ---------- 06 hours board ---------- */
.hours-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-7) var(--s-9);
  align-items: start;
}
.shop-address {
  font-style: normal;
  margin-top: var(--s-5);
  line-height: 1.7;
}
.walkin-note {
  margin-top: var(--s-5);
  color: var(--muted);
  max-width: var(--measure);
}
.hours-board {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-body);
}
.hours-board th,
.hours-board td {
  text-align: left;
  padding: var(--s-3) var(--s-2);
  border-bottom: 1px solid var(--line);
}
.hours-board th { font-weight: 700; width: 5rem; }
.hours-board td { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 07 faq stack ---------- */
.faq-stack .lane > details { margin-top: var(--s-3); }
.faq-fold {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--bg-2);
}
.faq-fold summary {
  cursor: pointer;
  font-weight: 700;
  padding: var(--s-4) var(--s-5);
  list-style: none;
  position: relative;
  padding-right: var(--s-8);
}
.faq-fold summary::-webkit-details-marker { display: none; }
.faq-fold summary::after {
  content: "+";
  position: absolute;
  right: var(--s-5);
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.faq-fold[open] summary::after { content: "\2212"; }
.faq-fold p { margin: 0; padding: 0 var(--s-5) var(--s-5); color: var(--muted); }

/* ---------- 08 closing band ---------- */
.closing-band {
  text-align: center;
  padding-bottom: calc(var(--section-pad) + 8px);
}
.closing-band .lead { margin: var(--s-4) auto 0; }
.closing-band .front-acts { justify-content: center; }

/* ---------- footer ---------- */
.shop-footer {
  background: var(--charcoal);
  color: var(--chalk);
  padding-block: var(--s-8) var(--s-6);
  border-top: 1px solid var(--line);
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.foot-name {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-display);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin: 0 0 var(--s-2);
}
.foot-head {
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s-2);
}
.shop-footer p { margin: 0 0 var(--s-2); }
.shop-footer a { color: inherit; }
.foot-line {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
  color: var(--muted);
}

/* ---------- reveal motion ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
html.js .reveal[data-delay="1"] { transition-delay: 90ms; }
html.js .reveal[data-delay="2"] { transition-delay: 180ms; }
html.js .reveal[data-delay="3"] { transition-delay: 270ms; }
html.js .reveal.is-inview {
  opacity: 1;
  transform: none;
}

/* ---------- styleguide page ---------- */
.kit-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.kit-chip {
  width: 9.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
  font-size: var(--t-label);
}
.kit-chip .swatch { height: 4rem; }
.kit-chip .swatch-meta { padding: var(--s-2) var(--s-3); }
.kit-list { padding-left: 1.2em; }
.kit-list li { margin-bottom: var(--s-2); }
.kit-block { margin-top: var(--s-7); }

/* ---------- 404 page ---------- */
.lost-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--s-9);
}
.lost-code {
  font-size: clamp(5rem, 24vw, 14rem);
  color: var(--accent);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .board-cols, .hours-cols { grid-template-columns: 1fr; }
  .trio-row, .slip-row, .foot-cols { grid-template-columns: 1fr; gap: var(--s-5); }
  .pick-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bar-tel .tel-label + span { display: none; }  /* number folds into "Call" on small screens */
  .cut-mins { display: none; }
  .front-acts .action { flex: 1 1 auto; }
}

/* ---------- preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .action { transition: none; }
  .action--fill:hover { transform: none; }
}
