/* RedGold Pepper Jelly — one stylesheet for every page. */
:root {
  --cream: #fbf6ea;
  --paper: #fffdf8;
  --ink: #1d1a17;
  --ink-soft: #5a5048;
  --chili: #b5161b;
  --chili-dark: #8e1014;
  --gold: #c49a32;
  --gold-text: #7d5f12;   /* gold dark enough for text on cream (AA) */
  --gold-soft: #f1e5c3;
  --line: #e6dcc4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 26, 23, .06), 0 8px 24px rgba(29, 26, 23, .07);
  --serif: "Roboto Serif", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--chili-dark); text-underline-offset: .18em; }
a:hover { color: var(--chili); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-stretch: 75%; line-height: 1.12; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--paper); padding: 8px 12px; }
.eyebrow {
  font: 700 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: .9em;
}
.muted { color: var(--ink-soft); }
.small { font-size: .92rem; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 10px 0; }
.brand img { width: 150px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 600;
}
.nav a:hover { background: var(--gold-soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav .nav-shop a { background: var(--chili); color: #fff; }
.nav .nav-shop a:hover { background: var(--chili-dark); color: #fff; }
.nav .nav-shop a[aria-current="page"] { background: var(--chili-dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--chili); color: #fff;
}
.btn:hover { background: var(--chili-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-paper { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.page-head { padding: clamp(36px, 6vw, 64px) 0 8px; }
.page-head p { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }

/* Hero */
.hero { padding: clamp(32px, 6vw, 72px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { text-transform: uppercase; font-size: clamp(1.9rem, 4.2vw, 2.7rem); line-height: 1.02; }
.hero h1 em { display: block; font-style: italic; font-size: 1.42em; color: var(--chili); margin-top: .04em; }
/* gold brush stroke under "Good as Gold" */
.hero h1 em::after {
  content: ""; display: block; width: 88%; height: .13em; margin-top: .06em;
  background: linear-gradient(90deg, rgba(196,154,50,.15), var(--gold) 18%, #e3b33b 70%, rgba(196,154,50,.2));
  border-radius: 50% 40% 50% 40%; transform: rotate(-1.2deg);
}
.hero .eyebrow {
  display: flex; align-items: center; gap: 12px; font: 600 .82rem/1.2 var(--serif);
  letter-spacing: .14em; color: var(--ink);
}
.hero .eyebrow::before, .hero .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--chili); flex: none; }
.hero .lede { font: italic 400 1.3rem/1.45 var(--serif); color: var(--ink); max-width: 34ch; }
.warning {
  display: inline-block; margin: 4px 0 24px; padding: 8px 14px; border: 2px dashed var(--gold);
  border-radius: 8px; font: 800 clamp(1.2rem, 2.4vw, 1.45rem)/1.25 var(--serif); font-stretch: 75%;
  color: var(--chili-dark); background: var(--paper);
}
.hero-photo { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.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)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-body { padding: 18px 20px 20px; }
.card h3 { margin-bottom: .3em; }
.photo-card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.photo-card figcaption { padding: 12px 16px 14px; font-weight: 600; }
.photo-card figcaption span { display: block; font-weight: 400; color: var(--ink-soft); font-size: .95rem; }
figure { margin: 0; }

.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.size {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 12px; text-align: center;
}
.size b { display: block; font: 800 1.6rem/1.1 var(--serif); font-stretch: 75%; }
.size span { color: var(--ink-soft); font-size: .95rem; }
.size .price { display: block; margin-top: 6px; color: var(--chili-dark); font-weight: 700; font-size: 1.1rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.split img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; }
.review blockquote { margin: 0 0 12px; font: italic 400 1.12rem/1.5 var(--serif); }
.review figcaption { font-weight: 600; color: var(--ink-soft); }
.stars { color: var(--gold); letter-spacing: .1em; margin-bottom: 8px; }

/* Find us */
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.place { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }

/* Recipes */
.recipe { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; padding: 32px 0; border-top: 1px solid var(--line); }
.recipe:first-of-type { border-top: 0; }
.recipe img { border-radius: 16px; box-shadow: var(--shadow); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.recipe ul, .recipe ol { padding-left: 1.2em; margin: 0 0 1em; }
.recipe li { margin-bottom: .35em; }
.recipe-meta { color: var(--ink-soft); margin-bottom: 1em; }

/* Shop */
.state-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 640px; }
.state-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 16px 18px; border-radius: var(--radius); border: 2px solid var(--line);
  background: var(--paper); color: var(--ink); font: inherit; cursor: pointer;
}
.state-btn b { font: 800 1.25rem/1.2 var(--serif); font-stretch: 75%; }
.state-btn span { color: var(--ink-soft); font-size: .95rem; }
.state-btn[aria-pressed="true"] { border-color: var(--chili); box-shadow: 0 0 0 3px rgba(181, 22, 27, .12); }
.shop-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; margin-top: 28px; }
.products { display: grid; gap: 14px; }
.product {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.product img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.product h3 { font-size: 1.15rem; margin: 0 0 2px; }
.product p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.product .price { color: var(--ink); font-weight: 700; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-text); margin-left: 6px; vertical-align: middle; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--cream); }
.stepper button {
  width: 40px; height: 40px; border: 0; background: transparent; font: 700 1.3rem/1 var(--sans);
  color: var(--ink); cursor: pointer; border-radius: 999px;
}
.stepper button:hover { background: var(--gold-soft); }
.stepper output { min-width: 2ch; text-align: center; font-weight: 700; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.summary h2 { font-size: 1.4rem; }
.summary ul { list-style: none; padding: 0; margin: 0 0 12px; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.summary .total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; font-size: 1.15rem; }
.summary .btn { width: 100%; margin-top: 12px; }
.notice { background: var(--gold-soft); border-radius: 10px; padding: 12px 14px; font-size: .95rem; }
.lineup { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); margin-top: 8px; }
.lineup img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 45%; }

.order-bar { display: none; }
@media (max-width: 900px) {
  .order-bar:not([hidden]) {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 5;
    padding: 14px 18px; border-radius: 999px; background: var(--ink); color: var(--paper);
    text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); font-weight: 600;
  }
  .order-bar:hover { color: var(--paper); }
  .order-bar b { color: #f3d98f; }
}

/* Story */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; width: 100%; }
.gallery figcaption { font-size: .92rem; color: var(--ink-soft); margin-top: 6px; }
.story p { font-size: 1.12rem; }
.story .signoff { font: italic 800 1.45rem/1.3 var(--serif); font-stretch: 75%; color: var(--chili-dark); }
.footer-warning { font-weight: 700; font-size: 1.05rem; }

/* Forms */
.form-row { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
input, textarea, select {
  width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--paper); color: var(--ink);
}
input:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(196, 154, 50, .25); }
[aria-invalid="true"] { border-color: var(--chili); }
.hp-offscreen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-weight: 600; }

/* Prose pages */
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }

/* Footer */
.site-footer { background: var(--ink); color: #e9e2d3; padding: 48px 0 28px; margin-top: 0; }
.site-footer a { color: #f3d98f; }
.site-footer h2 { font: 700 .85rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #bfb39b; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-mark { width: 64px; margin-bottom: 10px; background: var(--cream); border-radius: 12px; padding: 6px; }
.footer-base { border-top: 1px solid #3a342e; margin-top: 32px; padding-top: 18px; font-size: .9rem; color: #bfb39b; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .split, .shop-layout { grid-template-columns: 1fr; }
  .grid-4, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .recipe { grid-template-columns: 1fr; }
  .recipe img { aspect-ratio: 4 / 3; max-width: 520px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand img { width: 120px; }
  .nav a { padding: 7px 10px; }
  .sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .places, .state-pick, .grid-2 { grid-template-columns: 1fr; }
  .product { grid-template-columns: 72px 1fr; }
  .product img { width: 72px; height: 72px; }
  .product .stepper { grid-column: 1 / -1; justify-self: end; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
