/* Bipedal Packaging Co. — self-hosted only */
:root {
  --bg: #0f1620;
  --surface: #1a2332;
  --surface2: #243044;
  --ink: #f5f0e6;
  --muted: #a8b0bc;
  --gold: #c9a227;
  --gold-soft: #e8d48b;
  --line: #3d4f66;
  --danger: #c45c4a;
  --ok: #5a9e6f;
  --max: 960px;
  --radius: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header / nav */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 42px;
  height: 42px;
  border: 2px solid var(--gold);
  background: var(--surface2);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.brand-text strong { display: block; font-size: 1rem; letter-spacing: 0.02em; }
.brand-text span { display: block; font-size: 0.75rem; color: var(--muted); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 2rem 0 2.5rem;
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.2;
}
.tagline {
  color: var(--gold-soft);
  font-size: 1.1rem;
  margin: 0 0 1rem;
  font-weight: 500;
}
.lede { color: var(--muted); margin: 0 0 1.25rem; max-width: 42ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--gold);
  color: #1a1508;
}
.btn-primary:hover { background: var(--gold-soft); color: #1a1508; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.hero-img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Sections */
main { flex: 1; }
section { padding: 2.25rem 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}
h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--gold-soft); }
.muted { color: var(--muted); }
.roast {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 1.25rem 0;
}
.roast h2 { color: var(--danger); margin-bottom: 0.5rem; }
.roast p { margin: 0; color: var(--ink); }

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards.five { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}
.card .sku {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.stat-row {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
@media (min-width: 600px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}
.stat {
  background: var(--surface2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.stat strong { display: block; font-size: 1.4rem; color: var(--gold); }
.stat span { font-size: 0.85rem; color: var(--muted); }

.prose p { color: var(--muted); margin: 0 0 1rem; }
.prose ul { color: var(--muted); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* Forms (inert) */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  max-width: 520px;
}
.form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 0.3rem;
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.form textarea { min-height: 110px; resize: vertical; }
.form .note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
}
.contact-block {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .contact-block { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Correspondence */
.letter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1rem 0;
}
.letter .meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.5rem;
}
.rebuttal {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--surface2);
  border-left: 3px solid var(--ok);
  border-radius: 0 6px 6px 0;
}
.rebuttal strong { color: var(--ok); }

/* Legal */
.legal h2 { margin-top: 1.75rem; }
.legal p, .legal li { color: var(--muted); }
.counsel {
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer .continuity { margin-bottom: 0.75rem; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0;
}
.fineprint { font-size: 0.78rem; opacity: 0.85; }
