/* Shared theme tokens + dark-mode overrides for the content pages
   (about/faq/sourdough/bottled-coffee), matching the shop page's palette
   and manual light/dark toggle so navigating between pages doesn't reset
   or ignore the visitor's choice. */
:root {
  --surface: var(--paper);
  --text: var(--ink);
  --text-soft: #62675f;
  --edge: var(--line);
}
:root[data-theme="dark"] {
  --surface: #1b2117;
  --text: #f2eee1;
  --text-soft: #b9bcac;
  --edge: #3a4232;
}

body { background: var(--surface); color: var(--text); }

/* Match the shop page's content column on every content page (about,
   faq, sourdough, bottled-coffee) so the hero copy and body text line
   up with the same left/right edge as the header, filter chips, and
   product list on the shop page - same breakpoints/widths as lite.css's
   .cover-copy/.cover-top/.filter-row/.product-card-list rule. */
.seo-hero { padding: 8vw 16px; }
.seo-hero > div { max-width: none; width: 100%; margin: 0; }
.seo-content { max-width: none; margin: 0; padding: 60px 16px; }
@media (min-width: 641px) {
  .seo-hero { padding: 8vw 0; }
  .seo-hero > div, .seo-content { max-width: 680px; margin-left: auto; margin-right: auto; }
  .seo-content { padding: 80px 0; }
}
@media (min-width: 900px) {
  .seo-hero > div, .seo-content { max-width: 760px; }
}

/* .seo-hero (sourdough.html, bottled-coffee.html) is a fixed photo
   section with its own hardcoded light overlay, same idea as the shop
   page's cover photo - it doesn't follow the theme. Without this, the
   inherited `body { color: var(--text) }` above turns its text cream
   in dark mode, which is nearly invisible on that same light overlay. */
.seo-hero, .seo-hero h1, .seo-hero p:not(.eyebrow) { color: #253026; }

/* Minimalist intro: hero photo removed, the former hero copy (eyebrow/
   h1/intro paragraph/CTA) now opens .seo-content directly as plain
   text, theme-aware like the rest of the page. */
.seo-content h1 {
  color: var(--text);
  font: 700 clamp(38px, 6vw, 60px)/1.05 Georgia, serif;
  margin: 0 0 20px;
}
.seo-content > .eyebrow { margin-bottom: 14px; }
.seo-content > a.primary-button { margin-bottom: 10px; }

/* .seo-header keeps its full-width bar (border/background span the
   whole viewport - needed since it's sticky over the full-bleed hero
   photo). Its padding gives the hamburger/brand/toggle a comfortable,
   consistent inset instead of seo.css's cramped 6vw or the exact
   680px/760px reading column used below (matching that column exactly
   left huge empty margins on wide screens - a thin icon row doesn't
   fill space the way a hero photo or paragraph text does). */
.seo-header {
  height: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  color: var(--text);
  border-bottom-color: var(--edge);
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px 16px;
}
@media (min-width: 641px) {
  .seo-header { padding: 10px max(24px, calc((100% - 1200px) / 2)); }
}
.seo-header .brand { color: var(--text); }
.seo-header a { color: var(--text); }
.seo-header .brand-logo { display: block; min-width: 0; overflow: visible; text-align: center; }
/* Identical treatment to the shop page's header logo - same sizing
   and the ears overlapping the header's bottom border, so every page
   shares the exact same header. */
.seo-header .brand-logo img {
  display: inline-block;
  width: clamp(300px, 86vw, 460px);
  max-width: 100%;
  height: auto;
  margin-bottom: clamp(-40px, -7.48vw, -26px);
  position: relative;
  z-index: 2;
}
:root[data-theme="dark"] .seo-header .brand-logo img { filter: invert(1); }

.seo-content h2 { color: var(--text); }
.seo-content > p { color: var(--text-soft); }
.seo-grid article { border-color: var(--edge); }
.seo-grid h3 { color: var(--text); }
.seo-grid p { color: var(--text-soft); }

.faq-item { border-bottom-color: var(--edge); }
.faq-item h3 { color: var(--text); }
.faq-item p { color: var(--text-soft); }

body > footer { color: var(--text-soft); border-top: 1px solid var(--edge); }
body > footer a { color: var(--text); }

.theme-toggle, .menu-button {
  border: 1px solid var(--edge);
  background: var(--surface);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  flex: 0 0 auto;
  padding: 0;
}
/* mobile.css's stale `.menu-button{order:4}` rule (a leftover from the
   old marketing header) otherwise wins here and pushes the hamburger
   after the brand link instead of before it. */
.menu-button { order: 0; }
.menu-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---- hamburger nav: slides in from the left (shared with the shop page) ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 80%);
  background: var(--surface);
  color: var(--text);
  z-index: 40;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: 20px 0 60px rgba(21, 32, 20, 0.2);
  display: flex;
  flex-direction: column;
}
.site-nav.open { transform: translateX(0); }
.site-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--edge);
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 17px;
}
.site-nav-header button {
  border: 0;
  background: none;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.site-nav a {
  padding: 16px 20px;
  border-bottom: 1px solid var(--edge);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
