/* ============================================================
   Rich Mobile Mechanic — faded-print 70s palette,
   vertical spine headline, menu-first cards, grain overlay.
   ============================================================ */

:root {
  --bg: #efe6d0;
  --bg-2: #e6dabe;
  --surface: #f6efdd;
  --ink: #3a2f1a;
  --ink-soft: #6a5b3c;
  --a: #a67c00;   /* mustard */
  --b: #6b7a3a;   /* avocado */
  --c: #c04e1a;   /* burnt sienna */
  --rule: #c9b98f;
  --shadow: 0 1px 0 rgba(58, 47, 26, 0.08), 0 12px 28px -18px rgba(58, 47, 26, 0.45);
  --spine-w: 3.25rem;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 68rem;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1a13;
    --bg-2: #262117;
    --surface: #262117;
    --ink: #f0e6cf;
    --ink-soft: #b8a985;
    --a: #d9a72c;
    --b: #9aad5c;
    --c: #e0703a;
    --rule: #4a4029;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 14px 30px -20px rgba(0, 0, 0, 0.8);
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  text-wrap: pretty;
  padding-left: var(--spine-w);
  overflow-x: hidden;
}

/* Grain overlay — the whole page gets a film texture. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}
@media (prefers-color-scheme: dark) {
  body::before { opacity: 0.085; }
}

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

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

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

.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;
}

/* ---------- scroll progress: a printed rule that fills ---------- */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  z-index: 70;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
}
.progress span {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--a), var(--b) 55%, var(--c));
}
@supports (animation-timeline: scroll()) {
  .progress span {
    animation: fill linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- vertical spine headline ---------- */

.spine {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--spine-w);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4.5rem 0 3rem;
  background: var(--bg-2);
  border-right: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}
.spine__mark {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--c);
}
.spine__rule {
  width: 1px;
  flex: 0 1 3rem;
  background: var(--rule);
}
.spine__text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "opsz" 24;
  font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.95rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 60vh;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 0.85rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.topbar__brand {
  font-family: var(--font-display);
  font-variation-settings: "wght" 700, "opsz" 20;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.topbar__nav {
  display: flex;
  gap: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar__nav a { color: var(--ink-soft); text-decoration: none; padding: 0.55rem 0; }
.topbar__nav a:hover { color: var(--c); }
.topbar__call {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  padding: 0.7rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 2px;
}
.topbar__call:hover { background: var(--c); color: #fff8ea; }

/* ---------- layout shell ---------- */

main > section {
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
  max-width: var(--maxw);
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c);
  margin: 0 0 0.75rem;
}

h2 {
  font-family: var(--font-display);
  font-variation-settings: "wght" 700, "opsz" 60;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

h3 {
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "opsz" 30;
  font-size: 1.12rem;
  margin: 0 0 0.5rem;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head__note { color: var(--ink-soft); margin: 0; }

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

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 56rem) {
  .hero { grid-template-columns: 1.05fr 0.95fr; }
}

.hero__name {
  font-family: var(--font-display);
  font-variation-settings: "wght" 800, "opsz" 144, "SOFT" 20;
  font-size: clamp(2.4rem, 1.4rem + 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.hero__vibe {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 32rem;
  margin: 0 0 1.75rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.25rem; }

.btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.35rem;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: 2px;
  border: 1px solid var(--ink);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn--primary { background: var(--c); border-color: var(--c); color: #fff8ea; }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem 1.5rem;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.hero__facts dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
}
.hero__facts dd { margin: 0; font-size: 0.95rem; }

.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: var(--shadow);
  filter: saturate(0.82) contrast(1.03) sepia(0.12);
}
.hero__figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: 0.7rem;
}

/* ---------- audio-bar signature ---------- */

.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 46px;
  margin: 0 0 1.5rem;
}
.bars i {
  display: block;
  width: 4px;
  height: 100%;
  border-radius: 1px;
  background: var(--a);
  transform-origin: 50% 100%;
  transform: scaleY(0.18);
  animation: pulse 1.5s ease-in-out infinite alternate;
}
.bars i:nth-child(3n) { background: var(--b); }
.bars i:nth-child(4n) { background: var(--c); }
.bars i:nth-child(1)  { animation-delay: -0.10s; }
.bars i:nth-child(2)  { animation-delay: -0.62s; }
.bars i:nth-child(3)  { animation-delay: -0.28s; }
.bars i:nth-child(4)  { animation-delay: -0.94s; }
.bars i:nth-child(5)  { animation-delay: -0.41s; }
.bars i:nth-child(6)  { animation-delay: -1.18s; }
.bars i:nth-child(7)  { animation-delay: -0.05s; }
.bars i:nth-child(8)  { animation-delay: -0.77s; }
.bars i:nth-child(9)  { animation-delay: -0.33s; }
.bars i:nth-child(10) { animation-delay: -1.05s; }
.bars i:nth-child(11) { animation-delay: -0.19s; }
.bars i:nth-child(12) { animation-delay: -0.88s; }
.bars i:nth-child(13) { animation-delay: -0.52s; }
.bars i:nth-child(14) { animation-delay: -1.24s; }
.bars i:nth-child(15) { animation-delay: -0.14s; }
.bars i:nth-child(16) { animation-delay: -0.69s; }
.bars i:nth-child(17) { animation-delay: -0.37s; }
.bars i:nth-child(18) { animation-delay: -0.99s; }
.bars i:nth-child(19) { animation-delay: -0.24s; }
.bars i:nth-child(20) { animation-delay: -0.83s; }
.bars i:nth-child(21) { animation-delay: -0.46s; }
.bars i:nth-child(22) { animation-delay: -1.11s; }
.bars i:nth-child(23) { animation-delay: -0.08s; }
.bars i:nth-child(24) { animation-delay: -0.58s; }

@keyframes pulse {
  from { transform: scaleY(0.14); }
  to   { transform: scaleY(1); }
}

/* ---------- strip ---------- */

.strip {
  max-width: none;
  background: var(--ink);
  color: var(--bg);
  padding: 1.4rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}
.strip p { margin: 0; }
.strip p:first-child {
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "opsz" 24;
  font-size: 1.05rem;
}
.strip p:last-child {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 72%, transparent);
}

/* ---------- menu (services) ---------- */

.menu__grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 52rem) {
  .menu__grid { grid-template-columns: 1fr 1fr; column-gap: clamp(2.5rem, 5vw, 4.5rem); }
}

.menu__group h3 {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.55rem;
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-variation-settings: "wght" 700, "opsz" 20;
}

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1.25rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--rule);
}
.item:last-child { border-bottom: 0; }
.item__name {
  font-variation-settings: "wght" 600, "opsz" 20;
  font-size: 1rem;
  line-height: 1.35;
}
.item__name em {
  display: block;
  font-style: normal;
  font-variation-settings: "wght" 400, "opsz" 16;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-top: 0.2rem;
  max-width: 34ch;
}
.item__price {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--c);
  white-space: nowrap;
  text-align: right;
}

.menu__foot {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 52rem;
}

/* ---------- how it works ---------- */

.how { background: var(--bg-2); max-width: none; }
.how > * { max-width: var(--maxw); margin-inline: auto; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }
  .steps li:last-child { grid-column: 1 / -1; }
}
.steps li {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.steps__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--c);
  display: block;
  margin-bottom: 0.5rem;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: var(--shadow);
  filter: saturate(0.8) contrast(1.04) sepia(0.14);
}
.gallery figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* ---------- story ---------- */

.story {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) {
  .story { grid-template-columns: 1.6fr 1fr; align-items: start; }
}
.story__text p { margin: 0 0 1.1rem; }
.story__text p:last-child { margin-bottom: 0; }

.story__aside {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.story__aside h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 0.9rem;
}
.story__aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}
.story__aside li {
  padding: 0.42rem 0 0.42rem 1.1rem;
  border-bottom: 1px dotted var(--rule);
  position: relative;
}
.story__aside li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95rem;
  width: 6px; height: 6px;
  background: var(--b);
  border-radius: 50%;
}
.story__aside li:last-child { border-bottom: 0; }
.story__aside-note {
  margin: 1rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: 0.9rem;
}

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

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 52rem) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 1rem;
}
.card__note { font-size: 0.86rem; color: var(--ink-soft); margin: 1rem 0 0; }
.card__lead { margin: 0 0 1rem; font-size: 0.95rem; }
.card__list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  font-size: 0.88rem;
}
.card__list li {
  padding: 0.45rem 0 0.45rem 1rem;
  border-top: 1px dotted var(--rule);
  position: relative;
}
.card__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--a);
}
.card__link {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c);
}
.card__link:hover { text-decoration: underline; }

.hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours th, .hours td { padding: 0.42rem 0; text-align: left; border-bottom: 1px dotted var(--rule); }
.hours th { font-variation-settings: "wght" 600, "opsz" 18; }
.hours td { text-align: right; font-family: var(--font-mono); font-size: 0.8rem; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .is-closed td { color: var(--c); }

.card--find address { font-style: normal; font-size: 1rem; line-height: 1.5; }
.wayfinding { font-size: 0.86rem; color: var(--ink-soft); margin: 1rem 0 0; }
.wayfinding strong { color: var(--ink); }

.phone {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "wght" 700, "opsz" 48;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  letter-spacing: -0.01em;
  color: var(--c);
  text-decoration: none;
  padding: 0.35rem 0;
}
.phone:hover { color: var(--a); }

/* ---------- quotes ---------- */

.quote {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}
@media (min-width: 48rem) {
  .quote { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "opsz" 40;
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.45rem);
  line-height: 1.4;
  margin: 0 0 0.85rem;
  text-wrap: balance;
}
.quote cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

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

.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--pad) 4.5rem;
}
.site-footer__inner { max-width: var(--maxw); margin-inline: auto; }
.site-footer__name {
  font-family: var(--font-display);
  font-variation-settings: "wght" 700, "opsz" 40;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}
.site-footer__meta {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--bg) 78%, transparent);
}
.site-footer__meta a { color: var(--bg); }

.claim-banner {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--bg) 82%, transparent);
  background: color-mix(in srgb, var(--bg) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--bg) 22%, transparent);
  border-radius: 2px;
  text-decoration: none;
}
.claim-banner:hover { color: var(--bg); background: color-mix(in srgb, var(--bg) 18%, transparent); }

.attribution {
  position: static;
  margin: 1.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  opacity: 0.55;
}
.attribution a { color: inherit; }

/* ---------- small screens ---------- */

@media (max-width: 40rem) {
  :root { --spine-w: 2.25rem; }
  .spine { padding: 3.5rem 0 2rem; }
  .spine__mark { font-size: 0.6rem; letter-spacing: 0.12em; }
  .spine__text { font-size: 0.66rem; letter-spacing: 0.1em; }
  .topbar { padding: 0.7rem 1rem; gap: 0.5rem 1rem; }
  .topbar__nav { order: 3; width: 100%; gap: 0.9rem; overflow-x: auto; }
  .topbar__call { font-size: 0.7rem; padding: 0.6rem 0.75rem; }
  .bars { height: 34px; }
  .bars i { width: 3px; }
  .strip { flex-direction: column; gap: 0.4rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bars i { animation: none; transform: scaleY(0.55); }
  .bars i:nth-child(2n) { transform: scaleY(0.85); }
  .bars i:nth-child(3n) { transform: scaleY(0.35); }
  .progress span { transform: scaleX(1); animation: none; }
  .btn { transition: none; }
}
