:root {
  color-scheme: light;
  --ivory: #f8f3eb;
  --cream: #f8f4ee;
  --ink: #321c17;
  --copy: #31231f;
  --gold: #a9783d;
  --footer: #301b17;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  color: var(--copy);
  background-color: var(--ivory);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(155deg, var(--ivory), var(--cream) 42%, #f7f0e5); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 0.06em; }
a:hover { text-decoration-thickness: 0.11em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.shell { width: min(92%, 75rem); margin-inline: auto; }
.skip-link {
  position: absolute;
  inset: 0 auto auto 0.75rem;
  z-index: 3;
  padding: 0.55rem 0.9rem;
  color: var(--ink);
  background: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0.5rem); }

.site-header { min-height: 8rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.5rem; }
.wordmark { display: flex; align-items: center; gap: 1.05rem; }
.wordmark-copy { display: grid; gap: 0.35rem; padding-left: 1rem; border-left: 1px solid var(--gold); }
.wordmark-name { font: 700 clamp(1.55rem, 3.28vw, 2.65rem)/0.91 var(--serif); letter-spacing: 0.015em; text-transform: uppercase; color: var(--ink); }
.wordmark-caption { font-size: clamp(0.7rem, 1.25vw, 0.94rem); letter-spacing: 0.19em; }
.cacao-mark { width: clamp(2.7rem, 6.5vw, 5.2rem); height: clamp(2.8rem, 6.6vw, 5.25rem); display: block; position: relative; color: var(--gold); flex: none; }
.cacao-mark::before, .cacao-mark::after, .cacao-mark i, .cacao-mark b { position: absolute; content: ""; }
.cacao-mark::before { width: 82%; height: 2px; background: currentColor; top: 37%; right: -1%; transform: rotate(-43deg); transform-origin: 90% center; }
.cacao-mark::after { width: 55%; height: 25%; border: 1.4px solid currentColor; border-radius: 85% 4% 80% 4%; top: 26%; left: 0; transform: rotate(-15deg); }
.cacao-mark i { width: 44%; height: 72%; border: 1.6px solid currentColor; border-radius: 58% 38% 55% 39%; left: 41%; top: 27%; transform: rotate(33deg); }
.cacao-mark i::before, .cacao-mark i::after { content: ""; position: absolute; inset: 8% 28%; border-inline: 1px solid currentColor; border-radius: 50%; }
.cacao-mark i::after { inset: 11% 46%; }
.cacao-mark b { width: 58%; height: 22%; border-bottom: 1px solid currentColor; border-radius: 50%; top: 21%; left: 2%; transform: rotate(-30deg); }
.site-header nav { display: flex; gap: clamp(1rem, 4.6vw, 4rem); align-items: center; }
.site-header nav a { font: 700 clamp(1.1rem, 2.2vw, 1.65rem)/1.2 var(--serif); color: var(--ink); padding-block: 0.6rem; text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { text-decoration: underline; }

.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 0.92fr 1fr; align-items: center; column-gap: 1.5rem; min-height: clamp(27rem, 54vw, 40rem); padding-block: 0.25rem 1.5rem; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 0.75rem; }
.hero h1 { font-size: clamp(3rem, 6.35vw, 5.6rem); line-height: 0.98; letter-spacing: -0.06em; text-wrap: balance; max-width: 11ch; }
.hero p { margin-top: 1.42rem; font-size: clamp(1.12rem, 2.28vw, 1.65rem); line-height: 1.32; max-width: 26ch; }
.hero-photo { position: relative; width: 100%; justify-self: end; }
.hero-photo img { width: 100%; mix-blend-mode: multiply; mask-image: radial-gradient(ellipse 78% 70% at 50% 48%, #000 55%, transparent 96%); }

.products { padding-block: clamp(1.3rem, 3vw, 2.5rem) clamp(2rem, 4.6vw, 3.8rem); }
.catalog-heading { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.7rem); font-size: clamp(2rem, 5vw, 4.3rem); line-height: 1.02; letter-spacing: -0.045em; text-align: center; text-wrap: balance; }
.catalog-heading::before, .catalog-heading::after { content: ""; flex: 1 0 0.65rem; height: 1px; background-color: var(--gold); }
.product-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.8vw, 2.5rem); margin-top: clamp(1.1rem, 3vw, 2rem); }
.product-image { height: clamp(10rem, 29vw, 22rem); margin-bottom: 1rem; }
.product-image img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.product-list h3 { font-size: clamp(1.55rem, 3.3vw, 2.9rem); letter-spacing: -0.04em; line-height: 1.04; overflow-wrap: anywhere; }
.product-list p { margin-top: 0.55rem; font-size: clamp(1rem, 1.75vw, 1.23rem); line-height: 1.4; }

.site-footer { color: #fff8ed; background-color: var(--footer); border-top: 4px solid #b68a50; }
.footer-inner { padding-block: 1.8rem 2.2rem; }
.site-footer h2 { color: inherit; font-size: clamp(2.15rem, 4.5vw, 3.6rem); line-height: 1; letter-spacing: -0.035em; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; margin-top: 0.7rem; font-size: clamp(1rem, 1.65vw, 1.19rem); line-height: 1.42; }
.distribution { padding-block: 0.45rem; }
.distribution p + p { margin-top: 0.75rem; }
.site-footer address { border-left: 1px solid #d4ad72; padding-left: clamp(1.35rem, 4vw, 3.2rem); font-style: normal; overflow-wrap: anywhere; }

@media (max-width: 740px) {
  .site-header { min-height: auto; padding-block: 1.25rem; gap: 0.7rem 1.5rem; flex-wrap: wrap; }
  .wordmark { gap: 0.65rem; }
  .wordmark-copy { padding-left: 0.65rem; }
  .site-header nav { gap: 1.1rem; }
  .hero { grid-template-columns: 1fr; column-gap: 0; min-height: initial; padding-top: clamp(1.6rem, 5vw, 3rem); padding-bottom: 0; }
  .hero h1 { max-width: 13ch; font-size: clamp(2.85rem, 9.15vw, 4.6rem); text-wrap: initial; }
  .hero p { margin-top: 1rem; }
  .hero-photo { width: min(100%, 32rem); justify-self: center; }
  .product-list { gap: 1.35rem; }
  .product-image { margin-bottom: 0.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer address { padding-left: 1rem; }
}

@media (max-width: 540px) {
  .site-header nav { width: 100%; }
  .product-list { grid-template-columns: 1fr; }
  .product-list article { padding-block: 1.25rem; }
  .product-list article + article { border-top: 1px solid #d7c8b2; }
  .product-list h3 { font-size: 2.08rem; }
  .product-image { height: clamp(10rem, 57vw, 17rem); }
}
