/* ============================================================
   Hounds — The Barbershop
   Art direction: editorial, ink & bone with a warm ochre accent,
   confident serif display, barber-pole stripe motif, hound emblem.
   ============================================================ */

:root {
  --ink: #17130d;
  --ink-2: #241d14;
  --ink-3: #322718;
  --bone: #f3ede1;
  --bone-2: #e8dfcd;
  --paper: #faf6ed;
  --tan: #b17a2c;
  --tan-2: #d09a45;
  --oxblood: #6f2b23;
  --muted: #7c7364;
  --line: rgba(23, 19, 13, 0.14);
  --line-light: rgba(243, 237, 225, 0.16);

  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --wrap: 74rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);

  --step--1: clamp(0.8rem, 0.76rem + 0.2vw, 0.9rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
  --step-4: clamp(2.9rem, 1.9rem + 4.6vw, 6rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.04; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.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: absolute; left: 0.5rem; top: -3rem; z-index: 100;
  background: var(--ink); color: var(--bone); padding: 0.6rem 1rem;
  border-radius: 2px; text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 0.5rem; }

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

.section-label, .eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tan);
  margin: 0 0 1.1rem;
}

/* ---------- buttons ---------- */
.btn {
  --pad-y: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  padding: var(--pad-y) 1.7rem;
  border: 1.5px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--tan); color: var(--ink); border-color: var(--tan); }
.btn-primary:hover { background: var(--tan-2); border-color: var(--tan-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.9rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 34px;
  background: var(--ink); border-radius: 3px;
}
.brand-mark svg { width: 30px; }
.brand-mark svg path { fill: var(--tan-2); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.01em; }
.brand-sub {
  font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.36em;
  text-transform: uppercase; color: var(--muted); margin-top: 0.28rem;
}

.site-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 1.9rem; }
.nav-menu a {
  text-decoration: none; font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600; color: var(--ink);
  padding-block: 0.4rem; position: relative;
}
.nav-menu a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--tan); transition: width 0.22s ease;
}
.nav-menu a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--ink); color: var(--bone) !important; padding: 0.7rem 1.3rem;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--tan); color: var(--ink) !important; }

.nav-toggle {
  display: none; align-items: center; gap: 0.55rem;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 700; padding: 0.4rem;
}
.nav-toggle-bar { position: relative; width: 22px; height: 2px; background: var(--ink); display: inline-block; }
.nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink);
  transition: transform 0.22s ease, top 0.22s ease;
}
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

/* ---------- barber pole ---------- */
.pole {
  background: repeating-linear-gradient(
    -45deg,
    var(--oxblood) 0, var(--oxblood) 10px,
    var(--bone) 10px, var(--bone) 20px,
    var(--ink) 20px, var(--ink) 30px,
    var(--bone) 30px, var(--bone) 40px
  );
}

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.hero-copy { max-width: 40ch; }
.hero .eyebrow { color: var(--tan-2); }
.hero h1 {
  font-size: var(--step-4);
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
.hero .lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: color-mix(in srgb, var(--bone) 82%, transparent);
  max-width: 34ch;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem;
}
.hero-actions .btn-ghost { color: var(--bone); }
.hero-note {
  margin-top: 1.6rem; font-size: var(--step--1); color: var(--muted);
  letter-spacing: 0.02em; max-width: 30ch;
}

.hero-panel {
  position: relative;
  display: flex; align-items: stretch;
  min-height: 320px;
}
.hero-panel .pole {
  width: 26px; border-radius: 40px; flex: none;
  box-shadow: inset 0 0 0 1px rgba(243,237,225,0.2);
}
.hero-emblem {
  flex: 1;
  border: 1px solid var(--line-light);
  border-left: 0;
  margin-left: 1.4rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem;
  padding: 2rem;
  position: relative;
}
.hero-emblem::before,
.hero-emblem::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; height: 1px;
  background: var(--line-light);
}
.hero-emblem::before { top: 1rem; }
.hero-emblem::after { bottom: 1rem; }
.hero-emblem svg { width: min(220px, 60%); }
.hero-emblem svg path { fill: var(--tan-2); }
.hero-emblem-caption {
  font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--muted); text-align: center;
}

/* ---------- stance strip ---------- */
.stance {
  background: var(--tan);
  color: var(--ink);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.stance-inner p {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 2.6rem;
  padding-block: 1rem;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.05rem, 0.9rem + 0.9vw, 1.7rem);
}
.stance-inner span { position: relative; }
.stance-inner span:not(:last-child)::after {
  content: "·"; position: absolute; right: -1.55rem; top: 0; opacity: 0.5;
}

/* ---------- intro ---------- */
.intro { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: end;
}
.intro-lead h2 { font-size: var(--step-3); max-width: 14ch; }
.intro-body { display: grid; gap: 1.2rem; max-width: 46ch; color: var(--ink-2); }
.intro-body p { font-size: var(--step-1); line-height: 1.55; }

/* ---------- services ---------- */
.services {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.services-head { max-width: 52ch; margin-bottom: 3rem; }
.services-head .section-label { color: var(--tan-2); }
.services-head h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.services-intro { color: color-mix(in srgb, var(--bone) 74%, transparent); max-width: 46ch; }

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-light);
}
.service {
  padding: 2rem 2rem 2.1rem 0;
  border-bottom: 1px solid var(--line-light);
  border-right: 1px solid var(--line-light);
  position: relative;
  transition: background 0.2s ease;
}
.service:nth-child(2n) { padding-left: 2rem; padding-right: 0; border-right: 0; }
.service:hover { background: rgba(208,154,69,0.07); }
.service-no {
  display: block; font-family: var(--sans); font-size: 0.72rem;
  letter-spacing: 0.2em; color: var(--tan-2); margin-bottom: 0.9rem;
}
.service h3 { font-size: var(--step-2); margin-bottom: 0.55rem; }
.service p { color: color-mix(in srgb, var(--bone) 68%, transparent); max-width: 34ch; }

/* ---------- craft ---------- */
.craft { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.craft-grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.craft-figure { position: relative; }
.craft-frame {
  background: var(--ink-2);
  border-radius: 4px;
  aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(23,19,13,0.5);
}
.craft-frame .pole-sm {
  position: absolute; top: 0; bottom: 0; left: 0; width: 16px;
}
.craft-hound { width: 64%; }
.craft-hound path { fill: var(--tan-2); }
.craft-frame::after {
  content: "Hounds"; position: absolute; bottom: 1.2rem; right: 1.4rem;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem;
  color: rgba(243,237,225,0.5);
}

.craft-copy h2 { font-size: var(--step-3); max-width: 16ch; margin-bottom: 2rem; }
.craft-points { display: grid; gap: 1.7rem; }
.craft-points li {
  padding-left: 1.6rem; position: relative;
  border-top: 1px solid var(--line); padding-top: 1.6rem;
}
.craft-points li::before {
  content: ""; position: absolute; left: 0; top: 1.9rem;
  width: 0.55rem; height: 0.55rem; background: var(--tan); border-radius: 50%;
}
.craft-points h3 { font-size: var(--step-1); font-family: var(--serif); margin-bottom: 0.4rem; }
.craft-points p { color: var(--ink-2); max-width: 48ch; }

/* ---------- book ---------- */
.book {
  background: var(--bone-2);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-top: 3px solid var(--ink);
}
.book-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.book-intro h2 { font-size: var(--step-3); max-width: 15ch; margin-bottom: 1.2rem; }
.book-intro p { color: var(--ink-2); max-width: 42ch; margin-bottom: 1rem; }
.book-intro .btn { margin-top: 0.8rem; }
.book-alt { font-size: var(--step--1); }
.book-alt a { color: var(--oxblood); font-weight: 700; text-underline-offset: 3px; }

.book-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: grid; gap: 1.2rem;
  box-shadow: 0 24px 50px -34px rgba(23,19,13,0.5);
}
.book-form-heading {
  font-family: var(--serif); font-size: var(--step-1);
  line-height: 1.2; margin: 0 0 0.2rem;
}
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--ink);
}
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--bone); border: 1.5px solid var(--line);
  border-radius: 2px; padding: 0.8rem 0.9rem; width: 100%; resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field textarea:focus {
  border-color: var(--tan); background: #fff; outline: none;
}
.form-note { font-size: 0.72rem; color: var(--muted); margin: 0; }

/* ---------- visit ---------- */
.visit { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.visit-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.visit-copy h2 { font-size: var(--step-3); max-width: 14ch; margin-bottom: 1.2rem; }
.visit-copy p { color: var(--ink-2); max-width: 42ch; margin-bottom: 2rem; }
.visit-facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.visit-facts li {
  display: grid; gap: 0.3rem; padding-block: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.fact-label {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--tan);
}
.fact-value { font-size: var(--step-0); color: var(--ink); }
.fact-value a { color: var(--oxblood); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--bone); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 0.8fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}
.footer-mark { background: var(--ink-2); }
.footer-name {
  font-family: var(--serif); font-size: 1.5rem; margin: 1rem 0 0.3rem;
  display: flex; flex-direction: column; line-height: 1.1;
}
.footer-name span {
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--muted); margin-top: 0.3rem;
}
.footer-tag { color: color-mix(in srgb, var(--bone) 70%, transparent); font-style: italic; font-family: var(--serif); }
.footer-heading {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--tan-2); margin-bottom: 1.1rem;
}
.footer-nav ul { display: grid; gap: 0.7rem; }
.footer-nav a { text-decoration: none; color: color-mix(in srgb, var(--bone) 82%, transparent); }
.footer-nav a:hover { color: var(--tan-2); }
.footer-list-copy { color: color-mix(in srgb, var(--bone) 70%, transparent); margin-bottom: 1.1rem; max-width: 34ch; }
.ml-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ml-form input {
  flex: 1 1 12rem; min-width: 0;
  font-family: var(--sans); font-size: 0.95rem;
  background: var(--ink-2); border: 1.5px solid var(--line-light); color: var(--bone);
  border-radius: 2px; padding: 0.75rem 0.9rem;
}
.ml-form input::placeholder { color: var(--muted); }
.ml-form input:focus { border-color: var(--tan); outline: none; }

.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem;
  padding-block: 1.6rem;
  font-size: 0.74rem; color: var(--muted);
}
.footer-base a { color: var(--muted); text-decoration: none; }
.footer-base a:hover { color: var(--tan-2); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 62rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: 240px; max-width: 420px; }
  .intro-grid { grid-template-columns: 1fr; align-items: start; }
  .craft-grid { grid-template-columns: 1fr; }
  .craft-figure { max-width: 360px; }
  .book-grid { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 46rem) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); color: var(--bone);
    padding: 0.5rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--line-light);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.28s ease, visibility 0s linear 0.28s;
  }
  .nav-menu.is-open { max-height: 340px; visibility: visible; transition: max-height 0.28s ease; }
  .nav-menu a { color: var(--bone); padding: 1rem 0; border-bottom: 1px solid var(--line-light); }
  .nav-menu a::after { display: none; }
  .nav-cta { background: var(--tan); color: var(--ink) !important; text-align: center; margin-top: 1rem; border-bottom: 0 !important; }
  .site-nav { position: static; }

  .service-list { grid-template-columns: 1fr; }
  .service, .service:nth-child(2n) {
    padding: 1.7rem 0; border-right: 0; padding-left: 0;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .stance-inner span:not(:last-child)::after { display: none; }
}

@media (max-width: 30rem) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .footer-base { flex-direction: column; }
}
