/* ==========================================================================
   SpikerBot Press Site — styled to match backyardbrains.com brand.
   Colors and type sampled from the live BYB site (May 2026):
     primary  #ff805f   (BYB coral-orange, dominant)
     secondary#ea7557
     peach bg #fff5f2 / #ffe6df
     ink      #171717  on white
     body     Roboto · headings: Archivo Black (closest free match
                       to BYB's self-hosted "boldoa_mat" display).
   To re-skin: change the variables in :root.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:        #ffffff;
  --bg-soft:   #fff5f2;     /* warm peach section background */
  --bg-warm:   #ffe6df;     /* highlight tint */
  --line:      #e5e5e5;
  --line-soft: #f0f0f0;

  /* Ink */
  --ink:       #171717;
  --ink-body:  #2b2e38;
  --ink-dim:   #606060;
  --ink-faint: #8a8a8a;

  /* Brand */
  --brand:        #ff805f;   /* BYB primary */
  --brand-deep:   #ea7557;   /* hover / pressed */
  --brand-dark:   #c9583c;   /* text-on-light contrast */
  --accent-yellow:#ffc600;
  --accent-green: #00aa4f;

  /* Geometry */
  --r-btn:    16px;          /* matches BYB button rounding */
  --r-card:   8px;
  --r-feature:18px;
  --r-pill:   999px;

  /* Type */
  --font-sans:    "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Archivo Black", "Roboto", system-ui, sans-serif;   /* closest free analog to boldoa_mat */
  --font-mono:    "Roboto Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1240px;
}

/* Reset-ish */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* === Embargo banner — BYB orange, white text === */
.embargo-bar {
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* === Top nav === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  max-width: var(--container);
  margin: 0 auto;
  border-bottom: 1px solid var(--line-soft);
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.01em;
  font-size: 16px;
  color: var(--ink);
  text-transform: uppercase;
  text-decoration: none;
}
.nav .brand:hover { color: var(--brand); }
.nav .brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand);
}
.nav ul {
  list-style: none; display: flex; gap: 22px; padding: 0; margin: 0;
}
.nav ul a {
  color: var(--ink-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav ul a:hover { color: var(--brand); }

/* === Hero === */
.hero {
  padding: 70px 0 80px;
  background:
    radial-gradient(900px 500px at 90% -100px, var(--bg-warm), transparent 70%),
    var(--bg);
}
.hero .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--bg-warm);
  border: 1px solid #f7c8b8;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 18ch;
  text-transform: uppercase;
}
.hero p.lead {
  max-width: 720px;
  font-size: 20px;
  color: var(--ink-body);
  margin: 0 0 32px;
}
.hero .cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* === Buttons (BYB rounded-rect, filled or outline) === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--r-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none !important;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--brand);
  color: #ffffff;
}
.btn-primary:hover { background: var(--brand-deep); color: #ffffff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #ffffff; }

/* === Hero media === */
.hero-media {
  margin-top: 56px;
  position: relative;
  border-radius: var(--r-feature);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
}
.hero-media .placeholder {
  text-align: center;
  color: var(--ink-faint);
  padding: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.hero-media img,
.hero-media video {
  width: 100%; height: 100%; object-fit: cover;
}

/* === Sections === */
section { padding: 84px 0; }
section:nth-of-type(even) { background: var(--bg-soft); }   /* alternate peach */
section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 14px;
  text-transform: uppercase;
}
section .section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 14px;
  font-weight: 600;
}
section p.lead {
  color: var(--ink-body);
  max-width: 760px;
  font-size: 18px;
  margin: 0 0 36px;
}

/* === Three-up cards === */
.threeup {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.threeup .card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
}
.threeup .card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: 0.005em;
}
.threeup .card p { color: var(--ink-body); margin: 0; font-size: 15px; }

/* === Fact sheet === */
.fact-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border-top: 2px solid var(--ink);
  background: #ffffff;
  border-radius: var(--r-card);
  overflow: hidden;
}
.fact-grid > div {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  background: #ffffff;
}
.fact-grid .k {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  color: var(--ink-dim);
  font-weight: 600;
}
.fact-grid .v { color: var(--ink); font-weight: 500; }

/* === Press release === */
.release {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-feature);
  padding: 44px;
  max-width: 880px;
  box-shadow: 0 1px 0 var(--line);
}
.release .dateline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 14px;
  font-weight: 600;
}
.release h3 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 8px;
  text-transform: uppercase;
}
.release .subhead {
  color: var(--ink-body);
  font-style: italic;
  margin: 0 0 26px;
  font-size: 17px;
}
.release p { color: var(--ink-body); margin: 0 0 18px; }

/* === Quotes === */
.quote {
  border-left: 4px solid var(--brand);
  padding: 14px 0 14px 22px;
  margin: 28px 0;
  background: var(--bg-soft);
  border-radius: 0 var(--r-card) var(--r-card) 0;
}
.quote p { font-size: 19px; line-height: 1.5; margin: 0 0 8px; color: var(--ink); font-weight: 500; }
.quote cite { font-style: normal; color: var(--ink-dim); font-size: 14px; }

/* === FAQ === */
.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  position: relative;
  padding-right: 30px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: -2px;
  font-family: var(--font-mono);
  color: var(--brand);
  font-size: 22px;
  font-weight: 700;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-body); margin-top: 10px; }

/* === Gallery === */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery .tile {
  aspect-ratio: 4 / 3;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.gallery .tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery .tile:hover img { transform: scale(1.04); }
.gallery .tile .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
  color: #ffffff;
  padding: 12px 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
}
.gallery .tile.empty {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  padding: 18px;
  letter-spacing: 0.06em;
}

/* === Downloads === */
.downloads {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.downloads a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  border: 2px solid var(--line);
  border-radius: var(--r-card);
  background: #ffffff;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.downloads a:hover { border-color: var(--brand); background: var(--bg-soft); }
.downloads a .arrow { color: var(--brand); font-family: var(--font-mono); font-weight: 700; }

/* === Contact === */
.contact-card {
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: var(--r-feature);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 22px;
  color: var(--ink);
}
.contact-card .row { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; font-size: 15px; }
.contact-card .row .k {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-width: 80px;
  font-weight: 600;
}
.contact-card .row .v { color: var(--ink-body); }

/* === Footer === */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 80px;
  color: var(--ink-faint);
  font-size: 13px;
  font-family: var(--font-mono);
  background: #ffffff;
}

/* === Responsive === */
@media (max-width: 880px) {
  .threeup { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-grid .k { padding: 14px 18px 4px; }
  .fact-grid .v { padding: 0 18px 14px; }
  .contact-card { grid-template-columns: 1fr; }
  .downloads { grid-template-columns: 1fr; }
  .nav ul { display: none; }
  .release { padding: 28px; }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 60px; }
}
