/* ============================================================
   Big Dill — design system
   Warm kraft-paper craft food brand. Deadpan but premium.
   ============================================================ */

:root {
  /* palette */
  --cream:     #f4ecd9;  /* kraft paper background */
  --brine:     #2f5d3a;  /* deep brine green (primary) */
  --dill:      #6b9b4a;  /* brighter dill green (accent) */
  --mustard:   #e0a72e;  /* mustard-gold pop */
  --ink:       #2a2722;  /* warm near-black */
  --edge:      #e4d9bf;  /* soft border edge */
  --cream-2:   #fbf6ea;  /* lifted card surface */
  --brine-ink: #21422a;  /* darker brine for footer */

  /* type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(42, 39, 34, .06), 0 4px 14px rgba(42, 39, 34, .05);
  --shadow-md: 0 2px 6px rgba(42, 39, 34, .08), 0 18px 40px rgba(42, 39, 34, .10);

  /* layout */
  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brine); text-decoration: none; }
a:hover { color: var(--dill); }

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

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-optical-sizing: auto;
  color: var(--ink);
  line-height: 1.05;
  margin: 0 0 .4em;
  font-weight: 560;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  color: #4b463c;
}

.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dill);
  margin: 0 0 1rem;
}

.accent { color: var(--mustard); font-weight: 600; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 110px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--body);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brine);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--brine-ink); color: var(--cream); }

.btn--ghost {
  background: transparent;
  color: var(--brine);
  border-color: var(--brine);
}
.btn--ghost:hover { background: rgba(47, 93, 58, .07); color: var(--brine); }

.btn--mustard {
  background: var(--mustard);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--mustard:hover { background: #cf9620; color: var(--ink); }

/* ---------- nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 236, 217, .86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--edge);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.nav-links a:hover { color: var(--brine); }
.nav-links a.is-cta {
  background: var(--brine);
  color: var(--cream);
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-links a.is-cta:hover { background: var(--brine-ink); color: var(--cream); }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--edge);
    background: var(--cream-2);
    border-radius: 10px;
    cursor: pointer;
    color: var(--ink);
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--edge);
    padding: 8px var(--gutter) 18px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 13px 2px;
    border-bottom: 1px solid var(--edge);
    font-size: 1.05rem;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.is-cta { text-align: center; margin-top: 10px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 96px);
}
.hero__art {
  position: relative;
}
.hero__art img { width: 100%; height: auto; }
.hero h1 { margin-bottom: .25em; }
.hero__tag {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--brine);
  margin: 0 0 1.4em;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; margin-inline: auto; }
}

/* decorative dill divider */
.dill-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--dill);
  margin: 0 auto;
}
.dill-rule::before, .dill-rule::after {
  content: "";
  height: 1px;
  width: min(120px, 22vw);
  background: var(--edge);
}

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.feature__icon {
  width: 46px; height: 46px;
  margin-bottom: 16px;
  color: var(--brine);
}
.feature h3 { margin-bottom: .35em; }
.feature p { color: #5a5448; margin: 0; }

@media (max-width: 760px) { .features { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- product grid ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 30px);
}
.product {
  background: var(--cream-2);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product__media {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(107,155,74,.16), transparent 60%),
    var(--cream);
  padding: 26px 26px 6px;
  display: flex;
  justify-content: center;
}
.product__media img { width: 122px; height: auto; }
.product__body { padding: 18px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product__name {
  font-family: var(--display);
  font-size: 1.32rem;
  line-height: 1.12;
  margin: 0 0 .4em;
}
.product__desc { color: #5a5448; font-size: .96rem; margin: 0 0 18px; flex: 1; }
.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.product__price {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--brine);
}
.tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mustard);
  background: rgba(224,167,46,.14);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

@media (max-width: 900px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }

/* ---------- story band ---------- */
.band {
  background: var(--brine);
  color: var(--cream);
}
.band h2, .band h3 { color: var(--cream); }
.band .eyebrow { color: var(--mustard); }
.band__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.band p { color: #dfe7d4; }
.band .btn--ghost { color: var(--cream); border-color: rgba(244,236,217,.55); }
.band .btn--ghost:hover { background: rgba(244,236,217,.12); color: var(--cream); }
.band__art { display: flex; justify-content: center; }
.band__art img { max-width: 340px; }

@media (max-width: 800px) {
  .band__inner { grid-template-columns: 1fr; }
  .band__art { order: -1; }
  .band__art img { max-width: 240px; }
}

/* ---------- journal teaser / blog ---------- */
.post-list { display: grid; gap: 22px; }
.post-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  background: var(--cream-2);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-card__date {
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--dill);
  white-space: nowrap;
  padding-top: 4px;
}
.post-card__title { font-size: 1.4rem; margin: 0 0 .3em; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--brine); }
.post-card__excerpt { color: #5a5448; margin: 0; font-size: .98rem; }

@media (max-width: 560px) {
  .post-card { grid-template-columns: 1fr; gap: 8px; }
  .post-card__date { padding-top: 0; }
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 700px) { .teaser-grid { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.article {
  max-width: 720px;
  margin: 0 auto;
}
.article__date {
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .76rem;
  color: var(--dill);
  display: block;
  margin-bottom: 14px;
}
.article__body { font-size: 1.12rem; line-height: 1.72; color: #3a362e; }
.article__body h2 { margin-top: 1.8em; }
.article__body blockquote {
  margin: 1.6em 0;
  padding: 6px 0 6px 24px;
  border-left: 3px solid var(--mustard);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.28rem;
  color: var(--brine);
}
.article__body a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- generic prose page ---------- */
.prose { font-size: 1.1rem; line-height: 1.7; color: #3a362e; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }

/* two-column about layout */
.split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.split__aside {
  background: var(--cream-2);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 96px;
}
.split__aside h3 { margin-top: 0; }
.fact { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--edge); }
.fact:last-child { border-bottom: none; }
.fact__k { font-weight: 700; color: var(--brine); min-width: 92px; font-size: .9rem; }
.fact__v { color: #5a5448; font-size: .96rem; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split__aside { position: static; }
}

/* ---------- members / gated ---------- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.perk {
  background: var(--cream-2);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.perk__num {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--mustard);
  margin-bottom: 8px;
}
.perk h3 { font-size: 1.15rem; margin-bottom: .3em; }
.perk p { color: #5a5448; margin: 0; font-size: .95rem; }
@media (max-width: 760px) { .perks { grid-template-columns: 1fr; } }

.recipe-card {
  background: var(--cream-2);
  border: 1px dashed var(--dill);
  border-radius: var(--r-lg);
  padding: 32px clamp(24px, 5vw, 44px);
  box-shadow: var(--shadow-sm);
}
.recipe-card .redacted {
  background: var(--ink);
  color: var(--ink);
  border-radius: 3px;
  padding: 0 .25em;
  user-select: none;
}

/* login card (shared with members-login.html) */
.login-card {
  max-width: 400px;
  margin: 12vh auto;
  background: var(--cream-2);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.login-card h1 { font-size: 1.9rem; margin-bottom: .5em; }
.login-card p { color: #5a5448; font-size: .98rem; margin-bottom: 26px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--brine-ink);
  color: #cfd9c3;
  padding-block: clamp(48px, 7vw, 76px) 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: clamp(28px, 4vw, 52px);
  margin-bottom: 44px;
}
.site-footer .brand__word { color: var(--cream); }
.site-footer h4 {
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mustard);
  margin: 0 0 16px;
}
.footer-col a { display: block; color: #cfd9c3; padding: 5px 0; font-size: .95rem; }
.footer-col a:hover { color: var(--cream); }
.footer__blurb { color: #aebd9e; font-size: .95rem; max-width: 30ch; margin: 14px 0 0; }
.footer-bottom {
  border-top: 1px solid rgba(244,236,217,.14);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: #9fae8e;
}

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head p { color: #5a5448; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill {
  font-size: .8rem;
  font-weight: 600;
  color: var(--brine);
  background: rgba(47,93,58,.08);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 6px 14px;
}

.note { font-size: .9rem; color: #7a7264; }

.crock-bg { position: relative; }
.crock-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(107,155,74,.10) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.crock-bg > * { position: relative; }
