/* Guerrilla Barware — guerrillabarware.com
   Brand: INK #100f0d, KRAFT #C7A06D. Big Shoulders Stencil for big display,
   Big Shoulders solid for small display, Archivo for body. Display tracking 10%. */

@font-face { font-family: "GB Stencil"; src: url("fonts/BigShouldersStencil700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "GB Solid"; src: url("fonts/BigShoulders700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/Archivo400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/Archivo600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/Archivo700.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --ink: #100f0d;
  --ink-deep: #0a0908;
  --kraft: #C7A06D;
  --kraft-light: #e2c08f;
  --kraft-muted: #b8956a;
  --paper: #ede6da;
  --paper-dim: #cfc6b8;
  --line: #3a342b;
  --gray: #8f857a;
  --stencil: "GB Stencil", "Arial Narrow", sans-serif;
  --solid: "GB Solid", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--kraft); }
a:hover { color: var(--kraft-light); }
:focus-visible { outline: 2px solid var(--kraft); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--stencil); font-weight: 700; letter-spacing: 0.1em; line-height: 0.9; margin: 0; }
.eyebrow { margin: 0; font-weight: 600; font-size: 12px; letter-spacing: 0.2em; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--kraft); color: var(--ink); padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 16px; }

/* ---------- Header ---------- */
.site-header .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--solid); font-weight: 700; font-size: 18px; letter-spacing: 0.1em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.site-nav a {
  text-decoration: none; font-weight: 600; font-size: 13px; letter-spacing: 0.14em;
  padding: 12px 0; display: inline-block;
}
@media (max-width: 600px) { .site-nav { display: none; } }

/* ---------- Hero ---------- */
.hero .wrap {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 36px;
  padding-top: 56px; padding-bottom: 120px;
}
.hero-beetle { height: clamp(200px, 30vw, 300px); width: auto; }
.hero h1 { font-size: clamp(56px, 12vw, 176px); line-height: 0.88; color: var(--kraft); }
.hero h1 span { display: block; }
.tagline {
  margin: 0; font-family: var(--solid); font-weight: 700; letter-spacing: 0.1em;
  font-size: clamp(20px, 2.6vw, 34px); line-height: 1.15;
}
.tagline span { white-space: nowrap; }
.rule { width: 48px; height: 1px; background: var(--kraft); border: 0; margin: 0; }
.hero .eyebrow { color: var(--kraft-muted); letter-spacing: 0.24em; }

/* ---------- The Guerrilla Way: opening crawl ----------
   Sequence (one loop): intro line fades in and out, the title starts huge and
   recedes, then the manifesto crawls up the tilted plane toward the horizon.
   main.js adds .is-armed to turn the motion on, and .is-playing while the section is on screen. Without .is-armed (no JS, the button
   or reduced motion) it is plain text. */
.gw {
  --gw-loop: 70s;
  position: relative;
  height: min(920px, 100svh);
  min-height: 640px;
  overflow: hidden;
  background-color: var(--ink-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, var(--paper) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 64%, var(--paper) 50%, transparent 51%),
    radial-gradient(1px 1px at 37% 12%, var(--kraft) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 51% 82%, var(--paper) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 33%, var(--paper) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 71%, var(--kraft) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 91% 24%, var(--paper) 50%, transparent 51%),
    radial-gradient(1px 1px at 14% 91%, var(--paper) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 52%, var(--paper) 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 47%, var(--gray) 50%, transparent 51%);
  background-size: 520px 460px;
}
.gw-intro, .gw-title {
  position: absolute; inset: 0; margin: auto; height: max-content;
  padding: 0 24px; text-align: center; opacity: 0;
}
.gw-intro {
  font-weight: 600; font-size: clamp(14px, 1.6vw, 20px); letter-spacing: 0.3em; color: var(--kraft-muted);
}
.gw-title { font-size: clamp(64px, 11vw, 160px); line-height: 0.88; color: var(--kraft); }
.gw-title span { display: block; }

.gw-crawl-wrap {
  position: absolute; inset: 0;
  perspective: 360px;
  perspective-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 18%, #000 48%);
  mask-image: linear-gradient(to bottom, transparent 18%, #000 48%);
}
.gw-crawl {
  position: absolute; top: 100%; left: 0; right: 0; margin: 0 auto;
  width: min(760px, 86%);
  transform-origin: 50% 0;
  transform: rotateX(42deg) translateY(0);
  font-weight: 700; font-size: clamp(22px, 2.8vw, 38px); line-height: 1.4;
  text-align: justify; hyphens: auto; color: var(--kraft);
}
.gw-crawl p { margin: 0 0 1.1em; }
.gw-close { text-align: center; font-family: var(--stencil); font-size: 1.7em; line-height: 1; letter-spacing: 0.1em; }
.gw-close span { display: block; }

.gw.is-armed .gw-intro { animation: gw-intro var(--gw-loop) linear infinite paused; }
.gw.is-armed .gw-title { animation: gw-title var(--gw-loop) linear infinite paused; }
.gw.is-armed .gw-crawl { animation: gw-crawl var(--gw-loop) linear infinite paused; }
.gw.is-playing .gw-intro, .gw.is-playing .gw-title, .gw.is-playing .gw-crawl { animation-play-state: running; }

@keyframes gw-intro { 0% { opacity: 0 } 2% { opacity: 1 } 8% { opacity: 1 } 10%, 100% { opacity: 0 } }
@keyframes gw-title {
  0%, 10% { opacity: 0; transform: scale(2.6); }
  10.5% { opacity: 1; transform: scale(2.6); }
  22% { opacity: 1; transform: scale(0.35); }
  25%, 100% { opacity: 0; transform: scale(0.15); }
}
@keyframes gw-crawl {
  0%, 15% { transform: rotateX(42deg) translateY(0); opacity: 1; }
  93% { opacity: 1; }
  100% { transform: rotateX(42deg) translateY(calc(-100% - 1100px)); opacity: 0; }
}

.gw-toggle {
  position: absolute; right: 24px; bottom: 20px; z-index: 2;
  min-height: 44px; padding: 0 16px;
  background: transparent; color: var(--kraft-muted);
  border: 1px solid var(--line); border-radius: 999px;
  font: 600 12px/1 var(--body); letter-spacing: 0.16em; cursor: pointer;
}
.gw-toggle:hover { color: var(--kraft); border-color: var(--kraft-muted); }

/* Still version: the same text, read at your own pace. */
.gw:not(.is-armed) { height: auto; min-height: 0; padding: 112px 24px; }
.gw:not(.is-armed) .gw-intro, .gw:not(.is-armed) .gw-title {
  position: static; opacity: 1; animation: none; transform: none; margin: 0 auto 32px;
}
.gw:not(.is-armed) .gw-crawl-wrap { position: static; perspective: none; -webkit-mask-image: none; mask-image: none; }
.gw:not(.is-armed) .gw-crawl {
  position: static; transform: none; animation: none; margin: 56px auto 0;
  font-size: clamp(19px, 2vw, 24px); text-align: left; hyphens: manual;
}
.gw:not(.is-armed) .gw-toggle { top: 20px; bottom: auto; }

/* ---------- Bar Cards ---------- */
.app { background: var(--kraft); color: var(--ink); }
.app a { color: var(--ink); }
.app .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 64px;
  padding-top: 112px; padding-bottom: 112px;
}
.app-copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 24px; }
.app-copy h2 { font-size: clamp(56px, 7vw, 104px); }
.app-copy h2 span { display: block; }
.app-copy p { margin: 0; font-size: 19px; max-width: 440px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
/* Store buttons: "coming soon" until launch, then Apple's and Google's official badges. */
.store {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 170px; min-height: 56px; padding: 8px 20px;
  background: var(--ink); color: var(--paper) !important; border-radius: 10px;
  text-decoration: none; line-height: 1.15;
}
.store:hover { background: #2a2620; }
.store.is-soon { margin: 0; }
.store.is-soon:hover { background: var(--ink); }
.store.is-soon small { letter-spacing: 0.14em; font-weight: 600; color: var(--kraft); }
.store small { font-size: 11px; }
.store strong { font-size: 20px; font-weight: 600; }
.shots {
  flex: 999 1 560px; min-width: 0; margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
}
.shots li:nth-child(2) { margin-top: 48px; }
.shots img {
  width: 228px;
  filter: drop-shadow(0 24px 32px rgba(16, 15, 13, 0.3));
}

/* ---------- Gear ---------- */
.gear .wrap { display: flex; flex-direction: column; gap: 48px; padding-top: 112px; padding-bottom: 112px; }
.gear-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.gear-head h2 { font-size: clamp(48px, 6vw, 88px); line-height: 0.92; color: var(--kraft); }
.gear-head h2 span { display: block; }
.gear-head p { margin: 0; max-width: 420px; color: var(--paper-dim); }
.tools {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--line);
}
.tools li {
  padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.tag { font-weight: 600; font-size: 12px; letter-spacing: 0.2em; color: var(--kraft-muted); }
.tools h3 { margin: 0; font-family: var(--solid); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: 0.1em; }
.tools p { margin: 0; font-size: 15px; color: var(--paper-dim); }
.set {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 48px;
  padding: 32px; border: 1px solid var(--kraft);
}
.set > div { display: flex; flex-direction: column; gap: 8px; }
.set h3 { font-size: clamp(34px, 4vw, 56px); line-height: 1; color: var(--kraft); }
.set p { margin: 0; max-width: 420px; color: var(--paper-dim); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: center; justify-content: space-between;
  padding-top: 48px; padding-bottom: 56px; font-size: 14px;
}
.site-footer .brand img { height: 28px; }
.site-footer .brand span { font-size: 15px; color: var(--kraft); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.footer-links a { padding: 12px 0; display: inline-block; }
.copyright { color: var(--gray); }

/* ---------- Plain text pages (privacy, 404) ---------- */
.page .wrap { max-width: 760px; padding-top: 72px; padding-bottom: 112px; }
.page h1 { font-size: clamp(48px, 8vw, 88px); color: var(--kraft); margin-bottom: 32px; }
.page h2 { font-family: var(--solid); font-weight: 700; letter-spacing: 0.1em; font-size: 24px; color: var(--kraft); margin: 40px 0 8px; }
.page p, .page li { color: var(--paper-dim); }
.page .updated { color: var(--gray); font-size: 14px; }

/* ---------- Product pages (generated by tools/build_products.py) ---------- */
.product-hero .wrap {
  display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start;
  padding-top: 40px; padding-bottom: 96px;
}
.product-photo { flex: 1 1 340px; max-width: 520px; margin: 0; }
.product-photo img { width: 100%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45)); }
.product-photo figcaption { margin-top: 14px; font-size: 13px; color: var(--gray); text-align: center; }
.product-info { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.product-info .eyebrow { color: var(--kraft-muted); }
.product-info h1 { font-size: clamp(48px, 6.4vw, 92px); color: var(--kraft); }
.product-info > p { margin: 0; max-width: 560px; color: var(--paper-dim); }
.product-info > .product-line { font-family: var(--solid); font-weight: 700; letter-spacing: 0.08em; font-size: 24px; color: var(--paper); }
.app-cta {
  margin: 12px 0 8px; padding: 24px; border: 1px solid var(--kraft);
  display: flex; flex-direction: column; gap: 10px; max-width: 560px;
}
.app-cta p { margin: 0; color: var(--paper-dim); }
.app-cta .app-cta-title { font-weight: 700; font-size: 13px; letter-spacing: 0.16em; color: var(--kraft); }
.app-cta .stores { padding-top: 6px; }
.app-cta .store { border: 1px solid var(--line); }
.specs-title { margin: 12px 0 0; font-family: var(--solid); font-weight: 700; font-size: 18px; letter-spacing: 0.12em; color: var(--kraft); }
.specs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); max-width: 560px; }
.specs li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--paper-dim); }

.how { background: var(--kraft); color: var(--ink); }
.how a { color: var(--ink); }
.how .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 40px; }
.how h2 { font-size: clamp(44px, 5.5vw, 80px); }
.steps {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
}
.steps li { display: flex; gap: 16px; align-items: flex-start; font-size: 18px; line-height: 1.45; }
.step-n { font-family: var(--stencil); font-weight: 700; font-size: 56px; line-height: 0.85; min-width: 44px; }
.steps strong { font-weight: 700; letter-spacing: 0.06em; }
.step-tip { margin: 0; font-size: 17px; max-width: 560px; }

.recipes-section .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.recipes-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.recipes-head h2 { font-size: clamp(36px, 4.4vw, 64px); color: var(--kraft); max-width: 820px; }
.recipes-head p { margin: 0; color: var(--paper-dim); }
.recipes {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 24px 16px;
}
.recipe { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.recipe img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #1d1b18; transition: transform 0.2s ease; }
.recipe:hover img { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .recipe img { transition: none; } }
.recipe-name { margin-top: 6px; font-family: var(--solid); font-weight: 700; font-size: 19px; letter-spacing: 0.06em; color: var(--paper); }
.recipe-meta { font-size: 13px; color: var(--gray); }

.way-excerpt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.way-excerpt .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.way-excerpt blockquote { margin: 0; max-width: 900px; }
.way-excerpt blockquote p {
  margin: 0; font-family: var(--solid); font-weight: 700; letter-spacing: 0.06em;
  font-size: clamp(26px, 3.2vw, 42px); line-height: 1.15; color: var(--kraft);
}
.way-excerpt a { font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-decoration: none; padding: 12px 0; }

.more-gear .wrap { padding-top: 72px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 24px; }
.more-gear h2 { color: var(--kraft-muted); }
.more-gear ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.more-gear a { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.more-gear a span { font-family: var(--solid); font-weight: 700; font-size: 22px; letter-spacing: 0.1em; color: var(--paper); }
.more-gear a small { font-size: 14px; color: var(--paper-dim); }
.more-gear a:hover span { color: var(--kraft); }

/* Home page gear cards link to their product pages. */
.tools a, .set a { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; }
.tools a:hover h3, .set a:hover h3 { color: var(--kraft); }
.more-link { font-weight: 600; font-size: 12px; letter-spacing: 0.16em; color: var(--kraft); }
