@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #31231b;
  --copy: #5c4436;
  --red: #76251f;
  --red-deep: #511a16;
  --cream: #fff6e4;
  --paper: #fffbf2;
  --gold: #ffde68;
  --line: #ddc6a3;
  --wrap: min(72rem, 100% - 6rem);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .23em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #0b6271; outline-offset: 4px; }
::selection { color: var(--red-deep); background: var(--gold); }
p { max-width: 51ch; margin: 0; color: var(--copy); }
h1, h2, h3 { margin: 0; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; color: var(--red-deep); text-wrap: balance; }
h1 { font-size: clamp(3.8rem, 6.75vw, 6rem); letter-spacing: -.022em; line-height: .94; max-width: 8.8ch; }
h2 { font-size: clamp(2.65rem, 4.2vw, 4.25rem); letter-spacing: -.015em; line-height: .99; }
h3 { font-size: clamp(2rem, 2.6vw, 2.75rem); line-height: 1.02; }
section[id] { scroll-margin-top: 1rem; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: fixed; z-index: 3; top: .5rem; left: .5rem; padding: .65rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }

.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-inner { min-height: 5rem; position: relative; }
.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; text-decoration: none; font-weight: 700; color: var(--red-deep); }
.brand img { border-radius: 50%; }
.brand span { white-space: nowrap; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1.15rem, 2.7vw, 2.5rem); }
.desktop-nav a, .menu nav a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; text-decoration: none; }
.desktop-nav a:hover, .menu nav a:hover { color: var(--red); text-decoration: underline; }
.menu { display: none; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: .75rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: .18rem;
  color: white;
  background: var(--red);
  transition: background-color .2s ease, transform .2s ease;
}
.button:hover { background: var(--red-deep); }
.button:active { transform: translateY(1px); }
.header-action { min-height: 44px; background: transparent; color: var(--red); border-color: var(--red); }
.header-action:hover { color: white; }
.quiet-link { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font-weight: 700; }
.quiet-link > span { transition: transform .2s ease; }
.quiet-link:hover > span { transform: translate(2px, -2px); }

.hero {
  position: relative;
  isolation: isolate;
  color: var(--cream);
  background: #3b2119;
  border-bottom: 1px solid var(--line);
}
.hero-image, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-image { object-fit: cover; object-position: center 53%; }
.hero::after {
  content: "";
  background: linear-gradient(90deg, rgba(37, 20, 15, .96), rgba(37, 20, 15, .82) 40%, rgba(37, 20, 15, .32) 73%, rgba(37, 20, 15, .22));
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: min(54rem, calc(100svh - 5rem));
  display: grid;
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}
.hero-copy { max-width: 38rem; }
.hero h1 { color: var(--cream); max-width: 11ch; }
.hero-copy > p { color: var(--cream); margin-block: 1.45rem 1.6rem; font-size: clamp(1.05rem, 1.6vw, 1.23rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.hero .button { color: var(--red-deep); background: var(--gold); }
.hero .button:hover { background: #ffe891; }
.hero .quiet-link {
  min-height: 50px;
  padding: .75rem 1.25rem;
  border: 1px solid rgba(255, 246, 228, .62);
  border-radius: .18rem;
  background: rgba(37, 20, 15, .32);
  text-decoration: none;
}
.hero .quiet-link:hover { background: rgba(37, 20, 15, .65); }
.hero a:focus-visible { outline-color: var(--gold); }

.two-col { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: start; gap: clamp(1rem, 6vw, 5.5rem); }
.intro, .factory, .brief { padding-block: clamp(3rem, 7vw, 6.75rem); }
.intro p, .factory p, .brief ol { font-size: clamp(1.03rem, 1.45vw, 1.17rem); }
.intro .two-col { align-items: center; }
.catalog { padding-block: clamp(3rem, 6.5vw, 6.5rem); background: var(--cream); border-block: 1px solid var(--line); }
.catalog h2 { margin-bottom: clamp(1.55rem, 4vw, 3rem); }
.product-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.product { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; min-width: 0; padding: 1.6rem; }
.product:first-child { padding-left: 0; }
.product:last-child { padding-right: 0; }
.product + .product { border-left: 1px solid var(--line); }
.product > p { margin-bottom: .35rem; }
.product > a { margin-top: auto; }
.product-image { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border: 1px solid var(--line); }
.product-image.contain { object-fit: contain; background: white; }
.chocolate-image { object-position: center 45%; }
.factory address { margin-top: 1.2rem; font-style: normal; font-weight: 700; }
.factory .quiet-link { margin-top: .35rem; }
.brief { background: #f6e7c8; border-block: 1px solid var(--line); }
.brief ol { margin-block: 0; padding-left: 1.3rem; }
.brief li { padding-inline-start: .4rem; }
.brief li + li { margin-top: .6rem; }
.contact { padding-block: clamp(3rem, 6.7vw, 6rem); background: var(--red-deep); color: var(--cream); }
.contact .two-col { align-items: center; }
.contact h2 { color: var(--cream); }
.contact p { color: var(--cream); margin-top: .9rem; }
.contact-action { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.contact .button { color: var(--red-deep); background: var(--gold); }
.contact .button:hover { background: #ffe891; }
.contact .button:focus-visible { outline-color: var(--gold); }
.footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 1.3rem; }

@media (max-width: 52rem) {
  :root { --wrap: calc(100% - 3rem); }
  .product { padding: 1.25rem; }
}

@media (max-width: 43rem) {
  :root { --wrap: calc(100% - 2.5rem); }
  .header-inner { min-height: 4.15rem; gap: 1rem; }
  .brand img { width: 42px; height: 42px; }
  .desktop-nav, .header-action { display: none; }
  .menu { display: block; }
  .menu summary {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .35rem .42rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { width: .48rem; height: .48rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
  .menu[open] summary span { transform: translateY(2px) rotate(225deg); }
  .menu nav { position: absolute; top: calc(100% + 1px); right: 0; z-index: 2; display: grid; width: min(17rem, 100%); background: var(--paper); border: 1px solid var(--line); }
  .menu nav a { padding: .5rem 1rem; }
  .menu nav a + a { border-top: 1px solid var(--line); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .hero-inner {
    min-height: calc(100svh - 4.15rem);
    align-items: start;
    padding-block: clamp(3.75rem, 12svh, 6.5rem) 4rem;
  }
  .hero-image { object-position: 53% center; }
  .hero::after {
    background: linear-gradient(180deg, rgba(37, 20, 15, .89), rgba(37, 20, 15, .75) 63%, rgba(37, 20, 15, .29));
  }
  .hero-copy > p { margin-block: 1.05rem 1.35rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  h1 { font-size: clamp(3.3rem, 9.15vw, 4.5rem); }
  .product-list { grid-template-columns: minmax(0, 1fr); }
  .product { padding-inline: 0; }
  .product + .product { border-left: 0; border-top: 1px solid var(--line); }
  .footer-inner { gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .quiet-link > span { transition: none; }
}
