/* =====================================================================
   Cora Bell · Diner v1
   Plain CSS, no build step. Sections:
   1. Settings (colors, fonts, motion)   2. Base   3. Shared pieces
   4. Menu   5. Phone layout (drawn on the 390 frame, scaled by --u)
   6. Desktop layout (1024 px and up, drawn on the 1440 frame, scaled by --u)
   7. Animations
   Blocks are placed with numbers from the design: --x and --y (top left
   corner) and sizes, in design pixels. One design pixel = --u.
   ===================================================================== */

/* Fonts, loaded from the fonts folder (see README to load them from Google instead) */
@font-face { font-family: "Sigmar One"; src: url("../../fonts/sigmar-one-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Red Hat Display"; src: url("../../fonts/red-hat-display-latin.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

/* ---------- 1. Settings. EDIT: colors, fonts and motion live here. */
:root {
  --cream: #fbf1de;      /* page, guest checks, product cards, light buttons */
  --white: #fffaf0;      /* the plate, record sleeve and form fields */
  --brown: #3b2118;      /* text, buttons, menu board, footer */
  --red: #d9263a;        /* titles, badge, stickers, floor tiles, hours */
  --red-deep: #b81c2f;   /* the dark cherry: red buttons and small red text (5.8:1 with cream) */
  --mint: #bfe9dc;       /* the tiled wall (hero and booking), Play buttons, quote cards */
  --tile: #a6d8c9;       /* the tile lines on the wall */
  --pink: #f7b7c6;       /* to go section, small intro lines on the board and footer */
  --note: #e7d6c3;       /* song notes on the board */
  --leader: #8a5a45;     /* dotted lines and the dashed border of the board */
  --counter: #d7dcdf;    /* the steel edge of the counter */
  --divider: #c9b79a;    /* the dashed line on the guest checks */
  --muted: #cdb9a6;      /* copyright line */
  --plate-edge: #e2d5bb;
  --plate-shadow: #9fcfbf;
  --photo-hint: #4a4a56; /* "replace with photo" text on the empty photo spots */
  --photo-top: #d9d3c8;  /* empty photo spots: gradient until a photo is added */
  --photo-bottom: #aaa499;
  --focus: #3b2118;      /* focus outline (dark areas use the cream) */

  --font-display: "Sigmar One", "Cooper Black", Georgia, serif;
  --font-text: "Red Hat Display", "Helvetica Neue", Arial, sans-serif;

  /* Motion. Durations in ms, distances in design pixels. */
  --motion-dur: 850ms;          /* blocks coming in */
  --motion-step: 110ms;         /* delay between blocks that come into view together */
  --motion-rise: 24;            /* how far blocks rise while they fade in */
  --motion-plate: -24deg;       /* how much the plate turns while it slides onto the counter */
  --motion-drop: 60;            /* how far the cherries fall */
  --motion-ease: cubic-bezier(.2, .8, .2, 1);
  --motion-bounce: cubic-bezier(.3, 1.5, .5, 1);

  --nav-h-compact: 56px;        /* height of the slim menu bar after scrolling (phones) */

  /* --u: one design pixel. Phones: the 390 frame, up to 430 px wide. */
  --W: 390;
  --u: calc(min(100cqi, 430px) / 390);
}

/* ---------- 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--cream); color: var(--brown); font: 400 16px/1.5 var(--font-text); overflow-x: clip; }
/* the scale units (cqi) are measured on these boxes, not on <body>: a container on <body>
   would make Firefox scroll the fixed menu bar away with the page */
main, footer, .topbar { container-type: inline-size; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: none; }
button, input, textarea { font: inherit; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 10px 18px; border-radius: 100px; background: var(--brown); color: var(--cream); font: 700 15px/1.2 var(--font-text); text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.board, .hours, .footer, .btn--brown, .btn--red, .nav__toggle { --focus: var(--cream); }
.check, .hours .btn--cream { --focus: var(--brown); }
.red { color: var(--red); }

/* Sections: each one is a stage drawn at the design size and scaled by --u */
.sec { --H: 1000; --sec-h: calc(var(--H) * var(--u)); --stage-top: calc((var(--sec-h) - var(--H) * var(--u)) / 2);
  position: relative; overflow: hidden; height: var(--sec-h); background: var(--cream) no-repeat; }
.stage { position: absolute; left: 50%; top: var(--stage-top); width: calc(var(--W) * var(--u)); height: calc(var(--H) * var(--u)); translate: -50% 0; }
.pc { position: absolute; margin: 0; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); rotate: var(--r, 0deg); }

/* ---------- 3. Shared pieces */
.btn { display: flex; align-items: center; justify-content: center; border: 0; border-radius: 100px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 700 calc(var(--bf, 16) * var(--u))/1.2 var(--font-text); }
.btn--red { background: var(--red-deep); color: var(--cream); }
.btn--brown { background: var(--brown); color: var(--cream); }
.btn--cream { background: var(--cream); color: var(--brown); }
.btn--line { background: transparent; color: var(--brown); box-shadow: inset 0 0 0 calc(2.5 * var(--u)) var(--brown); }
.btn:hover { filter: brightness(1.12); }
.btn--line:hover, .btn--cream:hover { background: var(--white); filter: none; }
.tag { display: inline-flex; align-items: center; height: calc(34 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: 100px; font: 700 calc(14 * var(--u))/1 var(--font-text); }
.tag--pink { background: var(--pink); } .tag--mint { background: var(--mint); } .tag--brown { background: var(--brown); color: var(--cream); }
.wall { background-image: linear-gradient(var(--tile) 0 calc(2 * var(--u)), transparent 0), linear-gradient(90deg, var(--tile) 0 calc(2 * var(--u)), transparent 0); background-repeat: repeat; }
/* the tiles repeat over the whole wall (.sec sets no-repeat for the other sections) */
.hero, .book { background-repeat: repeat; }

/* Photo spots. EDIT: the gradient shows until a photo is added. */
.photo-slot { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, var(--photo-top), var(--photo-bottom)); }
.photo-slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot__hint { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: calc(12 * var(--u));
  width: 80%; color: var(--photo-hint); font: 500 calc(11 * var(--u))/1.2 var(--font-text); text-align: center; }
.photo-slot__hint svg { width: calc(56 * var(--u)); height: calc(56 * var(--u)); }
.photo-slot > img ~ .photo-slot__hint { display: none; }

/* Sideways rails (phones): cards slide, a piece of the next one shows */
.rail { display: flex; gap: calc(16 * var(--u)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 calc(20 * var(--u)); scroll-padding: 0 calc(20 * var(--u)); }
.rail::-webkit-scrollbar { display: none; }
.rail > li { flex: none; scroll-snap-align: start; }

/* ---------- 4. Menu: name, links, Book a table. On phones the Menu button opens a panel. */
.topbar { position: fixed; z-index: 20; left: 0; right: 0; top: 0; height: 0; --H: 1000; }
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--nav-h-compact); background: rgb(251 241 222 / .97);
  box-shadow: 0 calc(2.5 * var(--u)) 0 var(--brown); opacity: 0; translate: 0 -100%; transition: opacity .3s, translate .3s; }
.topbar__stage { position: absolute; left: 50%; top: 0; width: calc(var(--W) * var(--u)); translate: -50% 0; }
.logo { position: absolute; left: calc(20 * var(--u)); top: calc(var(--ly, 22) * var(--u)); color: var(--red); font: 400 calc(var(--lf, 26) * var(--u))/1.63 var(--font-display); text-decoration: none; white-space: nowrap;
  transition: top .3s var(--motion-ease), font-size .3s var(--motion-ease); }
.nav__toggle { position: absolute; left: calc(290 * var(--u)); top: calc(var(--ty, 20) * var(--u)); width: calc(80 * var(--u)); height: calc(40 * var(--u)); border: 0; border-radius: 100px;
  background: var(--brown); color: var(--cream); font: 700 calc(15 * var(--u))/1 var(--font-text); cursor: pointer; transition: top .3s var(--motion-ease); }
.nav__toggle::after { content: ""; position: absolute; inset: calc(-4 * var(--u)) calc(-2 * var(--u)); }
.nav__panel { position: absolute; left: calc(12 * var(--u)); right: calc(12 * var(--u)); top: calc(70 * var(--u)); width: calc(366 * var(--u)); padding: calc(20 * var(--u)) calc(24 * var(--u)) calc(24 * var(--u));
  border-radius: calc(22 * var(--u)); background: var(--cream); box-shadow: inset 0 0 0 calc(3 * var(--u)) var(--brown), 0 calc(10 * var(--u)) calc(24 * var(--u)) rgb(59 33 24 / .18);
  opacity: 0; visibility: hidden; translate: 0 calc(-10 * var(--u)); transition: opacity .25s, visibility .25s, translate .25s; }
.nav.is-open .nav__panel, .nav__panel:target { opacity: 1; visibility: visible; translate: 0 0; }
/* Menu without JavaScript: the button needs main.js, so a plain link takes its place
   (same look) and the menu opens with :target. A link inside the menu closes it. */
html:not(.js) button.nav__toggle, .js .nav__toggle--link { display: none; }
.nav__toggle--link { text-decoration: none; }
@media (max-width: 1023px) { html:not(.js) .nav__toggle--link { display: grid; place-items: center; } }

.nav__links a { display: block; padding: calc(8 * var(--u)) 0; color: var(--brown); font: 400 calc(26 * var(--u))/1.4 var(--font-display); text-decoration: none; }
.nav__links a:hover { color: var(--red-deep); }
.nav__book { margin-top: calc(14 * var(--u)); height: calc(52 * var(--u)); }
.topbar.is-scrolled::before { opacity: 1; translate: 0 0; }
.topbar.is-scrolled .logo { --ly: 6; --lf: 22; }
.topbar.is-scrolled .nav__toggle { --ty: 8; }
.topbar.is-scrolled .nav__panel { top: calc(58 * var(--u)); }
.static-nav .topbar { position: absolute; }

/* ---------- 5. Phone layout (390 frame) */
/* HERO */
.hero { --H: 1000; background-color: var(--mint); background-size: calc(65 * var(--u)) calc(65 * var(--u)); background-position: calc((100cqi - var(--W) * var(--u)) / 2) 0; }
.hero { background-image: linear-gradient(var(--tile) 0 calc(2 * var(--u)), transparent 0), linear-gradient(90deg, var(--tile) 0 calc(2 * var(--u)), transparent 0); }
/* the counter edge and the checkered floor under the wall */
.hero__floor { position: absolute; left: 0; right: 0; top: calc(var(--stage-top) + 898 * var(--u)); bottom: 0;
  background: linear-gradient(var(--white) 0 calc(4 * var(--u)), var(--counter) 0 calc(16 * var(--u)), transparent 0),
              url("../svg/m-checker.svg") calc((100cqi - var(--W) * var(--u)) / 2) calc(16 * var(--u)) / calc(60 * var(--u)) calc(86 * var(--u)) repeat-x; }
.hero__title { --x: 20; --y: 92; width: calc(350 * var(--u)); font: 400 calc(46 * var(--u))/calc(52 / 46) var(--font-display); }
.hero__intro { --x: 20; --y: 268; width: calc(350 * var(--u)); font-size: calc(17 * var(--u)); line-height: calc(26 / 17); }
.hero__btns { --x: 20; --y: 404; display: grid; gap: calc(12 * var(--u)); width: calc(350 * var(--u)); --bf: 17; }
.hero__btns .btn { height: calc(56 * var(--u)); }
.plate { --x: 30; --y: 605; width: calc(336 * var(--u)); height: calc(340 * var(--u)); }
.plate > * { position: absolute; border-radius: 50%; }
.plate__shadow { left: calc(6 * var(--u)); top: calc(10 * var(--u)); width: calc(330 * var(--u)); height: calc(330 * var(--u)); background: var(--plate-shadow); }
.plate__dish { left: 0; top: 0; width: calc(330 * var(--u)); height: calc(330 * var(--u)); background: var(--white); box-shadow: inset 0 0 0 calc(3 * var(--u)) var(--plate-edge); }
.plate__ring { left: calc(21 * var(--u)); top: calc(21 * var(--u)); width: calc(288 * var(--u)); height: calc(288 * var(--u)); box-shadow: inset 0 0 0 calc(2 * var(--u)) var(--plate-edge); }
.plate__photo { inset: auto; left: calc(40 * var(--u)); top: calc(40 * var(--u)); width: calc(250 * var(--u)); height: calc(250 * var(--u)); }
.cherries { --x: 290; --y: 605; width: calc(72 * var(--u)); }
.cherries img { width: 100%; height: auto; }
.badge { --x: 14; --y: 790; --r: 10deg; transform-origin: 0 0; display: flex; align-items: center; justify-content: center; width: calc(100 * var(--u)); height: calc(100 * var(--u)); border-radius: 50%;
  background: var(--red-deep); box-shadow: inset 0 0 0 calc(4 * var(--u)) var(--cream); color: var(--cream); text-align: center; font: 400 calc(16 * var(--u))/calc(18 / 16) var(--font-display); }

/* MENU (record and board) */
.menu { --H: 1440; }
.sleeve { --x: 46; --y: 44; --r: 3deg; transform-origin: 0 0; width: calc(300 * var(--u)); height: calc(300 * var(--u)); border-radius: calc(16 * var(--u)); background: var(--white); box-shadow: inset 0 0 0 calc(3 * var(--u)) var(--brown); }
.sleeve__photo { inset: calc(16 * var(--u)); border-radius: calc(8 * var(--u)); }
.record__title { --x: 20; --y: 388; color: var(--red); font: 400 calc(38 * var(--u))/1.63 var(--font-display); white-space: nowrap; }
.record__text { --x: 20; --y: 444; width: calc(350 * var(--u)); font-size: calc(17 * var(--u)); line-height: calc(26 / 17); }
.record__btn { --x: 20; --y: 526; width: calc(350 * var(--u)); height: calc(54 * var(--u)); }
.board { --x: 20; --y: 620; width: calc(350 * var(--u)); height: calc(776 * var(--u)); border-radius: calc(22 * var(--u)); background: var(--brown); color: var(--cream); }
.board::before { content: ""; position: absolute; inset: calc(14 * var(--u)); border-radius: calc(14 * var(--u)); border: calc(2 * var(--u)) dashed var(--leader); pointer-events: none; }
.board > * { position: absolute; left: calc(28 * var(--u)); }
.board__title { top: calc(36 * var(--u)); font: 400 calc(34 * var(--u))/1.63 var(--font-display); white-space: nowrap; }
.board__intro { top: calc(96 * var(--u)); width: calc(294 * var(--u)); color: var(--pink); font-size: calc(16 * var(--u)); line-height: calc(22 / 16); }
.songs { top: calc(168 * var(--u)); width: calc(294 * var(--u)); }
.song { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: calc(100 * var(--u)); align-content: start; }
.song__name { font: 400 calc(19 * var(--u))/1.63 var(--font-display); }
.song__dots { display: none; }
.song__play { grid-column: 2; grid-row: 1; position: relative; width: calc(64 * var(--u)); height: calc(34 * var(--u)); border: 0; border-radius: 100px; background: var(--mint); color: var(--brown);
  font: 700 calc(14 * var(--u))/1 var(--font-text); cursor: pointer; }
.song__play::after { content: ""; position: absolute; inset: calc(-5 * var(--u)) calc(-4 * var(--u)); }
.song__play[aria-pressed="true"] { background: var(--pink); }
.song__note { grid-column: 1 / -1; margin-top: calc(5 * var(--u)); color: var(--note); font-size: calc(15 * var(--u)); line-height: calc(21 / 15); width: calc(290 * var(--u)); }

/* HOURS (guest checks) */
.hours { --H: 760; background-color: var(--red); color: var(--cream); }
.hours__title { --x: 20; --y: 492; }
.hours__title, .togo__title, .about__title, .book__title { font: 400 calc(var(--tf, 38) * var(--u))/1.63 var(--font-display); white-space: nowrap; }
.hours__title { --y: 52; }
/* 19 px bold (never under 18.7 px) counts as large text for WCAG: cream on --red passes AA (4.37:1, needs 3:1) */
.hours__intro { --x: 20; --y: 126; width: calc(350 * var(--u)); font-size: max(18.7px, calc(19 * var(--u))); line-height: max(calc(26 * var(--u)), 1.2em); font-weight: 700; }
.checks { --x: 0; --y: 210; width: calc(390 * var(--u)); }
.check { position: relative; width: calc(310 * var(--u)); height: calc(420 * var(--u)); background: url("../svg/m-check.svg") 0 0 / 100% 100%; color: var(--brown); }
.check > * { position: absolute; left: calc(28 * var(--u)); }
.check__date { top: calc(28 * var(--u)); color: var(--red); font: 400 calc(50 * var(--u))/1.63 var(--font-display); white-space: nowrap; }
.check__city { top: calc(100 * var(--u)); font: 400 calc(30 * var(--u))/1.63 var(--font-display); white-space: nowrap; }
.check__venue { top: calc(144 * var(--u)); font: 700 calc(18 * var(--u))/1.33 var(--font-text); }
.check__note { top: calc(208 * var(--u)); width: calc(254 * var(--u)); font-size: calc(16 * var(--u)); line-height: 1.5; }
.check__note::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-18 * var(--u)); border-top: calc(2 * var(--u)) dashed var(--divider); }
.check .tag { top: calc(266 * var(--u)); }
.check__btn { top: calc(320 * var(--u)); width: calc(254 * var(--u)); height: calc(52 * var(--u)); }
.hours__all { --x: 20; --y: 666; width: calc(220 * var(--u)); height: calc(54 * var(--u)); }

/* TO GO (products) */
.togo { --H: 880; background-color: var(--pink); }
.togo__title { --x: 20; --y: 52; --tf: 46; }
.togo__intro { --x: 20; --y: 126; width: calc(350 * var(--u)); font-size: calc(17 * var(--u)); line-height: calc(26 / 17); }
.products { --x: 0; --y: 214; width: calc(390 * var(--u)); padding-bottom: calc(20 * var(--u)); }
.product { position: relative; width: calc(310 * var(--u)); height: calc(540 * var(--u)); border-radius: calc(26 * var(--u)); background: var(--cream); box-shadow: inset 0 0 0 calc(3 * var(--u)) var(--brown); }
.product > * { position: absolute; left: calc(24 * var(--u)); }
.product__photo { inset: auto; left: calc(24 * var(--u)); top: calc(24 * var(--u)); width: calc(262 * var(--u)); height: calc(262 * var(--u)); border-radius: calc(16 * var(--u)); }
.product__price { left: calc(222 * var(--u)); top: calc(224 * var(--u)); rotate: 12deg; transform-origin: 0 0; display: flex; align-items: center; justify-content: center; width: calc(86 * var(--u)); height: calc(86 * var(--u)); border-radius: 50%;
  background: var(--red); box-shadow: inset 0 0 0 calc(4 * var(--u)) var(--cream); color: var(--cream); font: 400 calc(26 * var(--u))/1 var(--font-display); }
.product__name { top: calc(308 * var(--u)); width: calc(262 * var(--u)); font: 400 calc(20 * var(--u))/1.4 var(--font-display); }
.product__note { top: calc(346 * var(--u)); width: calc(262 * var(--u)); font-size: calc(16 * var(--u)); line-height: 1.5; }
.product__btn { top: calc(462 * var(--u)); width: calc(262 * var(--u)); height: calc(52 * var(--u)); }
.togo__all { --x: 20; --y: 794; width: calc(240 * var(--u)); height: calc(52 * var(--u)); }

/* ABOUT */
.about { --H: 1190; }
.booth { --x: 30; --y: 44; --r: -3deg; transform-origin: 0 0; width: calc(330 * var(--u)); height: calc(430 * var(--u)); border-radius: calc(28 * var(--u)); background: var(--red); }
.about__photo { --x: 40; --y: 58; width: calc(310 * var(--u)); height: calc(404 * var(--u)); }
.about__photo .photo-slot { border-radius: calc(18 * var(--u)); }
.about__title { --x: 20; --y: 530; --tf: 46; color: var(--red); }
.about__text { --x: 20; width: calc(350 * var(--u)); font-size: calc(17 * var(--u)); line-height: calc(26 / 17); }
.about__text--1 { --y: 606; }
.about__text--2 { --y: 758; }
.quotes { --x: 0; --y: 890; width: calc(390 * var(--u)); }
.quote { position: relative; width: calc(310 * var(--u)); height: calc(260 * var(--u)); border-radius: calc(20 * var(--u)); background: var(--mint); box-shadow: inset 0 0 0 calc(2.5 * var(--u)) var(--brown); }
.quote blockquote { position: absolute; left: calc(24 * var(--u)); top: calc(24 * var(--u)); width: calc(262 * var(--u)); font: 400 calc(20 * var(--u))/1.4 var(--font-display); }
.quote__src { position: absolute; left: calc(24 * var(--u)); top: calc(208 * var(--u)); font: 700 calc(16 * var(--u))/1.3 var(--font-text); }

/* BOOK A TABLE (contact) */
.book { --H: 1010; background-color: var(--mint); background-size: calc(65 * var(--u)) calc(65 * var(--u)); background-position: calc((100cqi - var(--W) * var(--u)) / 2) var(--stage-top);
  background-image: linear-gradient(var(--tile) 0 calc(2 * var(--u)), transparent 0), linear-gradient(90deg, var(--tile) 0 calc(2 * var(--u)), transparent 0); }
.book__title { --x: 20; --y: 52; --tf: 46; }
.book__intro { --x: 20; --y: 126; width: calc(350 * var(--u)); font-size: calc(17 * var(--u)); line-height: calc(26 / 17); }
.book__mail { --x: 20; --y: 266; color: var(--red-deep); font: 400 calc(18 * var(--u))/1.63 var(--font-display); text-decoration: none; white-space: nowrap; }
.book__mail:hover, .book__press a:hover { text-decoration: underline; }
.book__press { --x: 20; --y: 306; font: 600 calc(15 * var(--u))/1.33 var(--font-text); }
.book__press a { position: relative; text-decoration: none; }
.book__press a::after { content: ""; position: absolute; inset: calc(-12 * var(--u)) 0; }
.order { --x: 20; --y: 360; width: calc(350 * var(--u)); height: calc(616 * var(--u)); overflow: hidden; border-radius: calc(22 * var(--u)); background: var(--cream); box-shadow: inset 0 0 0 calc(3 * var(--u)) var(--brown); }
.order__title { height: calc(64 * var(--u)); padding: calc(12 * var(--u)) calc(24 * var(--u)) 0; background: var(--red); color: var(--cream); font: 400 calc(30 * var(--u))/1.2 var(--font-display); }
.form { position: absolute; left: calc(24 * var(--u)); top: calc(88 * var(--u)); width: calc(302 * var(--u)); display: grid; row-gap: calc(20 * var(--u)); }
.field label { display: block; margin-bottom: calc(4 * var(--u)); font: 700 calc(15 * var(--u))/1.33 var(--font-text); }
.field input, .field textarea { display: block; width: 100%; height: calc(50 * var(--u)); padding: 0 calc(14 * var(--u)); border: calc(2 * var(--u)) solid var(--brown); border-radius: calc(12 * var(--u));
  background: var(--white); font: 400 16px/1.4 var(--font-text); }
.field--big textarea { height: calc(100 * var(--u)); padding-top: calc(10 * var(--u)); resize: vertical; }
.form__send { width: calc(200 * var(--u)); height: calc(54 * var(--u)); margin-top: calc(2 * var(--u)); --bf: 17; }

/* FOOTER */
.footer { --H: 300; background-color: var(--brown); color: var(--cream); }
.footer__logo { --x: 20; --y: 48; font: 400 calc(40 * var(--u))/1.63 var(--font-display); white-space: nowrap; }
.footer__tag { --x: 20; --y: 104; color: var(--pink); font-size: calc(16 * var(--u)); line-height: 1.3; }
.footer__links { --x: 20; --y: 156; display: flex; gap: calc(22 * var(--u)); font: 600 calc(16 * var(--u))/1.3 var(--font-text); }
.footer__links a { display: block; text-decoration: none; padding: calc(12 * var(--u)) 0; margin: calc(-12 * var(--u)) 0; }
.footer__links a:hover { text-decoration: underline; }
.footer__copy { --x: 20; --y: 212; color: var(--muted); font-size: calc(14 * var(--u)); line-height: 1.35; }
.footer__floor { position: absolute; left: 0; right: 0; bottom: 0; height: calc(36 * var(--u)); background: url("../svg/m-checker-foot.svg") calc((100cqi - var(--W) * var(--u)) / 2) 0 / calc(60 * var(--u)) calc(72 * var(--u)) repeat-x; }

/* ---------- 6. Desktop layout (1440 frame). From 1024 px wide.
   Each section scales to fit the screen: as wide as the screen allows (up to 1440)
   and never taller than the screen, but never smaller than 60 % of the width scale. */
/* TOUCH AREA
   Small text links get an invisible area at least 26 px tall around them (WCAG target size).
   It only makes the clickable area bigger: nothing on screen moves. */
.book__mail::after { content: ""; position: absolute; left: 0; right: 0; top: min(0px, calc(50% - 13px)); bottom: min(0px, calc(50% - 13px)); }

@media (min-width: 1024px) {
  :root { --W: 1440; --nav-h-compact: 64px; --kw: calc(min(100cqi, 1440px) / 1440); }
  .sec, .topbar { --u: max(min(var(--kw), 100svh / var(--H)), var(--kw) * .6); }
  .sec { --sec-h: max(100svh, var(--H) * var(--u)); }

  /* menu */
  .topbar { --H: 900; }
  .topbar__stage { top: calc((max(100svh, 900 * var(--u)) - 900 * var(--u)) / 2); transition: top .3s var(--motion-ease); }
  .topbar.is-scrolled .topbar__stage { top: 0; }
  .logo { left: calc(80 * var(--u)); --ly: 34; --lf: 32; }
  .topbar.is-scrolled .logo { --ly: 11; --lf: 26; }
  .nav__toggle { display: none; }
  .nav__panel { position: static; width: auto; padding: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; translate: none; }
  .nav__links { position: absolute; left: calc(760 * var(--u)); top: calc(var(--ny, 42) * var(--u)); display: flex; gap: calc(40 * var(--u)); transition: top .3s var(--motion-ease); }
  .nav__links a { padding: calc(10 * var(--u)) 0; margin: calc(-10 * var(--u)) 0; font: 600 calc(18 * var(--u))/calc(24 / 18) var(--font-text); }
  .nav__book { position: absolute; left: calc(1223 * var(--u)); top: calc(var(--by, 34) * var(--u)); width: calc(137 * var(--u)); height: calc(43 * var(--u)); margin: 0; transition: top .3s var(--motion-ease); }
  .topbar.is-scrolled .nav__links { --ny: 20; }
  .topbar.is-scrolled .nav__book { --by: 10.5; }
  .btn { --bf: 16; }

  /* hero (the floor is part of the hero on desktop) */
  .hero { --H: 900; background-size: calc(90 * var(--u)) calc(90 * var(--u)); background-position: calc((100cqi - var(--W) * var(--u)) / 2) var(--stage-top); }
  .hero__floor { top: calc(var(--stage-top) + 722 * var(--u));
    background: linear-gradient(var(--white) 0 calc(5 * var(--u)), var(--counter) 0 calc(22 * var(--u)), transparent 0),
                url("../svg/checker.svg") calc((100cqi - var(--W) * var(--u)) / 2) calc(22 * var(--u)) / calc(120 * var(--u)) calc(104 * var(--u)) repeat; }
  .hero__title { --x: 80; --y: 150; width: calc(640 * var(--u)); font-size: calc(92 * var(--u)); line-height: calc(98 / 92); }
  .hero__intro { --x: 80; --y: 470; width: calc(540 * var(--u)); font-size: calc(20 * var(--u)); line-height: 1.6; }
  .hero__btns { --x: 80; --y: 600; display: flex; gap: calc(20 * var(--u)); width: auto; --bf: 18; }
  .hero__btns .btn { height: calc(60 * var(--u)); }
  .hero__btns .btn--red { width: calc(190 * var(--u)); }
  .hero__btns .btn--line { width: calc(230 * var(--u)); }
  .plate { --x: 762; --y: 88; width: calc(608 * var(--u)); height: calc(614 * var(--u)); }
  .plate__shadow { left: calc(8 * var(--u)); top: calc(14 * var(--u)); width: calc(600 * var(--u)); height: calc(600 * var(--u)); }
  .plate__dish { width: calc(600 * var(--u)); height: calc(600 * var(--u)); box-shadow: inset 0 0 0 calc(4 * var(--u)) var(--plate-edge); }
  .plate__ring { left: calc(38 * var(--u)); top: calc(38 * var(--u)); width: calc(524 * var(--u)); height: calc(524 * var(--u)); box-shadow: inset 0 0 0 calc(3 * var(--u)) var(--plate-edge); }
  .plate__photo { left: calc(75 * var(--u)); top: calc(75 * var(--u)); width: calc(450 * var(--u)); height: calc(450 * var(--u)); }
  .cherries { --x: 1210; --y: 110; width: calc(120 * var(--u)); }
  .badge { --x: 730; --y: 520; width: calc(150 * var(--u)); height: calc(150 * var(--u)); background: var(--red); box-shadow: inset 0 0 0 calc(5 * var(--u)) var(--cream); font-size: calc(24 * var(--u)); line-height: calc(26 / 24); }

  /* menu */
  .menu { --H: 900; }
  .sleeve { --x: 90; --y: 130; width: calc(460 * var(--u)); height: calc(460 * var(--u)); border-radius: calc(18 * var(--u)); box-shadow: inset 0 0 0 calc(4 * var(--u)) var(--brown); }
  .sleeve__photo { inset: calc(20 * var(--u)); }
  .record__title { --x: 80; --y: 640; font-size: calc(48 * var(--u)); }
  .record__text { --x: 80; --y: 708; width: calc(440 * var(--u)); font-size: calc(20 * var(--u)); line-height: 1.5; }
  .record__btn { --x: 80; --y: 792; width: calc(230 * var(--u)); height: calc(56 * var(--u)); --bf: 17; }
  .board { --x: 620; --y: 80; width: calc(740 * var(--u)); height: calc(740 * var(--u)); border-radius: calc(26 * var(--u)); }
  .board::before { inset: calc(18 * var(--u)); border-radius: calc(16 * var(--u)); }
  .board > * { left: calc(56 * var(--u)); }
  .board__title { top: calc(52 * var(--u)); font-size: calc(60 * var(--u)); }
  .board__intro { top: calc(140 * var(--u)); width: auto; font-size: calc(19 * var(--u)); line-height: 1.3; }
  .songs { top: calc(188 * var(--u)); width: calc(628 * var(--u)); }
  .song { grid-template-columns: auto 1fr auto; min-height: calc(90 * var(--u)); }
  .song__name { font-size: calc(28 * var(--u)); }
  .song__dots { display: block; grid-column: 2; height: calc(3 * var(--u)); margin: 0 calc(24 * var(--u)) 0 calc(16 * var(--u));
    background: radial-gradient(circle, var(--leader) calc(1.5 * var(--u)), transparent calc(1.7 * var(--u))) 0 50% / calc(11 * var(--u)) calc(3 * var(--u)) repeat-x; }
  .song__play { grid-column: 3; width: calc(80 * var(--u)); height: calc(40 * var(--u)); font-size: calc(15 * var(--u)); }
  .song__note { margin-top: calc(-6 * var(--u)); font-size: calc(16 * var(--u)); line-height: 1.3; width: auto; }

  /* hours */
  .hours { --H: 800; }
  .hours__title { --x: 80; --y: 84; --tf: 68; }
  .hours__intro { --x: 80; --y: 190; width: auto; font-size: max(18.7px, calc(21 * var(--u))); line-height: 1.33; }
  .checks { --x: 80; --y: 250; width: calc(1280 * var(--u)); padding: 0; overflow: visible; gap: calc(24 * var(--u)); }
  .check { width: calc(302 * var(--u)); background-image: url("../svg/check.svg"); }
  .check__note, .check__btn { width: calc(246 * var(--u)); }
  .check__btn { top: calc(322 * var(--u)); }
  .check .tag { top: calc(270 * var(--u)); }
  .hours__all { --x: 80; --y: 700; height: calc(56 * var(--u)); --bf: 17; }

  /* to go */
  .togo { --H: 920; }
  .togo__title { --x: 80; --y: 84; --tf: 68; }
  .togo__intro { --x: 80; --y: 194; width: auto; font-size: calc(21 * var(--u)); line-height: 1.33; }
  .products { --x: 80; --y: 270; width: calc(1280 * var(--u)); padding: 0; overflow: visible; gap: calc(24 * var(--u)); }
  .product { width: calc(302 * var(--u)); }
  .product__photo { width: calc(254 * var(--u)); height: calc(254 * var(--u)); }
  .product__price { left: calc(214 * var(--u)); top: calc(216 * var(--u)); }
  .product__name, .product__note, .product__btn { width: calc(254 * var(--u)); }
  .product__name { top: calc(308 * var(--u)); }
  .product__note { top: calc(342 * var(--u)); }
  .togo__all { --x: 80; --y: 840; --bf: 17; }

  /* about */
  .about { --H: 800; }
  .booth { --x: 100; --y: 90; width: calc(480 * var(--u)); height: calc(620 * var(--u)); border-radius: calc(32 * var(--u)); }
  .about__photo { --x: 124; --y: 110; width: calc(440 * var(--u)); height: calc(570 * var(--u)); }
  .about__photo .photo-slot { border-radius: calc(20 * var(--u)); }
  .about__title { --x: 700; --y: 90; --tf: 68; }
  .about__text { --x: 700; width: calc(640 * var(--u)); font-size: calc(19 * var(--u)); line-height: calc(30 / 19); }
  .about__text--1 { --y: 208; }
  .about__text--2 { --y: 328; }
  .quotes { --x: 700; --y: 450; width: calc(640 * var(--u)); padding: 0; overflow: visible; }
  .quote { width: calc(312 * var(--u)); }
  .quote blockquote { width: calc(264 * var(--u)); }

  /* book a table */
  /* booking and the footer share the last screen */
  .book { --H: 1100; --sec-h: calc(max(100svh, 1100 * var(--u)) - 300 * var(--u)); --stage-top: calc((var(--sec-h) - 800 * var(--u)) / 2); background-size: calc(90 * var(--u)) calc(90 * var(--u)); background-position: calc((100cqi - var(--W) * var(--u)) / 2) var(--stage-top); }
  .book__title { --x: 80; --y: 110; --tf: 68; }
  .book__intro { --x: 80; --y: 228; width: calc(480 * var(--u)); font-size: calc(20 * var(--u)); line-height: 1.6; }
  .book__mail { --x: 80; --y: 392; color: var(--red); font-size: calc(30 * var(--u)); }
  .book__press { --x: 80; --y: 442; font-size: calc(18 * var(--u)); }
  .book__press a::after { top: calc(-1 * var(--u)); bottom: min(calc(-12 * var(--u)), calc(100% + var(--u) - 26px)); } /* grows down, not over the email above */
  .order { --x: 700; --y: 50; width: calc(660 * var(--u)); height: calc(700 * var(--u)); border-radius: calc(24 * var(--u)); }
  .order__title { height: calc(76 * var(--u)); padding: calc(13 * var(--u)) calc(32 * var(--u)) 0; font-size: calc(36 * var(--u)); }
  .form { left: calc(32 * var(--u)); top: calc(104 * var(--u)); width: calc(596 * var(--u)); row-gap: calc(24 * var(--u)); }
  .field label { font-size: calc(16 * var(--u)); margin-bottom: calc(7 * var(--u)); }
  .field input, .field textarea { height: calc(52 * var(--u)); font-size: calc(17 * var(--u)); }
  .field--big textarea { height: calc(110 * var(--u)); }
  .form__send { width: calc(220 * var(--u)); height: calc(56 * var(--u)); margin-top: calc(4 * var(--u)); --bf: 18; }

  /* footer */
  .book .stage { height: calc(800 * var(--u)); }
  .footer { --H: 1100; --sec-h: calc(300 * var(--u)); --stage-top: 0px; }
  .footer .stage { height: calc(300 * var(--u)); }
  .footer__logo { --x: 80; --y: 70; font-size: calc(48 * var(--u)); }
  .footer__tag { --x: 80; --y: 142; font-size: calc(18 * var(--u)); }
  .footer__links { --x: 760; --y: 84; gap: calc(36 * var(--u)); font-size: calc(18 * var(--u)); }
  .footer__copy { --x: 80; --y: 214; font-size: calc(15 * var(--u)); }
  .footer__floor { height: calc(24 * var(--u)); background-image: url("../svg/checker-foot.svg"); background-size: calc(48 * var(--u)) calc(48 * var(--u)); background-position: calc((100cqi - var(--W) * var(--u)) / 2) 0; }
}

/* ---------- 7. Animations (only with the "motion" class, see index.html).
   Nothing starts hidden until main.js adds "dn-reveal", so the page always
   shows up complete without JavaScript. To turn them all off: class="no-motion" on <html>. */
.motion.dn-reveal [data-reveal] { transition: opacity var(--motion-dur) var(--motion-ease), translate var(--motion-dur) var(--motion-ease), scale var(--motion-dur) var(--motion-bounce), rotate var(--motion-dur) var(--motion-ease);
  transition-delay: calc(var(--i, 0) * var(--motion-step)); }
/* blocks rise a little */
.motion.dn-reveal [data-reveal="rise"]:not(.is-in) { opacity: 0; translate: 0 calc(var(--motion-rise) * var(--u)); }
/* the plate slides onto the counter with a turn */
.motion.dn-reveal [data-reveal="plate"]:not(.is-in) { opacity: 0; translate: calc(80 * var(--u)) 0; rotate: var(--motion-plate); }
.motion.dn-reveal [data-reveal="plate"] { transform-origin: 50% 50%; }
/* the cherries fall onto the plate */
.motion.dn-reveal [data-reveal="drop"] { transition-timing-function: var(--motion-bounce); transition-delay: calc(var(--motion-dur) * .6); }
.motion.dn-reveal [data-reveal="drop"]:not(.is-in) { opacity: 0; translate: 0 calc(var(--motion-drop) * -1 * var(--u)); }
/* badge and price stickers pop on */
.motion.dn-reveal [data-reveal="pop"] { transition-delay: calc(var(--motion-dur) * .5 + var(--i, 0) * var(--motion-step)); }
.motion.dn-reveal [data-reveal="pop"]:not(.is-in) { opacity: 0; scale: .4; }
.motion.dn-reveal .product__price[data-reveal="pop"]:not(.is-in) { translate: 30% 30%; }
.motion.dn-reveal .badge[data-reveal="pop"]:not(.is-in) { translate: 30% 30%; }
/* used by main.js: "dn-still" jumps without animating, "dn-measure" puts every piece in its final place */
.dn-still *, .dn-still *::before, .dn-still *::after { transition: none !important; }
.dn-measure [data-reveal], .dn-measure [data-reveal] * { opacity: 1 !important; translate: none !important; scale: none !important; }
.dn-measure [data-reveal="plate"] { rotate: none !important; }

/* DEMO ONLY: note after sending the form, template and photo credits under the footer */
.demo-note { margin: 0; font: 700 calc(14 * var(--u))/1.3 var(--font-text); color: var(--red-deep); }
.demo-credit { background: var(--brown); color: var(--cream); padding: 22px 20px 28px; font: 400 13px/1.5 var(--font-text); }
.demo-credit p { width: min(100%, 390px); margin: 0 auto 6px; opacity: .85; }
@media (min-width: 1024px) { .demo-note { font-size: calc(16 * var(--u)); } .demo-credit { padding: 24px 56px 32px; font-size: 14px; } .demo-credit p { width: min(100%, 1328px); } }
