/* ==========================================================================
   Bláthra — static site stylesheet
   No external requests: fonts are self-hosted in /assets/fonts.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette */
  --deep-forest: #193C32;
  --dark-cocoa: #2B211E;
  --botanical-sage: #7A9B73;
  --warm-gold: #C79D52;
  --soft-cream: #F3EEE3;
  --white: #FFFFFF;

  /* Derived tones */
  --forest-ink: #10291F;
  --cream-deep: #E9E1D0;
  --sage-text: #4E6B49;   /* sage darkened for AA text on cream */
  --gold-text: #8A6526;   /* gold darkened for AA text on cream */
  --line: rgba(43, 33, 30, 0.14);
  --line-light: rgba(243, 238, 227, 0.2);

  /* Type */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --text-hero: clamp(2.75rem, 1.6rem + 5vw, 5.75rem);

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4.5rem, 3rem + 6vw, 8rem);

  --content: 1200px;
  --narrow: 680px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--dark-cocoa);
  background: var(--soft-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--deep-forest);
  text-wrap: balance;
}

p { text-wrap: pretty; max-width: 65ch; }

a { color: inherit; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--warm-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--deep-forest); color: var(--soft-cream);
  padding: var(--space-1) var(--space-2); z-index: 100;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

.container {
  width: min(100% - 2 * clamp(1.25rem, 4vw, 3rem), var(--content));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 238, 227, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: var(--space-3);
}

.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--deep-forest);
}
.brand-mark { width: 44px; height: 44px; flex: none; object-fit: contain; }
.site-footer .brand-mark { background: var(--soft-cream); border-radius: 10px; padding: 4px; width: 42px; height: 42px; }
.brand-word {
  font-family: var(--font-heading);
  font-size: 1.35rem; font-weight: 550;
  letter-spacing: 0.14em; text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.5rem 0.75rem; color: var(--deep-forest); cursor: pointer;
  font-size: var(--text-sm); font-weight: 600;
}

.primary-nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2rem); align-items: center; }
.primary-nav a {
  font-size: var(--text-sm); font-weight: 600; text-decoration: none;
  color: var(--dark-cocoa); padding: 0.4rem 0; position: relative;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--warm-gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  background: var(--deep-forest); color: var(--soft-cream) !important;
  padding: 0.55rem 1rem !important; border-radius: var(--radius);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--forest-ink); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--soft-cream); border-bottom: 1px solid var(--line);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-1) clamp(1.25rem, 4vw, 3rem) var(--space-3);
  }
  .primary-nav li a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .primary-nav li:last-child a { border-bottom: 0; margin-top: var(--space-2); text-align: center; }
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.02em; text-decoration: none;
  padding: 0.95rem 1.5rem; border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--warm-gold); color: var(--dark-cocoa); }
.btn-gold:hover { background: #D6AE66; }
.btn-forest { background: var(--deep-forest); color: var(--soft-cream); }
.btn-forest:hover { background: var(--forest-ink); }
.btn-ghost-light { border-color: rgba(243, 238, 227, 0.5); color: var(--soft-cream); }
.btn-ghost-light:hover { border-color: var(--soft-cream); background: rgba(243, 238, 227, 0.08); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--deep-forest); color: var(--soft-cream);
  padding-block: clamp(5rem, 4rem + 8vw, 10rem) clamp(4rem, 3rem + 6vw, 8rem);
}
.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-5); align-items: center;
}
.hero h1 { color: var(--soft-cream); font-size: var(--text-hero); font-weight: 400; }
.hero h1 em { font-style: italic; color: var(--warm-gold); font-weight: 400; }
.hero .eyebrow { color: var(--warm-gold); margin-bottom: var(--space-3); }
.hero-lede {
  margin-top: var(--space-3); font-size: var(--text-lg); line-height: 1.55;
  color: rgba(243, 238, 227, 0.82); max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

.hero-mark {
  justify-self: center; width: clamp(200px, 20vw, 260px); aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--soft-cream); border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(243,238,227,0.08), 0 20px 40px rgba(0,0,0,0.22);
  animation: logo-in 1.2s var(--ease) both;
}
.hero-mark picture { display: contents; }
.hero-mark img { width: 46%; height: auto; }
@keyframes logo-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(122, 155, 115, 0.28), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgba(199, 157, 82, 0.14), transparent 70%);
}

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero-mark { width: 104px; order: -1; justify-self: start; box-shadow: 0 0 0 5px rgba(243,238,227,0.08); }
  .hero-mark img { width: 74%; transform: none; }
}

/* Sections --------------------------------------------------------------- */
.section { padding-block: var(--space-6); }
.section-head { max-width: var(--narrow); margin-bottom: var(--space-5); }
.section-head h2 { font-size: var(--text-2xl); margin-top: var(--space-2); }
.section-head p { margin-top: var(--space-3); font-size: var(--text-lg); color: rgba(43, 33, 30, 0.78); }

.statement {
  border-bottom: 1px solid var(--line);
}
.statement .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-5); align-items: start; }
.statement h2 { font-size: var(--text-2xl); }
.statement p + p { margin-top: var(--space-3); }
.statement .body { font-size: var(--text-lg); color: rgba(43, 33, 30, 0.82); }
@media (max-width: 820px) { .statement .container { grid-template-columns: 1fr; gap: var(--space-3); } }

/* Line teaser grid (homepage) ------------------------------------------- */
/* auto-fit: the grid reflows on its own when cards are added or removed */
.lines-grid {
  counter-reset: teaser;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.line-card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; background: var(--soft-cream);
  transition: background-color 0.35s var(--ease);
  min-height: 300px;
}
.line-card:hover { background: var(--white); }
.line-card { counter-increment: teaser; }
.line-card .num::before { content: counter(teaser, decimal-leading-zero); }
.line-card .num { font-family: var(--font-heading); font-size: var(--text-sm); color: var(--gold-text); }
.line-card h3 { font-size: var(--text-xl); }
.line-card .mood { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-text); }
.line-card p { font-size: var(--text-sm); color: rgba(43, 33, 30, 0.78); }
.line-card .more { margin-top: auto; font-size: var(--text-sm); font-weight: 600; color: var(--deep-forest); }
.line-card .swatch { width: 28px; height: 28px; border-radius: 50%; }
@media (max-width: 680px)  { .line-card { min-height: 0; } }

/* Ingredients / values --------------------------------------------------- */
.values { background: var(--cream-deep); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.value h3 { font-size: var(--text-lg); font-family: var(--font-heading); margin-top: var(--space-2); }
.value p { margin-top: var(--space-1); font-size: var(--text-sm); color: rgba(43, 33, 30, 0.78); }
.value .icon { width: 40px; height: 40px; color: var(--deep-forest); }
@media (max-width: 820px) { .values-grid { grid-template-columns: 1fr; } }

/* FAQ -------------------------------------------------------------------- */
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  padding: var(--space-3) 0;
  font-family: var(--font-heading); font-size: var(--text-lg); color: var(--deep-forest);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-family: var(--font-body); font-size: 1.5rem; font-weight: 300;
  color: var(--gold-text); transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: var(--space-3); color: rgba(43, 33, 30, 0.8); }

/* CTA band --------------------------------------------------------------- */
.cta-band { background: var(--dark-cocoa); color: var(--soft-cream); text-align: center; }
.cta-band h2 { color: var(--soft-cream); font-size: var(--text-2xl); }
.cta-band p { margin: var(--space-3) auto 0; color: rgba(243, 238, 227, 0.78); }
.cta-band .hero-actions { justify-content: center; }

/* Edibles page ----------------------------------------------------------- */
.page-hero {
  background: var(--deep-forest); color: var(--soft-cream);
  padding-block: clamp(4.5rem, 3rem + 6vw, 8rem) clamp(3.5rem, 2.5rem + 4vw, 6rem);
  position: relative; overflow: hidden;
}
.page-hero h1 { color: var(--soft-cream); font-size: var(--text-hero); font-weight: 400; }
.page-hero .eyebrow { color: var(--warm-gold); margin-bottom: var(--space-3); }
.page-hero p { margin-top: var(--space-3); font-size: var(--text-lg); color: rgba(243, 238, 227, 0.82); max-width: 52ch; }

.line-index {
  display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-4);
}
.line-index a {
  font-size: var(--text-sm); font-weight: 600; text-decoration: none;
  padding: 0.5rem 1rem; border: 1px solid var(--line-light); border-radius: 999px;
  color: var(--soft-cream); transition: background-color 0.25s, border-color 0.25s;
}
.line-index a:hover { background: rgba(243, 238, 227, 0.1); border-color: var(--soft-cream); }

/* Product sections live inside .lines. Numbering (01, 02...) and the
   cream/forest alternation are automatic, so adding or removing a
   product never requires renumbering or recoloring anything. */
.lines { counter-reset: line; }
.line {
  counter-increment: line;
  padding-block: var(--space-6);
  scroll-margin-top: 72px;
}
.line .container { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-5); align-items: start; }
.line:nth-of-type(even) { background: var(--deep-forest); color: var(--soft-cream); }
.line:nth-of-type(even) h2,
.line:nth-of-type(even) h3 { color: var(--soft-cream); }
.line:nth-of-type(even) .eyebrow { color: var(--warm-gold); }
.line:nth-of-type(even) .line-copy,
.line:nth-of-type(even) .line-specs dd { color: rgba(243, 238, 227, 0.84); }
.line:nth-of-type(even) .line-specs { border-color: var(--line-light); }
.line:nth-of-type(even) .line-specs div { border-color: var(--line-light); }
.line:nth-of-type(even) .line-specs dt { color: var(--botanical-sage); }

.line-title .num::before { content: counter(line, decimal-leading-zero); }
.line-title .num {
  font-family: var(--font-heading); font-size: clamp(4rem, 3rem + 4vw, 7rem);
  line-height: 1; color: var(--warm-gold); font-weight: 300; opacity: 0.9;
}
.line-title h2 { font-size: var(--text-2xl); margin-top: var(--space-2); }
.line-title h2 span { display: block; font-size: 0.42em; letter-spacing: 0.18em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; margin-bottom: 0.6rem; opacity: 0.7; }
.line-title .eyebrow { margin-top: var(--space-2); display: block; }

.line-copy { font-size: var(--text-lg); color: rgba(43, 33, 30, 0.82); }
.line-copy p + p { margin-top: var(--space-2); }

.line-specs {
  margin-top: var(--space-4);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.line-specs div { padding: var(--space-2) var(--space-2) 0 0; border-right: 1px solid var(--line); }
.line-specs div + div { padding-left: var(--space-2); }
.line-specs div:last-child { border-right: 0; }
.line-specs dt { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-text); }
.line-specs dd { margin-top: 0.35rem; font-size: var(--text-sm); color: rgba(43, 33, 30, 0.82); }

@media (max-width: 880px) {
  .line .container { grid-template-columns: 1fr; gap: var(--space-3); }
  .line-specs { grid-template-columns: 1fr; }
  .line-specs div, .line-specs div + div { padding: var(--space-2) 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .line:nth-of-type(even) .line-specs div { border-color: var(--line-light); }
}

.notice {
  font-size: var(--text-xs); color: rgba(43, 33, 30, 0.7);
  border-top: 1px solid var(--line); padding-block: var(--space-4);
}

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--forest-ink); color: rgba(243, 238, 227, 0.78); padding-block: var(--space-5) var(--space-4); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4); }
.site-footer .brand { color: var(--soft-cream); }
.site-footer .tag { margin-top: var(--space-2); font-size: var(--text-sm); max-width: 34ch; }
.site-footer h4 { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--warm-gold); margin-bottom: var(--space-2); }
.site-footer ul { display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; font-size: var(--text-sm); }
.site-footer a:hover { color: var(--soft-cream); text-decoration: underline; }
.footer-legal {
  margin-top: var(--space-5); padding-top: var(--space-3);
  border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2);
  font-size: var(--text-xs); color: rgba(243, 238, 227, 0.6);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
