/* Mr. Jed's — all-natural deodorant */
:root {
  --sand: #f6f1e7;
  --paper: #fffdf8;
  --ink: #2b2620;
  --muted: #6b6154;
  --rust: #b4552d;
  --rust-dark: #96421f;
  --sage: #5c6f52;
  --line: #e4dccb;
  --radius: 14px;
  --shadow: 0 2px 6px rgba(43, 38, 32, 0.06), 0 12px 28px rgba(43, 38, 32, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute; 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; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.25rem;
}

.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; }

.nav-menu {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none;
}

.nav-menu a {
  color: var(--muted); text-decoration: none; font-size: 0.98rem;
  transition: color 0.15s ease;
}
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--ink); }

.nav-cta {
  background: var(--ink); color: var(--paper) !important;
  padding: 0.5rem 1.1rem; border-radius: 999px;
}
.nav-cta:hover { background: var(--rust); }

.nav-toggle {
  display: none; background: none; border: none;
  color: var(--ink); cursor: pointer; padding: 0.35rem;
}

/* ---------- Banner ---------- */
.banner { line-height: 0; }
.banner img { width: 100%; height: clamp(140px, 24vw, 320px); object-fit: cover; }

/* ---------- Hero ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 3.5rem 1.25rem 4.5rem;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem; align-items: center;
}

.hero-kicker {
  font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rust); font-weight: 700; margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}

.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-figure {
  display: flex; justify-content: center; align-items: flex-end; gap: 1rem;
}
.hero-figure > img:first-child { max-width: min(300px, 70%); }
.hero-bottle { max-width: min(160px, 36%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 700; font-size: 1rem;
  padding: 0.75rem 1.6rem; border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--rust-dark); }

.btn-ghost {
  color: var(--ink); border: 1.5px solid var(--ink);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--ink); color: var(--paper); }

/* ---------- Sections ---------- */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 4.5rem 1.25rem; }

.section-kicker {
  font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rust); font-weight: 700; margin-bottom: 0.5rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.8rem;
}

/* ---------- Story ---------- */
.story-copy { max-width: 44rem; display: grid; gap: 1.25rem; }
.story-copy p:first-child { font-size: 1.3rem; }

/* ---------- Goods ---------- */
.product-grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 1rem;
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.8rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  position: relative;
}

.product-tag {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--sand); color: var(--rust);
  border: 1px solid var(--line);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem; border-radius: 999px;
}

.product-figure {
  display: flex; justify-content: center;
  padding: 1.6rem 0 1.2rem;
}
.product-figure img { max-width: 170px; }

.product-card h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.4rem; }
.product-sub { font-size: 0.88rem; color: var(--sage); margin-bottom: 0.9rem; }
.product-desc { font-size: 0.92rem; color: var(--muted); flex: 1; }

.product-price {
  font-size: 1.3rem; font-weight: 700; margin: 1.2rem 0 0.9rem;
}

.five-pack-figure {
  margin-top: 3rem; text-align: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2rem;
}
.five-pack-figure img { max-width: 760px; margin: 0 auto; }
.five-pack-figure figcaption {
  margin-top: 1rem; color: var(--muted); font-style: italic; font-size: 0.95rem;
}

/* ---------- Stink gauge ---------- */
.stink-gauge { background: var(--paper); border-block: 1px solid var(--line); }
.gauge-figure { max-width: 860px; margin: 0 auto; }

/* ---------- Ingredients ---------- */
.ingredients {
  background: var(--ink); color: var(--sand);
}
.ingredients .section-kicker { color: #d89b7b; }
.ingredients h2 { color: var(--paper); }
.ingredients-lede { max-width: 40rem; margin-bottom: 2rem; color: #cfc5b4; }

.ingredients-list {
  list-style: none; display: grid; gap: 0.7rem;
  max-width: 44rem; margin-bottom: 2rem;
}
.ingredients-list li {
  padding-left: 1.6rem; position: relative;
  border-bottom: 1px solid rgba(246, 241, 231, 0.12);
  padding-bottom: 0.7rem;
}
.ingredients-list li::before {
  content: "★"; position: absolute; left: 0;
  color: #d89b7b; font-size: 0.8rem;
}

.ingredients-free {
  font-weight: 700; color: #d89b7b;
}

.chart-figure {
  background: var(--paper); border-radius: var(--radius);
  padding: 1.5rem; max-width: 760px; margin: 0 auto;
}
.chart-figure figcaption {
  text-align: center; color: var(--muted); font-style: italic;
  font-size: 0.95rem; margin-top: 0.9rem;
}

/* ---------- Launch ---------- */
.launch-inner {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem; align-items: center;
}
.launch-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.launch-text p { max-width: 32rem; margin-bottom: 1rem; }
.launch-text .btn { margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
  padding-top: 2rem; padding-bottom: 2rem;
  font-size: 0.92rem; color: var(--muted);
}
.footer-brand { font-weight: 700; color: var(--ink); }
.footer-bug img { height: 26px; width: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .launch-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .hero-figure { order: -1; }
  .hero-figure > img:first-child { max-width: min(220px, 55%); }
  .hero-bottle { max-width: min(120px, 30%); }

  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu a {
    display: block; padding: 0.9rem 1.5rem;
  }
  .nav-cta { border-radius: 0; text-align: center; }
}