/* ==========================================================================
   The Vault Bicycle Shop — design system
   Concept: a vault registry. Two registers encode the business's dual
   identity — dark "shop floor" (steel + vault gold) and light "archive"
   (placard paper + catalog stamps). Everything here is cataloged, kept.
   Type: Big Shoulders (display) / Archivo (body) / IBM Plex Mono (registry)
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Big Shoulders';
  src: url('../fonts/big-shoulders-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plex-mono-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Shop-floor register (dark, warm steel) */
  --ink: #181410;
  --ink-2: #221d16;
  --ink-3: #2c261c;
  --line-dark: color-mix(in oklab, #f4efe3 14%, transparent);
  --text-dark: #e8e1d3;
  --muted-dark: #b3ab99;

  /* Vault gold — carried over from the shop's existing brand */
  --gold: #ffb100;
  --gold-soft: #ffc94d;
  --gold-deep: #cc8d00;

  /* Archive register (placard paper) */
  --paper: #f4efe3;
  --paper-2: #eae3d1;
  --line-paper: color-mix(in oklab, #1d1912 18%, transparent);
  --text-paper: #1d1912;
  --muted-paper: #5f574a;
  --stamp-red: #a63c26;

  /* Type */
  --font-display: 'Big Shoulders', 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Fluid scale */
  --size-hero: clamp(3.2rem, 1.4rem + 5.8vw, 6.2rem);
  --size-display: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem);
  --size-title: clamp(1.5rem, 1.25rem + 1.2vw, 2.2rem);
  --size-body: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --size-small: 0.9rem;
  --size-tag: 0.78rem;

  /* Rhythm */
  --space-section: clamp(4.5rem, 5vw + 3rem, 7.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --container: 74rem;

  --radius: 4px;
  --speed: 220ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem; /* sticky header clearance for #anchors */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.register-paper :focus-visible { outline-color: var(--stamp-red); }
.cta-band :focus-visible { outline-color: var(--ink); }

::selection { background: var(--gold); color: var(--ink); }

/* Cross-page view transitions (progressive; Firefox just navigates) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 240ms; }
}

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--size-tag);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  transition: top var(--speed) var(--ease);
}
.skip-link:focus-visible { top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Registry tag — the site-wide eyebrow system */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--size-tag);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
}
.tag::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
}
.register-paper .tag { color: var(--stamp-red); }

/* Sections & registers */
.section { padding-block: var(--space-section); }

.register-paper {
  background: var(--paper);
  color: var(--text-paper);
  color-scheme: light;
}
.register-paper ::selection { background: var(--ink); color: var(--paper); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--size-display); font-weight: 700; }
.section-head p { color: var(--muted-dark); max-width: 40rem; }
.register-paper .section-head p { color: var(--muted-paper); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--size-tag);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-decoration: none;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              background-color var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              color var(--speed) var(--ease);
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -10px color-mix(in oklab, var(--gold) 55%, transparent);
}
.btn-ghost {
  border-color: var(--line-dark);
  color: var(--text-dark);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.register-paper .btn-ghost {
  border-color: var(--line-paper);
  color: var(--text-paper);
}
.register-paper .btn-ghost:hover {
  border-color: var(--stamp-red);
  color: var(--stamp-red);
}

/* Reveal on scroll — opt-in, JS + motion-preference gated */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    translate: 0 26px;
    transition: opacity 640ms var(--ease), translate 640ms var(--ease);
  }
  html.js .reveal.in {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem var(--gutter);
}
.topbar span { display: inline-block; white-space: nowrap; }
.topbar span + span::before { content: "·"; margin-inline: 0.9em; }
@media (max-width: 640px) {
  .topbar span:nth-child(2) { display: none; }
  .topbar span:nth-child(3)::before { content: "·"; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--ink) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.5rem;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: auto; height: 2.4rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: auto;
}
.site-nav a {
  font-family: var(--font-mono);
  font-size: var(--size-tag);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted-dark);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.site-nav a:hover { color: var(--text-dark); }
.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.site-nav .nav-shop::after { content: "↗"; margin-left: 0.35em; }

.header-cta { display: flex; align-items: center; gap: 1.2rem; flex-shrink: 0; }
.header-phone {
  font-family: var(--font-mono);
  font-size: var(--size-tag);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
.header-phone:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--text-dark);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-cta .btn { display: none; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.6rem var(--gutter) 1.2rem;
    display: none;
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--line-dark);
  }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line-dark); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; }
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(4rem, 7vw, 7rem);
}
.hero-copy h1 {
  font-size: var(--size-hero);
  font-weight: 800;
  margin-bottom: 0.35em;
}
.accent { color: var(--gold); }
.hero-lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--muted-dark);
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* Framed exhibit — photos presented like museum pieces */
.exhibit {
  background: var(--paper);
  color: var(--text-paper);
  padding: 0.9rem;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.65);
  rotate: 1.2deg;
  transition: rotate var(--speed) var(--ease);
}
.exhibit:hover { rotate: 0deg; }
.exhibit img { border-radius: 2px; }
.exhibit figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 0.2rem 0.1rem;
  color: var(--muted-paper);
}
.exhibit figcaption .no { color: var(--stamp-red); font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .exhibit { max-width: 34rem; }
}

/* Trust strip */
.trust {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: var(--ink-2);
}
.trust ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust li {
  padding: 1.1rem 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.trust li + li { border-left: 1px solid var(--line-dark); }
.trust strong {
  display: block;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.trust .star { color: var(--gold); }
@media (max-width: 900px) {
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3), .trust li:nth-child(4) { border-top: 1px solid var(--line-dark); }
  .trust li:nth-child(3) { border-left: 0; }
}

/* ---------- Cards / panels (services) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.2rem;
}
.panel {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.panel:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--gold) 45%, var(--line-dark)); }
.panel h3 { font-size: var(--size-title); font-weight: 700; margin-bottom: 0.2rem; }
.panel .price {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.panel ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--muted-dark);
  font-size: var(--size-small);
}
.panel ul li { padding-left: 1.2rem; position: relative; }
.panel ul li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-family: var(--font-mono);
}
.panel .panel-note {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.panel.featured { border-color: var(--gold); position: relative; }
.panel.featured::before {
  content: "Most requested";
  position: absolute;
  top: -0.7rem;
  left: 1.4rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.aside-note {
  font-family: var(--font-mono);
  font-size: var(--size-tag);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.register-paper .aside-note { color: var(--muted-paper); }

/* ---------- Museum registry rail ---------- */
.rail-wrap { position: relative; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(16rem, 24vw, 21rem);
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  /* align the first card with the .container content edge on wide screens */
  padding: 0.5rem max(var(--gutter), calc(50% - 37rem + var(--gutter))) 1.6rem;
  scroll-padding-inline: max(var(--gutter), calc(50% - 37rem + var(--gutter)));
  scrollbar-color: var(--stamp-red) transparent;
}
.rail:focus-visible { outline-offset: -2px; }
.rail::after { content: ""; width: 1px; } /* end breathing room */

/* Specimen card — the signature component */
.specimen {
  scroll-snap-align: start;
  background: #fbf8f0;
  border: 1px solid var(--text-paper);
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--text-paper);
  padding: 1.3rem 1.3rem 1.1rem;
  display: flex;
  flex-direction: column;
  min-height: 16.5rem;
  color: var(--text-paper);
}
.specimen-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stamp-red);
  border-bottom: 1px solid var(--line-paper);
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
}
.specimen .year {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.01em;
}
.specimen h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0.5rem 0 0.4rem;
}
.specimen p {
  font-size: 0.88rem;
  color: var(--muted-paper);
  margin: 0;
}
.specimen-foot {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-paper);
}

/* Registry grid (museum page) */
.registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.2rem;
}

/* ---------- Story split ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split h2 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.9rem); font-weight: 700; }
.split .lede { color: var(--muted-dark); }
.register-paper .split .lede { color: var(--muted-paper); }
@media (max-width: 900px) {
  .split, .split.flip { grid-template-columns: 1fr; }
}

blockquote.pull {
  margin: 1.6rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--gold);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-dark);
  text-wrap: pretty;
}
blockquote.pull cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.register-paper blockquote.pull { border-left-color: var(--stamp-red); color: var(--text-paper); }
.register-paper blockquote.pull cite { color: var(--muted-paper); }

/* ---------- Brand marquee ---------- */
.brands { border-block: 1px solid var(--line-dark); padding-block: 2.2rem; overflow: clip; }
.marquee { display: flex; gap: 3.5rem; width: max-content; }
.marquee-track {
  display: flex;
  gap: 3.5rem;
  align-items: baseline;
  animation: marquee 52s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-dark);
  white-space: nowrap;
}
.marquee-track span::after {
  content: "✦";
  color: var(--gold);
  font-size: 0.8rem;
  margin-left: 3.5rem;
  vertical-align: 0.35em;
}
@keyframes marquee {
  to { translate: calc(-100% - 3.5rem) 0; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { width: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 1rem; }
  .marquee-track[aria-hidden="true"] { display: none; }
}
.brands-note {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--size-tag);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin: 1.8rem 0 0;
}
.marquee-pause {
  display: block;
  margin: 1.2rem auto 0;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.marquee-pause:hover { color: var(--gold); border-color: var(--gold); }
.marquee.paused .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee-pause { display: none; }
}
.brands-note strong { color: var(--gold); font-weight: 600; }

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.2rem;
}
.review {
  background: #fbf8f0;
  border: 1px solid var(--line-paper);
  border-radius: 2px;
  padding: 1.6rem 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
}
.review .stars {
  color: var(--stamp-red);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  margin-bottom: 0.9rem;
}
.review p {
  font-size: 1rem;
  color: var(--text-paper);
  margin-bottom: 1.2rem;
}
.review footer {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-paper);
}

/* ---------- Visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }

.visit-details { display: grid; gap: 1.6rem; }
.visit-block h3 {
  font-family: var(--font-mono);
  font-size: var(--size-tag);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.visit-block p, .visit-block address {
  font-style: normal;
  color: var(--text-dark);
  margin: 0;
}
.visit-block .sub { color: var(--muted-dark); font-size: var(--size-small); }
.visit-block a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.visit-block a:hover { color: var(--gold); }

.hours-table { width: 100%; border-collapse: collapse; max-width: 22rem; }
.hours-table td, .hours-table th {
  padding: 0.35rem 0;
  font-size: var(--size-small);
  font-weight: 400;
  text-align: left;
  color: var(--text-dark);
}
.hours-table td:last-child { text-align: right; font-family: var(--font-mono); color: var(--muted-dark); }
.hours-table tr.today td, .hours-table tr.today th { color: var(--gold); font-weight: 600; }

.open-status {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-dark);
  border-radius: 99px;
  color: var(--muted-dark);
  margin-bottom: 1rem;
}
.open-status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--muted-dark);
}
.open-status.open { color: var(--gold-soft); border-color: color-mix(in oklab, var(--gold) 40%, transparent); }
.open-status.open::before { background: var(--gold); }

.map-frame {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-2);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Timeline (about) ---------- */
.timeline { list-style: none; display: grid; gap: 0; max-width: 46rem; }
.timeline li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.6rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-dark);
}
.timeline li:last-child { border-bottom: 1px solid var(--line-dark); }
.timeline .when {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
}
.timeline h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.3rem;
}
.timeline p { color: var(--muted-dark); font-size: var(--size-small); margin: 0; }
.register-paper .timeline li { border-color: var(--line-paper); }
.register-paper .timeline .when { color: var(--stamp-red); }
.register-paper .timeline p { color: var(--muted-paper); }
@media (max-width: 640px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.2rem;
}

/* ---------- Service page details ---------- */
.menu-table { width: 100%; border-collapse: collapse; }
.menu-table th, .menu-table td {
  text-align: left;
  padding: 0.9rem 0.4rem;
  border-bottom: 1px solid var(--line-dark);
  font-size: var(--size-small);
  font-weight: 400;
}
.menu-table thead th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.menu-table td:last-child, .menu-table th:last-child {
  text-align: right;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.menu-table td:last-child { color: var(--gold); font-weight: 500; }
.register-paper .menu-table th, .register-paper .menu-table td {
  border-bottom-color: var(--line-paper);
}
.register-paper .menu-table th { color: var(--muted-paper); }
.register-paper .menu-table td:last-child { color: var(--stamp-red); }

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.2rem;
}
.steps li {
  counter-increment: step;
  border-top: 2px solid var(--gold);
  padding-top: 1rem;
}
.steps li::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.steps h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.steps p { color: var(--muted-dark); font-size: var(--size-small); margin: 0; }
.register-paper .steps li { border-top-color: var(--stamp-red); }
.register-paper .steps li::before { color: var(--stamp-red); }
.register-paper .steps p { color: var(--muted-paper); }

.faq { max-width: 46rem; display: grid; gap: 0.8rem; }
.faq details {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 1.2rem;
  transition: rotate var(--speed) var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p {
  padding: 0 1.3rem 1.2rem;
  margin: 0;
  color: var(--muted-dark);
  font-size: var(--size-small);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: clamp(3.5rem, 6vw, 6rem) 0 0; }
.page-hero h1 { font-size: clamp(2.7rem, 1.2rem + 6.2vw, 6.5rem); font-weight: 800; }
.page-hero .lede { color: var(--muted-dark); max-width: 42rem; font-size: clamp(1.02rem, 1rem + 0.3vw, 1.2rem); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gold);
  color: var(--ink);
  color-scheme: light;
}
.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding-block: clamp(2.6rem, 5vw, 4rem);
}
.cta-band h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  font-weight: 800;
  margin: 0;
}
.cta-band .btn { background: var(--ink); color: var(--paper); }
.cta-band .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.5);
}
.cta-band .sub {
  font-family: var(--font-mono);
  font-size: var(--size-tag);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0.4rem 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-dark);
  background: var(--ink);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 2.6rem; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted-dark); font-size: var(--size-small); max-width: 22rem; }

.site-footer h3 {
  font-family: var(--font-mono);
  font-size: var(--size-tag);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer li, .site-footer address {
  font-style: normal;
  font-size: var(--size-small);
  color: var(--muted-dark);
}
.site-footer a {
  color: var(--muted-dark);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
.site-footer a:hover { color: var(--gold); }
/* links mixed with plain text (phone in the Visit column) stay distinguishable */
.site-footer .footer-contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

/* ---------- Mobile action bar ---------- */
.action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: color-mix(in oklab, var(--ink-2) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-dark);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 767px) {
  .action-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  body { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
}
.action-bar a {
  display: grid;
  place-items: center;
  gap: 0.15rem;
  padding: 0.65rem 0.4rem 0.7rem;
  text-decoration: none;
  color: var(--text-dark);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.action-bar a + a { border-left: 1px solid var(--line-dark); }
.action-bar svg { color: var(--gold); }

/* ---------- 404 ---------- */
.notfound {
  min-height: 55vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding-block: var(--space-section);
  padding-inline: var(--gutter);
}
.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 13rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--gold);
  margin: 0 0 0.15em;
}
