/* ===========================================================================
   base.css — reset, layout primitives, buttons, forms, motion.
   Same on every site. Do not edit per shop.
   =========================================================================== */

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

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

body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* Photos NEVER stretch. Fixed-ratio frames always use cover. DESIGN.md §2 */
.frame { position: relative; overflow: hidden; background: var(--dark-alt); }
.frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3  { aspect-ratio: 4 / 3; }
.ratio-1x1  { aspect-ratio: 1 / 1; }
.ratio-3x4  { aspect-ratio: 3 / 4; }

/* The logo keeps its own proportions, always. CLAUDE.md hard rule. */
.logo { height: 38px; width: auto; object-fit: contain; }
@media (min-width: 900px) { .logo { height: 44px; } }

a { color: var(--brand-ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 900; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.2; }

p { max-width: 68ch; }
.lead { font-size: var(--step-1); color: var(--ink-soft); }

/* ---- Layout -------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s7); }
@media (min-width: 900px) { .section { padding-block: var(--s9); } }
.section--alt  { background: var(--surface-alt); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark p, .section--dark .lead { color: var(--on-dark-soft); }

.eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-ink); margin-bottom: var(--s3);
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--brand-on-dark); }

.stack   > * + * { margin-top: var(--s4); }
.grid    { display: grid; gap: var(--s5); }
@media (min-width: 720px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); }
                             .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow);
}
.section--dark .card { background: var(--dark-alt); border-color: #262a30; }

/* ---- Buttons — 48px tap target minimum ----------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 0 var(--s5);
  font: inherit; font-weight: 700; font-size: var(--step-0);
  border-radius: var(--radius-pill); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary   { background: var(--brand); color: var(--brand-contrast); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); }
.section--dark .btn-secondary, .hero .btn-secondary {
  color: var(--on-dark); border-color: rgba(255,255,255,.3);
}
.section--dark .btn-secondary:hover, .hero .btn-secondary:hover { border-color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.btn-row .btn { flex: 1 1 auto; min-width: 190px; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px;
}

/* ---- Form — 16px+ inputs so iOS never zooms ------------------------------ */
.field { display: block; }
.field > span {
  display: block; font-size: var(--step--1); font-weight: 600;
  margin-bottom: var(--s2); color: var(--ink);
}
.section--dark .field > span, .hero .field > span { color: var(--on-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: var(--s3) var(--s4);
  font: inherit; font-size: 17px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); appearance: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
  outline: none;
}
.form-note { font-size: var(--step--1); color: var(--ink-faint); }
.hero .form-note { color: var(--on-dark-soft); }
.form-said { font-size: var(--step--1); font-weight: 600; color: var(--brand-ink); }

/* ---- Motion: ONE reveal, one hover. DESIGN.md §1 ------------------------- */
.reveal { opacity: 0; transform: translateY(14px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* Nothing above the fold is ever a .reveal — the hero renders instantly. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Concept banner + footer disclaimer (never removed) ------------------ */
.concept-banner {
  background: var(--dark); color: var(--on-dark-soft);
  font-size: var(--step--1); text-align: center; padding: var(--s2) var(--gutter);
}
.concept-banner strong { color: var(--on-dark); }

.site-footer { background: var(--dark); color: var(--on-dark-soft); padding-block: var(--s7); }
.site-footer a { color: var(--on-dark); }
.disclaimer { font-size: var(--step--1); color: var(--ink-faint); max-width: 70ch; }

/* ---- Sticky phone action bar — below the fold only ----------------------- */
.sticky-bar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: none; gap: var(--s2); padding: var(--s2) var(--s3);
  padding-bottom: calc(var(--s2) + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-up);
  transform: translateY(110%); transition: transform var(--t-fast) var(--ease);
}
.sticky-bar.is-in { transform: none; }
.sticky-bar .btn { flex: 1; min-width: 0; min-height: 50px; padding: 0 var(--s3); }
@media (max-width: 899px) { .sticky-bar { display: flex; } body { padding-bottom: 76px; } }

/* ---- Site header and nav ------------------------------------------------- */
.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;
}
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex; align-items: center; gap: var(--s4);
  min-height: 64px; padding-block: var(--s2);
}
.site-header__brand { margin-right: auto; display: flex; align-items: center; }

.nav-toggle {
  display: grid; place-items: center; width: 48px; height: 48px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after  { position: absolute; top:  6px; }

.site-nav { display: none; }
.site-nav.is-open {
  display: flex; flex-direction: column; gap: var(--s2);
  position: absolute; left: 0; right: 0; z-index: 40;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: var(--s4) var(--gutter); box-shadow: var(--shadow);
}
.site-nav a { display: flex; align-items: center; min-height: 48px; text-decoration: none;
  color: var(--ink); font-weight: 600; }
.site-nav .btn { color: var(--brand-contrast); justify-content: center; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: var(--s5); position: static;
    padding: 0; box-shadow: none; border: 0; background: none; flex-direction: row; }
  .site-nav a { min-height: 44px; }
  .site-nav a:not(.btn):hover { color: var(--brand-ink); }
}
.site-header__inner { position: relative; }

/* Text links in the footer and the contact block are still tap targets.
   Without this they land at ~20px high on a phone, under the 44px floor. */
.site-footer .stack a:not(.btn),
.contact .stack a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px;
}
.site-header__brand { min-height: 48px; }

/* Links inside a dark section must use the lightened brand colour. Without this
   they inherit --brand-ink, which is tuned for white and is unreadable on black. */
.section--dark a:not(.btn) { color: var(--brand-on-dark); }

/* ---- wordmark: the shop's name in type, when we have no logo of theirs -----
   The concept floor allows a shop with no usable logo: we set their name and
   ask for the logo when they reply. Never substitute a supplier's or a
   manufacturer's badge for a shop's logo, and never re-draw one for them. */
.wordmark {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  justify-content: center; min-height: 48px;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em;
  font-size: var(--step-1); line-height: 1.1; color: var(--ink);
  text-decoration: none;
}
.wordmark small { display: block; font-size: var(--step--1); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.site-footer .wordmark { color: var(--on-dark); }
.site-footer .wordmark small { color: var(--on-dark-soft); }
