/* Vaffelvind — demo site made by Webdrift. Fictional business. Look from the 09.11 ad; cart from /takeaway/. */

@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-latin.woff2") format("woff2"); font-weight: 700 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-cyrillic.woff2") format("woff2"); font-weight: 700 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-italic-latin.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-italic-cyrillic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin.woff2") format("woff2"); font-weight: 500 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-cyrillic.woff2") format("woff2"); font-weight: 500 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --cream: #fbf5ec;
  --paper: #fff;
  --ink: #3a2a22;
  --ink-2: #5a4336;
  --muted: #7a675a;
  --berry: #d94f6e;
  --berry-deep: #b83a58;
  --pista: #8fb35e;
  --waffle: #d9a55b;
  --line: #eadfce;
  --edge: #c9b6a2;
  --display: "Playfair Display", Georgia, serif;
  --text: "Nunito", system-ui, sans-serif;
  --strip: 48px;
  --dock: 0px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scroll-padding-bottom: calc(var(--strip, 0px) + var(--dock, 0px) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding-bottom: calc(var(--strip) + var(--dock));
  background: var(--cream); color: var(--ink);
  font: 600 17px/1.5 var(--text);
  font-variant-numeric: tabular-nums;
  caret-color: var(--berry);
}
::selection { background: var(--ink); color: var(--cream); }
h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(1180px, 100% - 48px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-wrap: balance; }
.fine { color: var(--muted); font-size: 0.9rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-weight: 800; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background 0.2s, transform 0.25s var(--ease);
}
.btn:hover { background: var(--ink-2); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.hot { background: var(--berry); }
.btn.hot:hover:not(:disabled) { background: var(--berry-deep); }
.btn.hot:focus-visible { outline-color: var(--ink); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.line:hover { background: var(--paper); }
.btn.small { min-height: 44px; padding: 8px 18px; font-size: 0.95rem; }
.btn.wide { width: 100%; }

/* Demo strip: fixed to the bottom, the site itself owns the top */
.demo {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink); color: #fff;
  font-size: 14.5px; line-height: 1.3;
  box-shadow: 0 -8px 24px -10px rgba(0, 0, 0, 0.4);
}
.demo .shell { display: flex; align-items: center; gap: 14px; min-height: 48px; padding-block: 6px; }
.demo p { flex: 1; }
.demo b { color: #f5c98a; }
.demo .short { display: none; }
.demo a {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 34px; padding: 4px 16px; border-radius: 999px;
  background: var(--cream); color: var(--ink);
  font-weight: 800; text-decoration: none; white-space: nowrap;
  transition: background 0.2s;
}
.demo a:hover { background: #fff; }
.demo a:focus-visible { outline-color: #fff; }
.demo svg { width: 14px; height: 14px; }

/* Header */
.top .shell { display: flex; align-items: center; gap: 16px; padding-block: 18px; }
.mark { margin-right: auto; font: 800 1.6rem/1 var(--display); text-decoration: none; }
.mark small { display: block; margin-top: 4px; font: 800 11px/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.open { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 99px; background: #e3eed2; color: #2f4a17; font-size: 0.82rem; font-weight: 800; white-space: nowrap; }
.open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pista); }
.open.shut { background: #f1e6da; color: var(--ink-2); }
.open.shut::before { background: var(--edge); }
.langs { display: flex; padding: 3px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.langs a { min-width: 40px; padding: 7px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 800; text-align: center; text-decoration: none; color: var(--muted); }
.langs a[aria-current] { background: var(--ink); color: #fff; }
.langs a:not([aria-current]):hover { color: var(--ink); }

/* Hero */
.hero .shell { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(8px, 2vw, 24px) 0; }
.hero .photo { order: 2; aspect-ratio: 6 / 5; border-radius: 32px; overflow: hidden; }
h1 { font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5rem); line-height: 1.02; letter-spacing: -0.01em; }
h1 em { color: var(--berry); }
.lead { margin-top: 16px; max-width: 40ch; font-size: 1.12rem; line-height: 1.5; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Sections */
section.block { margin-top: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(1.9rem, 1.2rem + 2vw, 2.8rem); line-height: 1.08; margin-bottom: 18px; }
h2 small { display: block; margin-bottom: 6px; font: 800 13px/1.2 var(--text); color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; }
.strip img { border-radius: 22px; }
.strip img:first-child { grid-row: span 2; }
.strip img:nth-child(2) { grid-column: 2 / span 2; }
.strip img:nth-child(3) { grid-column: 2 / span 2; }

.flavors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fl { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.fl img { flex: none; width: 96px; height: 96px; border-radius: 16px; }
.fl > div { flex: 1; min-width: 0; }
.fl h3 { font-size: 1.2rem; line-height: 1.2; }
.fl p { margin-top: 3px; color: var(--muted); font-size: 0.86rem; line-height: 1.35; }
.fl .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 99px; background: #e3eed2; color: #2f4a17; font: 800 0.68rem/1.2 var(--text); vertical-align: 0.25em; white-space: nowrap; }
.tag.new { background: #fbe0e6; color: #8a2140; }
.add {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%; background: var(--ink); color: #fff;
  transition: background 0.2s, transform 0.25s var(--ease);
}
.add:hover { background: var(--berry); transform: rotate(90deg); }
.add svg { width: 20px; height: 20px; }
.add.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); background: var(--berry); } }

/* Order: how it works + the builder */
.order { display: grid; grid-template-columns: 0.9fr 1.1fr; border: 1px solid var(--line); border-radius: 32px; overflow: hidden; background: var(--paper); }
.order > img { height: 100%; min-height: 240px; }
.order .in { padding: clamp(22px, 3vw, 40px); }
.step { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-weight: 800; }
.step i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--waffle); color: #fff; font-style: normal; }
.step small { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 600; }

.menu { margin-top: 20px; border-top: 2px solid var(--ink); }
.dish { border-bottom: 1px solid var(--line); }
.dish .row { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; align-items: center; padding-block: 18px; }
.dish h3 { font-size: 1.3rem; line-height: 1.2; }
.dish .desc { grid-column: 1; color: var(--muted); font-size: 0.95rem; }
.dish .buy { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 14px; }
.dish .price { font-weight: 800; white-space: nowrap; }
.dish.quick .row { padding-block: 12px; }
.dish.quick h3 { font: 700 1.05rem/1.3 var(--text); }
.build { display: grid; grid-template-columns: 0.8fr 1.4fr 1fr auto; gap: 22px 32px; align-items: start; padding: 4px 0 26px; animation: unfold 0.35s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(-8px); } }
.build legend { padding: 0; margin-bottom: 10px; font-weight: 800; font-size: 0.95rem; }
.tastes { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.pick { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.pick.off { opacity: 0.45; cursor: not-allowed; }
.pick input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: inherit; }
.pick i { flex: none; width: 22px; height: 22px; border: 2px solid var(--edge); background: var(--paper); transition: background 0.2s, border-color 0.2s; }
.pick input[type="radio"] + i { border-radius: 50%; }
.pick input[type="checkbox"] + i { border-radius: 6px; }
.pick input:checked + i { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--paper); }
.pick input[type="checkbox"]:checked + i {
  box-shadow: none;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pick input:focus-visible + i { outline: 3px solid var(--berry); outline-offset: 3px; }
.pick span { flex: 1; }
.pick em { font-style: normal; color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.build .go { display: flex; flex-direction: column; gap: 12px; align-items: stretch; min-width: 220px; }
.qty { display: inline-flex; align-items: center; justify-content: space-between; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--edge); }
.qty button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; transition: background 0.2s; }
.qty button:hover { background: var(--line); }
.qty svg { width: 16px; height: 16px; }
.qty output { min-width: 2ch; text-align: center; font-weight: 800; }

.hours { max-width: 560px; }
.hours div { display: flex; justify-content: space-between; padding: 14px 2px; border-bottom: 1px solid var(--line); font-weight: 700; }

.about { margin-top: clamp(56px, 8vw, 110px); padding-block: clamp(44px, 6vw, 80px); background: var(--ink); color: #fff; }
.about .shell { max-width: 720px; }
.about h2 { color: #fff; }
.about p { color: #e8dcd0; max-width: 52ch; }
.about .btn { margin-top: 24px; background: var(--cream); color: var(--ink); }
.about .btn:hover { background: #fff; }
.about :focus-visible { outline-color: var(--cream); }
footer { padding-block: 28px 40px; color: var(--muted); font-size: 0.9rem; }
footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }

/* Cart dock: the total stays on screen as soon as there is something in the cart */
.dock {
  position: fixed; left: 0; right: 0; bottom: var(--strip); z-index: 29;
  padding: 10px 0; background: var(--berry); color: #fff;
  box-shadow: 0 -10px 30px -12px rgba(58, 42, 34, 0.55);
  animation: lift 0.4s var(--ease);
}
@keyframes lift { from { transform: translateY(100%); } }
.dock .shell { display: flex; align-items: center; gap: 16px; }
.dock p { flex: 1; font-weight: 700; }
.dock p b { display: inline-block; margin-left: 10px; font: 800 1.35rem/1 var(--display); }
.dock .btn { background: #fff; color: var(--ink); min-height: 46px; }
.dock .btn:hover { background: var(--cream); }
.dock .btn:focus-visible { outline-color: #fff; }

/* Cart drawer */
dialog.cart {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(480px, 100vw); height: 100dvh; max-height: none; max-width: none;
  padding: 0; border: 0; background: var(--cream); color: var(--ink);
  overflow: hidden;
}
dialog.cart[open] { display: flex; flex-direction: column; animation: slide 0.4s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
dialog.cart::backdrop { background: rgba(58, 42, 34, 0.55); }
.cart > header { display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 24px; border-bottom: 1px solid var(--line); }
.cart > header h2 { flex: 1; margin: 0; font-size: 1.6rem; }
.cart > header h2:focus { outline: none; }
.x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; transition: background 0.2s; }
.x:hover { background: var(--line); }
.x svg { width: 20px; height: 20px; }
.cart .body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; overscroll-behavior: contain; scrollbar-width: thin; }
.lines li { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lines h3 { font: 800 1.02rem/1.3 var(--text); }
.lines p { grid-column: 1; color: var(--muted); font-size: 0.9rem; }
.lines .sum { grid-row: 1; grid-column: 2; font-weight: 800; text-align: right; white-space: nowrap; }
.lines .qty { grid-column: 2; justify-self: end; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }
.cart fieldset { margin-top: 26px; }
.cart legend { padding: 0; margin-bottom: 12px; font: 800 1.15rem/1.2 var(--display); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: block; height: 100%; padding: 12px 10px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--edge); text-align: center; font-weight: 800; transition: background 0.2s, box-shadow 0.2s, color 0.2s; }
.seg input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.seg input:focus-visible + span { outline: 3px solid var(--berry); outline-offset: 2px; }
.hint { margin-top: 10px; min-height: 1.4em; color: var(--muted); font-size: 0.92rem; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { min-height: 44px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--edge); font-weight: 700; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.slot:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.slot[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.slot.later { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); }
.slot.later::after { content: " ↓"; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.field.wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 800; }
.field label span { font-weight: 600; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--edge); border-radius: 12px; background: var(--paper); transition: border-color 0.2s; }
.field textarea { min-height: 76px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--berry-deep) !important; box-shadow: inset 0 0 0 1px var(--berry-deep); }
.err { margin-top: 6px; color: var(--berry-deep); font-size: 0.9rem; font-weight: 700; }
.cart .foot { padding: 16px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 2px solid var(--ink); background: var(--cream); }
.totals .all { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 14px; font-weight: 800; }
.totals .all dd { font: 800 1.7rem/1 var(--display); }
.foot .fine { margin-top: 10px; text-align: center; }

/* Receipt: the demo ends here */
.ticket { padding-top: 28px; }
.ticket .stamp {
  display: inline-block; margin-bottom: 18px; padding: 8px 20px 9px; border-radius: 999px;
  background: var(--berry); color: #fff; font: 800 1.1rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
  transform: rotate(-4deg);
  animation: stamp 0.55s var(--ease) both;
}
@keyframes stamp { from { opacity: 0; transform: rotate(-14deg) scale(1.9); filter: blur(4px); } 60% { opacity: 1; filter: blur(0); } }
.ticket h3 { font-size: 1.9rem; line-height: 1.05; }
.ticket h3:focus { outline: none; }
.ticket > p { margin-top: 12px; }
.ticket .recap { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.ticket .recap li { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; }
.ticket .recap li:last-child { margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--edge); font-weight: 800; }
.ticket .recap p { margin-bottom: 10px; font-weight: 800; }
.ticket .nav { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

html:has(dialog[open]) { overflow: hidden; }
@media (max-width: 1000px) {
  .flavors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build { grid-template-columns: 1fr 1fr; }
  .build .go { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero .shell { grid-template-columns: 1fr; }
  .hero .photo { order: 0; aspect-ratio: auto; height: 330px; border-radius: 28px; }
  .order { grid-template-columns: 1fr; }
  .order > img { min-height: 0; height: 170px; }
  .flavors { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1.3fr 1fr; grid-template-rows: 130px 130px; gap: 8px; }
  .strip img { border-radius: 18px; }
  .strip img:nth-child(2), .strip img:nth-child(3) { grid-column: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { width: calc(100% - 32px); }
  .top .shell { flex-wrap: wrap; gap: 10px 12px; padding-block: 14px; }
  .open { order: 3; }
  h1 { font-size: 2.6rem; }
  .fl img { width: 88px; height: 88px; }
  .demo .shell { gap: 10px; }
  .demo .long { display: none; }
  .demo .short { display: inline; }
  .demo a { min-height: 44px; }
  .build { grid-template-columns: 1fr; gap: 18px; }
  .dish:not(.quick) .buy, .dish.on .buy { flex-direction: column; align-items: flex-end; gap: 8px; }
  .dock p b { display: block; margin: 2px 0 0; }
  dialog.cart { inset: auto 0 0 0; width: 100vw; height: 94dvh; border-radius: 22px 22px 0 0; }
  dialog.cart[open] { animation-name: rise; }
  @keyframes rise { from { transform: translateY(60px); opacity: 0; } }
  .cart .body { padding-inline: 16px; }
  .cart > header { padding-left: 16px; }
  .cart .foot { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
  .totals .all dd { font-size: 1.4rem; }
  .foot .fine { margin-top: 6px; font-size: 0.82rem; }
  .langs a { min-width: 44px; padding-block: 12px; }
  footer a { display: inline-block; padding-block: 12px; }
  .fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
