/* ================================================================
   Bacorn design system v1.0
   Source: Bacorn_Brand_Guidelines.pdf (2026-07-22)
   Warm cream backgrounds. Bacon Red CTAs. Golden Yellow highlights.
   Display: Bebas Neue / Anton (condensed heavy sans).
   Body: Inter / Montserrat.
   ================================================================ */

:root {
  --bacon-red:      #F52510;
  --deep-red:       #C60703;
  --bacon-brown:    #600D05;
  --dark-outline:   #2E0100;
  --golden-yellow:  #FADB0F;
  --toasted-orange: #EC751F;
  --popcorn-cream:  #FCF8DB;
  --warm-cream:     #FFF4D6;
  --charcoal:       #261812;
  --charcoal-70:    rgba(38,24,18,0.7);
  --charcoal-40:    rgba(38,24,18,0.4);
  --white:          #FFFFFF;
  --shadow-soft:    0 4px 24px rgba(38,24,18,0.10);
  --shadow-hover:   0 10px 32px rgba(38,24,18,0.16);
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --radius-pill:    999px;
  --gap:            clamp(16px, 2.5vw, 32px);
  --container:      1200px;
  --font-display:   "Bebas Neue", "Anton", "Oswald", "Impact", sans-serif;
  --font-body:      "Inter", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--charcoal);
  background: var(--warm-cream);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--deep-red); text-decoration: none; transition: color .18s var(--ease-out); }
a:hover { color: var(--bacon-red); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--golden-yellow);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─── layout primitives ──────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gap); }
.section   { padding: clamp(56px, 8vw, 120px) 0; }
.section--tight { padding: clamp(32px, 5vw, 64px) 0; }
.grid      { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.center-text { text-align: center; }
.center-text > p, .center-text > .lede { max-width: 640px; margin-inline: auto; }
.center-text > .max-prose, .center-text > .max-prose-lg { margin-inline: auto; }
.max-prose { max-width: 640px; }
.max-prose-lg { max-width: 780px; }

/* ─── typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--bacon-brown);
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
h1 { font-size: clamp(44px, 7vw, 92px); }
h2 { font-size: clamp(32px, 4.5vw, 60px); margin-bottom: 0.4em; }
h3 { font-size: clamp(22px, 2.8vw, 32px); margin-bottom: 0.4em; }
h4 { font-size: clamp(18px, 2vw, 22px); margin-bottom: 0.3em; }
p  { margin: 0 0 1em 0; max-width: 68ch; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-red);
  margin-bottom: 12px;
}
.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--charcoal-70); }
.tagline-strip {
  display: inline-block;
  background: var(--golden-yellow);
  color: var(--dark-outline);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 0 var(--bacon-brown);
}

/* ─── buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--bacon-red); color: var(--white); box-shadow: 0 4px 0 var(--deep-red); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--deep-red); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 0 var(--bacon-brown), var(--shadow-hover); }
.btn-secondary { background: var(--white); color: var(--bacon-brown); box-shadow: 0 4px 0 var(--popcorn-cream), inset 0 0 0 2px var(--bacon-brown); }
.btn-secondary:hover { background: var(--popcorn-cream); transform: translateY(-2px); box-shadow: 0 6px 0 var(--bacon-brown), var(--shadow-hover), inset 0 0 0 2px var(--bacon-brown); }
.btn-ghost { background: transparent; color: var(--bacon-brown); }
.btn-ghost:hover { background: var(--popcorn-cream); color: var(--bacon-red); }
.btn-yellow { background: var(--golden-yellow); color: var(--dark-outline); box-shadow: 0 4px 0 var(--toasted-orange); }
.btn-yellow:hover { background: #ffe14f; transform: translateY(-2px); box-shadow: 0 6px 0 var(--toasted-orange), var(--shadow-hover); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 18px; }

/* ─── header + nav ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,244,214,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--popcorn-cream);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 10px var(--gap); max-width: var(--container); margin: 0 auto; gap: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 120px; width: auto; max-height: 120px; display: block; }
@media (max-width: 960px) { .brand img { height: 96px; } }
@media (max-width: 640px) { .brand img { height: 76px; } }
@media (max-width: 400px) { .brand img { height: 64px; } }
.brand:hover img { transform: rotate(-1deg); transition: transform .3s var(--ease-out); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-radius: var(--radius-pill);
  transition: background .18s var(--ease-out), color .18s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--popcorn-cream); color: var(--bacon-red); }
.nav-links .btn { padding: 10px 18px; font-size: 13px; }
.nav-toggle { display: none; background: transparent; border: 2px solid var(--bacon-brown); color: var(--bacon-brown); padding: 8px 12px; border-radius: var(--radius-pill); font-weight: 700; font-size: 13px; text-transform: uppercase; cursor: pointer; }
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--warm-cream); border-bottom: 2px solid var(--popcorn-cream); padding: 12px var(--gap); gap: 4px; box-shadow: var(--shadow-soft); }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links a { padding: 14px 16px; }
  .nav-toggle { display: inline-block; }
}

/* ─── hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(24px, 3.5vw, 56px) 0 clamp(48px, 8vw, 110px);
  background: linear-gradient(180deg, var(--warm-cream) 0%, var(--popcorn-cream) 100%);
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; top: -60px; right: -40px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(250,219,15,0.32), transparent 70%); pointer-events: none; }
.hero::after  { content: ""; position: absolute; bottom: -80px; left: -60px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(236,117,31,0.22), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.hero-copy { padding-top: 8px; }
.hero-copy .eyebrow { margin-bottom: 14px; }
.hero-copy h1 { margin-bottom: 20px; color: var(--bacon-brown); }
.hero-copy .lede { margin-bottom: 18px; }
.hero .accent { color: var(--bacon-red); display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.hero-bag {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 30px rgba(96,13,5,0.28));
  transition: transform .6s var(--ease-out);
}
.hero-video {
  display: block;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--popcorn-cream);
  filter: drop-shadow(0 20px 30px rgba(96,13,5,0.28));
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.hero-chars {
  position: absolute;
  top: -12px;
  left: -32px;
  width: 148px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(96,13,5,0.22));
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-chars { position: static; transform: none; width: 180px; margin: 0 auto 8px; }
  .hero-media { flex-direction: column; align-items: center; }
}

.bag-inline {
  display: block;
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: clamp(24px, 4vw, 48px) auto;
  filter: drop-shadow(0 14px 22px rgba(96,13,5,0.22));
  transition: transform .5s var(--ease-out);
}
.bag-inline:hover { transform: rotate(-1.5deg) translateY(-4px); }
.bag-inline--sm { max-width: 220px; }

/* transparent character duo — centered, decorative */
.chars-figure { margin: clamp(24px, 4vw, 48px) auto; text-align: center; max-width: 520px; }
.chars-inline {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 14px 22px rgba(96,13,5,0.22));
}
.chars-figure figcaption { font-size: 14px; color: var(--charcoal-70); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
@media (max-width: 640px) { .chars-inline { max-width: 280px; } }

/* ─── cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-soft);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
  border: 2px solid var(--popcorn-cream);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card--warm { background: var(--popcorn-cream); }
.card--channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(24px, 3vw, 36px);
  gap: 12px;
}
.card--channel .badge { align-self: center; margin-bottom: 4px; }
.card--channel h3 { margin: 0; }
.card--channel p { margin: 0; text-align: center; max-width: 42ch; }
.card--channel .btn {
  margin-top: auto;
  align-self: center;
  padding: 14px 22px;
  font-size: 14px;
  min-height: 48px;
}
@media (max-width: 640px) { .card--channel .btn { width: 100%; max-width: 320px; } }

/* CTA centered wrapper — for standalone buttons */
.cta-center { display: flex; justify-content: center; margin-top: 32px; }
.cta-center .btn { min-width: 220px; }
@media (max-width: 640px) { .cta-center .btn { width: 100%; max-width: 320px; } }
.card--red  { background: var(--bacon-red); color: var(--white); border-color: var(--deep-red); }
.card--red h3, .card--red h4 { color: var(--white); }
.card--yellow { background: var(--golden-yellow); border-color: var(--toasted-orange); }
.card--yellow h3, .card--yellow h4 { color: var(--bacon-brown); }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--popcorn-cream); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--bacon-red); }
.card--red .card-icon { background: rgba(255,255,255,0.15); color: var(--white); }

/* ─── founders batch tracker ─────────────────────────────────── */
.founders-grid { gap: clamp(32px, 4vw, 64px); }
.founders-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(8px, 1.5vw, 20px) 0; }
.founders-copy .btn { align-self: flex-start; margin-top: 12px; }
@media (max-width: 900px) {
  .founders-copy { text-align: center; align-items: center; }
  .founders-copy p { margin-inline: auto; }
  .founders-copy .btn { align-self: center; }
}
.tracker {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  border: 3px solid var(--bacon-red);
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
}
.tracker-video {
  display: block;
  width: 140px;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-md);
  float: right;
  margin: 0 0 12px 16px;
  background: var(--popcorn-cream);
  filter: drop-shadow(0 6px 12px rgba(96,13,5,0.20));
  shape-outside: inset(0 round var(--radius-md));
}
@media (max-width: 640px) {
  .tracker-video { float: none; width: 120px; margin: 0 auto 16px; }
}
.tracker-status { display: inline-block; padding: 4px 12px; background: var(--golden-yellow); color: var(--dark-outline); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; border-radius: var(--radius-pill); margin-bottom: 12px; }
.progress { position: relative; height: 20px; background: var(--popcorn-cream); border-radius: var(--radius-pill); overflow: hidden; margin: 20px 0 8px; border: 2px solid var(--bacon-brown); }
.progress-bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--bacon-red), var(--toasted-orange)); border-radius: var(--radius-pill); transition: width .6s var(--ease-out); }
.progress-labels { display: flex; justify-content: space-between; font-size: 14px; color: var(--charcoal-70); }
.tracker-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.tracker-fact { padding: 12px; background: var(--warm-cream); border-radius: var(--radius-md); text-align: center; }
.tracker-fact strong { display: block; font-family: var(--font-display); font-size: 26px; color: var(--bacon-red); }
.tracker-fact span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--charcoal-70); }

/* ─── forms ──────────────────────────────────────────────────── */
form.bacorn-form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; color: var(--bacon-brown); text-transform: uppercase; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 2px solid var(--popcorn-cream);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color .16s var(--ease-out), box-shadow .16s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bacon-red); box-shadow: 0 0 0 3px rgba(245,37,16,0.15); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.field .help { font-size: 13px; color: var(--charcoal-70); text-transform: none; letter-spacing: 0; font-weight: 400; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--bacon-red); flex: none; }
.checkbox-row label { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--charcoal); }
.form-status { padding: 14px 16px; border-radius: var(--radius-md); font-weight: 600; }
.form-status[data-state="ok"] { background: #E4F5DC; color: #1C5B0F; border: 2px solid #74B85D; }
.form-status[data-state="err"] { background: #FDE2DE; color: #7A0E04; border: 2px solid var(--bacon-red); }
.form-legal { font-size: 13px; color: var(--charcoal-70); }
.form-legal a { color: var(--deep-red); text-decoration: underline; }

/* ─── use-occasion pills ─────────────────────────────────────── */
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill { padding: 10px 20px; background: var(--white); border: 2px solid var(--bacon-brown); border-radius: var(--radius-pill); color: var(--bacon-brown); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; transition: background .16s var(--ease-out), color .16s var(--ease-out), transform .16s var(--ease-out); }
.pill:hover { background: var(--bacon-red); color: var(--white); transform: translateY(-2px); }

/* ─── flavor voting cards ────────────────────────────────────── */
.flavor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.flavor-card { background: var(--white); border: 2px solid var(--popcorn-cream); border-radius: var(--radius-md); padding: 20px; text-align: center; transition: border-color .16s var(--ease-out), transform .16s var(--ease-out); }
.flavor-card[data-state="voted"] { border-color: var(--bacon-red); background: #FFE8E4; }
.flavor-card h4 { color: var(--bacon-brown); margin-bottom: 8px; }
.flavor-card .flavor-status { font-size: 12px; color: var(--charcoal-70); text-transform: uppercase; letter-spacing: 0.08em; }
.flavor-card button { margin-top: 12px; font-size: 12px; padding: 8px 16px; }

/* ─── footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--bacon-brown); color: var(--popcorn-cream); padding: clamp(48px, 6vw, 80px) 0 24px; margin-top: clamp(48px, 8vw, 100px); }
.site-footer h4 { color: var(--golden-yellow); font-size: 16px; margin-bottom: 18px; letter-spacing: 0.08em; }
.site-footer a { color: var(--popcorn-cream); font-size: 14px; }
.site-footer a:hover { color: var(--golden-yellow); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { max-width: 100%; height: auto; }
.footer-brand p { color: rgba(252,248,219,0.75); max-width: 42ch; margin-top: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid rgba(252,248,219,0.15); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: rgba(252,248,219,0.75); }
.footer-bottom a { color: rgba(252,248,219,0.85); }
.footer-bottom a:hover { color: var(--golden-yellow); }

/* ─── utility ────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 4px 12px; background: var(--popcorn-cream); color: var(--bacon-brown); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; border-radius: var(--radius-pill); }
.badge--red    { background: var(--bacon-red); color: var(--white); }
.badge--yellow { background: var(--golden-yellow); color: var(--dark-outline); }
.divider { height: 6px; background: repeating-linear-gradient(45deg, var(--bacon-red) 0 12px, var(--golden-yellow) 12px 24px); border: none; margin: 32px 0; border-radius: var(--radius-pill); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -40px; left: 8px; padding: 8px 14px; background: var(--bacon-red); color: var(--white); font-weight: 700; text-decoration: none; z-index: 100; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud span { padding: 6px 12px; background: var(--popcorn-cream); color: var(--bacon-brown); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border-radius: var(--radius-pill); }

/* ─── announce banner (top strip) ────────────────────────────── */
.announce { background: var(--dark-outline); color: var(--golden-yellow); text-align: center; padding: 8px var(--gap); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.announce a { color: var(--golden-yellow); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
