/* Google Sans from the packaging kit. Not on the Fonts CDN, so we self-host
   static WOFF2 cuts at the three weights the site actually uses. */
@font-face {
  font-family: "Google Sans";
  src: url("/assets/fonts/GoogleSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Google Sans";
  src: url("/assets/fonts/GoogleSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Google Sans";
  src: url("/assets/fonts/GoogleSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #004e32;
  --forest-deep: #00351f;
  --leaf: #618f54;
  --husk: #704e36;
  --cream: #f6f4ee;
  --fibre: #e4e0d6;
  --ink: #1b211c;
  --mute: #5f5c53;
  --white: #fff;
  --sans: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --edge: 7vw;
  --max: 1180px;
  /* Horizontal page padding. Grows beyond --edge once the viewport exceeds
     --max so the header, hero, every band and the footer all share one centred
     1180px column instead of the text drifting to the edge on wide screens. */
  --gutter: max(var(--edge), (100% - var(--max)) / 2);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

/* Hide every scrollbar on the page and on overflowing containers.
   Wheel, trackpad, touch, and keyboard scrolling stay available.
   scrollbar-width covers Firefox and current Chromium/Safari.
   The WebKit pseudo covers Chrome, Safari, and mobile WebKit.
   Do not set overflow:hidden on html or body — that clips the page. */
html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Keep jump targets (skip link, contact form) clear of the sticky header. */
#main, #contact-form, :target { scroll-margin-top: 104px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .tile, .buy { transition: none; }
  .cta:hover, .tile:hover, .buy:hover { transform: none; }
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--forest);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 40;
}
.skip:focus { top: 14px; }

/* ---------- header ---------- */

.mast {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  color: #fff;
}
.mast.solid {
  position: sticky;
  top: 0;
  background: rgba(246, 244, 238, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border-bottom: 1px solid var(--fibre);
}
.brand { display: block; flex: none; }
/* Both header logos are the 880x326 lockup, so one fixed box keeps the
   transparent and solid headers optically identical. Width is explicit so the
   header does not reflow while the image loads. */
.brand img { height: 46px; width: 124px; }

.mast-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}
.menu a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  opacity: 0.9;
}
.menu a:hover { opacity: 1; background: rgba(255, 255, 255, 0.14); }
.mast.solid .menu a:hover { background: rgba(0, 78, 50, 0.08); }
.menu a.is-on { opacity: 1; text-decoration: underline; text-underline-offset: 7px; }

.buy {
  flex: none;
  background: var(--white);
  color: var(--forest);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.buy:hover { transform: translateY(-1px); }
.mast.solid .buy { background: var(--forest); color: #fff; }
.mast.solid .buy:hover { background: var(--forest-deep); }

.menu-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
}
.menu-toggle svg { display: block; width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.mast[data-open="true"] .menu-toggle .icon-open { display: none; }
.mast[data-open="true"] .menu-toggle .icon-close { display: block; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  background: var(--forest-deep) center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 160px var(--gutter) 88px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(0, 26, 16, 0.82) 0%, rgba(0, 26, 16, 0.45) 45%, rgba(0, 26, 16, 0.1) 78%),
    linear-gradient(180deg, rgba(0, 26, 16, 0.55) 0%, rgba(0, 0, 0, 0) 30%),
    linear-gradient(0deg, rgba(0, 26, 16, 0.55) 0%, rgba(0, 0, 0, 0) 45%);
}
.hero-photo { position: absolute; inset: 0; }
.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
}
.hero h1 {
  font-family: var(--sans);
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 20px;
  color: #fff;
  max-width: none;
}
.hero p {
  margin: 0 0 30px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.ghost.ink {
  border: 1px solid var(--forest);
  color: var(--forest);
}
.ghost.ink:hover {
  background: rgba(0, 78, 50, 0.08);
}
.hero .trust {
  margin: 22px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- shared layout ---------- */

.pad {
  padding: 84px var(--gutter);
}
.wrap { max-width: var(--max); margin: 0 auto; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.kicker {
  font-size: 15px;
  color: var(--husk);
  font-weight: 600;
  margin: 0 0 10px;
}

/* Inner pages promote their opening h2 to an h1, so both share one look.
   .hero h1 and .lost h1 override this. */
h1, h2 {
  font-family: var(--sans);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--forest);
  margin: 0 0 18px;
  font-weight: 700;
  max-width: 22ch;
}

.lead {
  font-size: 18.5px;
  color: var(--mute);
  margin: 0 0 20px;
  max-width: 38rem;
}

.photo { overflow: hidden; border-radius: 6px; }
.photo img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }

.cta {
  display: inline-flex;
  align-items: center;
  background: var(--forest);
  color: #fff;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta:hover { transform: translateY(-1px); background: var(--forest-deep); }
.cta.light { background: #fff; color: var(--forest); }
.cta.light:hover { background: #fff; }

/* ---------- products ---------- */

.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.tile {
  background: var(--white);
  border: 1px solid var(--fibre);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px rgba(27, 33, 28, 0.45);
}
.tile img { width: 100%; height: 320px; object-fit: cover; }
.tile-body { padding: 24px 26px 30px; }
.tile h3 { margin: 0 0 6px; font-size: 21px; color: var(--forest); font-weight: 700; }
.price { font-family: var(--sans); font-size: 26px; color: var(--husk); font-weight: 700; }
.meta { color: var(--mute); font-size: 16px; margin: 8px 0 0; }

/* ---------- green band ---------- */

.band {
  background: var(--forest);
  color: #e8eae6;
  padding: 76px var(--gutter);
}
.band-in {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.band h2 { color: #fff; margin-bottom: 0; }
.band p { color: rgba(255, 255, 255, 0.82); margin: 0 0 22px; }
.band p:last-of-type { margin-bottom: 0; }

/* ---------- kitchen cards ---------- */

.recipes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: var(--max);
  margin: 0 auto;
}
.recipe img { height: 220px; width: 100%; object-fit: cover; border-radius: 6px; }
.recipe h3 { margin: 16px 0 6px; color: var(--forest); font-size: 20px; }
.recipe p { margin: 0; color: var(--mute); font-size: 16.5px; }

/* ---------- feature trio ---------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--max);
  margin: 40px auto 0;
}
.trio > div {
  background: var(--white);
  border: 1px solid var(--fibre);
  border-radius: 6px;
  padding: 28px 26px 30px;
}
.trio h3 {
  margin: 0 0 8px;
  color: var(--forest);
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 700;
}
.trio p { margin: 0; color: var(--mute); font-size: 16.5px; }

/* ---------- buy box ---------- */

.buy-box {
  border: 1px solid var(--fibre);
  border-radius: 8px;
  background: var(--white);
  margin: 28px 0 18px;
  overflow: hidden;
}
.buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
}
/* Wrap the price/CTA to its own line rather than crushing the description
   in the 900-1100px range, where the two-column product grid is tightest. */
.buy-row > :first-child { flex: 1 1 13rem; min-width: 0; }
.buy-row + .buy-row { border-top: 1px solid var(--fibre); }
.buy-row.is-picked {
  background: rgba(97, 143, 84, 0.16);
  box-shadow: inset 4px 0 0 var(--forest);
}
.buy-row h3 { margin: 0 0 2px; font-size: 19px; color: var(--forest); font-weight: 700; }
.buy-row .meta { margin: 0; }
.buy-side { display: flex; align-items: center; gap: 18px; flex: none; }
.buy-side .price { font-size: 24px; }

/* ---------- faq ---------- */

.faq { max-width: 720px; margin: 32px 0 0; }
.faq details {
  border-bottom: 1px solid var(--fibre);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--husk); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--mute); margin: 12px 0 0; font-size: 17px; max-width: 60ch; }

/* ---------- inner pages ---------- */

/* The solid header is sticky, so it already occupies flow space above this
   section. Only breathing room is needed here, not header clearance. */
.shop-hero { padding-top: 72px; }

.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}
.bullets { padding-left: 20px; color: var(--mute); margin: 0 0 8px; }
.bullets li { margin-bottom: 6px; }

.form { display: grid; gap: 14px; max-width: 440px; margin-top: 26px; }
.form label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: grid;
  gap: 6px;
}
.form input, .form textarea, .form select {
  border: 1px solid var(--fibre);
  background: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 400;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .cta { justify-self: start; }
.status { color: var(--husk); font-size: 16px; min-height: 1.4em; margin: 0; }

.article { max-width: 660px; }
.article p { color: var(--mute); font-size: 19px; margin: 0 0 22px; }
.article h1, .article h2 { max-width: 20ch; }

/* ---------- press / coverage ---------- */

.press-intro { margin-bottom: 12px; }
.press-section { max-width: 720px; margin: 48px 0 0; }
.press-heading {
  margin: 0 0 8px;
  font-size: 26px;
  color: var(--forest);
  font-weight: 700;
  max-width: none;
}
.press-note {
  color: var(--mute);
  font-size: 17px;
  margin: 0 0 24px;
  max-width: 58ch;
}
.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.press-item {
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--fibre);
}
.press-item--featured {
  padding: 22px 20px 24px;
  border: 1px solid var(--fibre);
  border-radius: 10px;
  background: #fff;
}
.press-meta {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--husk);
}
.press-sep { margin: 0 0.35em; opacity: 0.55; font-weight: 400; }
.press-title {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  max-width: none;
}
.press-title a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--leaf); }
.press-desc {
  margin: 0 0 12px;
  color: var(--mute);
  font-size: 17px;
  max-width: 58ch;
}
.press-links {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.press-links a { color: var(--forest); }
.press-contact {
  margin: 56px 0 0;
  font-size: 17px;
  color: var(--mute);
  max-width: 720px;
}

.spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 44px 0;
  max-width: var(--max);
}
.spread img { height: 320px; width: 100%; object-fit: cover; border-radius: 6px; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 40px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-size: 15px;
}
.site-foot img { height: 34px; width: 92px; flex: none; }
.site-foot a { color: #fff; }

.lost {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 96px 24px;
}
.lost h1 { font-family: var(--sans); color: var(--forest); font-weight: 700; }

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  :root { --edge: 24px; }

  /* The nav links collapse into a toggled panel instead of disappearing. */
  .menu-toggle { display: inline-flex; }
  .brand img { height: 38px; width: 103px; }

  .menu {
    position: absolute;
    top: calc(100% + 10px);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    background: var(--cream);
    color: var(--ink);
    border: 1px solid var(--fibre);
    border-radius: 12px;
    box-shadow: 0 22px 48px -24px rgba(27, 33, 28, 0.5);
  }
  .mast[data-open="true"] .menu { display: flex; }
  .menu a { opacity: 1; padding: 12px 14px; border-radius: 8px; }
  .menu a:hover,
  .mast.solid .menu a:hover { background: rgba(0, 78, 50, 0.08); }
  .menu a.is-on { text-decoration: none; background: rgba(0, 78, 50, 0.1); }

  .grid-2,
  .products,
  .band-in,
  .recipes,
  .trio,
  .product-page,
  .spread {
    grid-template-columns: 1fr;
  }

  .site-foot { flex-direction: column; align-items: flex-start; }

  .buy-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  /* flex-basis would become a height once the row stacks vertically. */
  .buy-row > :first-child { flex: none; }
  .buy-side { width: 100%; justify-content: space-between; }

  .hero {
    min-height: 76vh;
    padding-top: 130px;
    padding-bottom: 64px;
  }

  .pad { padding: 60px var(--gutter); }
  .shop-hero { padding-top: 48px; }
  .tile img { height: 240px; }
  .photo img { min-height: 260px; }
  h1, h2 { max-width: none; }
}

/* Orders switch: elements toggled with the hidden attribute (see site.js). */
[hidden] { display: none !important; }
.orders-paused { margin: 24px 0 0; padding: 14px 16px; border-left: 4px solid var(--forest); background: rgba(0,0,0,0.03); }
.story-note { margin: 28px 0 0; font-size: 17px; color: var(--mute); max-width: 52ch; }
