/* Restaurants: Forno Ada's own place (Matt, 2026-11-28).
   The page sells an ordering site that carries the restaurant's identity, so
   it is dressed in the demonstration restaurant's colours rather than in
   Appro's blue: brick from Forno Ada's header, its cream paper, its dark warm
   ink and a Georgia display face like its headings. Light, still, no gradient
   text and no particle field (restaurants.html carries no canvas).

   Loaded after styles.css by restaurants.html and its translations only, and
   every rule is scoped to html[data-page="restaurants"], so no other page can
   change. The header keeps glass.css and its markup; only its tint and
   colours follow the page, as an application universe does. No url(), no
   @font-face, no backdrop-filter here.

   Contrast, WCAG 2.1 (computed): ink on paper 13.6, muted on paper 7.3,
   brick on paper 8.6, paper on brick 8.6, blush on brick 6.6. */
html[data-page="restaurants"] {
  --paper: #F8F5EC;
  --card: #FFFDF6;
  --sand: #EFE6D6;
  --brick: #7A2E1F;
  --brick-deep: #5E2217;
  --ember: #A63F22;
  --wood: #9A7451;
  --blush: #F3D2B6;
  --muted: #56504A;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  /* Every phone on the page is drawn at this one width; see the mockups below. */
  --resto-phone: 17.5rem;
  /* The shell's variables, remapped, so anything that reads them (focus
     rings, hovers, borders, the language menu) follows the page. */
  --ink: #1D2A26;
  --dim: var(--muted);
  --bg: var(--paper);
  --bg-2: var(--card);
  --line: #E2D8C6;
  --blue: var(--brick);
  --cyan: var(--brick);
  color-scheme: light;
  scroll-behavior: auto;
}
html[data-page="restaurants"] body { background: var(--paper); color: var(--ink); }
html[data-page="restaurants"] ::selection { background: var(--blush); color: var(--ink); }

/* type */
html[data-page="restaurants"] :is(h1, h2, h3) { font-family: var(--serif); font-weight: 700; letter-spacing: -.015em; }
html[data-page="restaurants"] h1 { line-height: 1.02; }
html[data-page="restaurants"] h2 { line-height: 1.06; }
/* Emphasis is the serif's own italic in brick: one colour, never a painted
   gradient, so colourScroll() finds nothing to move. */
html[data-page="restaurants"] :is(h1, h2, h3) em { font-style: italic; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--brick); }

/* header: glass.css untouched, tinted with the paper. At the shell's 8% tint
   the dark links all but vanished while the brick panel or a phone's red
   header scrolled under the bar (1.0 to 1.9:1), so the bar carries a paper
   scrim inside its own glass, the treatment styles.css gives a page with a
   picture under its header. At 85% paper the links keep 5.1:1 even over
   black. */
html[data-page="restaurants"] .glass-fade { --glass: var(--paper);
  background: linear-gradient(to bottom, #F8F5ECd9 0%, #F8F5ECd9 calc(100% - 18px), #F8F5EC80 calc(100% - 9px), transparent 100%); }
html[data-page="restaurants"] .nav > *:not(.glass-fade) { text-shadow: none; }
html[data-page="restaurants"] .brand-app { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--brick); }
html[data-page="restaurants"] .nav nav a { color: var(--muted); }
html[data-page="restaurants"] .nav nav a:hover, html[data-page="restaurants"] .nav nav a[aria-current] { color: var(--ink); }
html[data-page="restaurants"] .nav nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--brick); text-decoration-thickness: 2px; text-underline-offset: .45em; }
html[data-page="restaurants"] .nav-cta { background: var(--brick); color: var(--paper); border-radius: .55rem; transition: background-color .2s ease; }
html[data-page="restaurants"] .nav-cta:hover { background: var(--brick-deep); filter: none; transform: none; }
html[data-page="restaurants"] .nav-burger { border-color: #1D2A2633; background: var(--card); }
html[data-page="restaurants"] .lang summary:hover, html[data-page="restaurants"] .lang[open] summary { border-color: #1D2A2633; }
html[data-page="restaurants"] .lang-menu { background: var(--card); box-shadow: 0 1rem 2rem #3a2a1a24; }
html[data-page="restaurants"] .lang-menu a:hover { background: var(--sand); }
html[data-page="restaurants"] .lang-menu a[aria-current] { background: var(--sand); }
/* The language codes are faded to .65 in the shell; on the card that is 3.2:1. */
html[data-page="restaurants"] .lang-menu a span { opacity: 1; }
html[data-page="restaurants"] .lang-hint { background: var(--sand); }
html[data-page="restaurants"] .lang-hint a { text-decoration-color: #1D2A2666; }
html[data-page="restaurants"] .lang-hint button:hover { background: #1D2A2612; }
@media (max-width: 900px) {
  html[data-page="restaurants"] .nav.has-burger nav { background: var(--card); box-shadow: 0 1.2rem 2.4rem #3a2a1a2e; }
  html[data-page="restaurants"] .nav.has-burger nav a[aria-current] { background: var(--sand); text-decoration: none; }
}

/* calls to action */
html[data-page="restaurants"] .cta,
html[data-page="restaurants"] .fest-actions .cta:not(.ghost) { border-radius: .6rem; background: var(--brick); color: var(--paper); transition: background-color .2s ease; }
html[data-page="restaurants"] .cta:hover,
html[data-page="restaurants"] .fest-actions .cta:not(.ghost):hover { background: var(--brick-deep); filter: none; transform: none; }

/* hero: the copy on paper, the oven photograph under an arch like Forno Ada's
   logo, and the phone standing in front of it. The photograph leaves the
   festival film's full-bleed, darkened cover. */
html[data-page="restaurants"] .resto-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); align-items: center; min-height: 0; padding-bottom: clamp(3rem, 6vw, 5rem); background: var(--paper); }
html[data-page="restaurants"] .resto-hero::after { content: none; }
html[data-page="restaurants"] .resto-film { position: relative; z-index: 0; inset: auto; grid-column: 2; grid-row: 1; justify-self: end; align-self: start;
  width: min(100%, 24rem); height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%;
  border-radius: 50% 50% 1.25rem 1.25rem / 40% 40% 1.25rem 1.25rem; filter: none; box-shadow: 0 1.5rem 3rem #4a2e1a2e; }
html[data-page="restaurants"] .resto-hero .fest-hero-copy { grid-column: 1; grid-row: 1; }
html[data-page="restaurants"] .resto-hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.3rem); text-wrap: balance; }
html[data-page="restaurants"] .resto-hero .fest-console-kicker { color: var(--brick); }
html[data-page="restaurants"] .resto-hero .fest-hero-copy .lede { color: var(--ink); }
html[data-page="restaurants"] .resto-hero .fest-hero-plan { padding-left: .9rem; border-left: 3px solid var(--wood); color: var(--muted); }
html[data-page="restaurants"] .resto-hero .fest-hero-preview { grid-column: 2; grid-row: 1; justify-self: start; align-self: end; width: auto; max-width: 100%; margin-top: 9rem; }
html[data-page="restaurants"] .resto-hero .fest-hero-preview figcaption { color: var(--muted); }

/* the mockups: one width for every phone, at every breakpoint */
html[data-page="restaurants"] .resto-hero .fest-hero-preview img,
html[data-page="restaurants"] .fest-shot:not(.resto-shot-wide) > img { width: var(--resto-phone); max-width: 100%; height: auto; justify-self: center; filter: drop-shadow(0 1.4rem 2rem #4a2e1a3d); }
html[data-page="restaurants"] .fest-shot.resto-shot-wide > img { filter: drop-shadow(0 1.4rem 2rem #4a2e1a33); }

/* The enlarged capture (site.js) is a dark dialog in the shell whose close
   button reads var(--ink): remapped dark here, it became dark on dark. */
html[data-page="restaurants"] .festival-screen-lightbox { border-color: var(--line); background: var(--card); box-shadow: 0 2rem 5rem #1D2A2659; }
html[data-page="restaurants"] .festival-screen-lightbox::backdrop { background: #1D2A26e6; }
html[data-page="restaurants"] .festival-screen-lightbox-close { border-color: var(--wood); background: var(--card); color: var(--ink); }
html[data-page="restaurants"] .festival-screen-lightbox-close:hover { border-color: var(--brick); color: var(--brick); }

/* "under your own name": the one brick panel, Forno Ada's header colour */
html[data-page="restaurants"] .resto-own { background: var(--brick); color: var(--paper); }
html[data-page="restaurants"] .resto-own h2 { color: var(--paper); }
html[data-page="restaurants"] .resto-own h2 em { color: var(--blush); }
html[data-page="restaurants"] .resto-own p { color: #EBD9C8; }
html[data-page="restaurants"] .resto-own p + p { margin-top: 1rem; }

/* captures and capabilities */
html[data-page="restaurants"] .fest-shot h3 { font-weight: 700; letter-spacing: -.01em; }
html[data-page="restaurants"] .fest-group { border-color: var(--line); border-radius: 1rem; background: var(--card); }
html[data-page="restaurants"] .fest-group li { color: var(--ink); }
html[data-page="restaurants"] .fest-group li::before { border-radius: 2px; background: var(--ember); }
html[data-page="restaurants"] .fest-demo { border-left: 3px solid var(--wood); }

/* The price (Matt, 2026-11-28): one card on the paper, after what the product
   does and before the Forno Ada note. Card, not sand, so it stays apart from
   the email band; the amount in the serif and brick, the set-up note in ink
   beside it. Contrast (computed): brick on card 9.2, ink on card 14.6. */
html[data-page="restaurants"] .resto-price { max-width: 46rem; margin: 0 clamp(1.2rem, 5vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3.2vw, 2.4rem) clamp(1.4rem, 3.6vw, 2.8rem); border: 1px solid var(--line); border-top: 4px solid var(--brick);
  border-radius: 1rem; background: var(--card); box-shadow: 0 1rem 2rem #4a2e1a14; }
html[data-page="restaurants"] .resto-price h2 { margin: 0 0 .6rem; color: var(--brick); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; text-wrap: balance; }
html[data-page="restaurants"] .resto-price p { max-width: 38rem; margin: 0; color: var(--ink); font-size: clamp(1rem, 1.4vw, 1.1rem); line-height: 1.55; }

/* the email band, on the restaurant's sand */
html[data-page="restaurants"] .contact { margin: clamp(1rem, 3vw, 2rem) clamp(1.2rem, 5vw, 6rem) clamp(3rem, 6vw, 5rem); padding: clamp(2.5rem, 6vw, 5rem) clamp(1.2rem, 5vw, 5rem); border-radius: 1.25rem; background: var(--sand); }
html[data-page="restaurants"] .mail { color: var(--brick); font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
html[data-page="restaurants"] .mail:hover { color: var(--brick-deep); }

/* footer: same links and controls, the page's colours */
html[data-page="restaurants"] .foot-line { color: var(--muted); }
html[data-page="restaurants"] .foot-line b { color: var(--ink); }
html[data-page="restaurants"] .motion-toggle .switch { border-color: var(--wood); background: var(--card); }
html[data-page="restaurants"] .motion-toggle .switch::after { background: var(--muted); }
html[data-page="restaurants"] .motion-toggle[aria-checked="true"] .switch { border-color: transparent; background: var(--brick); }
html[data-page="restaurants"] .motion-toggle[aria-checked="true"] .switch::after { background: var(--paper); }

/* Still: nothing on this page moves on its own or slides in. */
html[data-page="restaurants"] .section-head { opacity: 1; transform: none; transition: none; }

/* Stacked below the width where the copy and the arch fit side by side: the
   copy, then the arch, then the phone standing over the arch's foot. */
@media (max-width: 1000px) {
  html[data-page="restaurants"] .resto-hero { grid-template-columns: minmax(0, 1fr); }
  html[data-page="restaurants"] .resto-film { grid-column: 1; grid-row: 2; justify-self: center; width: min(100%, 34rem); aspect-ratio: 3 / 2; border-radius: 50% 50% 1.25rem 1.25rem / 30% 30% 1.25rem 1.25rem; }
  html[data-page="restaurants"] .resto-hero .fest-hero-preview { grid-column: 1; grid-row: 3; justify-self: center; margin-top: -7rem; }
  /* The iPad's 38rem column left the caption beside it a sliver here, and its
     words spilled past the screen edge between 761 and 770 px: the iPad
     stacks over its caption instead, as it already did below 760. */
  html[data-page="restaurants"] .fest-shot.resto-shot-wide,
  html[data-page="restaurants"] .fest-shot.resto-shot-wide:nth-child(even) { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  html[data-page="restaurants"] .fest-shot.resto-shot-wide > img { grid-column: 1; grid-row: 1; max-width: min(100%, 38rem); }
  html[data-page="restaurants"] .fest-shot.resto-shot-wide > figcaption { grid-column: 1; grid-row: 2; width: min(100%, 38rem); justify-self: center; }
}
@media (max-width: 760px) {
  html[data-page="restaurants"] { --resto-phone: 15rem; }
  html[data-page="restaurants"] .resto-hero .fest-hero-preview { max-width: 100%; }
}
