/* ===========================================================================
   STORE FLEET — shared design framework
   Every brand ships this file unchanged. All brand variation lives in
   tokens.css (loaded BEFORE this file) as CSS custom properties.
   =========================================================================== */

/* --- Token contract -------------------------------------------------------
   A brand tokens.css MUST define:
     --ink, --ink-soft, --bg, --bg-alt, --surface, --line
     --brand, --brand-2, --brand-ink, --accent
     --font-display, --font-body
     --r-sm, --r-md, --r-lg, --r-pill
     --display-weight, --display-tracking, --display-case
     --texture (a background-image value, or `none`)
   Optional: --shadow, --hero-overlay, --max
   -------------------------------------------------------------------------- */

:root {
  --max: 1120px;
  --pad: clamp(20px, 5vw, 40px);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 12px 32px -12px rgb(0 0 0 / 0.18);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.06), 0 24px 56px -20px rgb(0 0 0 / 0.28);
  --hero-overlay: linear-gradient(180deg, rgb(0 0 0 / 0) 40%, rgb(0 0 0 / 0.35) 100%);
  --step: clamp(56px, 9vw, 104px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  background-image: var(--texture, none);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 700);
  letter-spacing: var(--display-tracking, -0.02em);
  text-transform: var(--display-case, none);
  line-height: 1.08;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 7.5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.32rem); letter-spacing: -0.01em; }
p  { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* --- layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--step); }
.section--alt { background: var(--bg-alt); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.lede {
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.55;
}
.center .lede { margin-inline: auto; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 .9rem;
  display: block;
}

.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }

/* --- site chrome ---------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px;
}
.brandmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: var(--display-weight, 700);
  letter-spacing: var(--display-tracking, -0.02em);
  text-transform: var(--display-case, none);
  font-size: 1.16rem;
  text-decoration: none;
  color: var(--ink);
}
.brandmark__dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  flex: 0 0 auto;
}
.topbar__nav { display: none; gap: 26px; font-size: .93rem; }
.topbar__nav a { color: var(--ink-soft); text-decoration: none; }
.topbar__nav a:hover { color: var(--ink); }
@media (min-width: 820px) { .topbar__nav { display: flex; } }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .005em;
  padding: .92em 1.5em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn--primary {
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  box-shadow: var(--shadow);
}
.btn--primary:hover { box-shadow: var(--shadow-lift); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink-soft); }

.btn--sm { font-size: .9rem; padding: .68em 1.15em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.center .btn-row { justify-content: center; }

/* --- hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px); }
.hero__grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}
.hero__copy { max-width: 34ch; }
.hero__copy .lede { max-width: 46ch; }
.hero h1 { margin-bottom: .38em; }

.hero__art {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border: 1px solid var(--line);
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--hero-overlay);
}
/* CSS-only placeholder used until generated art lands */
.art-ph {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 22% 18%, color-mix(in srgb, var(--brand) 62%, transparent), transparent 62%),
    radial-gradient(100% 90% at 82% 78%, color-mix(in srgb, var(--brand-2) 60%, transparent), transparent 60%),
    linear-gradient(160deg, var(--surface), var(--bg-alt));
}
/* The placeholder carries a data-label for the build report only — it is
   never painted, so a site that ships without generated art still looks
   deliberate rather than unfinished. */

.hero__badges {
  display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 1.6rem;
  list-style: none; padding: 0;
}
.hero__badges li {
  font-size: .82rem; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .35em .9em; background: var(--surface);
}

/* --- how it works --------------------------------------------------------- */
.steps { display: grid; gap: 22px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(24px, 3vw, 32px);
  position: relative;
}
.step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  margin-bottom: 1.05rem;
}
.step h3 { margin-bottom: .4em; }
.step p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* --- product strip -------------------------------------------------------- */
.products { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.product {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.product:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.product__art { aspect-ratio: 1 / 1; position: relative; background: var(--bg-alt); }
/* No photography yet: a brand accent rule instead of an empty grey square,
   so the strip reads as a catalogue rather than a page of missing images. */
.product--noart {
  background-image: linear-gradient(90deg, var(--brand), var(--brand-2));
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: top left;
}
.product--noart .product__body { padding-top: 24px; }
.product__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.25; letter-spacing: -0.01em; }
.product__note { color: var(--ink-soft); font-size: .9rem; flex: 1; }
.product__price { font-family: var(--font-display); font-weight: 700; color: var(--brand); font-size: .95rem; margin-top: 6px; }

/* --- delivery / honesty strip -------------------------------------------- */
.promise {
  display: grid; gap: 18px; grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(26px, 4vw, 40px);
}
@media (min-width: 760px) { .promise { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.promise__item h3 { font-size: 1.02rem; margin-bottom: .3em; }
.promise__item p { color: var(--ink-soft); font-size: .94rem; margin: 0; }

/* --- email capture -------------------------------------------------------- */
.capture {
  border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(110% 140% at 8% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.capture h2 { margin-bottom: .35em; }
.capture .lede { margin-inline: auto; margin-bottom: 1.7rem; }
.capture__form {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 480px; margin-inline: auto;
}
.capture__form input[type="email"] {
  flex: 1 1 240px;
  font: inherit; font-size: 1rem;
  padding: .88em 1.1em;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  min-width: 0;
}
.capture__form input[type="email"]::placeholder { color: color-mix(in srgb, var(--ink-soft) 80%, transparent); }
.capture__form input[type="email"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--brand); }
.capture__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.capture__msg { margin-top: 1rem; font-size: .93rem; color: var(--ink-soft); min-height: 1.4em; }
.capture__msg[data-state="ok"] { color: var(--brand); font-weight: 600; }
.capture__msg[data-state="err"] { color: #c0392b; }
.capture__fine { margin-top: 1.1rem; font-size: .8rem; color: var(--ink-soft); opacity: .85; }

/* --- footer --------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: clamp(40px, 6vw, 64px) 32px;
  font-size: .92rem;
}
.footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.footer h4 {
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: .9em; font-weight: 700;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__blurb { color: var(--ink-soft); max-width: 42ch; }
.footer__base {
  margin-top: clamp(30px, 4vw, 44px); padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  color: var(--ink-soft); font-size: .84rem;
}
.footer__fam a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer__fam a:hover { text-decoration: underline; }

/* --- legal / prose pages -------------------------------------------------- */
.prose { max-width: 72ch; margin-inline: auto; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .3em; }
.prose h2 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); margin-top: 2.2em; }
.prose h2:first-of-type { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; display: grid; gap: .45em; margin: 0 0 1em; }
.prose a { color: var(--brand); }
.prose__meta {
  color: var(--ink-soft); font-size: .88rem;
  border-bottom: 1px solid var(--line); padding-bottom: 1.6em;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: var(--brand-ink);
  padding: .7em 1.2em; border-radius: 0 0 var(--r-sm) 0; z-index: 100;
}
.skip:focus { left: 0; }
