/* Marc's Gunsmithing. Direction B, "The Bench": soft-premium dark, tokens first.
   Two container widths (--max for reading, --max-wide for boards, racks and photo walls), full-bleed
   hero and photo bands, explicit column counts. Fonts are self-hosted (latin only). */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/big-shoulders-display-800-latin.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/public-sans-400-latin.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/public-sans-500-latin.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/public-sans-700-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500-latin.woff2) format("woff2"); }

:root {
  --bg: #121315;
  --plate: #1b1d20;
  --plate-2: #24272b;
  --line: #363a40;
  --text: #ece5d6;
  --muted: #bdb5a6;
  --wood: #b5814f;            /* decor only: the plywood edge */
  --wood-2: #8a5c34;

  --accent: #bd0000;          /* fill: reserve and call only */
  --accent-ink: #ffffff;
  --accent-deep: #ff7a70;     /* accent as text on the dark ground */
  --accent-bright: #ff3b30;   /* decor only */

  --atmo-grain: rgba(255, 255, 255, 0.018);
  --atmo-lamp: rgba(255, 190, 120, 0.13);
  --atmo-lamp-strong: rgba(255, 205, 140, 0.34);
  --atmo-red: rgba(189, 0, 0, 0.08);
  --atmo-vignette: rgba(0, 0, 0, 0.55);
  --scrim: rgba(12, 12, 13, 0.92);
  --scrim-mid: rgba(12, 12, 13, 0.6);
  --scrim-clear: rgba(12, 12, 13, 0.05);

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Public Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: 2.369rem;
  --step-4: 3.157rem;
  --step-5: 5.61rem;

  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-6: 7rem;

  --radius: 0.85rem;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --max: 80rem;
  --max-wide: 112rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  /* The longest display word ("GUNSMITHING", about 6.2em in Big Shoulders 800) must fit the column
     on a narrow phone, or overflow-wrap breaks it mid-word (heading-word-split trap). */
  --fit-word: calc((100vw - 2rem) / 6.6);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--font-body);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 8% 18%, var(--atmo-lamp), transparent 70%),
    radial-gradient(ellipse 55% 35% at 100% 70%, var(--atmo-red), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, var(--atmo-vignette) 100%),
    repeating-linear-gradient(0deg, var(--atmo-grain) 0 1px, transparent 1px 3px);
  background-size: 100% 3200px, 100% 4200px, 100% 100%, auto;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 0.95; margin: 0; text-transform: uppercase; letter-spacing: 0.005em; overflow-wrap: break-word; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: var(--bg); padding: var(--sp-1) var(--sp-2); }
.skip:focus { left: var(--sp-2); z-index: 50; }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wide { width: min(100% - 2 * var(--gutter), var(--max-wide)); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: var(--scrim); border-bottom: 1px solid var(--line); }
.top__in { width: min(100% - 2 * var(--gutter), var(--max-wide)); margin-inline: auto; display: flex; align-items: center; gap: var(--sp-3); min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand__mark { width: 62px; height: 38px; flex: none; }
.brand__word { width: 210px; height: auto; flex: 0 1 auto; min-width: 0; }
.nav { display: flex; gap: var(--sp-3); margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font: 500 0.85rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; padding: 0.9rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-deep); }
.top__call { font: 700 1rem/1 var(--font-body); color: var(--accent-ink); background: var(--accent); text-decoration: none; padding: 0.85rem 1rem; border-radius: 0.5rem; white-space: nowrap; min-height: 2.75rem; display: inline-flex; align-items: center; gap: 0.35em; }
.menu { display: none; margin-left: auto; position: static; }
.menu summary { list-style: none; cursor: pointer; font: 500 0.85rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); background: var(--plate-2); border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.85rem 0.9rem; min-height: 2.75rem; display: inline-flex; align-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--muted); }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); display: flex; flex-direction: column; padding: var(--sp-1) var(--gutter) var(--sp-3); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.menu nav a { color: var(--text); text-decoration: none; font: 500 0.95rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; padding: 1rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 1179px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 599px) {
  .brand__mark { width: 50px; height: 31px; }
  .brand__word { width: clamp(120px, 38vw, 170px); }
  .top__in { gap: var(--sp-1); min-height: 4rem; }
  .top__num { display: none; }
  .top__call { padding: 0.75rem 0.85rem; }
}

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 3.1rem; padding: 0.85rem 1.5rem; border-radius: 0.5rem; font: 700 1rem/1.15 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.btn--red { background: var(--accent); color: var(--accent-ink); }
.btn--red:hover { transform: translateY(-2px); }
.btn--ghost { border-color: var(--text); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.btn--sm { min-height: 2.75rem; padding: 0.6rem 1rem; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
@media (prefers-reduced-motion: reduce) { .btn, .item { transition: none; } .btn--red:hover, .item:hover { transform: none; } }

/* ---- home hero with the worklamp (signature) ---- */
.hero { position: relative; overflow: hidden; min-height: min(88vh, 60rem); display: grid; align-items: end; isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: -3; filter: saturate(0.6) brightness(0.72) contrast(1.08); animation: lamp-on 2.6s ease-out 0.2s both; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, var(--scrim) 0%, var(--scrim-mid) 45%, var(--scrim-clear) 75%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero__lamp { position: absolute; z-index: -1; width: 70vmax; height: 70vmax; left: 60%; top: 30%; transform: translate(-50%, -50%); background: radial-gradient(circle, var(--atmo-lamp-strong), transparent 60%); mix-blend-mode: soft-light; animation: lamp-sweep 2.6s cubic-bezier(.5, 0, .2, 1) 0.2s both; pointer-events: none; }
@keyframes lamp-sweep { from { left: -20%; top: 10%; opacity: 0; } 30% { opacity: 1; } to { left: 60%; top: 30%; opacity: 1; } }
@keyframes lamp-on { from { filter: saturate(0.3) brightness(0.35) contrast(1.08); } to { filter: saturate(0.6) brightness(0.72) contrast(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero__lamp, .hero__img { animation: none; } }
.hero__in { width: min(100% - 2 * var(--gutter), var(--max-wide)); margin-inline: auto; padding: var(--sp-6) 0 var(--sp-5); }
.hero h1 { font-size: min(clamp(3rem, 2rem + 5vw, var(--step-5)), var(--fit-word)); max-width: 11ch; }
.lead { margin-top: var(--sp-3); font-size: var(--step-1); max-width: 36ch; line-height: 1.45; color: var(--text); }
.hero .actions { margin-top: var(--sp-4); }
.hero__call { margin-top: var(--sp-3); display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: baseline; font: 500 0.9rem/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hero__call a { font: 800 1.6rem/1 var(--font-display); color: var(--text); text-decoration: none; letter-spacing: 0.02em; }
@media (max-width: 599px) {
  .hero { min-height: 0; }
  .hero__in { padding: var(--sp-5) 0 var(--sp-4); }
  .hero::before { background: linear-gradient(0deg, var(--bg) 10%, var(--scrim) 60%, var(--scrim-mid) 100%); }
}

/* ---- inner page head ---- */
.phead { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.phead__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(0.55) brightness(0.5); }
.phead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--scrim) 0%, var(--scrim-mid) 55%, var(--scrim-clear) 100%); }
.phead__in { width: min(100% - 2 * var(--gutter), var(--max-wide)); margin-inline: auto; padding: var(--sp-5) 0 var(--sp-4); display: grid; gap: var(--sp-2); }
.phead h1 { font-size: min(clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem), var(--fit-word)); max-width: 16ch; }
.phead p { font-size: var(--step-1); line-height: 1.45; max-width: 40ch; }
.crumbs { font: 500 0.8rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.crumbs a { color: var(--muted); }
@media (min-width: 1000px) { .phead__in { padding: var(--sp-6) 0 var(--sp-5); } }

/* ---- sections ---- */
.sec { padding: var(--sp-6) 0; }
.sec--tight { padding: var(--sp-5) 0; }
.sec--plate { background: var(--plate); border-block: 1px solid var(--line); }
.sec__head { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); max-width: 46rem; }
.sec__head h2, .sec h2.big { font-size: min(clamp(2.4rem, 1.8rem + 2.6vw, var(--step-4)), var(--fit-word)); }
.sec__head p { color: var(--muted); }
.prose { display: grid; gap: var(--sp-2); max-width: 44rem; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { font-size: var(--step-3); margin-top: var(--sp-3); color: var(--text); }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }

/* ---- bench menu (ledger price board) ---- */
.board { position: relative; display: grid; grid-template-columns: 1fr; gap: 0 var(--sp-5); background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4) var(--sp-3) var(--sp-3); box-shadow: var(--shadow); overflow: hidden; }
.board::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: repeating-linear-gradient(90deg, var(--wood) 0 7px, var(--wood-2) 7px 9px, var(--wood) 9px 23px, var(--wood-2) 23px 24px); }
@media (min-width: 760px) { .board { grid-template-columns: repeat(2, 1fr); padding: var(--sp-5) var(--sp-4) var(--sp-4); } }
@media (min-width: 1180px) { .board { grid-template-columns: repeat(3, 1fr); } }
.board h3 { font-size: var(--step-2); margin: var(--sp-3) 0 var(--sp-1); color: var(--text); }
.board__col > h3:first-child { margin-top: 0; }
@media (max-width: 759px) { .board__col + .board__col > h3:first-child { margin-top: var(--sp-3); } }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.55rem 0; }
.ledger li span { flex: 0 1 auto; }
.ledger li::after { content: ""; order: 1; flex: 1 1 1.5rem; border-bottom: 2px dotted var(--line); transform: translateY(-0.3rem); min-width: 1rem; }
.ledger li b { order: 2; font: 500 0.95rem/1.2 var(--font-mono); color: var(--text); white-space: nowrap; }
.bench__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-4); }
.bench__cta p { color: var(--muted); }

/* gunsmithing page: one plate per group, 3 / 2 / 1 across */
.groups { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 760px) { .groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .groups { grid-template-columns: repeat(3, 1fr); } }
.group { background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3); border-top: 6px solid var(--wood); }
.group h2 { font-size: var(--step-3); margin-bottom: var(--sp-1); }

/* ---- photo band ---- */
.band { position: relative; margin: 0; isolation: isolate; }
.band img { width: 100%; height: clamp(12rem, 22vw, 26rem); object-fit: cover; filter: saturate(0.55) brightness(0.62); }
.band__text { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-3) max(var(--gutter), calc((100% - var(--max-wide)) / 2)); font: 800 clamp(1.8rem, 1.2rem + 2.5vw, 3.4rem)/1 var(--font-display); text-transform: uppercase; color: var(--text); background: linear-gradient(0deg, var(--scrim) 0%, transparent 100%); }

/* ---- shop floor photos ---- */
.floor { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); margin-bottom: var(--sp-5); }
.floor figure { margin: 0; display: grid; gap: 0.5rem; }
.floor__big { grid-column: 1 / -1; }
@media (min-width: 1000px) { .floor { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, auto); gap: var(--sp-3); } .floor__big { grid-column: 1; grid-row: 1 / span 2; } }
.floor img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); filter: saturate(0.75) brightness(0.9); box-shadow: var(--shadow); }
@media (min-width: 1000px) { .floor__big img { aspect-ratio: auto; min-height: 100%; } }
.floor figcaption { font: 500 0.8rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }

/* ---- the rack (inventory cards): 4 / 3 / 2 / 1 across ---- */
.rack { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
@media (min-width: 600px) { .rack { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rack { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); } }
@media (min-width: 1400px) { .rack { grid-template-columns: repeat(4, 1fr); } }
.item { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: var(--sp-2); padding: var(--sp-2) var(--sp-2) var(--sp-3); background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.2s ease, border-color 0.2s ease; }
.item:hover { transform: translateY(-4px); border-color: var(--muted); }
.item__pic { aspect-ratio: 4 / 3; border-radius: 0.55rem; overflow: hidden; background: var(--plate-2); display: grid; place-items: center; }
.item__pic img { width: 100%; height: 100%; object-fit: contain; background: var(--plate-2); }
.noimg { font: 500 0.8rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); text-align: center; padding: var(--sp-2); }
.item__cat { font: 500 0.8rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-deep); padding-inline: 0.25rem; }
.item__name { font: 600 var(--step-1)/1.25 var(--font-body); text-transform: none; letter-spacing: 0; padding-inline: 0.25rem; }
.item__name a { color: var(--text); text-decoration: none; }
.item__name a:hover { color: var(--accent-deep); }
.item__brand { display: block; font: 500 0.85rem/1.3 var(--font-mono); color: var(--muted); margin-bottom: 0.3rem; }
.item__spec { font: 500 0.85rem/1.3 var(--font-mono); color: var(--muted); padding-inline: 0.25rem; }
.item__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--sp-1); border-top: 1px solid var(--line); padding: var(--sp-2) 0.25rem 0; }
.item__price { font: 800 2.2rem/1 var(--font-display); }
.item__price--ask { font: 500 0.95rem/1.2 var(--font-mono); }
.qty { font: 500 0.85rem/1 var(--font-mono); color: var(--muted); }
.item .btn { margin-inline: 0.25rem; width: calc(100% - 0.5rem); }

.cats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--sp-4); }
.cats a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font: 500 0.85rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; background: var(--plate); }
.cats a small { color: var(--muted); font-size: 0.8rem; }
.cats a[aria-current] { border-color: var(--accent-deep); color: var(--accent-deep); }
.pager { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pager a, .pager span { min-height: 2.75rem; min-width: 2.75rem; display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 0.8rem; border: 1px solid var(--line); border-radius: 0.5rem; color: var(--text); text-decoration: none; font: 500 0.9rem/1 var(--font-mono); }
.shop__foot { margin-top: var(--sp-5); display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 900px) { .shop__foot { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3); display: grid; gap: var(--sp-2); align-content: start; }
.card h2, .card h3 { font-size: var(--step-2); }
.card p { color: var(--muted); }

/* ---- product page ---- */
.prod { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); align-items: start; }
/* The h1 leads in the source (no text above the headline); the photo moves left on wide screens. */
@media (min-width: 1000px) { .prod { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-5); } .prod__pic { order: -1; } }
.prod__pic { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--plate); border: 1px solid var(--line); display: grid; place-items: center; }
.prod__pic img { width: 100%; height: 100%; object-fit: contain; }
.prod__info { display: grid; gap: var(--sp-2); }
.prod__info h1 { font-size: min(clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem), var(--fit-word)); }
.prod__price { font: 800 clamp(2.6rem, 2rem + 2vw, 3.6rem)/1 var(--font-display); }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: var(--sp-2); padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font: 500 0.95rem/1.4 var(--font-mono); text-align: right; overflow-wrap: anywhere; }

/* ---- reserve steps + form ---- */
.reserve__in { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 1000px) { .reserve__in { grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-5); align-items: start; } }
.reserve__intro { display: grid; gap: var(--sp-3); align-content: start; }
.warn { font: 500 1rem/1.5 var(--font-mono); color: var(--text); border-left: 4px solid var(--accent); padding: var(--sp-2) var(--sp-3); background: var(--plate-2); border-radius: 0 0.5rem 0.5rem 0; max-width: 34rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.steps li { display: grid; grid-template-columns: 4rem 1fr; gap: var(--sp-2); align-items: start; }
.steps__n { font: 800 4.2rem/0.8 var(--font-display); color: var(--wood); }
.steps h3 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.steps p { color: var(--muted); max-width: 42ch; }
.steps--row { gap: var(--sp-3); }
@media (min-width: 900px) { .steps--row { grid-template-columns: repeat(3, 1fr); } }

.rform { display: grid; gap: var(--sp-2); background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3) var(--sp-2); box-shadow: var(--shadow); min-width: 0; }
@media (min-width: 600px) { .rform { padding: var(--sp-4) var(--sp-3); } }
.rform h2 { font-size: var(--step-3); }
.rform__row { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
@media (min-width: 700px) { .rform__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label, .field legend { font: 500 0.85rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); }
.field input, .field textarea { width: 100%; min-height: 3rem; padding: 0.7rem 0.85rem; font: 400 1rem/1.4 var(--font-body); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 0.5rem; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent-deep); outline: none; box-shadow: 0 0 0 3px rgba(255, 122, 112, 0.25); }
.field small { color: var(--muted); font-size: 0.9rem; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choice { display: flex; gap: 0.7rem; align-items: center; min-height: 3rem; padding: 0.6rem 0.85rem; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--bg); margin-top: 0.5rem; cursor: pointer; }
.choice input { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rform .btn { width: 100%; }
.rform__note { color: var(--muted); font-size: 0.95rem; }
.form-status { min-height: 1.5rem; font: 500 0.95rem/1.4 var(--font-mono); color: var(--text); }
.form-status.is-error { color: var(--accent-deep); }
/* Turnstile's 300px floor: let the track shrink, and bleed into the card padding on narrow phones. */
.rform .cf-turnstile { min-height: 65px; min-width: 0; }
@media (max-width: 40rem) { .rform .cf-turnstile { margin-inline: -0.75rem; } }

/* ---- transfers ---- */
.ffl__in { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); align-items: center; }
@media (min-width: 1000px) { .ffl__in { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-5); } }
.ffl__photo { margin: 0; }
.ffl__photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); filter: saturate(0.7); }
.ffl__copy { display: grid; gap: var(--sp-2); max-width: 38rem; }
.ffl__price { font: 500 1rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.ffl__price b { display: block; font: 800 clamp(4rem, 3rem + 4vw, 7rem)/0.9 var(--font-display); color: var(--text); letter-spacing: 0; }
.ffl__copy > p:not(.ffl__price) { color: var(--muted); }
.ffl__copy h2, .ffl__copy h3 { font-size: var(--step-2); margin-top: var(--sp-2); }

/* ---- classes ---- */
.tickets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
@media (min-width: 900px) { .tickets { grid-template-columns: repeat(3, 1fr); } }
.tickets li { display: flex; justify-content: space-between; gap: var(--sp-2); align-items: start; padding: var(--sp-3); border: 1px dashed var(--muted); border-radius: var(--radius); }
.tickets h3 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.tickets p { color: var(--muted); }
.tickets b { font: 800 2.4rem/1 var(--font-display); }
.note { margin-top: var(--sp-3); color: var(--muted); }

/* ---- about ---- */
.about__in { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); align-items: center; }
@media (min-width: 900px) { .about__in { grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-6); } .about__mark { order: -1; } }
.about__mark { background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5) var(--sp-4); box-shadow: var(--shadow); display: grid; gap: var(--sp-3); justify-items: center; }
.about__mark img { width: 100%; max-width: 26rem; }
.about__copy { display: grid; gap: var(--sp-2); max-width: 38rem; }
.about__copy p { color: var(--muted); }
.vet { display: inline-flex; align-items: center; gap: 0.6rem; font: 500 0.85rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--text); border: 1px solid var(--wood); border-radius: 999px; padding: 0.55rem 0.9rem; justify-self: start; }
.vet::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent-bright); flex: none; }

/* ---- visit / contact ---- */
.visit__in { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 900px) { .visit__in { grid-template-columns: repeat(2, 1fr); align-items: center; } }
.visit__photo { margin: 0; }
.visit__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0%; border-radius: var(--radius); filter: saturate(0.8); box-shadow: var(--shadow); }
.addr { font: 800 var(--step-3)/1 var(--font-display); text-transform: uppercase; margin: var(--sp-3) 0; }
.email { margin: 0 0 var(--sp-3); }
.hours { margin: var(--sp-4) 0 0; }
.hours div { display: flex; justify-content: space-between; gap: var(--sp-2); padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font: 500 1rem/1.4 var(--font-mono); text-align: right; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: var(--sp-5) 0 var(--sp-4); background: var(--bg); }
.foot__in { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 760px) { .foot__in { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .foot__in { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.foot__brand { display: grid; gap: var(--sp-2); align-content: start; }
.foot h2 { font: 500 0.8rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: var(--sp-1); }
.foot p, .foot li { color: var(--muted); font-size: 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.foot a { color: var(--text); text-decoration: none; display: inline-block; padding-block: 0.35rem; }
.foot a:hover { color: var(--accent-deep); }
.foot__base { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: var(--sp-3); display: flex; flex-wrap: wrap; gap: 0.4rem var(--sp-3); font-size: var(--step--1); color: var(--muted); }
.foot__base p { font-size: var(--step--1); }
.st-credit { text-decoration: none; }
.st-wm { font-weight: 700; }
.st-wm u { color: var(--accent-deep); text-decoration: none; }

/* ---- plain pages (privacy, 404) ---- */
.plain { padding: var(--sp-5) 0 var(--sp-6); }
.plain__main { display: grid; gap: var(--sp-3); max-width: 46rem; }
.plain__main h1 { font-size: min(var(--step-4), var(--fit-word)); }
.plain__main h2 { font-size: var(--step-2); margin-top: var(--sp-2); }
.plain__main p { color: var(--muted); }
