/* ============================================================
   DETROIT PROTOTYPE — design tokens
   Type: Futura Bold everywhere (Jost 700 webfont fallback)
   Ink:  bone / unbleached white
   Field: light denim blue with random woven texture
   Signature: debossed wordmark (echoes logo debossed on product)
   + selvedge "stitch" dividers
   ============================================================ */
:root {
  --denim: #6d87a6;        /* light denim field */
  --denim-deep: #2e4257;   /* panels, footer */
  --denim-mid: #51688255;  /* translucent card fill */
  --bone: #f2ecdc;         /* primary ink */
  --bone-dim: rgba(242, 236, 220, 0.68);
  --stitch: #d9824f;       /* selvedge thread accent — used sparingly */
  --radius: 10px;
  --font: "Futura", "Futura PT", "Jost", "Century Gothic", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font);
  font-weight: 700;
  color: var(--bone);
  background-color: var(--denim);
  /* random woven denim texture: two turbulence layers, no repeats visible */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.35' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.15 0 0 0 0 0.22 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.35 0.9' numOctaves='2' seed='42' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.93 0 0 0 0 0.86 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bone); }

/* ---------- header ---------- */
.site-header {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.5rem;
  padding: 1.4rem clamp(1rem, 5vw, 4rem);
  border-bottom: 2px dashed rgba(242,236,220,0.35); /* selvedge stitch */
}
.wordmark {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  letter-spacing: 0.22em;
  line-height: 1.1;
  text-decoration: none;
  /* debossed — like the logo pressed into each insert */
  color: rgba(46, 66, 87, 0.55);
  text-shadow: 0 1px 0 rgba(242,236,220,0.45), 0 -1px 1px rgba(0,0,0,0.35);
}
.header-tag { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-dim); }

/* ---------- layout ---------- */
main { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem) 4rem; }
section { padding: clamp(2.2rem, 6vw, 4rem) 0; border-bottom: 2px dashed rgba(242,236,220,0.28); }
section:last-of-type { border-bottom: none; }
.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.eyebrow { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 0.8rem; }
.muted { color: var(--bone-dim); font-size: 0.85rem; }

/* ---------- hero ---------- */
.hero { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.08; letter-spacing: 0.01em; margin-bottom: 1rem; }
.lede { color: var(--bone-dim); max-width: 34rem; margin-bottom: 1.5rem; }
.hero-points { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.45rem; }
.hero-points li { padding-left: 1.3rem; position: relative; font-size: 0.92rem; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.55rem; height: 2px; background: var(--stitch); }

.cta {
  display: inline-block; cursor: pointer;
  background: var(--denim-deep); color: var(--bone);
  border: 1px solid rgba(242,236,220,0.35); border-radius: var(--radius);
  padding: 0.85rem 1.8rem; font-family: var(--font); font-weight: 700;
  font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.3);
}
.cta:hover, .cta:focus-visible { background: #243648; }
.cta.small { padding: 0.5rem 1.1rem; font-size: 0.8rem; }
:focus-visible { outline: 3px solid var(--bone); outline-offset: 2px; }

/* ---------- gallery ---------- */
.gallery img#gallery-main { border-radius: var(--radius); border: 1px solid rgba(242,236,220,0.25); background: var(--denim-mid); aspect-ratio: 1; object-fit: cover; }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; }
.thumbs button { flex: 1 1 calc(20% - 0.6rem); min-width: 64px; padding: 0; background: none; border: 1px solid rgba(242,236,220,0.25); border-radius: 6px; overflow: hidden; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--stitch); }
.thumbs img { aspect-ratio: 1; object-fit: cover; }

/* ---------- buy ---------- */
.variants { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.8rem; }
@media (min-width: 640px) { .variants { grid-template-columns: 1fr 1fr; } }
.variant {
  text-align: left; font-family: var(--font); font-weight: 700; color: var(--bone);
  background: var(--denim-mid); border: 1px solid rgba(242,236,220,0.3);
  border-radius: var(--radius); padding: 1.2rem 1.3rem; cursor: pointer;
  display: grid; gap: 0.35rem;
}
.variant.selected { border-color: var(--bone); box-shadow: 0 0 0 1px var(--bone); }
.variant-name { font-size: 1.25rem; letter-spacing: 0.06em; text-transform: uppercase; }
.variant-sub { color: var(--bone-dim); font-size: 0.85rem; }
.stock { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stock.low { color: var(--stitch); }
.stock.out { color: var(--stitch); }
.qty-label { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.4rem; }
.qty {
  width: 4.2rem; padding: 0.45rem 0.5rem; font-family: var(--font); font-weight: 700;
  font-size: 1rem; color: var(--bone); background: var(--denim-deep);
  border: 1px solid rgba(242,236,220,0.35); border-radius: 6px; text-align: center;
}

.price-box { max-width: 34rem; }
.tiers { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; font-size: 0.92rem; }
.tiers td { padding: 0.45rem 0; border-bottom: 1px dashed rgba(242,236,220,0.25); }
.tiers td:last-child { text-align: right; }
.order-total { font-size: 1.15rem; margin-bottom: 1.2rem; }
.order-total strong { font-size: 1.5rem; }
#discount-note { color: var(--stitch); font-size: 0.85rem; margin-left: 0.5rem; }
#paypal-buttons { background: var(--bone); border-radius: var(--radius); padding: 1rem; }
.pay-note { font-size: 0.8rem; color: var(--bone-dim); margin-top: 0.9rem; }
.pay-error { color: #ffd9c4; background: rgba(120,40,20,0.45); border-radius: 6px; padding: 0.7rem 1rem; margin-top: 0.8rem; font-size: 0.9rem; }

/* ---------- description ---------- */
.desc-cols { display: grid; gap: 1.2rem; max-width: 62rem; }
@media (min-width: 820px) { .desc-cols { grid-template-columns: 1fr 1fr; } }
.desc-cols p { color: var(--bone-dim); }
.desc-cols strong { color: var(--bone); }
.specs { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); margin-top: 2.2rem; background: rgba(242,236,220,0.25); border: 1px solid rgba(242,236,220,0.25); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .specs { grid-template-columns: repeat(3, 1fr); } }
.specs > div { background: var(--denim-deep); padding: 1rem 1.1rem; }
.specs dt { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-dim); }
.specs dd { font-size: 0.98rem; }

/* ---------- faq ---------- */
.faq details { border: 1px solid rgba(242,236,220,0.3); border-radius: var(--radius); background: var(--denim-mid); margin-bottom: 0.7rem; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-size: 1rem; letter-spacing: 0.03em; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--stitch); }
.faq details[open] summary::before { content: "– "; }
.faq details p { padding: 0 1.2rem 1.1rem; color: var(--bone-dim); }
.faq strong { color: var(--bone); }

/* ---------- reviews ---------- */
.review-list { display: grid; gap: 0.8rem; margin-bottom: 2rem; }
.review { background: var(--denim-mid); border: 1px solid rgba(242,236,220,0.25); border-radius: var(--radius); padding: 1rem 1.2rem; }
.review .who { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 0.3rem; }
.review-form { max-width: 34rem; display: grid; gap: 0.9rem; }
.review-form h3 { letter-spacing: 0.08em; text-transform: uppercase; font-size: 1.05rem; }
.review-form label { display: grid; gap: 0.3rem; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.review-form input, .review-form select, .review-form textarea {
  font-family: var(--font); font-weight: 700; font-size: 0.95rem; color: var(--bone);
  background: var(--denim-deep); border: 1px solid rgba(242,236,220,0.35);
  border-radius: 6px; padding: 0.6rem 0.7rem;
}

/* ---------- footer ---------- */
.site-footer { background: var(--denim-deep); padding: 2.2rem clamp(1rem, 5vw, 4rem) 2.6rem; border-top: 2px dashed rgba(242,236,220,0.3); display: grid; gap: 0.9rem; }
.wordmark-small { letter-spacing: 0.22em; font-size: 0.9rem; color: rgba(242,236,220,0.5); text-shadow: 0 1px 0 rgba(0,0,0,0.4); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.site-footer a { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--bone-dim); }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; inset: auto 1rem 1rem 1rem; z-index: 50;
  background: var(--denim-deep); border: 1px solid rgba(242,236,220,0.4);
  border-radius: var(--radius); padding: 1rem 1.2rem; max-width: 34rem; margin-left: auto;
  display: grid; gap: 0.8rem; font-size: 0.85rem; box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.cookie-banner[hidden] { display: none; }

/* ---------- legal pages ---------- */
.legal-page main { max-width: 50rem; }
.legal-page h2 { margin: 2.5rem 0 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-size: 1.2rem; }
.legal-page h3 { margin: 1.4rem 0 0.4rem; font-size: 1rem; }
.legal-page p, .legal-page li { color: var(--bone-dim); margin-bottom: 0.7rem; font-size: 0.95rem; }
.legal-page ul { padding-left: 1.3rem; }
.legal-page .updated { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
