/* Venti's Aperitivo Bar: The Printed Menu, Alive
   Colors sampled from the printed menu. Three Google Fonts families. */

:root {
  --paper: #F5EFDD;
  --cream: #F1E5D2;
  --white: #FFFFFF;
  --green: #16533A;
  --green-deep: #0F3A28;
  --red: #A21E28;
  --red-deep: #861822;
  --ink: #0D2D1E;
  --body: #2A3A31;
  --rule: #CDC3B0;

  --serif: 'Libre Baskerville', 'Libre Baskerville Fallback', 'Libre Baskerville Fallback Android', Baskerville, 'Times New Roman', serif;
  --display: 'Playfair Display', 'Playfair Display Fallback', 'Playfair Display Fallback Android', 'Times New Roman', serif;
  --script: 'Italianno', 'Italianno Fallback', 'Italianno Fallback Android', 'Times New Roman', serif;

  --frame-pad: 28px;
  --header-h: 76px;
  --gutter: 56px;
  --max: 1160px;
  --body-size: 18px;
  --item-size: 20px;
  --quickbar-h: 56px;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
}

@media (max-width: 900px) {
  :root {
    --frame-pad: 0px;
    --header-h: 60px;
    --gutter: 20px;
    --body-size: 17px;
    --item-size: 20px;
  }
}

/* ---------- stand in faces while the Google fonts load ----------
   The fonts arrive with display=swap, so on a slow connection the page is first set in a local
   font. These faces give that local font the width and the vertical metrics of the font it
   stands in for (measured with shots/fix/fontmetrics.py against the site's own words), so the
   swap changes the letterforms but moves nothing: the same line breaks, the same heights, no
   jump under a reader's finger. Times New Roman covers Windows, macOS and iOS; Noto Serif is
   the serif on Android. The script stands in as an italic serif rather than a cursive. Where a
   local face is missing the browser simply moves on down the stack. */
@font-face { font-family: 'Libre Baskerville Fallback'; font-weight: 400; font-style: normal; src: local('Times New Roman'), local('TimesNewRomanPSMT');
  size-adjust: 126.06%; ascent-override: 76.95%; descent-override: 21.42%; line-gap-override: 0%; }
@font-face { font-family: 'Libre Baskerville Fallback'; font-weight: 700; font-style: normal; src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT');
  size-adjust: 121.30%; ascent-override: 79.97%; descent-override: 22.26%; line-gap-override: 0%; }
@font-face { font-family: 'Libre Baskerville Fallback'; font-weight: 400; font-style: italic; src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT');
  size-adjust: 113.85%; ascent-override: 85.20%; descent-override: 23.72%; line-gap-override: 0%; }
@font-face { font-family: 'Libre Baskerville Fallback'; font-weight: 700; font-style: italic; src: local('Times New Roman Bold Italic'), local('TimesNewRomanPS-BoldItalicMT');
  size-adjust: 116.66%; ascent-override: 83.15%; descent-override: 23.14%; line-gap-override: 0%; }
@font-face { font-family: 'Libre Baskerville Fallback Android'; font-weight: 400; font-style: normal; src: local('Noto Serif'), local('NotoSerif');
  size-adjust: 107.67%; ascent-override: 90.09%; descent-override: 25.08%; line-gap-override: 0%; }
@font-face { font-family: 'Libre Baskerville Fallback Android'; font-weight: 700; font-style: normal; src: local('Noto Serif Bold'), local('NotoSerif-Bold');
  size-adjust: 107.27%; ascent-override: 90.43%; descent-override: 25.17%; line-gap-override: 0%; }
@font-face { font-family: 'Libre Baskerville Fallback Android'; font-weight: 400; font-style: italic; src: local('Noto Serif Italic'), local('NotoSerif-Italic');
  size-adjust: 99.94%; ascent-override: 97.06%; descent-override: 27.02%; line-gap-override: 0%; }
@font-face { font-family: 'Libre Baskerville Fallback Android'; font-weight: 700; font-style: italic; src: local('Noto Serif Bold Italic'), local('NotoSerif-BoldItalic');
  size-adjust: 98.68%; ascent-override: 98.30%; descent-override: 27.36%; line-gap-override: 0%; }
@font-face { font-family: 'Playfair Display Fallback'; font-weight: 600; font-style: normal; src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT');
  size-adjust: 103.66%; ascent-override: 104.19%; descent-override: 24.12%; line-gap-override: 0%; }
@font-face { font-family: 'Playfair Display Fallback'; font-weight: 700; font-style: normal; src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT');
  size-adjust: 105.03%; ascent-override: 102.83%; descent-override: 23.80%; line-gap-override: 0%; }
@font-face { font-family: 'Playfair Display Fallback'; font-weight: 900; font-style: normal; src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT');
  size-adjust: 105.50%; ascent-override: 102.37%; descent-override: 23.70%; line-gap-override: 0%; }
@font-face { font-family: 'Playfair Display Fallback'; font-weight: 900; font-style: italic; src: local('Times New Roman Bold Italic'), local('TimesNewRomanPS-BoldItalicMT');
  size-adjust: 113.85%; ascent-override: 94.86%; descent-override: 21.96%; line-gap-override: 0%; }
@font-face { font-family: 'Playfair Display Fallback Android'; font-weight: 600; font-style: normal; src: local('Noto Serif Bold'), local('NotoSerif-Bold');
  size-adjust: 91.27%; ascent-override: 118.33%; descent-override: 27.39%; line-gap-override: 0%; }
@font-face { font-family: 'Playfair Display Fallback Android'; font-weight: 700; font-style: normal; src: local('Noto Serif Bold'), local('NotoSerif-Bold');
  size-adjust: 92.48%; ascent-override: 116.79%; descent-override: 27.03%; line-gap-override: 0%; }
@font-face { font-family: 'Playfair Display Fallback Android'; font-weight: 900; font-style: normal; src: local('Noto Serif Bold'), local('NotoSerif-Bold');
  size-adjust: 94.90%; ascent-override: 113.80%; descent-override: 26.34%; line-gap-override: 0%; }
@font-face { font-family: 'Playfair Display Fallback Android'; font-weight: 900; font-style: italic; src: local('Noto Serif Bold Italic'), local('NotoSerif-BoldItalic');
  size-adjust: 92.79%; ascent-override: 116.40%; descent-override: 26.94%; line-gap-override: 0%; }
@font-face { font-family: 'Italianno Fallback'; font-weight: 400; font-style: normal; src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT');
  size-adjust: 66.74%; ascent-override: 119.88%; descent-override: 67.43%; line-gap-override: 0%; }
@font-face { font-family: 'Italianno Fallback Android'; font-weight: 400; font-style: normal; src: local('Noto Serif Italic'), local('NotoSerif-Italic');
  size-adjust: 58.98%; ascent-override: 135.64%; descent-override: 76.30%; line-gap-override: 0%; }

/* ---------- base ---------- */

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

html {
  scroll-padding-top: calc(var(--frame-pad) + var(--header-h) + 16px);
  scroll-padding-bottom: calc(var(--frame-pad) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: var(--frame-pad);
  background: var(--paper);
  color: var(--body);
  font: 400 var(--body-size) / 1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Room for the phone quick bar, so the footer is never hidden under it, and so a control that
   the keyboard scrolls into view lands above the bar rather than under it. */
@media (max-width: 767px) {
  html { scroll-padding-bottom: calc(var(--quickbar-h) + 8px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: calc(var(--quickbar-h) + env(safe-area-inset-bottom, 0px)); }
}

h1, h2, h3, h4, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
main:focus, section:focus { outline: none; }
svg { display: block; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 980px; }
.script { font-family: var(--script); font-weight: 400; line-height: 1; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 18px; background: var(--green); color: var(--paper);
  font: 700 18px / 1 var(--serif); text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; outline-color: var(--red); }

/* ---------- the frame: fixed to the viewport on desktop ---------- */

.frame { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.frame__mat { position: absolute; display: block; background: var(--paper); }
.frame__mat--t { top: 0; left: 0; right: 0; height: var(--frame-pad); }
.frame__mat--b { bottom: 0; left: 0; right: 0; height: var(--frame-pad); }
.frame__mat--l { top: 0; bottom: 0; left: 0; width: var(--frame-pad); }
.frame__mat--r { top: 0; bottom: 0; right: 0; width: var(--frame-pad); }
.frame__rule { position: absolute; overflow: visible; }
.frame__rule--outer { top: 20.5px; left: 20.5px; width: calc(100% - 41px); height: calc(100% - 41px); }
.frame__rule--inner { top: 26px; left: 26px; width: calc(100% - 52px); height: calc(100% - 52px); }
.frame__rule rect { width: 100%; height: 100%; fill: none; }
.frame__rule--outer rect { stroke: var(--red); stroke-width: 1; }
.frame__rule--inner rect { stroke: var(--green); stroke-width: 2; }
.frame__corner { position: absolute; width: 11px; height: 11px; background: var(--red); }
.frame__corner--tl { top: 15px; left: 15px; }
.frame__corner--tr { top: 15px; right: 15px; }
.frame__corner--bl { bottom: 15px; left: 15px; }
.frame__corner--br { bottom: 15px; right: 15px; }

@media (max-width: 900px) { .frame { display: none; } }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: var(--frame-pad); z-index: 50;
  height: var(--header-h); background: var(--paper);
}
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--rule); opacity: 0; transition: opacity 300ms;
}
.site-header.is-condensed::after { opacity: 1; }

.site-header__inner {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: 100%; display: flex; align-items: center; gap: 28px;
}

.site-header__brand { flex: none; margin-right: auto; text-decoration: none; }
.js .site-header__brand {
  visibility: hidden; opacity: 0; transform: translateX(-12px);
  transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out), visibility 0s 350ms;
}
.js .is-condensed .site-header__brand {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out), visibility 0s;
}

.site-header__toggle { display: none; }

.site-nav__list { display: flex; gap: 6px; }
.site-nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 12px; color: var(--ink); text-decoration: none; font-size: 18px;
}
.site-nav__link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left center;
  transition: transform 220ms var(--ease-out);
}
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__link[aria-current]::after { transform: scaleX(1); }
.site-nav__extra { display: none; }
/* Between 901 and 960 px the condensed header row is about 45 px short of its content,
   so the gaps and the link padding tighten rather than the wordmark. */
@media (min-width: 901px) and (max-width: 960px) {
  .site-header__inner { gap: 16px; }
  .site-nav__link { padding: 0 8px; }
  .site-nav__link::after { left: 8px; right: 8px; }
}

/* The tricolor progress line at the bottom edge of the header: the flag completes itself
   as the page is read. The header's height never changes; the line overlaps its bottom edge. */
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; pointer-events: none; }
.progress__fill { position: absolute; inset: 0; display: flex; clip-path: inset(0 100% 0 0); }
.progress__fill i { flex: 1; display: block; }
.progress__fill i:nth-child(1) { background: var(--green); }
.progress__fill i:nth-child(2) { background: var(--white); box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule); }
.progress__fill i:nth-child(3) { background: var(--red); }
@supports (animation-timeline: scroll()) {
  .progress__fill { animation: progress-fill linear both; animation-timeline: scroll(root block); }
}
@keyframes progress-fill {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@media (max-width: 900px) {
  .site-header { border-top: 1px solid var(--red); }
  .site-header::before {
    content: ''; position: absolute; top: 2px; left: 0; right: 0; height: 2px; background: var(--green);
  }
  .site-header__inner { gap: 12px; }
  .site-header__toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 0;
    background: none; border: 0; color: var(--ink); font: 400 17px / 1 var(--serif); cursor: pointer;
  }
  .site-header__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 22px; }
  .site-header__bars i { display: block; height: 2px; background: var(--green); }
  .site-header__brand { display: inline-flex; align-items: center; min-height: 44px; margin: 0 auto; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    border-top: 1px solid var(--rule); border-bottom: 2px solid var(--green);
    padding: 4px var(--gutter) 14px; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s 220ms;
  }
  .site-header.is-open .site-nav {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s;
  }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__link {
    display: flex; min-height: 52px; padding: 0 4px; font: 700 22px / 1 var(--display);
    border-bottom: 1px solid var(--rule);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current] { color: var(--red); }
  .site-nav__link[aria-current]::before {
    content: ''; display: inline-block; flex: none; width: 9px; height: 9px; margin-right: 12px; background: var(--red);
  }
  .site-nav__extra { display: block; }
  .site-nav__extra .site-nav__link { border-bottom: 0; }

  /* Without JavaScript (main.js adds the js class) the panel could never open, so the toggle
     goes away and the section links sit in a plain wrapped row under the header bar. */
  html:not(.js) .site-header { position: static; height: auto; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); }
  html:not(.js) .site-header__toggle { display: none; }
  html:not(.js) .site-nav {
    position: static; flex: 1 0 100%; order: 1; visibility: visible; opacity: 1;
    transform: none; transition: none; padding: 0 0 8px; border: 0;
  }
  html:not(.js) .site-nav__list { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0 2px; }
  html:not(.js) .site-nav__link { min-height: 44px; padding: 0 10px; font-size: 18px; border-bottom: 0; }
}

/* ---------- the wordmark lockup ---------- */

.lockup { display: inline-block; text-align: center; color: var(--green); line-height: 1; }
.lockup__mark { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .16em; }
.lockup__name {
  display: block; font: 900 1em / 1 var(--display); letter-spacing: -.01em; color: var(--green);
  padding-top: .36em;
}
.lockup__sprig {
  position: absolute; width: .92em; height: auto; left: 50%; top: -.05em; margin-left: -.1em;
  color: var(--green);
}
.lockup__rule {
  flex: none; width: 1.25em; height: .1em; margin-top: .46em;
  border-top: .022em solid currentColor; border-bottom: .022em solid currentColor;
}
.lockup__descriptor {
  display: block; font: 600 max(15px, .13em) / 1 var(--display); letter-spacing: .4em; text-indent: .4em;
  text-transform: uppercase; color: var(--red); margin-top: .1em;
}
.sprig__shine { fill: var(--paper); fill-opacity: .6; }

.lockup--hero { font-size: clamp(84px, 11.5vw, 170px); }
.lockup--small { font-size: 34px; }
.lockup--small .lockup__rule { display: none; }
.lockup--small .lockup__sprig { width: .92em; top: -.06em; margin-left: -.12em; }
.lockup--small .lockup__descriptor { font-size: 15px; letter-spacing: .3em; text-indent: .3em; margin-top: 4px; }
.lockup--footer { font-size: 64px; }
.lockup--footer .lockup__descriptor { font-size: 15px; letter-spacing: .34em; text-indent: .34em; margin-top: 6px; }

@media (max-width: 900px) {
  .lockup--hero { font-size: clamp(64px, 18.5vw, 96px); }
  .lockup--hero .lockup__rule { width: .4em; }
  .lockup--hero .lockup__descriptor { font-size: 16px; letter-spacing: .32em; text-indent: .32em; margin-top: 10px; }
  .lockup--small { font-size: 28px; }
  .site-header__brand .lockup__descriptor { display: none; }
  .lockup--footer { font-size: 54px; }
}

/* ---------- hero ---------- */

.hero {
  min-height: calc(100vh - var(--frame-pad) * 2 - var(--header-h));
  min-height: calc(100svh - var(--frame-pad) * 2 - var(--header-h));
  display: grid; place-items: center; text-align: center;
  padding: 16px var(--gutter) 24px;
}
.hero__inner { max-width: 1000px; }
.hero__sentinel { display: block; height: 1px; }
/* The tagline is 76 characters; a 28em measure keeps every line under 60. */
.hero__tagline {
  font: italic 400 clamp(20px, 1.8vw, 25px) / 1.45 var(--serif); color: var(--green);
  max-width: 28em; margin: 36px auto 0;
}
.hero__tagline--second { margin-top: 6px; }
.hero__tricolor { margin: 34px auto 0; }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* The hours tag: the menu's double rule with red corner squares, holding both hours lines
   and the Sunday brunch line, filling the paper under the buttons. */
.hours-tag {
  position: relative; display: inline-flex; margin-top: 34px; padding: 7px;
  background: var(--cream); border: 1px solid var(--red); text-align: left; vertical-align: top;
}
.hours-tag::before { content: ''; position: absolute; inset: 4px; border: 2px solid var(--green); pointer-events: none; }
.hours-tag__corner { position: absolute; width: 9px; height: 9px; background: var(--red); }
.hours-tag__corner--tl { top: -5px; left: -5px; }
.hours-tag__corner--tr { top: -5px; right: -5px; }
.hours-tag__corner--bl { bottom: -5px; left: -5px; }
.hours-tag__corner--br { bottom: -5px; right: -5px; }
.hours-tag__list { display: flex; }
.hours-tag__row, .hours-tag__brunch { position: relative; padding: 13px 26px 14px; }
.hours-tag__row + .hours-tag__row::before, .hours-tag__brunch::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--rule);
}
.hours-tag__days { display: block; font: 700 18px / 1.3 var(--serif); color: var(--green); white-space: nowrap; }
.hours-tag__time { display: block; margin-top: 2px; font: 400 19px / 1.3 var(--serif); color: var(--ink); white-space: nowrap; }
.hours-tag__brunch { display: block; color: var(--ink); text-decoration: none; }
.hours-tag__brunch .hours-tag__time {
  text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .2em;
}
.hours-tag__brunch:hover .hours-tag__time { color: var(--red); }

/* Shorter laptop screens: a slightly smaller wordmark keeps the hours tag in the first screen. */
@media (min-width: 901px) and (max-height: 820px) {
  .lockup--hero { font-size: clamp(84px, 10vw, 150px); }
  .hero { padding: 8px var(--gutter) 16px; }
  .hero__tagline { margin-top: 26px; }
  .hero__tagline--second { margin-top: 6px; }
  .hero__tricolor { margin-top: 24px; }
  .hero__actions { margin-top: 28px; }
  .hours-tag { margin-top: 26px; }
}

/* Laptops with the browser's own bars showing (about 740 px of page or less): tighter still. */
@media (min-width: 901px) and (max-height: 740px) {
  .lockup--hero { font-size: clamp(72px, 7.5vw, 104px); }
  .hero { padding: 4px var(--gutter) 12px; }
  .hero__tagline { margin-top: 18px; font-size: 20px; }
  .hero__tagline--second { margin-top: 4px; }
  .hero__tricolor { margin-top: 18px; }
  .hero__actions { margin-top: 22px; }
  .hours-tag { margin-top: 18px; }
  .hours-tag__row, .hours-tag__brunch { padding: 9px 22px 10px; }
}

@media (max-width: 900px) {
  .hero { min-height: 0; padding: 6px var(--gutter) 48px; }
  .hero__tagline { margin-top: 22px; font-size: 19px; line-height: 1.4; }
  .hero__tagline--second { margin-top: 4px; }
  .hero__tricolor { margin-top: 20px; }
  .hero__actions { margin-top: 22px; gap: 10px; }
  .hero__actions .btn--call { flex: 1 0 100%; }
  .hero__actions .btn--green, .hero__actions .btn--outline { flex: 1 1 calc(50% - 5px); padding: 0 12px; }
  .hours-tag {
    display: block; max-width: 360px; margin: 16px auto 0; padding: 0;
    background: none; border: 0; text-align: center;
  }
  .hours-tag::before, .hours-tag__corner, .hours-tag__brunch, .hours-tag__row::before { display: none; }
  .hours-tag__list { display: block; }
  .hours-tag__row { padding: 5px 0; border-top: 1px solid var(--rule); }
  .hours-tag__row:last-child { border-bottom: 1px solid var(--rule); }
  .hours-tag__days { font-size: 17px; line-height: 1.35; white-space: normal; }
  .hours-tag__time { margin-top: 0; font-size: 17px; line-height: 1.35; white-space: normal; }
}

/* Between the phone layout and about 1000 px the three cells are wider than the hero column,
   so the brunch line drops to a second row under the two hours cells. */
@media (min-width: 901px) and (max-width: 1010px) {
  .hours-tag { flex-wrap: wrap; justify-content: center; max-width: 100%; }
  .hours-tag__brunch { flex: 1 0 100%; text-align: center; border-top: 1px solid var(--rule); padding-top: 12px; }
  .hours-tag__brunch::before { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 2px solid var(--green);
  background: var(--paper); color: var(--green);
  font: 700 18px / 1.2 var(--display); text-decoration: none; text-align: center; white-space: nowrap;
  transition: transform 180ms var(--ease-out);
}
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--big { min-height: 56px; padding: 0 30px; font-size: 19px; }
.btn--red { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn--red:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--paper); }
.btn--green { background: var(--green); border-color: var(--green); color: var(--paper); }
.btn--green:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--paper); }
.btn--outline:hover { background: var(--cream); color: var(--green-deep); }
/* The phone number sits on paper, in the menu's red, never ivory on red. */
.btn--call { background: var(--paper); border-color: var(--red); color: var(--red); }
.btn--call:hover { background: var(--cream); border-color: var(--red-deep); color: var(--red-deep); }
.btn--header { min-height: 44px; padding: 0 18px; }
.btn--small { min-height: 44px; padding: 0 18px; }

@media (max-width: 900px) {
  .btn--big { min-height: 54px; font-size: 18px; }
  .btn--header { padding: 0 16px; }
}

/* ---------- rules, leaders, prices, badges ---------- */

.tricolor { display: flex; width: 150px; height: 10px; }
.tricolor i { flex: 1; display: block; }
.tricolor i:nth-child(1) { background: var(--green); }
.tricolor i:nth-child(2) { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tricolor i:nth-child(3) { background: var(--red); }

.rule-double { height: 6px; border-top: 2px solid var(--green); border-bottom: 1px solid var(--green); margin: 28px 0 44px; }
.hair { border: 0; border-top: 1px solid var(--rule); margin: 30px 0; }

/* A name, a dotted leader and a price on one baseline. The row never wraps: a long name
   wraps inside itself, the leader flexes, and the price stays right aligned on the first line. */
.dish__row, .sec-head { display: flex; align-items: baseline; flex-wrap: nowrap; }
.dish__name { flex: 0 1 auto; min-width: 0; }
.leader {
  flex: 1 1 24px; min-width: 24px; height: .9em; margin: 0 10px;
  background-image: radial-gradient(circle, var(--rule) 1.3px, transparent 1.6px);
  background-size: 7px 7px; background-repeat: repeat-x;
  background-position: 0 100%;
}
.price { flex: none; font: 700 22px / 1 var(--display); color: var(--red); }

.dish__name { font: 700 var(--item-size) / 1.3 var(--serif); color: var(--ink); }
.dish__desc { margin-top: 4px; max-width: 36em; }
.dish + .dish { margin-top: 22px; }
.dishes { margin-top: 18px; }
.dishes--tight { margin-top: 22px; }
.dishes--tight .dish + .dish { margin-top: 10px; }

.badge {
  flex: none; display: inline-grid; place-items: center; width: 84px; height: 84px;
  border-radius: 50%; font: 700 40px / 1 var(--display);
  /* Playfair's figures are x-height tall and sit on the baseline, so a centered line box leaves
     the numeral low in the circle; this padding lifts the ink to the circle's center at every size. */
  box-sizing: border-box; padding-bottom: .31em;
}
.badge--red { background: var(--red); color: var(--paper); }
.badge--ivory { background: var(--paper); color: var(--red); width: 52px; height: 52px; font-size: 26px; }

/* Italian title with its English pairing */
.sec-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .55em; }
.sec-title__it { font: italic 900 48px / 1.05 var(--display); color: var(--red); letter-spacing: -.01em; }
.sec-title__en { font: 700 16px / 1 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.sec-title--h2 .sec-title__it { font-size: 64px; }
.sec-title--h2 .sec-title__en { font-size: 17px; }
.sec-title--center { justify-content: center; }
/* In the Primi row the title may shrink, so on a narrow screen PASTA PLATES wraps under Primi
   while the leader and the price stay on the Primi baseline; it never grows into the leader. */
.sec-head .sec-title { flex: 0 1 auto; min-width: 0; }

@media (max-width: 900px) {
  .sec-title__it { font-size: 40px; }
  .sec-title--h2 .sec-title__it { font-size: 46px; }
  .sec-title__en { font-size: 15px; }
  .sec-title--h2 .sec-title__en { font-size: 15px; }
  .rule-double { margin: 20px 0 30px; }
  .hair { margin: 26px 0; }
}

/* ---------- framed boxes: the menu's double rule, drawn as separate lines ---------- */

.box { position: relative; --box: var(--red); }
.box--green { --box: var(--green); }
.box__line { position: absolute; background: var(--box); }
.box__line--t { top: 0; left: 0; right: 0; height: 2px; transform-origin: left center; }
.box__line--r { top: 0; right: 0; bottom: 0; width: 2px; transform-origin: center top; }
.box__line--b { bottom: 0; left: 0; right: 0; height: 2px; transform-origin: right center; }
.box__line--l { top: 0; left: 0; bottom: 0; width: 2px; transform-origin: center bottom; }
.box__inner { position: absolute; inset: 4px; border: 1px solid var(--box); pointer-events: none; }
.box__corner { position: absolute; width: 9px; height: 9px; background: var(--red); }
.box__corner--tl { top: -4px; left: -4px; }
.box__corner--tr { top: -4px; right: -4px; }
.box__corner--bl { bottom: -4px; left: -4px; }
.box__corner--br { bottom: -4px; right: -4px; }

/* ---------- La Specialità ---------- */

/* 56px above the box keeps the overlapping badge below the first screen on tall displays. */
.platter { padding: 56px 0 100px; }
.platter__box { background: var(--cream); padding: 44px 52px 40px; }
.platter__title { max-width: 100%; padding-right: 120px; }
.platter__eyebrow { display: block; font-size: 58px; color: var(--red); margin-bottom: 2px; }
.platter__name { display: block; font: 900 clamp(30px, 3.6vw, 48px) / 1.1 var(--display); color: var(--ink); }
/* The oversized 20, overlapping the top right corner of the frame. */
.platter__badge {
  position: absolute; top: -50px; right: 36px; z-index: 1;
  width: 100px; height: 100px; font-size: 48px;
  box-shadow: 0 0 0 6px var(--paper);
}
/* 58 characters of Libre Baskerville, written in em so the stand in font keeps the same measure. */
.platter__desc { margin-top: 22px; font-size: 20px; max-width: 41.4em; color: var(--ink); }
.platter__note { margin-top: 14px; font: italic 400 20px / 1.5 var(--serif); color: var(--red); }

@media (max-width: 900px) {
  /* The badge overhangs the box by 36px, so a nav tap lands the section that much lower and the
     sticky header never covers the top of the 20. */
  .platter { padding: 8px 0 64px; scroll-margin-top: 36px; }
  .platter__box { padding: 26px 18px 26px; }
  .platter__title { padding-right: 0; }
  .platter__eyebrow { font-size: 46px; }
  .platter__name { font-size: 30px; }
  .platter__badge { top: -36px; right: 14px; width: 72px; height: 72px; font-size: 34px; box-shadow: 0 0 0 5px var(--paper); }
  .platter__desc, .platter__note { font-size: 17px; }
}

/* ---------- Menu ---------- */

.menu { padding: 0 0 100px; }
.menu__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.menu__title { font: 900 64px / 1 var(--display); color: var(--ink); }
.menu__motto { font: italic 400 22px / 1.4 var(--serif); color: var(--green); margin-top: 10px; }

.two-col { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 84px; }
.two-col::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--green); opacity: .5; }
.two-col__col { min-width: 0; }

.dish-group__note { margin-top: 8px; font: italic 400 var(--body-size) / 1.5 var(--serif); color: var(--body); }
.pastas { margin-top: 22px; }
.pastas__item { font: 400 var(--item-size) / 1.35 var(--serif); color: var(--ink); padding: 7px 0; }

.sauces { margin-top: 36px; background: var(--cream); border: 1px solid var(--rule); padding: 26px 28px 28px; text-align: center; }
.sauces__title { font-size: 50px; color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.sauces__list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.sauces__item { padding: 4px 12px; border-left: 1px solid var(--rule); }
.sauces__item:first-child { border-left: 0; }
.sauces__name { display: block; font: 700 19px / 1.3 var(--serif); color: var(--red); }
.sauces__desc { display: block; margin-top: 4px; }

/* Two columns need about 1016 px to hold the Primi row on one line; below that the menu
   and the cellar read as one column, as on a phone. Three even sauce columns need about
   1180 px, so between 1017 and 1180 px the sauces stack while the menu keeps its two columns. */
@media (max-width: 1016px) {
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .two-col::before { display: none; }
  .two-col__col + .two-col__col { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
}
@media (max-width: 1180px) and (min-width: 1017px), (max-width: 900px) {
  .sauces__list { grid-template-columns: 1fr; margin-top: 4px; }
  .sauces__item { border-left: 0; border-top: 1px solid var(--rule); padding: 12px 0; }
  .sauces__item:first-child { border-top: 0; }
}
@media (max-width: 900px) {
  .menu, .brunch, .cantina, .aperitivo { padding-bottom: 64px; }
  .menu__title { font-size: 48px; }
  .menu__motto { font-size: 19px; margin-top: 6px; }
  .sauces { padding: 22px 18px 16px; }
  .sauces__title { font-size: 44px; }
}

/* ---------- La Domenica, the brunch ribbon ---------- */

.brunch { padding: 0 0 108px; text-align: center; }
.brunch__box { margin-top: 64px; padding: 68px 48px 44px; }
.ribbon { position: absolute; top: -36px; left: 0; right: 0; z-index: 1; display: flex; justify-content: center; }
.ribbon__wrap { display: flex; align-items: center; }
.ribbon__tail { flex: none; width: 44px; height: 54px; fill: var(--green-deep); }
.ribbon__band {
  position: relative; display: flex; align-items: center; gap: 20px; height: 72px;
  padding: 0 30px; margin: 0 -6px; background: var(--green);
}
.ribbon__band::before, .ribbon__band::after {
  content: ''; position: absolute; bottom: -9px; width: 0; height: 0; border-style: solid;
}
.ribbon__band::before { left: 0; border-width: 9px 6px 0 0; border-color: var(--green-deep) transparent transparent transparent; }
.ribbon__band::after { right: 0; border-width: 9px 0 0 6px; border-color: var(--green-deep) transparent transparent transparent; }
.ribbon__text { font: 700 32px / 1.1 var(--display); color: var(--paper); white-space: nowrap; }
.brunch__desc { font-size: 20px; color: var(--ink); }
.brunch__note { margin-top: 8px; font: italic 400 20px / 1.5 var(--serif); color: var(--body); }

@media (max-width: 900px) {
  .brunch__box { margin-top: 52px; padding: 54px 18px 30px; }
  .ribbon { top: -30px; }
  .ribbon__tail { width: 24px; height: 44px; }
  .ribbon__band { height: 60px; padding: 0 14px; gap: 12px; margin: 0 -4px; }
  .ribbon__text { font-size: 28px; }
  .badge--ivory { width: 44px; height: 44px; font-size: 22px; }
  .brunch__desc, .brunch__note { font-size: 17px; }
}
@media (max-width: 480px) {
  .ribbon { left: -8px; right: -8px; }
  .ribbon__wrap { width: 100%; }
  .ribbon__tail { display: none; }
  .ribbon__band { flex: 1; justify-content: center; height: auto; min-height: 60px; padding: 10px 10px; margin: 0; gap: 10px; }
  .ribbon__text { white-space: normal; }
}

/* ---------- La Cantina ---------- */

.cantina { padding: 0 0 100px; }
.cantina__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cantina__tagline { font: italic 400 22px / 1.4 var(--serif); color: var(--green); }
.drink-group { margin-top: 28px; }
.drink-group .dish__name { font-size: var(--item-size); }
.plain { margin-top: 8px; }
.plain li { font: 400 var(--item-size) / 1.35 var(--serif); color: var(--ink); padding: 5px 0; }
.varietals { margin-top: 26px; }
.varietal { padding: 12px 0; border-top: 1px solid var(--rule); }
.varietal__name { display: block; font: 700 var(--item-size) / 1.3 var(--serif); color: var(--red); }
.varietal__producers { display: block; margin-top: 2px; }

@media (max-width: 900px) {
  .cantina__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cantina__tagline { font-size: 19px; }
}

/* ---------- Aperitivo ---------- */

.aperitivo { padding: 0 0 100px; }
.aperitivo__inner { display: grid; grid-template-columns: 150px 1fr; gap: 60px; align-items: center; }
.aperitivo__art { color: var(--green); }
.glass { width: 100%; height: auto; }
.aperitivo__word { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .5em; }
.aperitivo__it { font: italic 900 56px / 1.05 var(--display); color: var(--red); }
.aperitivo__say { font: italic 400 20px / 1.4 var(--serif); color: var(--body); }
.aperitivo__def { margin-top: 18px; font-size: 22px; line-height: 1.55; max-width: 30em; color: var(--ink); }
.aperitivo__salute { margin-top: 16px; font-size: 56px; color: var(--green); }

@media (max-width: 900px) {
  .aperitivo__inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .aperitivo__art { width: 104px; margin: 0 auto; }
  .aperitivo__word { justify-content: center; }
  .aperitivo__it { font-size: 44px; }
  .aperitivo__say { font-size: 18px; }
  .aperitivo__def { font-size: 19px; margin-left: auto; margin-right: auto; }
  .aperitivo__salute { font-size: 48px; }
}

/* ---------- Vieni a Trovarci: hours, address, map ---------- */

.visit { padding: 0 0 88px; }
.visit__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.visit__h { font: 700 34px / 1.1 var(--display); color: var(--red); margin-bottom: 14px; }
.hours { margin-bottom: 40px; }
.hours__row { padding: 12px 0; border-top: 1px solid var(--rule); }
.hours__row:last-child { border-bottom: 1px solid var(--rule); }
.hours__days { font: 700 var(--item-size) / 1.3 var(--serif); color: var(--green); }
.hours__time { margin-top: 2px; font-size: 19px; color: var(--ink); }
.visit__address { font-style: normal; }
.visit__line { font-size: 19px; line-height: 1.5; color: var(--ink); margin-bottom: 10px; }
.visit__phone { font: 700 24px / 1.3 var(--display); color: var(--red); text-decoration: none; }
.visit__phone:hover { color: var(--red-deep); text-decoration: underline; }
.visit__email { color: var(--ink); }
.visit__info > .btn { margin-top: 16px; }
.visit__h--catering { margin-top: 40px; }
.visit__catering { font-size: 19px; line-height: 1.5; color: var(--ink); max-width: 30em; }
.visit__map { position: relative; border: 2px solid var(--green); padding: 7px; background: var(--paper); }
.visit__map::before { content: ''; position: absolute; inset: 3px; border: 1px solid var(--green); pointer-events: none; }
.visit__map-note { position: absolute; inset: 7px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 24px; text-align: center; font-size: var(--body-size); color: var(--ink); background: var(--cream); }
.visit__iframe { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }

@media (max-width: 900px) {
  .visit { padding-bottom: 56px; }
  .visit__grid { grid-template-columns: 1fr; gap: 36px; }
  .visit__h { font-size: 30px; }
  .hours { margin-bottom: 32px; }
  .visit__h--catering { margin-top: 32px; }
  .visit__line { margin-bottom: 2px; }
  .visit__iframe { aspect-ratio: 1 / 1; }
  /* Every phone and email link is a 44px tap target on a phone. */
  .visit__phone, .visit__email, .footer__line a {
    display: inline-block; min-height: 44px; padding: 10px 0;
  }
}

/* ---------- footer ---------- */

.footer { position: relative; text-align: center; padding: 24px 0 48px; }
.footer__signoff { display: flex; align-items: center; justify-content: center; gap: 28px; }
/* The script line stays whole on desktop; the two hairlines take up whatever width is left. */
.footer__hair { flex: 1 1 0; max-width: 200px; height: 1px; background: var(--green); }
.footer__grazie { font-size: 60px; color: var(--ink); }
@media (min-width: 901px) { .footer__grazie { flex: none; } }
.footer__tricolor { margin: 30px auto 44px; }
.lockup--footer { margin-bottom: 24px; }
.footer__line { font-size: var(--body-size); line-height: 1.6; color: var(--ink); }
.footer__line a { color: var(--ink); }
.footer__copy { margin-top: 24px; font-size: var(--body-size); color: var(--body); }

@media (max-width: 900px) {
  .footer { padding: 12px 0 44px; }
  .footer::before, .footer::after { content: ''; position: absolute; left: 0; right: 0; }
  .footer::after { bottom: 0; height: 1px; background: var(--red); }
  .footer::before { bottom: 2px; height: 2px; background: var(--green); }
  .footer__signoff { gap: 14px; }
  .footer__hair { flex: 1 1 10px; }
  .footer__grazie { font-size: 44px; }
  .footer__tricolor { margin: 24px auto 36px; }
  .footer__copy { margin-top: 16px; }
}
@media (max-width: 600px) {
  .footer__hair { display: none; }
}

/* ---------- the phone quick bar: Call, Directions, Menu ---------- */

.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--paper); border-top: 1px solid var(--rule);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.quickbar__link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--quickbar-h); font: 700 17px / 1 var(--display); color: var(--red); text-decoration: none;
}
.quickbar__link + .quickbar__link { border-left: 1px solid var(--rule); }
.quickbar__link .ico { width: 20px; height: 20px; flex: none; }
.quickbar__link:hover, .quickbar__link:active { color: var(--red-deep); background: var(--cream); }
.quickbar__link:focus-visible { outline-offset: -4px; }
@media (min-width: 768px) { .quickbar { display: none; } }

/* viewport-fit=cover lets the page run under a notch when a phone is held sideways; the
   gutters and the quick bar stay outside the unsafe strip on both sides. */
@media (max-width: 900px) {
  .wrap, .site-header__inner, .site-nav, .hero {
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }
  .quickbar { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  /* The no script nav row sits inside the header's own gutters, so it needs none of its own. */
  html:not(.js) .site-nav { padding-left: 0; padding-right: 0; }
}

/* Narrow phones (320 px, the first iPhone SE or a zoomed display): tighter header gutters, the
   toggle shows only its bars (the word Sections stays for screen readers) and the footer
   wordmark's rules shorten so nothing runs past the edge. */
@media (max-width: 359px) {
  .site-header__inner {
    gap: 8px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .site-header__toggle { position: relative; justify-content: center; min-width: 44px; padding: 0; }
  .site-header__toggle-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .lockup--footer .lockup__rule { width: .4em; }
}

/* ---------- motion ---------- */

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes stamp { from { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.14); } to { opacity: 1; transform: scale(1); } }
@keyframes extend { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } 65% { opacity: 1; transform: scale(1.1); } to { opacity: 1; transform: scale(1); } }
@keyframes sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }

.lockup__rule--l { transform-origin: right center; }
.lockup__rule--r { transform-origin: left center; }
.footer__hair:first-child { transform-origin: right center; }
.footer__hair:last-child { transform-origin: left center; }

@media (prefers-reduced-motion: no-preference) {
  /* The page prints itself: one orchestrated entrance, gated on JS and on fonts being ready.
     Everything has landed by 1.52 s. */
  .js .frame__rule rect { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js.is-ready .frame__rule--outer rect { animation: draw 950ms var(--ease-out) forwards; }
  .js.is-ready .frame__rule--inner rect { animation: draw 950ms var(--ease-out) 140ms forwards; }
  .js .frame__corner { opacity: 0; transform: scale(0); }
  .js.is-ready .frame__corner { animation: stamp 340ms var(--spring) forwards; }
  .js.is-ready .frame__corner--tl { animation-delay: 900ms; }
  .js.is-ready .frame__corner--tr { animation-delay: 960ms; }
  .js.is-ready .frame__corner--br { animation-delay: 1020ms; }
  .js.is-ready .frame__corner--bl { animation-delay: 1080ms; }

  .js .lockup--hero .sprig__lines path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js.is-ready .lockup--hero .sprig__lines path { animation: draw 520ms var(--ease-out) forwards; animation-delay: calc(120ms + var(--k, 0) * 48ms); }
  .js .lockup--hero .sprig__fills { opacity: 0; }
  .js.is-ready .lockup--hero .sprig__fills { animation: appear 520ms ease-out 500ms forwards; }
  .js .lockup--hero .sprig__olive { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; }
  .js.is-ready .lockup--hero .sprig__olive { animation: pop 460ms var(--spring) forwards; }
  .js.is-ready .lockup--hero .sprig__olive:nth-child(1) { animation-delay: 720ms; }
  .js.is-ready .lockup--hero .sprig__olive:nth-child(2) { animation-delay: 800ms; }

  .js .lockup--hero .lockup__name { opacity: 0; transform: translateY(24px); }
  .js.is-ready .lockup--hero .lockup__name { animation: rise 640ms var(--ease-out) 340ms forwards; }
  .js .lockup--hero .lockup__rule { transform: scaleX(0); }
  .js.is-ready .lockup--hero .lockup__rule { animation: extend 520ms var(--ease-out) 540ms forwards; }
  .js .lockup--hero .lockup__descriptor { opacity: 0; transform: translateY(12px); }
  .js.is-ready .lockup--hero .lockup__descriptor { animation: rise 500ms var(--ease-out) 600ms forwards; }

  .js [data-enter] { opacity: 0; transform: translateY(16px); }
  .js.is-ready [data-enter] { animation: rise 480ms var(--ease-out) forwards; animation-delay: calc(var(--t, 0) * 1ms); }
  .js.is-settled [data-enter] { animation: none; opacity: 1; transform: none; }
  .js .hero__tricolor { transform: scaleX(0); transform-origin: left center; }
  .js.is-ready .hero__tricolor { animation: extend 420ms var(--ease-out) 760ms forwards; }

  /* Ambient: the sprig sways, very slightly. */
  .lockup--hero .lockup__sprig { animation: sway 7s ease-in-out infinite alternate; transform-origin: 12% 92%; }

  /* Scroll moments, each fired once by IntersectionObserver. */
  .js .sec-title[data-reveal], .js .sec-head[data-reveal] .sec-title {
    opacity: 0; transform: translateX(-20px);
    transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
  }
  .js .sec-title.is-in, .js .sec-head.is-in .sec-title { opacity: 1; transform: none; }

  /* A leader draws toward its price, then the price lands: the second row's price is in by
     0.55 s, so nothing is still faded when a reader stops scrolling. */
  .js [data-reveal] .leader { clip-path: inset(0 100% 0 0); transition: clip-path 300ms var(--ease-out) calc(var(--i, 0) * 50ms + 60ms); }
  .js [data-reveal].is-in .leader { clip-path: inset(0 0 0 0); }
  .js [data-reveal] .price { opacity: 0; transition: opacity 240ms ease-out calc(var(--i, 0) * 50ms + 260ms); }
  .js [data-reveal].is-in .price { opacity: 1; }
  .js [data-reveal] .badge { opacity: 0; transform: scale(.45); transition: opacity 240ms ease-out 480ms, transform 560ms var(--spring) 480ms; }
  .js [data-reveal].is-in .badge { opacity: 1; transform: none; }

  .js .pastas[data-reveal] .pastas__item { opacity: 0; transition: opacity 420ms ease-out calc(var(--i, 0) * 60ms); }
  .js .pastas.is-in .pastas__item { opacity: 1; }

  .js .ribbon[data-reveal] .ribbon__wrap { clip-path: inset(0 50% 0 50%); transition: clip-path 640ms var(--ease-out); }
  .js .ribbon.is-in .ribbon__wrap { clip-path: inset(0 0 0 0); }
  .js .ribbon[data-reveal] .ribbon__text { opacity: 0; transition: opacity 400ms ease-out 360ms; }
  .js .ribbon.is-in .ribbon__text { opacity: 1; }

  .js .rule-double[data-reveal], .js .tricolor[data-reveal] { transform: scaleX(0); transform-origin: left center; transition: transform 620ms var(--ease-out); }
  .js .footer__tricolor[data-reveal] { transform-origin: center; }
  .js .rule-double.is-in, .js .tricolor.is-in { transform: scaleX(1); }

  /* The framed boxes draw themselves: top, right, bottom, left, then the inner rule,
     then the corner squares stamp in. 700 ms from first to last, started before the box
     reaches the viewport so nobody sees a half drawn frame. */
  .js [data-frame] .box__line--t { transform: scaleX(0); transition: transform 140ms linear 0ms; }
  .js [data-frame] .box__line--r { transform: scaleY(0); transition: transform 140ms linear 140ms; }
  .js [data-frame] .box__line--b { transform: scaleX(0); transition: transform 140ms linear 280ms; }
  .js [data-frame] .box__line--l { transform: scaleY(0); transition: transform 140ms linear 420ms; }
  .js [data-frame].is-drawn .box__line { transform: none; }
  .js [data-frame] .box__inner { opacity: 0; transition: opacity 160ms ease-out 460ms; }
  .js [data-frame].is-drawn .box__inner { opacity: 1; }
  .js [data-frame] .box__corner { opacity: 0; transform: scale(0); transition: opacity 100ms ease-out 500ms, transform 200ms var(--spring) 500ms; }
  .js [data-frame].is-drawn .box__corner { opacity: 1; transform: none; }

  .js .aperitivo__art[data-reveal] .glass path, .js .aperitivo__art[data-reveal] .glass circle {
    stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 700ms var(--ease-out) calc(var(--k, 0) * 90ms);
  }
  .js .aperitivo__art.is-in .glass path, .js .aperitivo__art.is-in .glass circle { stroke-dashoffset: 0; }

  .js .footer__signoff[data-reveal] .footer__hair { transform: scaleX(0); transition: transform 600ms var(--ease-out) 150ms; }
  .js .footer__signoff.is-in .footer__hair { transform: scaleX(1); }
  .js .footer__signoff[data-reveal] .footer__grazie { opacity: 0; transition: opacity 500ms ease-out; }
  .js .footer__signoff.is-in .footer__grazie { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* The progress line only follows the reader's own scrolling, so it keeps working. */
  *:not(.progress__fill), *::before, *::after { animation: none !important; transition: none !important; }
}
