@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  /* From the brand kit + packaging */
  /* Taken from the new one won’t do logo */
  --espresso: #531A02;     /* logo chocolate: headings, buttons, footer */
  --ink: #2B1307;          /* body text */
  --bone: #F7EFE3;         /* creamy vanilla page */
  --cream: #FEFBF6;        /* logo background ivory, surfaces */
  --kraft: #EADBC6;        /* box beige */
  --cocoa: #6A4433;        /* secondary text */
  --butter: #F6E7AE;       /* soft butter-yellow accent */
  --oxblood: #531A02;      /* focus rings */
  --line: #E8DCCB;
  --danger: #8F1D1D;
  --ok: #2F5B33;
  --radius: 18px;
  --wrap: 1160px;
  --display: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bone); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--espresso); color: var(--bone); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 420; letter-spacing: -0.015em; color: var(--espresso); line-height: 1.1; margin: 0; font-variation-settings: "SOFT" 0, "WONK" 0; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.eyebrow { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--cocoa); margin: 0 0 16px; }

/* Placeholders the owner still needs to fill in — impossible to miss on purpose */
mark.ph { background: var(--butter); color: var(--espresso); padding: 0 .3em; border-radius: 4px; outline: 1.5px dashed #B08A2E; outline-offset: 1px; font-weight: 600; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid var(--espresso); background: var(--espresso); color: var(--bone); font-weight: 600; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); background: #3E1301; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--espresso); }
.btn.ghost:hover { background: rgba(36, 21, 15, .06); }
.btn.small { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn.block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(247, 239, 227, .92); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 20px; height: 68px; }
.site-header .brand img { height: 30px; width: auto; }
.site-header nav { display: flex; gap: 24px; margin-left: auto; }
.site-header nav a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--espresso); background: transparent; cursor: pointer; display: grid; place-items: center; }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--butter); color: var(--espresso); font: 700 .75rem/22px var(--sans); text-align: center; padding: 0 5px; border: 1.5px solid var(--espresso); }
.cart-count[hidden] { display: none; }
@media (max-width: 760px) {
  .site-header nav { display: none; }
  .site-header .bar { justify-content: space-between; }
  .site-header .header-order { display: none; }
}

/* Hero */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-logo { width: min(460px, 86%); height: auto; margin-bottom: clamp(28px, 4vw, 48px); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 380; max-width: 13ch; }
.hero p.lede { font-size: 1.12rem; color: var(--cocoa); max-width: 34ch; margin: 20px 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero figure { margin: 0; position: relative; }
.hero figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px 28px 220px 220px; background: var(--kraft); }
.hero .badge { position: absolute; left: -18px; bottom: 36px; background: var(--butter); border: 1.5px solid var(--espresso); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: .92rem; transform: rotate(-4deg); }
@media (max-width: 860px) {
  .hero .grid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
  .hero .copy { display: contents; }
  .hero-logo { order: 1; width: min(280px, 74%); margin-bottom: 28px; }
  .hero figure { order: 2; max-width: 360px; width: 100%; margin-bottom: 40px; }
  .hero figure img { aspect-ratio: 1 / 1; border-radius: 24px 24px 180px 180px; }
  .hero h1 { order: 3; margin-inline: auto; }
  .hero p.lede { order: 4; margin: 16px auto 26px; }
  .hero .actions { order: 5; justify-content: center; }
  .hero .badge { left: 50%; transform: translateX(-50%) rotate(-3deg); bottom: -18px; white-space: nowrap; }
}

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { color: var(--cocoa); margin: 12px 0 0; max-width: 46ch; }

/* Shop */
.shop { background: var(--cream); border-radius: 40px 40px 0 0; }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 760px) { .products { grid-template-columns: 1fr; } }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product .media { background: #FEFBF6; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.product .media img { width: 100%; height: 100%; object-fit: contain; }
.product .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product h3 { font-size: 1.7rem; }
.product .count { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cocoa); }
.product .price { font: 600 1.35rem/1 var(--sans); }
.product p.desc { margin: 0; color: var(--cocoa); }
.product .buy { display: flex; gap: 12px; margin-top: auto; padding-top: 12px; }
.product .soldout { display: inline-block; background: var(--espresso); color: var(--bone); border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--espresso); border-radius: 999px; height: 52px; }
.stepper button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.3rem; cursor: pointer; border-radius: 999px; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output, .stepper span { min-width: 28px; text-align: center; font-weight: 600; }
.stepper.small { height: 40px; }
.stepper.small button { width: 36px; font-size: 1.1rem; }
.shop-note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--cocoa); font-size: .95rem; }
.shop-note span::before { content: "•"; margin-right: 10px; color: var(--oxblood); }
.shop-note span:first-child::before { content: none; }
.notice { border-radius: 14px; padding: 14px 18px; background: var(--butter); border: 1px solid #D9BF63; margin-top: 24px; }

/* Intro */
.intro .grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro .icon { width: clamp(110px, 15vw, 180px); height: auto; margin-inline: auto; }
.intro p.big { font-family: var(--display); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.38; margin: 18px 0 28px; font-weight: 340; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.facts li { border: 1.5px solid var(--espresso); border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: .95rem; }
@media (max-width: 760px) { .intro .grid { grid-template-columns: 1fr; text-align: center; } .facts { justify-content: center; } }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid figure { margin: 0; }
.gallery-grid .frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--kraft); }
.gallery-grid .frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid .frame.contain { background: #FEFBF6; display: grid; place-items: center; }
.gallery-grid .frame.contain img { object-fit: contain; padding: 18px; }
.gallery-grid figcaption { margin-top: 10px; font-size: .9rem; color: var(--cocoa); }
.photo-needed { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 24px; border: 2px dashed #B08A2E; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #F5E3A3 0 14px, #F8EBBE 14px 28px); font-weight: 600; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr 1fr; } .gallery-grid figure:first-child { grid-column: 1 / -1; } .gallery-grid figure:first-child .frame { aspect-ratio: 4 / 3; } }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font: 450 1.3rem/1.3 var(--display); color: var(--espresso); position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--sans); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .answer { padding: 0 0 22px; color: var(--cocoa); max-width: 64ch; }

/* Footer */
.site-footer { background: var(--espresso); color: var(--bone); padding: 64px 0 32px; }
.site-footer .grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-footer .logo { width: 200px; height: auto; }
.site-footer h3 { font: 600 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; color: #EBD9C4; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--bone); text-underline-offset: 3px; }
.site-footer .fine { border-top: 1px solid rgba(244,235,221,.22); margin-top: 48px; padding-top: 20px; font-size: .85rem; color: #EBD9C4; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer mark.ph { color: var(--espresso); }
@media (max-width: 760px) { .site-footer .grid { grid-template-columns: 1fr; } }

/* Cart drawer */
.drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(36, 21, 15, .45); }
.drawer .panel { position: absolute; top: 0; right: 0; height: 100%; width: min(480px, 100%); background: var(--cream); display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.18); animation: slide .25s ease; }
@keyframes slide { from { transform: translateX(40px); opacity: .4; } }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 1.6rem; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; cursor: pointer; font-size: 1.6rem; line-height: 1; }
.icon-btn:hover { background: rgba(36,21,15,.06); }
.drawer .content { padding: 20px 24px; overflow-y: auto; flex: 1; }
.drawer footer { padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--cream); }
.steps { display: flex; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.steps li { flex: 1; border-top: 3px solid var(--line); padding-top: 8px; color: var(--cocoa); }
.steps li.on { border-color: var(--espresso); color: var(--espresso); font-weight: 600; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: #fff; }
.line-item .name { font-weight: 600; }
.line-item .meta { font-size: .9rem; color: var(--cocoa); }
.line-item .right { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-size: .85rem; color: var(--cocoa); }
.totals { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.1rem; margin-bottom: 14px; }
.empty { text-align: center; padding: 48px 0; color: var(--cocoa); }
.empty img { width: 64px; margin: 0 auto 16px; opacity: .9; }

fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 600; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: block; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: .95rem; line-height: 1.25; cursor: pointer; }
.chip span small { display: block; color: var(--cocoa); font-size: .78rem; }
.chip input:checked + span { border-color: var(--espresso); background: var(--espresso); color: var(--bone); }
.chip input:checked + span small { color: #F1E2CF; }
.chip input:focus-visible + span { outline: 3px solid var(--oxblood); outline-offset: 2px; }
.chip input:disabled + span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field label .opt { font-weight: 400; color: var(--cocoa); }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1.5px solid #CDB89D; border-radius: 12px; background: #fff; font-size: 16px; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--espresso); outline: none; box-shadow: 0 0 0 3px rgba(110,31,42,.18); }
.field .err, .group-err { color: var(--danger); font-size: .88rem; margin-top: 6px; font-weight: 500; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: .95rem; }
.alert.error { background: #F9E3E0; border: 1px solid #E3B3AD; color: #5E1414; }
.alert.info { background: var(--butter); border: 1px solid #D9BF63; }
.alert.success { background: #E4EFDF; border: 1px solid #B7D0AE; color: #1F3D22; }
.summary-mini { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: .95rem; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; font-size: .82rem; color: var(--cocoa); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--espresso); color: var(--bone); padding: 14px 22px; border-radius: 999px; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: calc(100% - 32px); text-align: center; }

/* Mobile sticky order bar */
.mobile-order { display: none; }
@media (max-width: 760px) {
  .mobile-order { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25; transition: transform .25s ease, opacity .25s; }
  .mobile-order.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .mobile-order .btn { width: 100%; box-shadow: 0 10px 28px rgba(36,21,15,.28); }
  body { padding-bottom: 80px; }
}

/* Order confirmation page */
.order-page { min-height: 70vh; padding: 48px 0 96px; }
.order-card { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 5vw, 44px); }
.order-card h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 10px; }
.order-card dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 24px 0; }
.order-card dt { font-weight: 600; }
.order-card dd { margin: 0; white-space: pre-line; }
@media (max-width: 520px) { .order-card dl { grid-template-columns: 1fr; gap: 2px; } .order-card dd { margin-bottom: 10px; } }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--espresso); animation: spin 1s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
