/* Quiet Fire Powder Co. — Site Styles
   Palette: warm cream / near-black / terracotta accent
   Typography: EB Garamond (headings/logo), system sans (body)
   --------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Open+Sans:wght@300;400;600&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #F5F2EC;
  --surface:   #EDE9E1;
  --border:    #D0C9BE;
  --text:      #1F1F1D;
  --muted:     #5B5752;
  --accent:    #8A3F35;
  --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-sans:  'Open Sans', system-ui, -apple-system, sans-serif;
  --max-w:     720px;
  --max-w-wide: 960px;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, .wordmark {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.1rem; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: var(--max-w-wide);
}

/* ---- Header / Nav ---- */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s;
}

nav a:hover,
nav a.active { color: var(--text); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Dark overlay — keeps text readable over any frame */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 9, 8, 0.72) 0%,
    rgba(10, 9, 8, 0.38) 60%,
    rgba(10, 9, 8, 0.18) 100%
  );
  z-index: 1;
}

/* Hero content sits above video + overlay */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem 3.5rem;
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.hero-content h1 {
  color: #F5F2EC;
  margin-bottom: 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-content .sub {
  font-size: 1.05rem;
  color: rgba(245, 242, 236, 0.82);
  max-width: 52ch;
  margin-bottom: 0;
}

/* Fallback: no video (slow connection, blocked autoplay) —
   show a dark tinted background so text stays readable.
   Replace the color with a CSS background-image if you
   have a static poster you want shown instead. */
.hero--no-video {
  background: #1a1714;
}

/* ---- Email Capture ---- */
.capture {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.capture-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.capture-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.capture-form input[type="email"] {
  flex: 1 1 260px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.capture-form input[type="email"]:focus {
  border-color: var(--text);
}

.capture-form button {
  padding: 0.65rem 1.4rem;
  background: var(--text);
  color: var(--bg);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}

.capture-form button:hover {
  background: var(--accent);
}

.capture-note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---- Sections ---- */
section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-child {
  border-bottom: none;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ---- Product page ---- */
.product-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.product-meta {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  margin-top: 0.75rem;
}

.product-meta .price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.product-meta .weight {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.pre-launch-notice {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.6rem 0.9rem;
  background: var(--surface);
  border-left: 2px solid var(--accent);
  font-size: 0.88rem;
  color: var(--muted);
}

/* Blend table */
.blend-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.92rem;
}

.blend-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.blend-table td:first-child {
  font-family: var(--font-serif);
  font-size: 1rem;
  width: 38%;
  padding-right: 1.5rem;
}

.blend-table tr:last-child td {
  border-bottom: none;
}

/* ---- About page ---- */
.about-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

/* ---- Footer ---- */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Utilities ---- */
.text-muted { color: var(--muted); }
.text-serif { font-family: var(--font-serif); }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  nav { gap: 1.25rem; }
  .product-meta { flex-direction: column; gap: 0.4rem; }
  .capture-form { flex-direction: column; }
  .capture-form input[type="email"],
  .capture-form button { width: 100%; }
}
