/* ==========================================================================
   Invitalia — invitalia.otlusites.com
   One hand-written stylesheet. Nothing loaded from another domain.

   Colour is taken off the business: the deep navy of their logo tile and
   their signboard, the Italian tricolore that runs across the logo, the
   sign and every one of their printed menu cards, and — in dark mode —
   the warm amber of the bulb string lights over the outdoor tables.

   Light and dark both follow the device by default. The switch in the
   footer overrides it: see "colour" below and /assets/js/theme.js.
   ========================================================================== */

/* ---------- fonts, self-hosted and subset to Latin + ₹ ------------------ */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-soft-subset.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-subset.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-italic-subset.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- colour ------------------------------------------------------
   Three states, in this order:
     1. :root                                  → light, the default
     2. device is dark AND not forced to light → dark
     3. forced to dark with the switch         → dark
   The dark values appear twice on purpose. There is no build step here,
   so there is nothing to generate one from the other — and two honest
   copies beat a preprocessor nobody else has installed.
   ------------------------------------------------------------------------ */

:root {
  --bg:         #fcfcfd;
  --bg-2:       #f2f3f7;
  --ink:        #171c2e;   /* their logo navy, taken down for text */
  --muted:      #545b74;
  --line:       #e1e3ea;
  --accent:     #b0232e;   /* the red of their tricolore, deepened to read */
  --accent-ink: #ffffff;
  --accent-soft:#fbe9e8;
  --navy:       #232a45;   /* the logo plate */
  --green:      #00723a;
  --flag-w:     #d5d8e0;   /* the tricolore's white band, tinted so it reads */
  --leader:     #b6bac6;   /* the leader dots on the menu — read, not shout */
  --glow:       none;

  --wrap:   68rem;
  --prose:  40rem;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --head-h: 4.4rem;

  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #0e1120;   /* navy-black. The shop only exists after dark. */
    --bg-2:       #161a2b;
    --ink:        #eef0f5;
    --muted:      #a2a8bf;
    --line:       #262b41;
    --accent:     #ff7f6f;   /* lifted — the same red goes to dried blood here */
    --accent-ink: #161a2b;
    --accent-soft:#2a2233;
    --navy:       #1a2038;
    --green:      #35c07a;   /* lifted too, or it disappears */
    --flag-w:     #eef0f5;
    --leader:     #4a5270;
    --glow:       drop-shadow(0 0 9px rgba(246, 214, 160, .30))
                  drop-shadow(0 0 28px rgba(246, 214, 160, .14));
  }
}

:root[data-theme="dark"] {
  --bg:         #0e1120;
  --bg-2:       #161a2b;
  --ink:        #eef0f5;
  --muted:      #a2a8bf;
  --line:       #262b41;
  --accent:     #ff7f6f;
  --accent-ink: #161a2b;
  --accent-soft:#2a2233;
  --navy:       #1a2038;
  --green:      #35c07a;
  --flag-w:     #eef0f5;
  --leader:     #4a5270;
  --glow:       drop-shadow(0 0 9px rgba(246, 214, 160, .30))
                drop-shadow(0 0 28px rgba(246, 214, 160, .14));
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  font-variation-settings: 'wght' 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 4.25rem;            /* room for the fixed call bar */
}

@media (min-width: 52em) { body { padding-bottom: 0; } }

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

a { color: inherit; }

p a:not(.btn),
.prose a:not(.btn),
.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
p a:not(.btn):hover,
.prose a:not(.btn):hover,
.link:hover { text-decoration-color: var(--accent); }

address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: .7rem 1rem; z-index: 60;
}
.skip:focus { left: .5rem; top: .5rem; }

/* everything the header can jump to has to clear the sticky header */
[id] { scroll-margin-top: calc(var(--head-h) + 1rem); }

/* ---------- type -------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-variation-settings: 'wght' 600, 'SOFT' 45;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 1.15rem + 4.3vw, 4rem);
  font-variation-settings: 'wght' 620, 'SOFT' 55;
  letter-spacing: -0.022em;
}
h2 { font-size: clamp(1.55rem, 1.05rem + 2vw, 2.35rem); }
h3 {
  font-size: 1.16rem;
  font-variation-settings: 'wght' 640, 'SOFT' 40;
  letter-spacing: -0.004em;
  line-height: 1.25;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.1rem, 1.02rem + .38vw, 1.31rem);
  line-height: 1.55;
  color: var(--ink);
}

.note { color: var(--muted); font-size: .95rem; }

.eyebrow {
  font-size: .74rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-variation-settings: 'wght' 620;
  color: var(--muted);
  margin: 0 0 .9rem;
}

/* their tricolore, used as the rule between sections */
.rule {
  width: 84px; height: 3px; border: 0; margin: 0 0 1.2rem;
  background: linear-gradient(to right,
    var(--green)  0 33.33%,
    var(--flag-w) 33.33% 66.66%,
    var(--accent) 66.66% 100%);
  border-radius: 3px;
}
.rule--wide { width: 100%; height: 3px; margin: 0; border-radius: 0; }

/* ---------- layout ------------------------------------------------------ */

.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--prose); }

.section { padding-block: clamp(2.75rem, 7vw, 5.25rem); }
.section--tint { background: var(--bg-2); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.25rem); }

.stack > * + * { margin-top: 1.05rem; }

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-head__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: var(--head-h);
  padding-block: .6rem;
}

/* One wordmark file, not two — the white one, which is how their logo is
   actually drawn. In light mode it sits on the navy plate off their own
   logo tile; in dark mode the plate goes and it glows like the sign. Two
   images swapped with CSS would both be downloaded, which is 15 KB of
   nothing on the critical path. */
.brand {
  display: inline-flex; align-items: center; text-decoration: none;
  background: var(--navy);
  border-radius: 7px;
  padding: .42rem .6rem;
}
.brand img { width: 106px; height: auto; }
@media (min-width: 26em) { .brand img { width: 132px; } }
@media (min-width: 40em) { .brand img { width: 152px; } }

.brand--foot { padding: .5rem .7rem; }
.brand--foot img { width: 132px; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand { background: transparent; padding: .42rem 0; }
  :root:not([data-theme="light"]) .brand img { filter: var(--glow); }
}
:root[data-theme="dark"] .brand { background: transparent; padding: .42rem 0; }
:root[data-theme="dark"] .brand img { filter: var(--glow); }

/* the OTLU lockup does still swap — both files are 3 KB and lazy */
.otlu-light { display: block; }
.otlu-dark  { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .otlu-light { display: none; }
  :root:not([data-theme="light"]) .otlu-dark  { display: block; }
}
:root[data-theme="dark"] .otlu-light { display: none; }
:root[data-theme="dark"] .otlu-dark  { display: block; }

.nav { display: flex; gap: clamp(.85rem, 3vw, 1.7rem); align-items: center; }
.nav a {
  text-decoration: none;
  font-size: .9rem;
  font-variation-settings: 'wght' 520;
  letter-spacing: .01em;
  color: var(--muted);
  padding-block: .35rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- the banner -------------------------------------------------- */

.banner { background: var(--navy); }
.banner img {
  width: 100%;
  height: clamp(210px, 38vw, 430px);
  object-fit: cover;
  object-position: 50% 44%;
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .78rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: .96rem;
  font-variation-settings: 'wght' 580;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: .65rem; }

/* ---------- the facts strip -------------------------------------------- */

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .1rem .5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 46em) {
  .facts ul { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
}
.facts li { padding-block: .95rem; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
@media (min-width: 46em) { .facts li { border-bottom: 0; padding-block: 1.4rem; } }

.facts b {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'wght' 600, 'SOFT' 45;
  font-size: 1.12rem;
  letter-spacing: -.008em;
  margin-bottom: .1rem;
}
.facts span { color: var(--muted); font-size: .92rem; }

/* ---------- an asymmetric photo-and-text block ------------------------- */

.duo {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: start;
}
@media (min-width: 54em) {
  .duo { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .duo--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
  .duo--flip .duo__media { order: 2; }
}

.duo__media {
  margin: 0;
  /* The customer's shopfront photographs are only 399 px wide. Held to a
     size they are actually sharp at, rather than stretched. */
  max-width: 280px;
}
.duo__media img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--navy);
}
.duo__media figcaption {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
  margin-top: .6rem;
}

/* ---------- a short run of named dishes -------------------------------- */

.picks { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.picks li {
  display: flex; align-items: baseline; gap: .5rem;
  padding-block: .62rem;
  border-top: 1px solid var(--line);
}
.picks li:last-child { border-bottom: 1px solid var(--line); }
.picks .n { font-variation-settings: 'wght' 560; }
.picks .d { flex: 1 1 auto; border-bottom: 1px dotted var(--leader); transform: translateY(-.28em); min-width: 1rem; }
.picks .p { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- the menu ---------------------------------------------------- */

.menu-open { margin-bottom: clamp(.5rem, 2vw, 1rem); }
.menu-title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  font-variation-settings: 'wght' 620, 'SOFT' 55;
  letter-spacing: -.02em;
}

.course { margin-top: clamp(2.4rem, 5vw, 3.6rem); }

.course__head { margin-bottom: 1.4rem; }
.course__head h2 { margin-bottom: .25rem; }
.course__head p { color: var(--muted); font-size: .95rem; margin: 0; max-width: 34rem; }

.dishes {
  display: grid;
  gap: 1.35rem clamp(1.6rem, 4vw, 3.4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 50em) { .dishes { grid-template-columns: 1fr 1fr; } }

.dish { break-inside: avoid; }
.dish__head { display: flex; align-items: baseline; gap: .5rem; }
.dish__head h3 { margin: 0; }
.dish__dots {
  flex: 1 1 auto;
  border-bottom: 1px dotted var(--leader);
  transform: translateY(-.3em);
  min-width: 1.25rem;
}
.dish__price {
  font-variation-settings: 'wght' 560;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dish__desc {
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.5;
  font-style: italic;
  max-width: 30rem;
}

.tag {
  display: inline-block;
  font-size: .64rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-variation-settings: 'wght' 640;
  font-style: normal;
  padding: .16rem .42rem;
  border-radius: 3px;
  vertical-align: .12em;
  margin-left: .35rem;
  background: var(--accent-soft);
  color: var(--accent);
}

/* the add-on / dips panel */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.7rem);
  background: var(--bg);
  margin-top: 1.7rem;
}
.panel h3 { margin-bottom: .8rem; }
.panel ul { list-style: none; margin: 0; padding: 0; column-gap: 2.2rem; }
@media (min-width: 34em) { .panel ul { columns: 2; } }
@media (min-width: 62em) { .panel ul { columns: 3; } }
.panel li {
  display: flex; align-items: baseline; gap: .4rem;
  padding-block: .3rem;
  break-inside: avoid;
  font-size: .95rem;
}
.panel .d { flex: 1 1 auto; border-bottom: 1px dotted var(--leader); transform: translateY(-.28em); min-width: .75rem; }
.panel .p { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- hours ------------------------------------------------------- */

.hours { list-style: none; margin: 0; padding: 0; max-width: 24rem; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: .58rem;
  border-bottom: 1px solid var(--line);
}
.hours li:first-child { border-top: 1px solid var(--line); }
.hours .day { font-variation-settings: 'wght' 520; }
.hours .shut { color: var(--accent); font-variation-settings: 'wght' 560; }

/* ---------- the enquiry form ------------------------------------------- */

.enquiry { max-width: 32rem; margin: 0; }
.enquiry__field { margin-bottom: 1rem; }
.enquiry label {
  display: block;
  font-size: .84rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-variation-settings: 'wght' 600;
  color: var(--muted);
  margin-bottom: .35rem;
}
.enquiry input,
.enquiry textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: .7rem .8rem;
}
.enquiry input:focus, .enquiry textarea:focus { border-color: var(--accent); outline: none; }
.enquiry textarea { resize: vertical; }
.enquiry__optional { text-transform: none; letter-spacing: 0; }
.enquiry__done {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  color: var(--ink);
}

/* the honeypot. Genuinely invisible, but NOT display:none — some bots
   skip anything with display:none, and a honeypot a bot skips does
   nothing at all. */
.enquiry__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.2rem, 5vw, 3.4rem) 2.2rem;
  background: var(--bg-2);
}
.foot-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr;
}
@media (min-width: 46em) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

.site-foot h2 { font-size: 1.02rem; margin-bottom: .55rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { padding-block: .2rem; }
.site-foot a { text-decoration: none; color: var(--muted); }
.site-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; }
.site-foot address { color: var(--muted); }

/* ---------- the appearance switch --------------------------------------
   Hidden unless theme.js ran — a switch that cannot do anything is worse
   than no switch.
   ------------------------------------------------------------------------ */

.foot-theme { display: none; }
.js .foot-theme {
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.foot-theme > span {
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-variation-settings: 'wght' 620;
  color: var(--muted);
}
.theme {
  display: inline-flex; gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}
.theme button {
  font: inherit;
  font-size: .8rem;
  font-variation-settings: 'wght' 560;
  padding: .34rem .8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease;
}
.theme button:hover { color: var(--ink); }
.theme button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.foot-end {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem;
  align-items: center; justify-content: space-between;
  color: var(--muted);
  font-size: .82rem;
}

.built-by {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none;
  color: var(--muted);
}
.built-by img { width: 96px; height: 20px; opacity: .72; }
.built-by:hover { color: var(--ink); }
.built-by:hover img { opacity: 1; }
.built-by span { font-size: .78rem; }

/* ---------- the fixed call bar ----------------------------------------- */

.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(0, 0, 0, .10);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.callbar a {
  padding: 1rem .5rem;
  text-align: center;
  text-decoration: none;
  font-size: .95rem;
  font-variation-settings: 'wght' 600;
  color: var(--ink);
}
.callbar a + a { border-left: 1px solid var(--line); }
.callbar a:first-child { color: var(--accent); }
@media (min-width: 52em) { .callbar { display: none; } }

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

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

/* ---------- print -------------------------------------------------------
   The menu gets printed. A printed page with a navigation bar and a
   WhatsApp button on it looks careless.
   ------------------------------------------------------------------------ */

@media print {
  :root, :root[data-theme="dark"] {
    --bg: #fff; --bg-2: #fff; --ink: #000; --muted: #444;
    --line: #bbb; --accent: #000; --flag-w: #ccc; --leader: #999;
    --glow: none;
  }
  body { padding: 0; font-size: 10.5pt; line-height: 1.45; background: #fff; }
  .nav, .callbar, .banner, .btn-row, .enquiry, .skip, .facts,
  .foot-theme, .duo__media, .picks, .no-print { display: none !important; }
  .site-head {
    position: static; background: #fff;
    border-bottom: 1px solid #bbb;
  }
  .site-head__in { min-height: 0; padding-block: 0 .4rem; }
  .brand { background: #232a45 !important; padding: .4rem .55rem !important; }
  .brand img { width: 120px; filter: none; }
  .otlu-dark { display: none !important; }
  .section { padding-block: .8rem; }
  .print-only { display: block !important; }
  .dishes { grid-template-columns: 1fr 1fr; gap: .6rem 2rem; }
  .dish__desc { font-size: 8.5pt; }
  .course { margin-top: 1.1rem; page-break-inside: auto; }
  .course__head { margin-bottom: .5rem; page-break-after: avoid; }
  .menu-open { page-break-after: avoid; }
  h1 { font-size: 22pt; margin-bottom: .35em; }
  h2, .menu-title { font-size: 15pt; }
  h3 { font-size: 10.5pt; }
  .lede { font-size: 11pt; }
  a, p a:not(.btn), .prose a:not(.btn), .link {
    text-decoration: none; color: #000;
  }
  .panel { background: #fff; }
  .site-foot { border-top: 1px solid #bbb; padding-block: .8rem; }
  .foot-grid, .foot-end { display: none !important; }
}

.print-only { display: none; }
