/* Brændt Løg — demo site made by Webdrift. Fictional business. */

@font-face {
  font-family: "Dela Gothic One";
  src: url("fonts/dela-gothic-one-latin.woff2") format("woff2");
  font-weight: 400;
  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: "Dela Gothic One";
  src: url("fonts/dela-gothic-one-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-weight: 400 700;
  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: "Onest";
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --onion: #f5dde1;
  --skin: #fcf1f2;
  --plum: #3a1027;
  --plum-soft: #6b3a52;
  --char: #b5460b;
  --char-deep: #933606;
  --line: #e0b5bf;
  --edge: #a8647c;
  --leaf: #1c6341;
  --display: "Dela Gothic One", "Arial Black", sans-serif;
  --text: "Onest", "Helvetica Neue", Arial, sans-serif;
  --strip: 44px;
  --dock: 0px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; 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(--onion); color: var(--plum);
  font: 400 17px/1.5 var(--text);
  font-variant-numeric: tabular-nums;
  caret-color: var(--char);
  scrollbar-color: var(--edge) var(--onion);
}
::selection { background: var(--plum); color: var(--onion); }
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; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--char); 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(1200px, 100% - 48px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
.fine { color: var(--plum-soft); 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(--plum); color: var(--skin);
  font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background 0.2s, transform 0.25s var(--ease);
}
.btn:hover { background: #561a3b; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.hot { background: var(--char); color: #fff; }
.btn.hot:hover { background: var(--char-deep); }
.btn.hot:focus-visible { outline-color: var(--plum); }
.btn.line { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 2px var(--plum); }
.btn.line:hover { background: var(--skin); }
.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(--plum); color: var(--onion);
  font-size: 14.5px; line-height: 1.3;
}
.demo .shell { display: flex; align-items: center; gap: 14px; min-height: 44px; padding-block: 6px; }
.demo p { flex: 1; }
.demo b { font-weight: 700; }
.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(--onion); color: var(--plum);
  font-weight: 700; 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; }

/* Sign */
.sign { padding-block: 22px clamp(40px, 6vw, 72px); }
.sign .bar { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(36px, 6vw, 72px); }
.mark { margin-right: auto; font: 400 1.35rem/1 var(--display); text-decoration: none; letter-spacing: -0.01em; }
.mark span { color: var(--char); }
.open { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 600; }
.open::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); }
.open.shut::before { background: var(--edge); }
.langs { display: flex; padding: 3px; border-radius: 999px; background: var(--skin); 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: 700; text-align: center; text-decoration: none; color: var(--plum-soft); }
.langs a[aria-current] { background: var(--plum); color: var(--skin); }
.langs a:not([aria-current]):hover { color: var(--plum); }
h1 { font-size: clamp(2.3rem, 0.9rem + 6.4vw, 6rem); line-height: 0.98; letter-spacing: -0.03em; max-width: 13ch; }
h1 em { font-style: normal; color: var(--char); }
.sign .under { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 48px; margin-top: clamp(22px, 3vw, 36px); }
.lead { max-width: 44ch; font-size: 1.18rem; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 8px 16px; border-radius: 999px; background: var(--skin); font-size: 0.95rem; font-weight: 600; }

/* Category rail */
.rail { position: sticky; top: 0; z-index: 10; background: var(--plum); color: var(--onion); }
.rail .shell { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.rail .shell::-webkit-scrollbar { display: none; }
.rail a { flex: none; padding: 11px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.rail a:hover { background: rgba(245, 221, 225, 0.16); }
.rail a[aria-current] { background: var(--onion); color: var(--plum); }
.rail a:focus-visible { outline-color: var(--onion); outline-offset: -2px; }

/* Menu */
.cat { padding-top: clamp(48px, 7vw, 88px); }
.cat h2 { font-size: clamp(1.7rem, 1rem + 2.6vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; }
.cat > .shell > p { margin-top: 8px; color: var(--plum-soft); max-width: 60ch; }
.dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); margin-top: 22px; border-top: 2px solid var(--plum); }
.dish { border-bottom: 1px solid var(--line); }
.dish.on { grid-column: 1 / -1; }
.dish .row { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 18px; align-items: center; padding-block: 20px; }
.dish .ico { grid-row: 1 / span 3; grid-column: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--skin); }
.dish .ico svg { width: 52px; height: 52px; }
.dishes.quick .dish .ico { width: 52px; height: 52px; border-radius: 14px; }
.dishes.quick .dish .ico svg { width: 42px; height: 42px; }
.dish h3 { font-size: 1.22rem; line-height: 1.2; letter-spacing: -0.005em; }
.dish h3 small { margin-left: 8px; padding: 3px 9px 4px; border-radius: 999px; background: var(--leaf); color: #fff; font: 700 0.72rem/1 var(--text); letter-spacing: 0.02em; vertical-align: 0.2em; white-space: nowrap; }
.dish .al { grid-column: 2; color: var(--plum-soft); font-size: 0.82rem; }
.dish .desc { grid-column: 2; color: var(--plum-soft); font-size: 0.97rem; max-width: 46ch; }
.dish .buy { grid-row: 1 / span 3; grid-column: 3; display: flex; align-items: center; gap: 14px; }
.dish .price { font-weight: 700; font-size: 1.08rem; white-space: nowrap; }
.dishes.quick .dish .row { padding-block: 14px; }
.add {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border: 0; border-radius: 50%; background: var(--plum); color: var(--skin);
  transition: background 0.2s, transform 0.25s var(--ease);
}
.add:hover { background: var(--char); 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(--char); } }

/* Burger builder, opens inside the row */
.build { display: grid; grid-template-columns: repeat(3, minmax(0, 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: 700; font-size: 0.95rem; }
.pick { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick i { flex: none; width: 22px; height: 22px; border: 2px solid var(--edge); background: var(--skin); 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(--plum); background: var(--plum); box-shadow: inset 0 0 0 4px var(--skin); }
.pick input[type="checkbox"]:checked + i {
  box-shadow: none;
  background: var(--plum) 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='%23fcf1f2' 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(--char); outline-offset: 3px; }
.pick span { flex: 1; }
.pick em { font-style: normal; color: var(--plum-soft); font-size: 0.93rem; white-space: nowrap; }
.build .go { display: flex; flex-direction: column; gap: 12px; align-items: stretch; min-width: 230px; }
.qty { display: inline-flex; align-items: center; justify-content: space-between; border-radius: 999px; background: var(--skin); 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(--onion); }
.qty svg { width: 16px; height: 16px; }
.qty output { min-width: 2ch; text-align: center; font-weight: 700; }

/* About */
.about { margin-top: clamp(64px, 9vw, 120px); padding-block: clamp(48px, 7vw, 88px); background: var(--plum); color: var(--onion); }
.about .shell { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about h2 { font-size: clamp(1.6rem, 1rem + 2.2vw, 2.6rem); line-height: 1.08; letter-spacing: -0.02em; }
.about p { margin-top: 14px; max-width: 48ch; color: #e9c9d1; }
.about dl { margin-top: 28px; border-top: 1px solid rgba(245, 221, 225, 0.3); }
.about dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(245, 221, 225, 0.3); }
.about dd { font-weight: 700; text-align: right; }
.about .btn { margin-top: 26px; background: var(--onion); color: var(--plum); }
.about .btn:hover { background: #fff; }
.about :focus-visible { outline-color: var(--onion); }
footer { padding-block: 30px 40px; color: var(--plum-soft); font-size: 0.93rem; }
footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
footer p:first-child { max-width: 70ch; }

/* 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(--char); color: #fff;
  box-shadow: 0 -10px 30px -12px rgba(58, 16, 39, 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: 600; }
.dock p b { display: inline-block; margin-left: 10px; font: 400 1.35rem/1 var(--display); letter-spacing: -0.01em; }
.dock .btn { background: #fff; color: var(--plum); min-height: 46px; }
.dock .btn:hover { background: var(--onion); }
.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(--skin); color: var(--plum);
  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, 16, 39, 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; font-size: 1.5rem; letter-spacing: -0.01em; }
.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(--onion); }
.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: 700 1.02rem/1.3 var(--text); }
.lines p { grid-column: 1; color: var(--plum-soft); font-size: 0.9rem; }
.lines .sum { grid-row: 1; grid-column: 2; font-weight: 700; text-align: right; white-space: nowrap; }
.lines .qty { grid-column: 2; justify-self: end; }
.empty { padding: 48px 0; text-align: center; color: var(--plum-soft); }
.cart fieldset { margin-top: 28px; }
.cart legend { padding: 0; margin-bottom: 12px; font: 400 1.1rem/1.2 var(--display); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.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 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge); transition: background 0.2s, box-shadow 0.2s, color 0.2s; }
.seg b { display: block; }
.seg i { font-style: normal; font-size: 0.9rem; color: var(--plum-soft); }
.seg input:checked + span { background: var(--plum); color: var(--skin); box-shadow: none; }
.seg input:checked + span i { color: #e9c9d1; }
.seg input:focus-visible + span { outline: 3px solid var(--char); outline-offset: 2px; }
.hint { margin-top: 10px; min-height: 1.4em; color: var(--plum-soft); font-size: 0.93rem; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { min-height: 44px; padding: 8px 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge); font-weight: 600; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.slot:hover { box-shadow: inset 0 0 0 2px var(--plum); }
.slot[aria-pressed="true"] { background: var(--plum); color: var(--skin); box-shadow: none; }
.slot.later { background: transparent; box-shadow: inset 0 0 0 1px var(--plum); color: var(--plum); }
.slot.later::after { content: " ↓"; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.field.wide { grid-column: 1 / -1; }
.fields .lev { display: contents; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 700; }
.field label span { font-weight: 400; color: var(--plum-soft); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--edge); border-radius: 12px; background: #fff; transition: border-color 0.2s; }
.field textarea { min-height: 76px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--plum); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--char); outline-offset: 2px; border-color: var(--plum); }
[aria-invalid="true"] { border-color: var(--char-deep) !important; box-shadow: inset 0 0 0 1px var(--char-deep); }
.err { margin-top: 6px; color: var(--char-deep); font-size: 0.9rem; font-weight: 600; }
.cart .foot { padding: 16px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 2px solid var(--plum); background: var(--skin); }
.totals div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; color: var(--plum-soft); }
.totals .all { margin: 8px 0 14px; color: var(--plum); font-weight: 700; align-items: baseline; }
.totals .all dd { font: 400 1.7rem/1 var(--display); letter-spacing: -0.02em; }
.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(--char); color: #fff; font: 400 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; letter-spacing: -0.02em; }
.ticket h3:focus { outline: none; }
.ticket > p { margin-top: 12px; }
.ticket .recap { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: #fff; 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: 700; }
.ticket .recap p { margin-bottom: 10px; font-weight: 700; }
.ticket .nav { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

html:has(dialog[open]) { overflow: hidden; }
@media (max-width: 900px) {
  .dishes { grid-template-columns: minmax(0, 1fr); }
  .build { grid-template-columns: 1fr 1fr; }
  .build .go { grid-column: 1 / -1; }
  .about .shell { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { width: calc(100% - 32px); }
  .demo .shell { gap: 10px; }
  .demo .long { display: none; }
  .demo .short { display: inline; }
  .demo a { min-height: 44px; }
  .sign .bar { flex-wrap: wrap; gap: 12px; }
  .open { order: 3; flex-basis: 100%; }
  .build { grid-template-columns: 1fr; gap: 18px; }
  .dish .row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; }
  .dishes:not(.quick) .dish .ico { align-self: start; }
  .dish .ico, .dishes.quick .dish .ico { width: 40px; height: 40px; border-radius: 12px; }
  .dish .ico svg, .dishes.quick .dish .ico svg { width: 34px; height: 34px; }
  .dish h3 { overflow-wrap: anywhere; }
  .dish:not(.on) .buy:has(.btn), .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 { margin: 4px 0 10px; }
  .totals .all dd { font-size: 1.4rem; }
  .foot .fine { margin-top: 6px; font-size: 0.82rem; }
  .seg span { padding-inline: 12px; }
  .seg i { display: block; 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; }
}
