/* Pizzeria Chez Vincent, Montpellier.
   Treatment A, layered physical. Palette sampled by Lens from the restaurant's own
   photographs: walls #F4F2EE, banquette leather and chairs #1A1818, stone floor #C6C0AE,
   wood-fired oven flame #E87820 (the one accent, reserved for things you tap), and the
   acid-green placemat #C8E000 used exactly once as a decorative rule. */

/* ---------- fonts, self-hosted, latin subset only ---------- */
@font-face {
  font-family: "Lato";
  src: url("fonts/lato-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("fonts/lato-900.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Dancing Script";
  src: url("fonts/dancing-script-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --paper: #F4F2EE;
  --ink: #1A1818;
  --stone: #C6C0AE;
  --muted: #5A5148;          /* warm grey, leans to the flame hue. 6.8:1 on paper */
  --flame: #E87820;          /* oven flame. Fill only, never text on light */
  --flame-deep: #A34608;     /* the same accent, darkened for text on paper. 5.6:1 */
  --acid: #C8E000;           /* placemat green. Decorative, one use */
  --line: #DCD7CE;

  --sans: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --script: 'Dancing Script', 'Segoe Script', cursive;

  --fs-display: clamp(2.05rem, 7.2vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 4.4vw, 2.3rem);
  --fs-h3: 1.15rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-label: 0.75rem;

  --s0: 0.25rem;
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 2rem;
  --s4: 4rem;

  --pad: clamp(1.25rem, 4.5vw, 3rem);
  --wide: 74rem;
  --prose: 34rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
}

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

h1, h2, h3 { font-weight: 900; line-height: 1.06; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: 0.01em; }
p { margin: 0; }

a { color: inherit; }

.nums { font-variant-numeric: tabular-nums; }

.script {
  font-family: var(--script);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
}

.eyebrow, .label {
  display: block;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--s1);
}

:focus-visible { outline: 3px solid var(--flame-deep); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  font-weight: 900;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn--accent { background: var(--flame); color: var(--ink); }        /* 5.9:1 */
.btn--accent:hover { background: #FF8C2E; transform: translateY(-1px); }
.btn--ghost { border-color: var(--stone); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); transform: translateY(-1px); }

/* ---------- masthead ---------- */
.masthead {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--pad);
  max-width: var(--wide);
  margin: 0 auto;
}
.masthead__mark { display: block; margin-right: auto; }
.masthead__mark img { width: 168px; height: auto; }
.masthead__nav { display: none; gap: var(--s3); }
.masthead__nav a {
  text-decoration: none;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--s1) 0;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms ease;
}
.masthead__nav a:hover { border-bottom-color: var(--flame-deep); }
.masthead__tel { padding-inline: 1rem; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr; }
.hero__shot { grid-area: 1 / 1; margin: 0; }
.hero__shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(1.04) contrast(1.02);
}
.hero__seam {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: end;
  width: min(38%, 190px);
  margin: 0;
  transform: translate(calc(-1 * var(--pad)), 28%) rotate(-2.5deg);
  border: 7px solid var(--paper);
  box-shadow: 0 12px 28px rgba(26, 24, 24, 0.32);
}
.hero__seam img { aspect-ratio: 4 / 5; object-fit: cover; }

.hero__panel {
  grid-area: 2 / 1;
  background: var(--ink);
  color: var(--paper);
  padding: 4.25rem var(--pad) var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  animation: rise 380ms ease-out both;
}
/* Transform only, deliberately: a fade would leave a window in which the hours and
   the phone number are half transparent, which is the one thing on this page that
   must be readable the instant it paints. */
@keyframes rise {
  from { transform: translateY(12px); }
  to   { transform: none; }
}
/* Visual order puts the hours and the call button above the fold on a 390px phone;
   the lede follows them. Reading order in the markup is unchanged, and the only
   focusable items here (the two buttons) keep their relative order. */
.hero__panel .script   { order: 1; }
.hero__panel h1        { order: 2; }
.hero__panel .hero__hours   { order: 3; }
.hero__panel .hero__actions { order: 4; }
.hero__panel .hero__lede    { order: 5; }
.hero__panel .hero__note    { order: 6; }
.hero__panel > .script {
  color: var(--flame);
  margin-bottom: calc(-1 * var(--s1));
  position: relative;
  align-self: start;
}
.hero__panel > .script::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin-top: var(--s0);
  background: var(--acid);
}
.hero__panel h1 { max-width: 22ch; }
.hero__lede { max-width: var(--prose); color: var(--stone); }
.hero__hours {
  max-width: var(--prose);
  border-top: 1px solid rgba(244, 242, 238, 0.22);
  border-bottom: 1px solid rgba(244, 242, 238, 0.22);
  padding: var(--s2) 0;
  font-weight: 900;
}
.hero__hours .label { color: var(--stone); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
/* The two hero calls to action sat exactly on the 44px minimum, which browser chrome
   eats into on a phone. 50px gives them real clearance rather than a passing mark. */
.hero__actions .btn { min-height: 50px; padding-inline: 1.35rem; }
.hero__note { font-size: var(--fs-small); color: var(--stone); max-width: var(--prose); }

/* ---------- la maison ---------- */
.maison {
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--s4) var(--pad);
  display: grid;
  gap: var(--s3);
}
.maison__text { display: grid; gap: var(--s2); max-width: var(--prose); }
.maison__text h2 { margin-bottom: var(--s1); }
.ticks { list-style: none; margin: var(--s1) 0 0; padding: 0; display: grid; gap: var(--s1); }
.ticks li { padding-left: 1.4rem; position: relative; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.6rem; height: 0.6rem;
  background: var(--flame-deep);
}
.maison__shot { margin: 0; transform: rotate(1.5deg); }
.maison__shot img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 8px solid #fff;
  box-shadow: 0 14px 30px rgba(26, 24, 24, 0.16);
}
figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: var(--s2); }

/* ---------- la carte ---------- */
.carte {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s4) 0;
}
.carte__head, .carte__cols {
  max-width: var(--wide);
  margin: 0 auto;
  padding-inline: var(--pad);
}
.carte .eyebrow { color: var(--stone); }
.carte__intro { max-width: var(--prose); color: var(--stone); margin-top: var(--s2); }
.carte__cols { margin-top: var(--s3); display: grid; gap: var(--s4); }

.menu h3 {
  margin-top: var(--s3);
  padding-bottom: var(--s1);
  border-bottom: 2px solid var(--flame);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.menu h3:first-child { margin-top: 0; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(244, 242, 238, 0.14);
}
.menu__name { font-weight: 900; }
.menu__name em {
  display: inline-block;
  margin-left: var(--s1);
  padding: 0.1rem 0.4rem;
  background: var(--flame);
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}
.menu__desc { display: block; font-weight: 400; font-size: var(--fs-small); color: var(--stone); }
.menu__price { white-space: nowrap; font-weight: 900; }
.carte__hand { color: var(--flame); margin-top: var(--s3); }

.plates { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); align-content: start; }
.plates figure { margin: 0; }
.plates figcaption { color: var(--stone); margin-top: var(--s1); font-size: 0.82rem; }
.plates img { aspect-ratio: 4 / 5; object-fit: cover; }
.plates__big { grid-column: 1 / -1; }
.plates__big img { aspect-ratio: 4 / 3; object-position: 50% 55%; }

/* ---------- nous trouver ---------- */
.trouver { max-width: var(--wide); margin: 0 auto; padding: var(--s4) var(--pad); }
.trouver__grid {
  margin-top: var(--s3);
  display: grid;
  gap: var(--s2);
  grid-template-columns: 1fr;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: var(--s3) var(--s2);
  display: grid;
  gap: var(--s2);
  align-content: start;
}
.hours { margin: 0; display: grid; gap: var(--s2); }
.hours div { display: flex; justify-content: space-between; gap: var(--s2); }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 900; text-align: right; }
.card__foot { font-size: var(--fs-small); color: var(--muted); }
.card address { font-style: normal; line-height: 1.65; }
.card__links { display: flex; flex-direction: column; gap: var(--s1); align-items: start; }
.card__links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid var(--flame);
  transition: border-color 160ms ease, color 160ms ease;
}
.card__links a:hover { color: var(--flame-deep); border-bottom-color: var(--flame-deep); }
.facts { margin: 0; padding-left: 1.1rem; display: grid; gap: var(--s1); font-size: var(--fs-small); }
.card--social { background: var(--stone); border-color: #B4AD99; }
.trouver__cta { margin-top: var(--s3); }

/* ---------- footer ---------- */
.foot {
  background: var(--ink);
  color: var(--stone);
  padding: var(--s3) var(--pad);
  display: grid;
  gap: var(--s1);
  font-size: var(--fs-small);
}
/* The name is set in the script face wherever it appears as a name rather than as
   running text: the header lockup (logo.svg) and here. The operator asked twice for
   the name to carry more curve, and a hard sans-serif signature under a script mark
   was the other half of that mismatch. */
.foot__name {
  font-family: var(--script);
  font-weight: 700;
  color: var(--paper);
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.foot a { color: var(--paper); text-decoration-color: var(--flame); text-underline-offset: 3px; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s1); }
.foot__links a { min-height: 44px; display: inline-flex; align-items: center; }
/* Any phone number anywhere on the site is a thumb target, not a line of text. This
   catches the one in both footers and the one in the legal page's editor block, which
   rendered 21px tall. */
.foot a[href^="tel:"],
.legal dd a[href^="tel:"] {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-right: var(--s1);
}

/* ---------- legal page ---------- */
.legal { max-width: var(--prose); margin: 0 auto; padding: var(--s3) var(--pad) var(--s4); }
.legal h1 { font-size: var(--fs-h2); margin-bottom: var(--s3); }
.legal h2 { font-size: var(--fs-h3); margin-top: var(--s3); }
.legal p, .legal dd { margin: var(--s1) 0 0; }
.legal dl { margin: 0; }
.legal dt { font-weight: 900; margin-top: var(--s2); }
.legal .todo { color: var(--muted); font-style: italic; }
.legal a { text-decoration-color: var(--flame-deep); text-underline-offset: 3px; }

/* ---------- wider screens ---------- */
@media (min-width: 34rem) {
  .masthead__nav { display: flex; }
}
@media (min-width: 48rem) {
  .hero__shot img { aspect-ratio: 16 / 9; max-height: 40vh; }
  .hero__panel h1 { max-width: 26ch; }
  .hero__seam { width: min(24%, 230px); transform: translate(calc(-1 * var(--pad)), 30%) rotate(-2.5deg); }
  .hero__panel {
    padding-inline: max(var(--pad), calc((100vw - var(--wide)) / 2 + var(--pad)));
    padding-top: 3.25rem;
  }
  .maison { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: var(--s4); }
  .carte__cols { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .trouver__grid { grid-template-columns: 1fr 1fr; }
  .card { padding: var(--s3); }
}
@media (min-width: 64rem) {
  .trouver__grid { grid-template-columns: repeat(4, 1fr); }
  .plates { gap: var(--s2); }
}

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover { transform: none; }
}

/* ---------- print: the hours and the address, on one page ---------- */
@media print {
  .masthead__nav, .masthead__tel, .hero__seam, .hero__shot, .plates,
  .maison__shot, .preview-banner { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero__panel, .carte, .foot { background: #fff; color: #000; }
  .hero__lede, .hero__note, .carte__intro, .menu__desc, .plates figcaption, .foot { color: #000; }
  .card, .card--social { background: #fff; border: 1px solid #999; }
  a { color: #000; }
  .card__links a::after, .foot__links a::after { content: " (" attr(href) ")"; font-weight: 400; }
  .trouver, .carte, .maison, .hero__panel { padding-block: 0.6cm; }
  .trouver { page-break-before: avoid; }
}
