:root {
  color-scheme: light;
  --ink: #30251b;
  --muted: #67574a;
  --red: #922b18;
  --red-dark: #702010;
  --paper: #f7f1e5;
  --cream: #fffbf5;
  --line: #e7d9c6;
  --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.65 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #327047; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.06; }
h1, h2 { font-family: var(--heading); font-weight: 700; color: var(--red); }
h2 { font-size: clamp(2.75rem, 5.5vw, 4.75rem); }
h3 { font-size: clamp(1.21rem, 2vw, 1.45rem); }
.wrap { width: min(100% - 5rem, 78rem); margin-inline: auto; }
.section { padding-block: clamp(3.75rem, 8vw, 7.5rem); }
.paper { background: var(--paper) url("assets/paper.png") center top / 800px auto repeat; }
.eyebrow { color: var(--red-dark); font-size: .78rem; font-weight: 700; letter-spacing: .125em; text-transform: uppercase; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 2; padding: .6rem 1rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }

.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; line-height: 1.1; font-size: 1rem; }
.brand img { object-fit: contain; }
.brand strong { color: var(--red); }
.brand small { display: block; margin-top: .35rem; color: var(--muted); font-size: .64rem; letter-spacing: .13em; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.75rem); }
.nav > a { font-size: .94rem; font-weight: 700; text-decoration: none; }
.nav > a:not(.button):hover, .facebook:hover, .footer-inner a:hover { color: var(--red); text-decoration: underline; text-underline-offset: .25em; }
.menu-toggle { border: 1px solid var(--line); border-radius: .4rem; padding: .35rem .65rem; background: var(--cream); color: var(--red-dark); cursor: pointer; }
.menu-toggle span { margin-left: .25rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .83rem 1.2rem;
  border-radius: .32rem;
  background: var(--red);
  color: white;
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--red-dark); }
.button-small { padding: .62rem .95rem; }

.hero { overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); align-items: center; gap: clamp(2.25rem, 6vw, 6.5rem); padding-block: clamp(3.5rem, 6.8vw, 6.5rem); }
.hero h1 { margin-block: .7rem 1.2rem; font-size: clamp(3.55rem, 7.2vw, 7.65rem); line-height: .94; letter-spacing: -.022em; text-transform: uppercase; }
.hero-copy > p:not(.eyebrow) { max-width: 34ch; margin-bottom: 1.4rem; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.2rem); }
.hero-photo { position: relative; }
.hero-product { width: 100%; height: auto; aspect-ratio: 1.04; object-fit: cover; object-position: right center; border-radius: 46% 46% .7rem .7rem / 29% 29% .7rem .7rem; }
.hero-roses, .hero-butterfly { position: absolute; pointer-events: none; }
.hero-roses { width: clamp(5.5rem, 13vw, 10.5rem); height: auto; left: -8%; bottom: -6%; transform: rotate(-9deg); }
.hero-butterfly { width: clamp(2.25rem, 5vw, 4rem); height: auto; top: 5%; right: -1%; transform: rotate(12deg); }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.intro-photo { width: 100%; height: auto; max-height: 30rem; object-fit: cover; border-radius: .65rem; }
.intro h2 { margin-top: .4rem; }
.process { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: process; }
.process li { position: relative; counter-increment: process; padding: .9rem 0 .9rem 3.25rem; border-top: 1px solid var(--line); }
.process li::before { content: counter(process, decimal-leading-zero); position: absolute; left: 0; top: .85rem; color: var(--red); font-weight: 700; }
.process p { color: var(--muted); }

.benefits { background: #f2e8d6; text-align: center; border-block: 1px solid var(--line); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; text-align: left; }
.benefit-grid article { padding: clamp(1.15rem, 3vw, 2rem); border-top: 3px solid #a44a32; background: var(--cream); }
.benefit-grid h3 { color: var(--red-dark); margin-bottom: .55rem; }
.benefit-grid p, .section-heading p, .ingredient p, .ingredient li { color: var(--muted); }

.section-heading { margin-bottom: 2rem; }
.section-heading p { margin-top: .55rem; }
.ingredient-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1.25rem; }
.ingredient { overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; background: #fffdf8; }
.ingredient > img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ingredient-copy { padding: 1.2rem; }
.ingredient h3 { color: var(--red-dark); }
.ingredient p { margin-top: .55rem; }
.ingredient details { border-top: 1px solid var(--line); margin-top: .95rem; }
.ingredient summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; color: var(--red-dark); font-size: .9rem; font-weight: 700; cursor: pointer; list-style: none; }
.ingredient summary::-webkit-details-marker { display: none; }
.ingredient summary span::after { content: '+'; font-size: 1.22rem; }
.ingredient details[open] summary span::after { content: '−'; }
.ingredient ul { padding-left: 1.2rem; margin: .15rem 0 .2rem; }
.ingredient li + li { margin-top: .45rem; }

.contact-panel { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(1.5rem, 6vw, 5rem); background: #ffdda5; border-radius: .65rem; }
.contact h2 { margin: .25rem 0 .65rem; }
.contact-panel p:not(.eyebrow) { max-width: 47ch; }
.contact-bamboo { position: absolute; z-index: -1; right: -1.35rem; top: -2rem; width: 8rem; height: auto; opacity: .55; transform: scaleX(-1) rotate(-12deg); }
.contact address { display: grid; justify-items: start; gap: .65rem; font-style: normal; font-weight: 700; }
.facebook { color: var(--red-dark); font-size: .94rem; text-underline-offset: .2em; }
.site-footer { background: #392619; color: var(--cream); padding-block: 1.15rem; font-size: .87rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .65rem 1.5rem; }
.footer-inner a:hover { color: #ffdda5; }

@media (max-width: 850px) {
  .wrap { width: min(100% - 3rem, 78rem); }
  .hero-inner { gap: 1.75rem; }
  .hero h1 { font-size: clamp(3.5rem, 8vw, 5.25rem); }
  .ingredient-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 660px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.55rem; flex-wrap: wrap; gap: 0 .65rem; }
  .nav { width: 100%; flex-wrap: wrap; padding: .4rem 0 .9rem; gap: .65rem 1.1rem; }
  .js-menu .nav:not(.is-open) { display: none; }
  .hero-inner, .intro, .contact-panel { grid-template-columns: 1fr; }
  .hero-inner { gap: 2rem; padding-block: 2.75rem; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5.25rem); }
  .hero-photo { margin-inline: .65rem; }
  .hero-product { max-height: 28rem; }
  .intro-photo { order: 1; }
  .benefit-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .ingredient-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-photo, .is-revealed {
    animation: rise-in .65s cubic-bezier(.22, .65, .3, 1) backwards;
  }

  .hero h1 { animation-delay: .08s; }
  .hero-copy > p:not(.eyebrow), .hero-photo { animation-delay: .16s; }
  .hero-copy > .button { animation-delay: .24s; }
  .hero-copy > :focus, .is-revealed:focus-within {
    animation-duration: 0s;
    animation-delay: 0s;
  }

  @keyframes rise-in {
    from { opacity: .4; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
  }

  @supports (animation-timeline: scroll()) {
    body::before {
      content: "";
      position: fixed;
      inset: 0 0 auto;
      z-index: 1;
      height: 3px;
      background: var(--red);
      pointer-events: none;
      transform-origin: left;
      animation: reading-progress linear both;
      animation-timeline: scroll(root);
    }

    @keyframes reading-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
