/* =====================================================================
   BoE home-v3 — HOME LANDING redesign (not a CSS tweak).
   Wire AFTER /boe/site.css + elevate-shell.css (or elevate-shell-v2).
   Brand: paper #F7F3EA · stamp #A8481A · ink #1A1A18 · Anton/Archivo/Space Mono
   Anti-AI-slop: no soft glows, no purple/blue gradients, no Inter chrome,
   no identical card clones, no floating orbs. Receipt grit + asymmetric poster.
   Scope: / only. Creative does not deploy.
   ===================================================================== */

:root {
  --ink: #1A1A18;
  --ink-soft: #2C2A26;
  --muted: #5C564C;
  --muted-strong: #3F3A34;
  --paper: #F7F3EA;
  --paper-2: #E8E0D0;
  --paper-hot: #FFFDF8;
  --stamp: #A8481A;
  --sea: #1E4A3C;
  --alert: #8B2942;
  --hi: #F0E6A8;
  --focus: #1E4A3C;
  --max: 740px;
  --max-wide: 1120px;
  --shadow: 8px 8px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --tap-min: 44px;
  --space-section: clamp(1.75rem, 5vw, 2.75rem);
  --fs-h1-home: clamp(2.85rem, 11vw, 5.1rem);
  --fs-h1-home-sm: clamp(2.35rem, 12vw, 3.1rem);
  --fs-lead-home: clamp(1.14rem, 2.6vw, 1.28rem);
  --fs-chip: 0.8125rem;
  --fs-meta: 0.6875rem;
  --mast-pad-x: clamp(14px, 3vw, 28px);
}

/* --- body paper tooth (home only via .home-v3) ----------------------- */
body.home-v3 {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(26, 26, 24, 0.018) 3px,
      rgba(26, 26, 24, 0.018) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(168, 72, 26, 0.03) 47px,
      rgba(168, 72, 26, 0.03) 48px
    ),
    var(--paper);
  color: var(--ink);
}

body.home-v3 .boe-main {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 10px var(--mast-pad-x) 72px;
}

/* sticky mast inherited from elevate-shell; harden taps */
body.home-v3 .boe-masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid var(--ink);
  background: var(--paper-hot);
}

body.home-v3 .boe-nav a,
body.home-v3 .boe-brand {
  min-height: var(--tap-min);
}

/* =====================================================================
   1. POSTER HERO — one strong receipt slab, asymmetric type stack
   ===================================================================== */
.home-poster {
  position: relative;
  margin: 14px auto 0;
  max-width: var(--max-wide);
  background: var(--paper-hot);
  border: 3.5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
}

/* perforation teeth */
.home-poster::before,
.home-poster::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 12px;
  pointer-events: none;
  z-index: 3;
}
.home-poster::before {
  top: -6px;
  background:
    radial-gradient(circle at 6px 6px, var(--paper) 5px, transparent 5.5px) 0 0 / 16px 12px;
}
.home-poster::after {
  bottom: -6px;
  background:
    radial-gradient(circle at 6px 6px, transparent 5px, var(--paper) 5.5px) 0 0 / 16px 12px;
}

.home-poster-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.home-poster-topbar .keep {
  color: var(--hi);
  font-weight: 700;
}

/* asymmetric grid: copy left-heavy, mark shoved right + rotated */
.home-poster-body {
  display: grid;
  gap: 8px 20px;
  padding: 22px 18px 28px;
  align-items: start;
}
@media (min-width: 820px) {
  .home-poster-body {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    padding: 28px 28px 36px;
  }
}

.home-poster-copy {
  position: relative;
  z-index: 2;
}

/* rotated stamp — grit, not soft badge */
.home-poster .stamp {
  display: inline-block;
  border: 2.5px solid var(--stamp);
  color: var(--stamp);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 11px;
  transform: rotate(-4.5deg);
  margin: 4px 0 18px 2px;
  box-shadow: 4px 3px 0 rgba(168, 72, 26, 0.32);
  background: rgba(240, 230, 168, 0.42);
}

/* H1 — SEO above fold, hard stamp shadow, slight skew stack */
.home-poster .boe-h1 {
  font-family: Anton, Impact, sans-serif;
  font-size: var(--fs-h1-home);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 11ch;
  text-shadow:
    4px 4px 0 rgba(168, 72, 26, 0.3),
    -1px 0 0 rgba(168, 72, 26, 0.12);
}

/* money sentence — near-ink, never muted gray mush */
.home-poster .boe-dek {
  font-family: Archivo, system-ui, sans-serif;
  font-size: var(--fs-lead-home);
  font-weight: 650;
  line-height: 1.38;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 0 18px;
}

/* what-this-site-is — opinionated strip under dek */
.home-what {
  display: grid;
  gap: 6px;
  margin: 0 0 22px;
  padding: 12px 14px;
  border-left: 6px solid var(--stamp);
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 6px,
      rgba(26, 26, 24, 0.03) 6px,
      rgba(26, 26, 24, 0.03) 7px
    ),
    var(--paper-2);
  max-width: 38em;
}
.home-what .tag {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stamp);
  font-weight: 700;
}
.home-what p {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

/* hero mark — specific motifs, not orbs; slight rotate */
.home-poster-art {
  justify-self: end;
  width: 100%;
  max-width: 420px;
  margin: 4px 0 0;
  transform: rotate(1.2deg);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--ink);
  display: block;
}
.home-poster-art svg,
.home-hero-mark {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 819px) {
  .home-poster-art {
    justify-self: start;
    max-width: 100%;
    transform: rotate(0.6deg);
    order: -1;
    margin-bottom: 8px;
  }
  .home-poster-body {
    display: flex;
    flex-direction: column;
  }
}

/* ask row — hard corners, tap floor */
.home-poster .boe-ask {
  margin: 0 0 8px;
}
.home-poster .boe-ask-label {
  display: block;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-strong);
  font-weight: 700;
  margin: 0 0 8px;
  text-shadow: none;
}
.home-poster .boe-ask-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-poster .boe-input {
  flex: 1 1 220px;
  min-height: 54px;
  border: 3px solid var(--ink);
  background: #fff;
  font-family: Archivo, system-ui, sans-serif;
  font-size: 17px;
  padding: 12px 14px;
  color: var(--ink);
  border-radius: 0;
}
.home-poster .boe-button {
  min-height: 54px;
  min-width: var(--tap-min);
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border-radius: 0;
}
.home-poster .boe-button:hover {
  background: var(--stamp);
  border-color: var(--stamp);
}

.home-poster .boe-kicker {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted-strong);
  margin: 18px 0 8px;
}

/* quick topic chips under ask — ≥44px */
.home-poster .boe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-poster .boe-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 10px 14px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: var(--fs-chip);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 2px 2px 0 var(--ink);
  border-radius: 0;
}
.home-poster .boe-chip:hover,
.home-poster .boe-chip:focus-visible {
  background: var(--hi);
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

/* =====================================================================
   2. SPIDER HUBS — AI · desk · home · habits · produce
   Chunked stamped chips, NOT soft SaaS pills. Uneven sizes OK.
   ===================================================================== */
.home-spiders {
  margin: var(--space-section) auto 8px;
  max-width: var(--max-wide);
}
.home-spiders .boe-h2 {
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(1.5rem, 3.8vw, 1.85rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 6px;
}
.home-spiders-dek {
  font-family: Archivo, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 40em;
  margin: 0 0 16px;
}
.home-spiders-dek a {
  color: var(--stamp);
  font-weight: 700;
  text-underline-offset: 3px;
}

.spider-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .spider-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .spider-grid {
    /* asymmetric 5: first row 3, second row 2 stretched — not a perfect 5-up clone */
    grid-template-columns: repeat(6, 1fr);
  }
  .spider-grid .spider-chip:nth-child(1) { grid-column: span 2; }
  .spider-grid .spider-chip:nth-child(2) { grid-column: span 2; }
  .spider-grid .spider-chip:nth-child(3) { grid-column: span 2; }
  .spider-grid .spider-chip:nth-child(4) { grid-column: span 3; }
  .spider-grid .spider-chip:nth-child(5) { grid-column: span 3; }
}

.spider-chip a {
  display: grid;
  gap: 6px;
  min-height: var(--tap-min);
  padding: 16px 16px 18px;
  border: 3px solid var(--ink);
  background: var(--paper-hot);
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}
.spider-chip:nth-child(odd) a {
  transform: rotate(-0.4deg);
}
.spider-chip:nth-child(even) a {
  transform: rotate(0.35deg);
}
.spider-chip a:hover,
.spider-chip a:focus-visible {
  background: var(--hi);
  color: var(--ink);
  transform: translate(-2px, -2px) rotate(0deg);
  box-shadow: 6px 6px 0 var(--ink);
}
.spider-chip .sp-label {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stamp);
  font-weight: 700;
}
.spider-chip .sp-title {
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  text-transform: uppercase;
  line-height: 0.98;
  text-decoration: underline;
  text-decoration-thickness: 2.5px;
  text-underline-offset: 4px;
  text-decoration-color: var(--stamp);
}
.spider-chip .sp-blurb {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-soft);
}
/* produce gets a slightly different stamp wash — category signal */
.spider-chip.spider-produce a {
  background:
    repeating-linear-gradient(
      135deg,
      var(--paper-hot),
      var(--paper-hot) 8px,
      rgba(168, 72, 26, 0.06) 8px,
      rgba(168, 72, 26, 0.06) 9px
    );
}

/* =====================================================================
   3. FEATURED RECEIPTS — varied stamps, not identical SaaS cards
   ===================================================================== */
.home-featured {
  margin: var(--space-section) auto 8px;
  max-width: var(--max-wide);
}
.home-featured .boe-h2 {
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(1.5rem, 3.8vw, 1.85rem);
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 6px;
}
.home-featured-dek {
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 40em;
}

.home-featured-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .home-featured-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
  /* break perfect symmetry: middle card nudged */
  .home-featured-grid .featured-card:nth-child(2) {
    transform: translateY(10px) rotate(-0.5deg);
  }
  .home-featured-grid .featured-card:nth-child(1) {
    transform: rotate(0.4deg);
  }
  .home-featured-grid .featured-card:nth-child(3) {
    transform: rotate(-0.35deg);
  }
}

.home-featured-grid .featured-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 8px;
  min-height: var(--tap-min);
  padding: 16px;
  border: 3px solid var(--ink);
  background: var(--paper-hot);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  border-radius: 0;
}
.home-featured-grid .featured-card:hover,
.home-featured-grid .featured-card:focus-visible {
  background: var(--hi);
  color: var(--ink);
  transform: translate(-2px, -2px) rotate(0deg);
  box-shadow: 7px 7px 0 var(--ink);
}
.home-featured-grid .featured-card img {
  width: 96px;
  height: 96px;
  border: 2.5px solid var(--ink);
  background: var(--ink);
  display: block;
  object-fit: contain;
  image-rendering: auto;
}
/* vary image placement — human art-direction */
.home-featured-grid .featured-card:nth-child(2) img {
  justify-self: end;
}
.home-featured-grid .featured-card:nth-child(3) img {
  justify-self: center;
}
.home-featured-grid .fc-stamp {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stamp);
  font-weight: 700;
  display: inline-block;
  transform: rotate(-2deg);
  width: fit-content;
}
.home-featured-grid .featured-card:nth-child(2) .fc-stamp {
  transform: rotate(2.5deg);
}
.home-featured-grid .fc-thing {
  font-family: Anton, Impact, sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: underline;
  text-decoration-color: var(--stamp);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.home-featured-grid .fc-claim {
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
}
.home-featured-grid .fc-caveat {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--alert);
  line-height: 1.35;
  font-weight: 700;
}

/* =====================================================================
   4. TRUST STRIP — how-we-source, Option A, not icon-orb row
   ===================================================================== */
.home-trust {
  margin: var(--space-section) auto 12px;
  max-width: var(--max);
  border: 3px solid var(--ink);
  background: var(--paper-hot);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.home-trust::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: -5px;
  height: 10px;
  background:
    radial-gradient(circle at 5px 5px, var(--paper) 4px, transparent 4.5px) 0 0 / 14px 10px;
  pointer-events: none;
}
.home-trust-topbar {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.home-trust-body {
  padding: 18px 18px 22px;
}
.home-trust .boe-h2 {
  font-family: Anton, Impact, sans-serif;
  font-size: 1.45rem;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--ink);
}
.home-trust p {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 38em;
}
.home-trust-rules {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.home-trust-rules li {
  padding: 10px 12px;
  border-left: 4px solid var(--stamp);
  background: var(--paper-2);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  min-height: var(--tap-min);
  display: flex;
  align-items: center;
}
.home-trust-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 10px 16px;
  border: 2.5px solid var(--ink);
  background: var(--hi);
  color: var(--ink);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
}
.home-trust-cta:hover,
.home-trust-cta:focus-visible {
  background: var(--paper);
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.home-trust-option-a {
  margin: 16px 0 0;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted-strong);
}
.home-trust-option-a strong {
  color: var(--ink);
  font-weight: 700;
}

/* about line under trust */
.home-about {
  margin: 20px auto 0;
  max-width: var(--max);
  padding: 14px 16px;
  border-left: 6px solid var(--stamp);
  background: var(--paper-2);
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
}
.home-about .tag {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stamp);
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
}

/* footer taps */
body.home-v3 .boe-footer-nav a {
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
}

/* =====================================================================
   5. MOBILE-FIRST rules (≤480px)
   ===================================================================== */
@media (max-width: 480px) {
  body.home-v3 .boe-main {
    padding-left: 10px;
    padding-right: 10px;
  }
  body.home-v3 .boe-nav-meta {
    display: none;
  }
  .home-poster {
    width: 100%;
    box-shadow: 6px 6px 0 var(--ink);
  }
  .home-poster-body {
    padding: 16px 12px 22px;
  }
  .home-poster .boe-h1 {
    font-size: var(--fs-h1-home-sm);
    max-width: none;
    text-shadow: 2px 2px 0 rgba(168, 72, 26, 0.3);
  }
  .home-poster .boe-dek {
    font-size: 1.08rem;
  }
  .home-poster .boe-chip {
    min-height: var(--tap-min);
    padding: 10px 12px;
    font-size: 12.5px;
  }
  .home-featured-grid .featured-card {
    transform: none !important;
  }
  .spider-chip a {
    transform: none;
  }
  .spider-chip a:hover {
    transform: translate(-2px, -2px);
  }
}

/* focus rings — sea, hard */
.home-poster .boe-chip:focus-visible,
.spider-chip a:focus-visible,
.home-featured-grid .featured-card:focus-visible,
.home-trust-cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
