/* Da Mario: layout modelled on the Tre Valv template, recoloured warm (wood, walnut brown, cream). */

/* The licence texts ship with the font files. The packaging step copies only files that a page, stylesheet or script
   refers to, and it reads these two addresses: url(fonts/Zodiak-FFL.txt) and url(fonts/HankenGrotesk-OFL.txt). */

/* The official variable file from the Fontshare download. The ITF licence forbids subsetting and format conversion. */
@font-face {
  font-family: "Zodiak";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Zodiak-Variable.woff2") format("woff2");
}

/* Latin subset only. It covers Swedish, English and Italian. Add the latin-ext files if a page needs other letters. */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2");
}

:root {
  --bg: #f5eee4;
  --bg-alt: #ebe1d3;
  --card: #fdfaf5;
  --night: #2a1c14;
  --night-2: #1a110c;
  --text: #3a2a20;
  --head: #2a1c14;
  --muted: #6b5647;
  --accent: #94432a;
  --accent-dark: #7a3520;
  --tan: #d8b996;
  --line: rgba(58, 42, 32, 0.12);
  --line-dark: rgba(245, 238, 228, 0.16);

  /* Both fonts ship in fonts/ and load from the site's own domain. Zodiak is under the ITF Free Font License 2.0,
     which allows self-hosting but forbids passing the files to another party: each party downloads its own copy
     from fontshare.com. Hanken Grotesk is under the SIL Open Font License. The licence texts are in fonts/. */
  --serif: "Zodiak", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid scale: 18px at 360px wide up to 20px at 1240px. */
  --step-0: clamp(1.125rem, 1.0739rem + 0.2273vw, 1.25rem);
  --step-1: clamp(1.35rem, 1.26rem + 0.4vw, 1.5625rem);
  /* Dish names on the menu page use this step, which sits between step-0 and step-1. It was tuned for Gambetta, the
     earlier heading font, and has not been retuned for Zodiak. */
  --serif-small: clamp(1.2rem, 1.14rem + 0.27vw, 1.375rem);
  --step-2: clamp(1.62rem, 1.47rem + 0.67vw, 1.95rem);
  --step-3: clamp(1.94rem, 1.7rem + 1.07vw, 2.44rem);
  --step-4: clamp(2.33rem, 1.95rem + 1.68vw, 3.05rem);
  --step-5: clamp(2.8rem, 2.2rem + 2.65vw, 4.2rem);
  --ui: 0.9375rem;
  --meta: 0.875rem;

  --space-s: 16px;
  --space-m: 32px;
  --space-l: clamp(48px, 6vw, 64px);
  --space-xl: clamp(64px, 9vw, 128px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;

  --header-h: 72px;
  --wrap: 1180px;
  --gutter: clamp(16px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.45;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--head);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--tan); }

.skip-link {
  position: absolute; left: 8px; top: -64px; z-index: 100;
  background: var(--night); color: var(--bg); padding: 12px 16px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 65ch; }
.center { text-align: center; }
.center .prose { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: var(--ui);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
}
.on-dark .eyebrow { color: var(--tan); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-family: var(--sans);
  font-size: var(--ui);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  border-radius: 0;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--bg); }
/* The terracotta accent is only 2.4:1 on walnut, so dark surfaces get cream buttons. */
.on-dark .btn, .site-header .btn { background: var(--bg); border-color: var(--bg); color: var(--night); }
.on-dark .btn:hover, .site-header .btn:hover { background: var(--tan); border-color: var(--tan); }
.on-dark .btn--ghost { background: transparent; color: var(--bg); border-color: rgba(245, 238, 228, 0.6); }
.on-dark .btn--ghost:hover { background: var(--bg); color: var(--night); border-color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--bg);
  background: linear-gradient(to bottom, rgba(26, 17, 12, 0.7), rgba(26, 17, 12, 0));
  transition: background-color 300ms var(--ease);
}
.site-header.is-solid, .site-header--solid { background: rgba(42, 28, 20, 0.97); }
.header-bar {
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter);
}
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.wordmark__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.wordmark__tag { font-size: 0.75rem; letter-spacing: 0.01em; color: var(--tan); margin-top: 4px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.main-nav a {
  font-size: var(--ui); font-weight: 500;
  text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent;
  transition: border-color var(--fast) var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--tan); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang { font-size: var(--meta); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.lang:hover { text-decoration: underline; }
.header-actions .btn { min-height: 44px; padding: 8px 20px; }
.mobile-nav { display: none; }

@media (max-width: 920px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; gap: 12px; }
  .header-actions .btn__long { display: none; }
  .mobile-nav {
    display: block;
    border-top: 1px solid var(--line-dark);
    background: rgba(42, 28, 20, 0.97);
  }
  .mobile-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
  }
  .mobile-nav a {
    display: flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 4px;
    font-size: var(--meta); font-weight: 500; text-decoration: none;
  }
  .mobile-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--tan); }
  :root { --header-h: 116px; }
}
@media (min-width: 921px) { .header-actions .btn__short { display: none; } }

/* Home hero */
.hero {
  position: relative;
  height: min(100svh, 880px);
  min-height: 520px;
  background: var(--night-2);
  color: var(--bg);
  overflow: hidden;
}
.hero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms var(--ease);
}
.hero__slide.is-on { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26, 17, 12, 0.88) 0%, rgba(26, 17, 12, 0.25) 55%, rgba(26, 17, 12, 0.4) 100%);
}
.hero__content {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 0 var(--gutter) clamp(48px, 8vh, 96px);
  text-align: center;
}
.hero__content h1 { color: var(--bg); font-size: clamp(3rem, 2rem + 5vw, 6rem); line-height: 1; letter-spacing: -0.02em; }
.hero__lead { max-width: 36rem; margin: 16px auto 28px; }
.hero__content h1 + .btn-row { margin-top: 28px; }
.hero__dots { display: flex; justify-content: center; gap: 4px; margin-top: 28px; }
.hero__dots button {
  width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.hero__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(245, 238, 228, 0.45); transition: background-color var(--fast) var(--ease); }
.hero__dots button[aria-current="true"]::before { background: var(--bg); }

/* Subpage hero */
.page-hero {
  position: relative;
  height: clamp(380px, 46vh, 540px);
  background: var(--night-2);
  color: var(--bg);
  overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26, 17, 12, 0.9) 0%, rgba(26, 17, 12, 0.3) 60%, rgba(26, 17, 12, 0.45) 100%);
}
.page-hero__content {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  max-width: 1320px; margin: 0 auto;
  padding: 0 var(--gutter) clamp(32px, 5vh, 56px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.page-hero h1 { color: var(--bg); font-size: var(--step-5); letter-spacing: -0.01em; }
.page-hero p { max-width: 46ch; margin-top: 12px; }

/* Sections */
.section { padding: var(--space-xl) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: var(--space-l) 0; }
.section-title { font-size: var(--step-4); margin-bottom: var(--space-m); }
.lead { font-size: var(--step-1); font-weight: 400; line-height: 1.45; color: var(--head); }
.section-title:has(+ .lead), .section-title:has(+ .prose > .lead:first-child) { margin-bottom: 20px; }
.lead + p { margin-top: 24px; }

/* Photo rows */
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-row--4 { grid-template-columns: repeat(4, 1fr); margin-top: var(--space-l); }
.photo-row img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 640px) {
  .photo-row, .photo-row--4 { grid-template-columns: 1fr 1fr; }
  .photo-row:not(.photo-row--4) img:nth-child(3) { display: none; }
}

/* Split photo blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: min(88vh, 820px); background: var(--night); color: var(--bg); }
.split__media { position: relative; overflow: hidden; min-height: 320px; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__body { display: flex; flex-direction: column; justify-content: center; padding: var(--space-l) clamp(24px, 6vw, 96px); }
.split__body h2 { color: var(--bg); font-size: var(--step-4); margin-bottom: var(--space-s); }
.split__body p { max-width: 46ch; margin-bottom: var(--space-m); }
.split--mirror .split__media { order: 2; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split__media { aspect-ratio: 4 / 3; min-height: 0; }
  .split--mirror .split__media { order: 0; }
}

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--card); text-decoration: none; display: block; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 24px; }
.card__body h3 { font-size: var(--step-2); margin-bottom: 8px; transition: color var(--fast) var(--ease); }
.card:hover h3 { color: var(--accent); }
.card__more { display: inline-block; margin-top: 16px; font-size: var(--ui); color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* Menu */
.menu-tabs {
  position: sticky; top: var(--header-h); z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.menu-tabs ul {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter);
  max-width: var(--wrap);
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.menu-tabs ul::-webkit-scrollbar { display: none; }
.menu-tabs li { flex: none; }
.menu-tabs a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px;
  font-size: var(--ui); font-weight: 500;
  text-decoration: none; white-space: nowrap; color: var(--muted);
  transition: color var(--fast) var(--ease);
}
.menu-tabs a:hover { color: var(--head); }
.menu-tabs a.is-active { color: var(--head); box-shadow: inset 0 -2px 0 var(--accent); }
.menu-tabs__edge { flex: none; width: 1px; }
.menu-list { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.menu-cat { padding-top: var(--space-l); }
.menu-cat h2 { font-size: var(--step-3); margin-bottom: var(--space-s); text-align: center; }
.menu-cat ul { list-style: none; margin: 0; padding: 0; }
.menu-item { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu-item__name { font-family: var(--serif); font-size: var(--serif-small); font-weight: 500; color: var(--head); }
.menu-item__price, .lunch-day li span:last-child, .hours li span:last-child { font-variant-numeric: tabular-nums; }
.menu-item__price { margin-left: auto; font-weight: 500; color: var(--accent); white-space: nowrap; }
.menu-note {
  max-width: 820px; margin: var(--space-l) auto 0; padding: var(--space-m) var(--gutter);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center;
}
.menu-note p { max-width: 60ch; margin-left: auto; margin-right: auto; }

/* The menu and lunch pages keep their look from before the polish pass, at the customer's request. */
.page-menu .eyebrow, .page-lunch .eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.9rem; }
.page-menu h1, .page-menu .menu-cat h2, .page-lunch h1, .page-lunch h2 { letter-spacing: 0; }
.page-lunch .menu-note { border-color: rgba(58, 42, 32, 0.18); }
.page-menu .menu-tabs { border-bottom-color: rgba(58, 42, 32, 0.18); }
.page-menu .menu-tabs a { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0 14px; }
.page-menu .menu-item { padding: 0.85rem 0; border-bottom-color: rgba(58, 42, 32, 0.18); }
.page-menu .menu-item__name { font-weight: 500; }
.page-menu .menu-item__price { font-weight: 600; font-variant-numeric: normal; }
.page-menu .menu-note { border-color: rgba(58, 42, 32, 0.18); }

/* Lunch week, in its look from before the polish pass */
.lunch-days { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.lunch-day { padding: clamp(1.5rem, 1.3rem + 1vw, 2rem) 0; border-bottom: 1px solid rgba(58, 42, 32, 0.18); display: grid; grid-template-columns: 9rem 1fr; gap: 16px; }
.lunch-day h3 { font-size: 1.25rem; font-weight: 600; white-space: nowrap; }
.lunch-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.lunch-day li { display: flex; gap: 16px; align-items: baseline; }
.lunch-day li span:last-child { margin-left: auto; font-weight: 600; color: var(--accent); white-space: nowrap; font-variant-numeric: normal; }
@media (max-width: 640px) { .lunch-day { grid-template-columns: 1fr; } }
.facts { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 16px; }

/* Contact */
.contact { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.info-rows { margin: var(--space-m) 0; border-top: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 128px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row dt { font-size: var(--ui); font-weight: 500; color: var(--muted); padding-top: 4px; }
.info-row dd { margin: 0; font-size: var(--step-0); color: var(--head); }
.info-row dd a { white-space: nowrap; }
.event-facts { max-width: 640px; margin: var(--space-m) auto; text-align: left; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; max-width: 288px; }
.map {
  position: relative; min-height: 520px; background: var(--bg-alt);
  display: grid; place-items: center; text-align: center; padding: var(--space-m);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__gate p { max-width: 36ch; margin: 0 auto var(--space-s); }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .map { min-height: 320px; }
  .info-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Legal page */
.page-top { padding-top: calc(var(--header-h) + var(--space-l)); }
.legal { max-width: 70ch; margin: 0 auto; padding: 0 var(--gutter); }
.legal h2 { font-size: var(--step-2); margin: var(--space-m) 0 12px; }
.legal ul { padding-left: 20px; }

/* Footer */
.site-footer { background: var(--night); color: var(--bg); padding: var(--space-l) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 32px; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.footer-grid h2 { font-family: var(--sans); font-size: var(--ui); font-weight: 600; color: var(--tan); margin-bottom: 12px; }
.footer-grid p, .footer-grid li { font-size: var(--ui); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid a[href^="tel:"] { white-space: nowrap; }
.footer-grid a[href^="mailto:"] { overflow-wrap: anywhere; }
.footer-center { text-align: center; }
.footer-center .wordmark { align-items: center; margin-bottom: 16px; }
.footer-center p { margin: 0 auto 20px; max-width: 32ch; }
.footer-right { text-align: right; }
.footer-right .hours li { margin-left: auto; }
.footer-right section + section { margin-top: 24px; }
.sub-footer {
  margin-top: var(--space-l); border-top: 1px solid var(--line-dark);
  padding: 16px var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: var(--meta); color: rgba(245, 238, 228, 0.75);
}
.sub-footer a { text-decoration: none; }
.sub-footer a:hover { text-decoration: underline; }
.powered { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.powered img { height: 18px; width: auto; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-right { text-align: center; }
  .hours li { margin: 0 auto; }
}

/* Mobile bottom bar */
.mobile-bar { display: none; }
@media (max-width: 920px) {
  .mobile-bar {
    position: fixed; inset: auto 0 0 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--line-dark);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 52px;
    background: var(--night); color: var(--bg);
    font-size: var(--ui); font-weight: 500; text-decoration: none;
  }
  .mobile-bar a:last-child { background: var(--accent); }
  body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* Cookie banner */
.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin: 0 auto;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(42, 28, 20, 0.16);
  padding: 20px 20px 16px;
  font-size: var(--ui);
}
.consent[hidden] { display: none; }
.consent h2 { font-size: var(--step-1); margin-bottom: 8px; }
.consent .btn-row { margin-top: 16px; }
.consent .btn-row .btn { flex: 1 1 10rem; }
.consent__more { margin-top: 12px; background: none; border: 0; padding: 0; min-height: 44px; font: inherit; text-decoration: underline; color: var(--text); cursor: pointer; }
.consent__settings { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.consent__settings label { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0; }
.consent__settings input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
@media (max-width: 920px) { .consent { bottom: calc(68px + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide, .btn, .card h3 { transition: none; }
}
