/*
 * Pulp & Peel website.
 * Brand charter "Soft Pastel & Fresh": Oat Milk ground, Matcha Mist surfaces, Eucalyptus for text and
 * links, Apricot for the one key action. Flat color only, no gradients, no shadows.
 * Shape rule: buttons are pills, images and panels use one 20px radius.
 */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/PlusJakartaSans_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/PlusJakartaSans_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #fbf9f5;
  --surface: #eef4ed;
  --ink: #2d3134;
  --soft: #666e71;
  --link: #467064;
  --line: #dfe6de;
  --cta: #f4a261;
  --on-cta: #2d3134;
  --panel: #467064;
  --on-panel: #ffffff;
  --note: #fff3d6;
  --display: "Fraunces", Georgia, serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --page: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --gap: clamp(72px, 11vw, 136px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a19;
    --surface: #222826;
    --ink: #f2efea;
    --soft: #a8b0b2;
    --link: #8dbbad;
    --line: #2f3835;
    --panel: #8dbbad;
    --on-panel: #171a19;
    --note: #3a2f18;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Anchored sections stop below the sticky header instead of sliding under it. */
[id] {
  scroll-margin-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--surface);
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.5rem);
  line-height: 1.08;
}
h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.12;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}
p {
  margin: 0;
  text-wrap: pretty;
}
strong {
  font-weight: 600;
}
.soft {
  color: var(--soft);
}
.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
main > section {
  margin-top: var(--gap);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--on-panel);
}
.skip:focus {
  left: 12px;
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 700 1.3rem/1 var(--display);
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: none;
}
.top ul {
  display: flex;
  gap: clamp(16px, 3vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.top ul a {
  text-decoration: none;
}
.top ul a:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .top li.wide {
    display: none;
  }
}

/* ---------- hero: copy left, photo right ---------- */
.hero {
  margin-top: clamp(24px, 5vw, 56px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.hero-copy .lede {
  font-size: 1.2rem;
  color: var(--soft);
  max-width: 34ch;
}
.hero img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  max-height: 78vh;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--cta);
  color: var(--on-cta);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
@media (max-width: 820px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero img {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- statement: one wide paragraph ---------- */
.statement {
  display: grid;
  gap: 28px;
  max-width: 880px;
}
.statement p.big {
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.5;
}

/* ---------- machines: a plain table on a tinted band ---------- */
.band {
  background: var(--surface);
  padding: clamp(56px, 8vw, 96px) 0;
}
.band .wrap {
  display: grid;
  gap: 36px;
}
.band .intro {
  display: grid;
  gap: 14px;
  max-width: 700px;
}
.scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 22px 28px 22px 0;
}
thead th {
  padding-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--soft);
}
tbody tr + tr th,
tbody tr + tr td {
  border-top: 1px solid var(--line);
}
tbody th {
  font: 700 1.35rem/1.25 var(--display);
  width: 26%;
}
td.keeps {
  font-weight: 600;
  width: 34%;
}
caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 18px;
  font-size: 0.9rem;
  color: var(--soft);
}

/* ---------- recipes: three photos, staggered ---------- */
.gallery-head {
  display: grid;
  gap: 14px;
  max-width: 700px;
  margin-bottom: 40px;
}
.gallery {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
}
.gallery figure {
  margin: 0;
  display: grid;
  gap: 12px;
}
.gallery figure:nth-child(2) {
  margin-top: clamp(24px, 6vw, 72px);
}
.gallery img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.gallery figcaption {
  font-weight: 600;
}
.gallery figcaption span {
  display: block;
  font-weight: 400;
  color: var(--soft);
  font-size: 0.95rem;
}
.collections {
  margin-top: 40px;
  max-width: 820px;
  color: var(--soft);
}
@media (max-width: 720px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .gallery figure:first-child {
    grid-column: 1 / -1;
  }
  .gallery figure:nth-child(2) {
    margin-top: 0;
  }
}

/* ---------- features: heading left, plain list right ---------- */
.features .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.features h2 {
  position: sticky;
  top: 96px;
}
.features dl {
  margin: 0;
  display: grid;
  gap: 34px;
}
.features dt {
  font: 700 1.3rem/1.3 var(--display);
  margin-bottom: 6px;
}
.features dd {
  margin: 0;
  color: var(--soft);
  max-width: 56ch;
}
@media (max-width: 820px) {
  .features .wrap {
    grid-template-columns: 1fr;
  }
  .features h2 {
    position: static;
  }
}

/* ---------- cures and pulp: photo beside text ---------- */
.pair .wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}
.pair img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.pair .copy {
  display: grid;
  gap: 16px;
}
.pair.flip img {
  order: 2;
}
@media (max-width: 820px) {
  .pair .wrap {
    grid-template-columns: 1fr;
  }
  .pair.flip img {
    order: 0;
  }
}

/* ---------- pricing: two lists and one panel ---------- */
.pricing .wrap {
  display: grid;
  gap: 44px;
}
.pricing .intro {
  display: grid;
  gap: 14px;
  max-width: 700px;
}
.tiers {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 80px);
}
.tiers h3 {
  margin-bottom: 14px;
}
.tiers ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--soft);
}
.tiers .premium ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}
.prices {
  margin: 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  background: var(--panel);
  color: var(--on-panel);
  border-radius: var(--radius);
}
.prices div {
  padding: 30px clamp(20px, 3vw, 36px);
  display: grid;
  gap: 4px;
  align-content: start;
}
.prices dt {
  font-weight: 600;
}
.prices dd {
  margin: 0;
}
.prices .amount {
  font: 700 clamp(1.6rem, 2.6vw, 2.2rem)/1.15 var(--display);
}
.fine {
  font-size: 0.9rem;
  color: var(--soft);
  max-width: 70ch;
}
@media (max-width: 820px) {
  .tiers,
  .prices,
  .tiers .premium ul {
    grid-template-columns: 1fr;
  }
}

/* ---------- questions ---------- */
.faq .wrap {
  display: grid;
  gap: 28px;
  max-width: 920px;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  padding: 20px 0;
}
.faq summary h3 {
  display: inline;
  font: 600 1.1rem/1.4 var(--body);
  letter-spacing: 0;
}
.faq details p {
  padding: 0 0 24px;
  color: var(--soft);
  max-width: 72ch;
}

.note {
  background: var(--note);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 10px;
  max-width: 920px;
}
.note h2 {
  font-size: 1.4rem;
}

footer {
  margin-top: var(--gap);
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- legal pages ---------- */
.prose {
  max-width: 760px;
  display: grid;
  gap: 18px;
  padding-top: 48px;
}
.prose h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.prose h2 {
  font-size: 1.45rem;
  margin-top: 18px;
}
.prose ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
