/* Dubbi Doo — colours taken off the printed labels. */
:root {
  --cream: #fbf5ed; /* exactly the label stock, so the logo's box disappears */
  --cream-deep: #f3e7d6;
  --plum: #2e1823;
  --sun: #efa42c;

  /* The active flavour. Grape is the house default, as on the box. */
  --deep: #55334f;
  --mid: #a66ba0;
  --light: #dcc3d8;

  --display: "Rammetto One", "Cooper Black", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
}

[data-flavor="blue-razz"]  { --deep: #3f2f7c; --mid: #6a7db3; --light: #9fc8da; }
[data-flavor="cherry"]     { --deep: #a8262c; --mid: #df636b; --light: #eaa587; }
[data-flavor="grape"]      { --deep: #55334f; --mid: #a66ba0; --light: #dcc3d8; }
[data-flavor="mango"]      { --deep: #e05a2b; --mid: #f3bd2a; --light: #e6747a; }
[data-flavor="strawberry"] { --deep: #dc3359; --mid: #e9819b; --light: #f6cfc6; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font: 17px/1.55 var(--body);
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.top .mark img { height: 46px; width: auto; }
.top nav { display: flex; gap: 22px; font-weight: 700; font-size: 15px; }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--deep); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 0; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero .wrap { max-width: 1200px; }
.hero-logo { width: min(1120px, 94vw); margin: 0 auto; }
.flavor-word {
  font-family: var(--display);
  color: var(--deep);
  font-size: clamp(30px, 7vw, 64px);
  letter-spacing: .06em;
  line-height: 1;
  margin: 22px 0 6px;
  transition: color .3s;
}
.compound {
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--deep); font-size: clamp(13px, 2.4vw, 17px); margin: 0;
  transition: color .3s;
}

.waves { display: block; width: 100%; height: clamp(110px, 16vw, 190px); margin-top: 36px; }
.waves path { transition: fill .3s; }

/* Flavours */
section.block { padding: 72px 0; }
h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 0 0 10px;
}
.lede { margin: 0 0 36px; max-width: 560px; }
.flavors { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.flavor-card {
  background: #fff8ef; border: 2px solid var(--plum); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
}
.flavor-card .art { background: var(--cream); border-bottom: 2px solid var(--plum); padding: 30px 0 0; }
.flavor-card .art img { width: 72%; margin: 0 auto 22px; }
.flavor-card .swirl { display: block; width: 100%; height: 70px; }
.flavor-card .body { padding: 16px 18px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.flavor-card h3 { font-family: var(--display); font-weight: 400; color: var(--deep); margin: 0; font-size: 20px; letter-spacing: .04em; }
.flavor-card a { font-weight: 700; font-size: 14px; white-space: nowrap; }

/* Two formats */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.format { background: var(--cream-deep); border-radius: 18px; padding: 26px; }
.format h3 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0 0 6px; }
.format p { margin: 0; }

/* COA page */
.page-head { padding: 40px 0 10px; }
.coa-list { display: grid; gap: 18px; margin-bottom: 40px; }
.coa-card {
  border: 2px solid var(--plum); border-radius: 18px; overflow: hidden;
  display: grid; grid-template-columns: 220px 1fr; background: #fff8ef;
}
.coa-card .swatch { background: var(--deep); display: flex; align-items: flex-end; padding: 18px; position: relative; overflow: hidden; }
.coa-card .swatch::before, .coa-card .swatch::after {
  content: ""; position: absolute; left: -30%; right: -30%; border-radius: 50%;
}
.coa-card .swatch::before { background: var(--mid); height: 120px; bottom: -70px; }
.coa-card .swatch::after { background: var(--light); height: 90px; bottom: -66px; }
.coa-card .swatch h3 {
  position: relative; z-index: 1; margin: 0 0 34px; color: var(--cream);
  font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .04em;
}
.coa-card .rows { padding: 18px 22px; }
.coa-card table { width: 100%; border-collapse: collapse; font-size: 15px; }
.coa-card th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; padding: 0 0 8px; }
.coa-card td { padding: 10px 0; border-top: 1px solid #e5d6c3; }
.coa-card td:last-child { text-align: right; }
.coa-card .btn {
  display: inline-block; background: var(--plum); color: var(--cream); text-decoration: none;
  font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px;
}
.coa-card .pending { margin: 0; display: flex; align-items: center; gap: 10px; height: 100%; }
.coa-card .pending::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); flex: none; }
.batch-help { background: var(--cream-deep); border-radius: 18px; padding: 22px 24px; margin-bottom: 72px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.batch-help code { font: 700 15px ui-monospace, Menlo, monospace; background: #fff8ef; border: 1px dashed var(--plum); padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.batch-help p { margin: 0; }

/* Footer */
footer { background: var(--plum); color: var(--cream); padding: 44px 0 36px; font-size: 13px; line-height: 1.6; }
footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
footer .row strong { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--sun); }
footer .row nav { display: flex; gap: 18px; font-size: 15px; font-weight: 700; }
footer p { opacity: .78; margin: 0 0 12px; max-width: 900px; }

/* 21+ gate */
.gate {
  position: fixed; inset: 0; z-index: 50; background: var(--cream);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.gate[hidden] { display: none; }
.gate .box { text-align: center; max-width: 420px; }
.gate img { width: 280px; margin: 0 auto 26px; }
.gate h2 { font-size: 28px; }
.gate .actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }
.gate button {
  font: 700 16px var(--body); border-radius: 999px; padding: 12px 24px; cursor: pointer;
  border: 2px solid var(--plum); background: transparent; color: var(--plum);
}
.gate button.yes { background: var(--plum); color: var(--cream); }
.gate .no-msg { margin-top: 16px; font-weight: 700; color: #a8262c; }

@media (max-width: 760px) {
  .formats { grid-template-columns: 1fr; }
  .coa-card { grid-template-columns: 1fr; }
  .coa-card .swatch { min-height: 110px; }
  .batch-help { grid-template-columns: 1fr; }
  .top nav { gap: 14px; }
  .top .mark img { height: 38px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
