/* Bricolage Grotesque by Atelier Triay, SIL Open Font License (public/fonts/OFL.txt). Self-hosted: no third-party requests. */
@font-face { font-family: 'Bricolage Grotesque'; src: url(/fonts/BricolageGrotesque-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url(/fonts/BricolageGrotesque-SemiBold.woff2) format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url(/fonts/BricolageGrotesque-ExtraBold.woff2) format('woff2'); font-weight: 800; font-display: swap; }

/* Oh Yumo palette, taken from the logo: hot pink lettering, black lettering, blush badge. */
:root {
  --bg: #fffafc;          /* white with a breath of blush */
  --surface: #ffffff;
  --ink: #000000;         /* the logo's black */
  --muted: #6b5e64;
  --line: #f0dde4;
  --brand: #e82963;       /* the logo's pink, for marks and accents */
  --accent: #c81d55;      /* deeper pink for buttons and text, readable on white */
  --accent-soft: #fde8ef;
  --blush: #f5c4d4;       /* the logo's badge fill */
  --on-accent: #ffffff;
  --danger: #b3261e;
  --radius: 14px;
  --font: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --surface: #17121a; --ink: #ffffff; --muted: #c2b3ba; --line: #3a2a31;
    --brand: #ff4f86; --accent: #ff5c8d; --accent-soft: #3a1826; --blush: #4a2433; --on-accent: #000000; --danger: #ff8a80;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.5; font-optical-sizing: auto;
}
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* Hero: the blush of the logo badge, with a fringed edge like the cut-paper wrapper on a piece of pastillas. */
.hero {
  background: var(--blush); color: var(--ink);
  padding: 20px 0 46px;
  --fringe: 14px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--fringe)) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--fringe) * 2) var(--fringe) repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--fringe)) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--fringe) * 2) var(--fringe) repeat-x;
}
.hero-inner { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.brand { display: block; width: 104px; height: 104px; margin: 0 0 18px -6px; }
.brand img { width: 100%; height: 100%; display: block; }
.hero h1 { font-size: clamp(34px, 9vw, 58px); font-weight: 800; letter-spacing: -0.025em; max-width: 14ch; text-wrap: balance; }
.hero-sub { margin-top: 14px; font-size: 18px; max-width: 46ch; }

main { padding-top: 22px; padding-bottom: 120px; }
.note { background: var(--surface); border-left: 4px solid var(--brand); padding: 12px 14px; border-radius: 0 10px 10px 0; margin-bottom: 8px; }

/* Menu rows */
.cat { font-size: 15px; font-weight: 700; color: var(--accent); margin: 28px 0 6px; }
h3.cat { margin-top: 20px; }
.rows, .wish, .sum { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex; gap: 14px; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.row-name { font-weight: 600; font-size: 18px; }
.row-desc { color: var(--muted); font-size: 15px; margin-top: 2px; }
.row-buy { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.row-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.row.picked .row-name::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin: 0 8px 2px 0; vertical-align: middle; }
.row.gone { opacity: .5; }
.step { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.step-btn { width: 40px; height: 40px; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 999px; color: var(--accent); }
.step-btn:disabled { color: var(--line); cursor: default; }
.step-qty { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.row.picked .step { border-color: var(--brand); background: var(--accent-soft); }

/* Panels and forms */
.panel { background: var(--surface); border-radius: var(--radius); padding: 20px 18px; margin-top: 32px; border: 1px solid var(--line); }
.panel h2, .interest h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.panel > p + p { margin-top: 10px; }
.sum li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.sum .tot { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; font-weight: 800; }
form { display: grid; gap: 14px; margin-top: 16px; }
.field { display: grid; gap: 4px; }
.field > span { font-weight: 600; font-size: 15px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
input:not([type=checkbox]):not([type=radio]), textarea, select {
  width: 100%; padding: 12px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.seg legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.seg label { flex: 1; min-width: 120px; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 11px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--bg); }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.hint { color: var(--muted); font-size: 15px; margin-top: -6px; }
.hint:empty { display: none; }
.pay { background: var(--accent-soft); color: var(--ink); padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.err { color: var(--danger); font-weight: 600; }
.err:empty { display: none; }
.done { font-weight: 600; color: var(--accent); font-size: 18px; }

.btn {
  appearance: none; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 600;
  padding: 12px 20px; border-radius: 999px; cursor: pointer; font-size: 16px;
}
.btn:disabled { opacity: .45; cursor: default; }
.btn.big { padding: 15px 20px; font-size: 18px; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn.quiet { background: var(--accent-soft); color: var(--accent); }
.btn.danger { background: transparent; color: var(--danger); border: 1.5px solid currentColor; }
.btn.small { padding: 7px 14px; font-size: 14px; }

/* Interest list */
.interest { margin-top: 40px; }
.interest > .muted { max-width: 52ch; }
.wish li { border-bottom: 1px solid var(--line); }
.wish label { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 2px 10px; padding: 12px 0; cursor: pointer; }
.wish input { width: 22px; height: 22px; accent-color: var(--brand); }
.wish-name { font-weight: 600; }
.wish-desc { grid-column: 2; color: var(--muted); font-size: 15px; }
.wish-count { font-weight: 600; }

/* Sticky order bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--bg); z-index: 5; }
.bar-inner { max-width: 680px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar-sum { display: flex; flex-direction: column; line-height: 1.2; }
.bar-sum span { font-size: 14px; opacity: .8; }
.bar-sum strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.bar .btn { background: var(--brand); color: #fff; }

.foot { padding-bottom: 40px; color: var(--muted); font-size: 15px; }
.foot p + p { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Credit line */
.credit { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.credit a { color: inherit; text-decoration-color: var(--brand); text-underline-offset: 3px; }

/* Hidden field that only bots fill in */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Wholesale enquiries */
.wholesale { margin-top: 48px; }
.turnstile { min-height: 65px; }
.foot a { color: inherit; text-decoration-color: var(--brand); text-underline-offset: 3px; }
