/* Tokens from the printed menu */
:root {
  --cream: #fffaf5;
  --olive: #4f5c38;
  --sage: #7d846e;
  --sage-text: #5f6652; /* small text: passes 4.5:1 on cream */
  --ink: #2f1708;
  --yellow: #fbc66e;
  --teal: #07475b;
  --navy: #324880;
  --display: "Big Shoulders Display", "Big Shoulders", "Arial Narrow", sans-serif;
  --text: "Fustat", system-ui, sans-serif;
  --pad: clamp(20px, 6vw, 96px);
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { background: var(--cream); color: var(--ink); font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .92; }
/* Two-tone ring: the dark line shows on light surfaces, the yellow one on dark surfaces and photos */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 7px var(--yellow); }


.btn { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 16px 28px; transition: transform .25s; }
.btn:hover { transform: translateY(-3px); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-olive { background: var(--olive); color: var(--cream); }

/* Other alphabets: the brand fonts keep the Latin letters, Sofia Sans fills in Cyrillic and Greek,
   the phone's own typefaces cover Chinese and Japanese */
:root:lang(ru), :root:lang(uk), :root:lang(bg), :root:lang(el) { --display: "Big Shoulders Display", "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif; --text: "Fustat", "Sofia Sans", system-ui, sans-serif; }
:root:lang(zh) { --display: "Big Shoulders Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; --text: "Fustat", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
:root:lang(ja) { --display: "Big Shoulders Display", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", sans-serif; --text: "Fustat", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", sans-serif; }
:is(:root:lang(zh), :root:lang(ja)) :is(h1, h2, h3, .tile-label strong) { line-height: 1.2; }
/* Longer languages: buttons may wrap instead of overflowing (large headings shrink instead, see nav.js) */
.btn, .dock > *, .nav-call { max-width: 100%; overflow-wrap: break-word; }
.dock > * { min-width: 0; hyphens: auto; }
/* Shown in every language that has not been proofread */
.auto-note { max-width: 560px; margin: 14px auto 0; padding: 10px 14px; background: #fde7bf; color: var(--ink); font-size: 12.5px; line-height: 1.45; text-align: center; }
.auto-note strong, .auto-note span { display: block; }
.auto-note span { margin-top: 3px; font-weight: 300; }
.lunch-sheet .auto-note { max-width: none; margin: 0; }

/* Skip link: invisible until reached with the keyboard */
.skip-link { position: fixed; z-index: 40; left: 8px; top: 8px; translate: 0 -200%; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 14px; padding: 12px 18px; }
.skip-link:focus { translate: 0 0; }
main:focus { outline: none; box-shadow: none; }
.legal-link { text-align: center; font-size: 12px; padding: 4px 16px 28px; }
.legal-link a { display: inline-block; padding: 8px; }
.lunch-page .legal-link { margin: -92px auto 0; padding-bottom: 96px; width: max-content; }
.lunch-page .legal-link a { background: var(--cream); color: var(--ink); }
.nav-privacy { display: block; flex: none; align-self: center; font-size: 13px; padding: 14px 8px 0; }
/* Page not found */
.notfound { max-width: 640px; margin: 0 auto; padding: 72px 20px 96px; text-align: center; }
.notfound h1 { font-size: clamp(48px, 13vw, 92px); color: var(--olive); margin-bottom: 14px; }
.notfound p { font-size: 18px; line-height: 1.5; }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* Privacy and cookie page */
.legal { max-width: 68ch; margin: 0 auto; padding: 40px 20px 72px; }
.legal h1 { font-size: clamp(40px, 9vw, 68px); color: var(--olive); margin-bottom: 18px; }
.legal h2 { font-size: 26px; letter-spacing: .06em; color: var(--olive); margin: 30px 0 8px; }
.legal p { line-height: 1.65; margin-bottom: 10px; }
.legal a { text-decoration: underline; }
.legal ul { list-style: disc; padding-left: 1.2em; margin-bottom: 10px; }
.legal li { line-height: 1.65; margin-bottom: 6px; }
.legal a { overflow-wrap: anywhere; }
.legal-draft { border: 1px dashed var(--ink); padding: 10px 14px; font-size: 14px; font-weight: 700; }
.legal mark { background: #fde7bf; color: var(--ink); padding: 0 3px; }
.legal-date { font-size: 13px; margin-top: 28px; }

/* Site navigation, identical on every page */
.site-nav { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; height: var(--nav-h); background: var(--olive); color: var(--cream); padding: 0 clamp(16px, 4vw, 64px); }
.nav-logo img { width: 104px; }
.nav-fallback { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: none; align-items: center; gap: 28px; }
.nav-links a:not(.nav-call) { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:not(.nav-call):hover, .nav-links a[aria-current] { border-color: var(--yellow); }
.nav-call { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; text-decoration: none; background: var(--yellow); color: var(--ink); padding: 10px 16px; }
.nav-end { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); }
.nav-links a, .lang-btn { white-space: nowrap; flex: none; }
/* Language selector, beside the burger */
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; font: 700 12px var(--text); letter-spacing: .08em; background: none; color: var(--cream); border: 1px solid rgb(255 250 245 / .6); cursor: pointer; }
.flag { font-size: 17px; line-height: 1; }
.chevron { font-size: 11px; }
.lang-menu { position: absolute; z-index: 6; top: calc(100% + 8px); right: 0; width: 190px; max-height: 60dvh; overflow-y: auto; background: var(--cream); color: var(--ink); border: 1px solid var(--olive); padding: 4px; box-shadow: 0 14px 30px rgb(0 0 0 / .18); }
.lang-menu[hidden] { display: none; }
.lang-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; font: 700 15px var(--text); color: var(--ink); background: none; border: 0; padding: 8px 12px; cursor: pointer; }
.lang-option[aria-pressed="true"] { background: var(--olive); color: var(--cream); }
.lang-option .check { margin-left: auto; }
.burger { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -8px; background: none; border: 0; color: inherit; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: currentColor; }
.nav-panel { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; padding: 0 clamp(16px, 6vw, 64px) 28px; background: var(--olive); color: var(--cream); overflow-y: auto; }
.nav-panel[open] { display: flex; flex-direction: column; animation: panel-in .25s ease; }
@keyframes panel-in { from { opacity: 0; } }
.nav-panel-top { display: flex; justify-content: space-between; align-items: center; flex: none; height: var(--nav-h); }
.nav-close { width: 44px; height: 44px; margin-right: -8px; font-size: 22px; background: none; border: 0; color: inherit; cursor: pointer; }
.nav-panel ul { border-top: 4px double rgb(255 250 245 / .35); margin-top: 8px; }
.nav-panel li { border-bottom: 1px solid rgb(255 250 245 / .22); }
.nav-panel li a { display: block; font: 700 clamp(28px, 4.6svh, 40px)/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 1.7svh 0; }
.nav-panel li a[aria-current] { color: var(--yellow); }
.nav-panel .nav-call { display: block; flex: none; margin-top: auto; padding: 16px; }
body:has(.nav-panel[open]) { overflow: hidden; }

.plate { position: relative; container-type: inline-size; width: min(100%, 560px); animation: settle 1.1s cubic-bezier(.2, .8, .2, 1) both; filter: drop-shadow(0 18px 24px rgb(47 23 8 / .18)); }
.plate-ring { width: 100%; }
.plate-logo { position: absolute; width: 46%; left: 50%; top: 48%; translate: -50% -50%; }
.plate-claim { position: absolute; top: 61%; left: 0; right: 0; text-align: center; color: var(--teal); font-size: clamp(10px, 2.6cqi, 14px); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
@keyframes settle { from { opacity: 0; transform: translateY(-30px) rotate(-8deg) scale(1.06); } }

/* Business lunch card */
.small { font-size: 12px; margin-top: 12px; opacity: .75; }

/* Business lunch: a square sheet on the checked tablecloth. Everything scales from --u */
.lunch-sheet { --u: clamp(12.5px, 3.7vw, 15px); font-size: var(--u); display: flex; flex-direction: column; width: 100%; max-width: 500px; background: var(--cream); color: var(--ink); text-align: center; box-shadow: 0 18px 44px rgb(0 0 0 / .26); }
.lunch-sheet .sheet-head { background: var(--olive); color: var(--cream); padding: 1.45em 1em 1.3em; }
.sheet-logo { display: block; width: 7.4em; height: 2.25em; margin: 0 auto; background: currentColor; -webkit-mask: url("../assets/logo-tonys.svg") center / contain no-repeat; mask: url("../assets/logo-tonys.svg") center / contain no-repeat; }
.lunch-sheet h2 { font-size: 2.15em; letter-spacing: .14em; }
.sheet-logo + h2 { margin-top: .4em; }
.sheet-date { display: inline-block; background: var(--yellow); color: var(--ink); font-size: .84em; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: .35em .95em; margin-top: .85em; }
.sheet-main { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; gap: 1.15em; padding: 1.8em 1.4em 1.7em; }
.sheet-main h3 { display: flex; align-items: center; gap: .8em; font-size: 1.08em; letter-spacing: .32em; color: var(--leather, #7a4a2b); }
.sheet-main h3::before, .sheet-main h3::after { content: ""; flex: 1; border-top: 1px solid #d9cdb8; }
/* a little more room where the second course begins */
.sheet-main ul + h3 { margin-top: .6em; }
.sheet-main ul { display: grid; gap: 1.05em; }
.sheet-main li { font-size: .92em; font-weight: 500; line-height: 1.35; letter-spacing: .07em; text-transform: uppercase; text-wrap: balance; }
.sheet-extra { font-family: var(--display); font-weight: 700; font-size: 1.35em; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); width: min(100%, 10em); margin: .35em auto 0; padding-top: .95em; border-top: 1px solid #d9cdb8; }
.sheet-extra small { display: block; font-family: var(--text); font-weight: 500; font-size: .54em; letter-spacing: .12em; margin-top: .45em; }
.sheet-where { display: grid; gap: .35em; border-top: 2px solid #e4ded4; margin: 0 1.2em; padding: .9em 0 1.1em; font-size: max(.65em, 10.5px); font-weight: 500; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); }
.sheet-call { margin: 0 1.2em 1.25em; background: var(--olive); color: var(--cream); text-align: center; }
/* Prices, in the olive of the printed sign */
.sheet-prices { background: var(--olive); color: var(--cream); padding: 1.7em 1.4em 1.5em; margin-bottom: 1.25em; }
.sheet-prices h3 { font-size: 1.08em; letter-spacing: .32em; color: var(--yellow); }
.sheet-menus li { padding: 1.15em 0; border-bottom: 4px double rgb(255 250 245 / .28); }
.sheet-menus h4 { font-size: .98em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sheet-menus p { font-size: .88em; font-weight: 300; line-height: 1.45; max-width: 30ch; margin: .25em auto 0; text-wrap: balance; }
.lunch-sheet .sheet-price { display: block; font-family: var(--display); font-weight: 700; font-size: 2em; line-height: 1; letter-spacing: .06em; margin-top: .3em; }
.sheet-menus + h3 { margin-top: 1.4em; }
.sheet-extras { display: grid; gap: .55em; max-width: 17em; margin: .9em auto 0; }
.sheet-extras li { display: flex; justify-content: space-between; gap: 1em; font-size: .92em; letter-spacing: .06em; text-transform: uppercase; }
.sheet-notice { align-items: center; justify-content: center; gap: 1.2em; min-height: 20em; }
.sheet-message { font-family: var(--display); font-weight: 700; font-size: 2.35em; line-height: 1.05; letter-spacing: .05em; text-transform: uppercase; color: var(--olive); text-wrap: balance; }
.sheet-notice p:not(.sheet-message) { font-size: 1.15em; font-weight: 300; max-width: 24ch; text-wrap: balance; }



.dock { position: fixed; z-index: 5; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 1fr 1fr 1.9fr; max-width: 520px; margin-inline: auto; background: var(--cream); border: 1.5px solid var(--olive); overflow: hidden; box-shadow: 0 10px 28px rgb(0 0 0 / .18); }
.dock > * { display: grid; place-items: center; min-height: 52px; text-align: center; text-decoration: none; padding: 6px 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.25; text-transform: uppercase; color: var(--olive); }
.dock > * + * { border-left: 1px solid #d9d3c8; }
.dock [aria-current] { background: var(--yellow); color: var(--ink); }
.dock .dock-call { background: var(--olive); color: var(--cream); }

/* Business lunch page */
/* One cloth covering the whole page: tiling it shows the seams */
.lunch-page { min-height: 100vh; background: var(--cream) url("../assets/tovaglia.webp") center / cover; }
.lunch-page main { display: grid; justify-items: center; padding: 36px 18px 112px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Shared by the menu */
.cover-charge { display: flex; justify-content: space-between; padding: 18px 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-bottom: 4px double #d9d3c8; }
.fish-note { background: var(--olive); color: var(--cream); font-size: 11px; line-height: 1.6; padding: 16px 18px; margin-top: 20px; }
.staff-note { text-align: center; font-weight: 700; font-size: 14px; max-width: 40ch; margin: 32px auto 0; }

@media (min-width: 880px) {
  .nav-links { display: flex; }
  .burger { display: none; }
  /* when the translated links do not fit on one line, the burger comes back */
  .site-nav.compact .nav-links { display: none; }
  .site-nav.compact .burger { display: grid; }
  .dock:not(.dock-always) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
