/* Restaurant Technology Report 2026: base styles.
   Colour sits on the data marks inside the chart images only; the page itself is black, grey and white. */

:root {
  --ink: #15171a;
  --muted: #5d636d;
  --rule: #d9dce1;
  --bg: #ffffff;
  --button-bg: #15171a;
  --button-ink: #ffffff;
  --focus: #15171a;
  --measure: 46rem;   /* prose width */
  --wide: 72rem;      /* charts, tiles, hero */
  --gutter: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.wide { max-width: var(--wide); }

.skip {
  position: absolute; left: var(--gutter); top: -3rem;
  background: var(--bg); padding: 0.5rem 0.75rem; border: 1px solid var(--rule);
}
.skip:focus { top: 0.5rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

h1, h2, h3 { line-height: 1.2; font-weight: 650; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; }

/* header and footer */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { max-width: var(--wide); padding-top: 1rem; padding-bottom: 1rem; }
.cobrand { display: flex; align-items: center; gap: 0.75rem; margin: 0; flex-wrap: wrap; }
.cobrand .logo-pv { width: auto; height: 22px; }
.cobrand .logo-dm { width: auto; height: 16px; }
.cobrand .x { color: var(--muted); font-size: 0.9rem; }

.site-footer { border-top: 1px solid var(--rule); margin-top: 3rem; padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
.site-footer .cobrand { margin-bottom: 1rem; }

/* hero */
.hero { padding: 2.5rem 0 1.5rem; }
.kicker { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.hero-img { width: 100%; aspect-ratio: 2048 / 672; object-fit: cover; }

/* sections */
section { padding: 2rem 0; }
.intro { padding-top: 2.5rem; }
.chapter { border-top: 1px solid var(--rule); padding-top: 3rem; }

.button {
  display: inline-block; background: var(--button-bg); color: var(--button-ink);
  padding: 0.7rem 1.1rem; text-decoration: none; font-weight: 600; border-radius: 2px;
}
.button:hover { text-decoration: underline; }

/* chapter tiles */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.25rem; }
.tile a { display: block; text-decoration: none; height: 100%; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 0.75rem; }
.tile h3 { margin-bottom: 0.35rem; }
.tile a:hover h3 { text-decoration: underline; }
.tile-link { color: var(--muted); font-size: 0.9rem; }

/* film */
.film-inner, .film-inline { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.wrap.film-inner { max-width: var(--measure); }
.film-inline { margin: 1.5rem 0; }
.film-poster { position: relative; display: block; }
.film-poster img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.film-poster.small { max-width: 12rem; }
.play {
  position: absolute; left: 50%; top: 50%; width: 3.5rem; height: 3.5rem; margin: -1.75rem 0 0 -1.75rem;
  border-radius: 50%; background: rgba(0, 0, 0, 0.6);
}
.play::after {
  content: ""; position: absolute; left: 1.35rem; top: 1.05rem;
  border-style: solid; border-width: 0.7rem 0 0.7rem 1.1rem; border-color: transparent transparent transparent #fff;
}
.film-title { font-weight: 650; font-size: 1.15rem; margin-bottom: 0.75rem; }
/* the two films side by side under the podcast (desktop); stacked on phones */
.film-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 24rem)); justify-content: center; gap: 2rem 3rem; }
.film-card .film-poster { margin-bottom: 1rem; }
.film-links { font-size: 0.9rem; color: var(--muted); }

dialog#film-dialog {
  padding: 0; border: 0; background: #000; color: #fff;
  width: min(92vw, 34rem); max-height: 94vh; overflow: hidden;
}
dialog#film-dialog::backdrop { background: rgba(0, 0, 0, 0.75); }
.dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem 0.75rem; }
.film-dialog-title { margin: 0; font-size: 0.95rem; }
.film-close { background: transparent; color: #fff; border: 1px solid #fff; padding: 0.35rem 0.75rem; font: inherit; cursor: pointer; }
dialog#film-dialog video { width: 100%; max-height: calc(94vh - 3.5rem); background: #000; }

/* stat callouts: plain number plus caption, kept modest */
.stats {
  list-style: none; margin: 2rem 0 0.5rem; padding: 1.25rem 0 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.25rem 2rem;
}
.stat-num { display: block; font-size: 1.6rem; font-weight: 650; line-height: 1.2; }
.stat-label { display: block; color: var(--muted); font-size: 0.95rem; }
.stat-source { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.3rem; }
.source { color: var(--muted); font-size: 0.8rem; line-height: 1.45; }

/* charts */
.chart { margin: 2rem 0; }
.chart img { width: 100%; border: 1px solid var(--rule); }
.chart figcaption { margin-top: 0.6rem; font-size: 0.9rem; display: grid; gap: 0.25rem; }
.cap-title { font-weight: 600; }
.chart figcaption a { font-size: 0.85rem; }
.chart-img { display: block; }
.chart-summary { display: none; }

/* sub-features with bold heads */
.features { padding-left: 1.2rem; margin: 1.5rem 0; }
.features li { margin-bottom: 1rem; }
.features.regions a { white-space: nowrap; font-size: 0.9rem; }

/* placeholder for content still to come (neutral dashed outline, no fill) */
.placeholder { border: 1px dashed var(--muted); padding: 1.25rem; margin: 1.5rem 0; color: var(--muted); }
.placeholder p { margin: 0; }

/* quotes */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 1rem; font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.5; }
.quote figcaption { display: flex; align-items: center; gap: 0.9rem; }
.quote figcaption img { width: 3.5rem; height: 3.5rem; object-fit: cover; object-position: center top; border-radius: 50%; }
.who { display: flex; flex-direction: column; }
.name { font-weight: 650; }
.role { color: var(--muted); font-size: 0.95rem; }

/* about */
.about { border-top: 1px solid var(--rule); }
.partners .wrap { max-width: var(--wide); }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; }
.partner p { font-size: 0.98rem; }

.alerts { border-top: 1px solid var(--rule); }

@media (max-width: 40rem) {
  .film-inner, .film-inline { grid-template-columns: 1fr; }
  .film-pair { grid-template-columns: 1fr; justify-content: start; gap: 2rem; }
  .film-poster, .film-poster.small { max-width: 14rem; }
  .features.regions a { white-space: normal; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .tile h3 { font-size: 1rem; }
  .chart-summary { display: block; font-size: 0.95rem; margin: 0 0 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
