/* Strop & Tallow — barber shop design
   One accent (pole red), cream paper, ink. Type: Big Shoulders Display + Instrument Sans. */

:root {
  /* colour */
  --paper: #F4EEE3;
  --paper-2: #EAE1D2;
  --ink: #16130F;
  --ink-2: #3A342C;
  --muted: #6B6256;
  --line: #D5C9B6;
  --line-dark: #38322A;
  --accent: #B4281E;
  --accent-deep: #8E1D15;
  --on-accent: #FFF8EE;
  --on-ink: #F4EEE3;
  --on-ink-muted: #B5AA99;

  /* type */
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 7rem;

  --radius: 4px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --max: 1160px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  overflow-x: hidden;
}

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

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0;
}

h1 { font-size: clamp(3.25rem, 11vw, 7rem); line-height: 0.88; }
h2 { font-size: clamp(2.25rem, 6vw, 4rem); }
h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; }

p { margin: 0; }

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

.skip {
  position: absolute; left: var(--s-4); top: -4rem;
  background: var(--ink); color: var(--on-ink);
  padding: var(--s-2) var(--s-4); border-radius: var(--radius); z-index: 20;
}
.skip:focus { top: var(--s-4); }

/* ---------- pole stripe ---------- */
.stripe {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 14px,
    var(--paper) 14px 28px,
    var(--ink) 28px 42px,
    var(--paper) 42px 56px
  );
}
.stripe--thin { height: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  min-height: 4.25rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.6rem; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.03em;
  text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--accent); }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav a:not(.btn) {
  font-weight: 500; font-size: 0.95rem; text-decoration: none;
  padding-block: var(--s-2);
  border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  font: 600 0.9rem/1 var(--font-body);
  background: none; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 0.65rem 0.9rem; cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--s-2) var(--gutter) var(--s-5);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--line); color: var(--accent); }
  .nav .btn { margin-top: var(--s-4); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--on-accent);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover { background: var(--on-accent); color: var(--accent-deep); border-color: var(--on-accent); }

.btn--small { padding: 0.7rem 1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.link-arrow { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }

/* ---------- shared section pieces ---------- */
.section { padding-block: clamp(var(--s-8), 10vw, var(--s-9)); }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--on-ink); }

.eyebrow {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--accent); flex: none; }
.section--ink .eyebrow { color: var(--on-ink-muted); }

.section__head { max-width: 44rem; margin-bottom: var(--s-7); }
.section__head p { margin-top: var(--s-4); color: var(--ink-2); font-size: 1.1rem; max-width: 36rem; }
.section--ink .section__head p { color: var(--on-ink-muted); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 32rem; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(var(--s-7), 7vw, var(--s-8)) clamp(var(--s-8), 9vw, var(--s-9)); }
.hero__grid { display: grid; gap: var(--s-7); align-items: end; }
@media (min-width: 940px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s-8); }
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: var(--s-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6);
  margin: var(--s-7) 0 0; padding: var(--s-5) 0 0; list-style: none;
  border-top: 1px solid var(--line);
  font-size: 0.95rem; color: var(--ink-2);
}
.hero__facts strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-right: var(--s-2); }

/* chair board: the hero visual */
.board {
  background: var(--ink); color: var(--on-ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--accent);
  margin-right: 10px;
}
.board__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) var(--s-5) var(--s-4);
}
.board__head h2 { font-size: 2rem; }
.board__head span { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-ink-muted); white-space: nowrap; }
.board table { width: 100%; border-collapse: collapse; }
.board th, .board td { text-align: left; padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line-dark); vertical-align: middle; }
.board thead th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink-muted); }
.board tbody th { font-weight: 600; }
.board tbody th small { display: block; font-weight: 400; font-size: 0.82rem; color: var(--on-ink-muted); }
.board td:last-child, .board thead th:last-child { text-align: right; }
.board .time { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; white-space: nowrap; }
.board .is-full .time { color: var(--on-ink-muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.board__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5) var(--s-5); border-top: 1px solid var(--line-dark); font-size: 0.9rem; color: var(--on-ink-muted); }

.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.5rem; border-radius: var(--radius);
  border: 1px solid currentColor;
}
.tag--live { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- price list ---------- */
.prices { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.price {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-5); row-gap: var(--s-1);
  padding: var(--s-5) 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.price__name { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; line-height: 1; letter-spacing: 0.02em; }
.price__cost { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--accent); grid-row: 1; grid-column: 2; }
.price__desc { color: var(--ink-2); max-width: 34rem; grid-column: 1; }
.price__time { font-size: 0.85rem; color: var(--muted); grid-column: 2; text-align: right; white-space: nowrap; }
@media (max-width: 480px) {
  .price__time { grid-column: 1; text-align: left; }
}

.split { display: grid; gap: var(--s-7); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-8); }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split .section__head { margin-bottom: 0; position: sticky; top: 6rem; align-self: start; }
}
.split .section__head .btn, .split .section__head .link-arrow { margin-top: var(--s-5); display: inline-flex; }

.menu-group + .menu-group { margin-top: var(--s-8); }
.menu-group h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: var(--s-5); }

.note {
  border-left: 4px solid var(--accent);
  background: var(--paper-2);
  padding: var(--s-5);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-2);
}
.section--tint .note { background: var(--paper); }
.note strong { color: var(--ink); }

/* ---------- barbers ---------- */
.crew { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.crew__row {
  display: grid; gap: var(--s-2) var(--s-5);
  grid-template-columns: 3.5rem minmax(0, 1fr);
  padding: var(--s-5) 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.crew__no { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 0.9; color: var(--accent); grid-row: span 3; }
.crew__name { font-family: var(--font-display); font-weight: 800; font-size: 2rem; text-transform: uppercase; line-height: 1; }
.crew__name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; text-transform: none; color: var(--muted); margin-top: var(--s-2); }
.crew__about { color: var(--ink-2); }
.crew__days { font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
@media (min-width: 900px) {
  .crew__row { grid-template-columns: 5rem minmax(0, 0.9fr) minmax(0, 1.4fr) auto; }
  .crew__no { grid-row: auto; font-size: 3rem; }
}

/* ---------- house rules ---------- */
.rules { list-style: none; margin: 0; padding: 0; counter-reset: rule; display: grid; gap: 0; }
.rules li {
  counter-increment: rule;
  display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: var(--s-4);
  padding: var(--s-5) 0; border-top: 1px solid var(--line-dark);
}
.rules li::before { content: counter(rule, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 0.9; color: var(--accent); filter: brightness(1.45); }
.rules h3 { margin-bottom: var(--s-2); }
.rules p { color: var(--on-ink-muted); max-width: 34rem; }

/* ---------- reviews ---------- */
.quotes { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .quotes { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: var(--s-8); align-items: start; } }
.quote { margin: 0; }
.quote p { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.9rem, 4.6vw, 3.25rem); line-height: 1; }
.quote p::before { content: "\201C"; color: var(--accent); }
.quote p::after { content: "\201D"; color: var(--accent); }
.quote footer { margin-top: var(--s-4); font-size: 0.9rem; color: var(--muted); }
.quotes__side { display: grid; gap: var(--s-5); }
.quote--small { padding-top: var(--s-5); border-top: 2px solid var(--ink); }
.quote--small p { font-family: var(--font-body); font-weight: 400; text-transform: none; font-size: 1.05rem; line-height: 1.55; color: var(--ink-2); }
.quote--small p::before, .quote--small p::after { content: none; }

/* ---------- visit ---------- */
.hours { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.hours th, .hours td { text-align: left; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours .is-today th, .hours .is-today td { font-weight: 600; }
.hours .is-today th::after { content: "Today"; margin-left: var(--s-3); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 0.15rem 0.4rem; border-radius: var(--radius); }
.hours .is-closed td { color: var(--muted); }

.address { font-style: normal; font-size: 1.15rem; line-height: 1.5; }
.address strong { font-family: var(--font-display); font-size: 2rem; font-weight: 800; text-transform: uppercase; display: block; line-height: 1; margin-bottom: var(--s-3); }
.plain-list { margin: var(--s-5) 0 0; padding: 0; list-style: none; color: var(--ink-2); }
.plain-list li { padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.plain-list li strong { color: var(--ink); }

/* ---------- call to action ---------- */
.cta { background: var(--accent); color: var(--on-accent); padding-block: var(--s-8); }
.cta__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-6); }
.cta h2 { max-width: 14ch; }
.cta p { margin-top: var(--s-4); max-width: 30rem; opacity: 0.92; }

/* ---------- page head (inner pages) ---------- */
.page-head { padding-block: clamp(var(--s-7), 7vw, var(--s-8)) var(--s-7); }
.page-head h1 { font-size: clamp(3rem, 9vw, 5.5rem); }
.page-head .lede { margin-top: var(--s-5); }

/* ---------- forms ---------- */
.book { display: grid; gap: var(--s-7); padding-bottom: clamp(var(--s-8), 10vw, var(--s-9)); align-items: start; }
@media (min-width: 940px) { .book { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: var(--s-8); } }

.form { display: grid; gap: var(--s-6); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s-4); }
.form legend { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; text-transform: uppercase; padding: 0; margin-bottom: var(--s-4); display: flex; gap: var(--s-3); align-items: baseline; }
.form legend span { color: var(--accent); }
.form__pair { display: grid; gap: var(--s-4); }
@media (min-width: 620px) { .form__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: grid; gap: var(--s-2); min-width: 0; }
.field label, .field__label { font-weight: 600; font-size: 0.92rem; }
.field__hint { font-size: 0.85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0;
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--on-accent);
  border: 1.5px solid var(--ink-2); border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
}
.field textarea { min-height: 6rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.field--error input, .field--error select { border-color: var(--accent); border-width: 2px; }
.field__error { display: none; font-size: 0.85rem; font-weight: 600; color: var(--accent-deep); }
.field--error .field__error { display: block; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); gap: var(--s-2); }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slot span {
  display: block; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1;
  padding: 0.8rem 0.25rem;
  border: 1.5px solid var(--ink-2); border-radius: var(--radius);
  background: var(--on-accent);
}
.slot input:hover + span { border-color: var(--ink); background: var(--paper-2); }
.slot input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.slot input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.slot input:disabled { cursor: not-allowed; }
.slot input:disabled + span { background: transparent; border-style: dashed; border-color: var(--line); color: var(--muted); text-decoration: line-through; }

.summary { background: var(--ink); color: var(--on-ink); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 940px) { .summary { position: sticky; top: 6rem; } }
.summary__body { padding: var(--s-5); }
.summary h2 { font-size: 2rem; margin-bottom: var(--s-4); }
.summary dl { margin: 0; }
.summary dl div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--line-dark); }
.summary dt { color: var(--on-ink-muted); font-size: 0.9rem; }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary__total dd { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.summary p { margin-top: var(--s-4); font-size: 0.88rem; color: var(--on-ink-muted); }

.confirm { border: 2px solid var(--ink); border-radius: var(--radius); padding: var(--s-6); background: var(--on-accent); }
.confirm h2 { font-size: clamp(2rem, 5vw, 3rem); }
.confirm p { margin-top: var(--s-4); color: var(--ink-2); max-width: 34rem; }
.confirm .btn { margin-top: var(--s-5); }
[hidden] { display: none !important; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding-block: var(--s-8) var(--s-6); }
.site-footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); } }
.site-footer .brand { font-size: 2.25rem; }
.site-footer .brand:hover { color: var(--on-ink); }
.site-footer p, .site-footer li { color: var(--on-ink-muted); font-size: 0.95rem; }
.site-footer h3 { font-size: 1.15rem; letter-spacing: 0.08em; margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.site-footer a:hover { color: var(--on-ink); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line-dark); font-size: 0.85rem; color: var(--on-ink-muted); }

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