/* Taverna del Gentilorco - Pavia
   Palette read off the venue's own photographs: warm near-black, the grey rough-plaster dado
   of the rooms, terracotta floor tiles, amber ale, parchment. */

:root {
  --ink: #15120e;
  --ink-2: #1e1a15;
  --stone: #2a2723;
  --stone-line: #3b3730;
  --plaster: #7b746a;
  --ale: #d99a3a;
  --ale-bright: #eebd68;
  --terracotta: #b45f3c;
  --orc: #86a25a;
  --parchment: #f5ecda;
  --parchment-dim: #c3b8a2;
  --measure: 34rem;
  --shell: 68rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --rule: 1px solid var(--stone-line);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.075rem)/1.65 Karla, 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--ale-bright); }
a:hover { color: var(--parchment); }

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

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

.shell {
  width: min(100% - var(--pad) * 2, var(--shell));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ale);
  color: var(--ink);
  padding: 0.7rem 1rem;
  font-weight: 600;
  z-index: 50;
}
.skip:focus { left: 0; }

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(21, 18, 14, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: var(--rule);
}

.site-head__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  font-size: 1.12rem;
  color: var(--parchment);
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-right: auto;
  white-space: nowrap;
}
.wordmark span {
  font-family: Karla, sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plaster);
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.9rem;
}
.site-nav a {
  color: var(--parchment-dim);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--parchment); border-bottom-color: var(--ale); }

.head-tel {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--ale);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.head-tel:hover { background: var(--ale-bright); color: var(--ink); }

@media (max-width: 60rem) {
  .site-nav { display: none; }
}
@media (max-width: 26rem) {
  .head-tel { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
  .wordmark span { display: none; }
}

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

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4rem, 12vw, 8.5rem);
  border-bottom: var(--rule);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('sala-lunga.jpg') center 40% / cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(21, 18, 14, 0.95) 0%, rgba(21, 18, 14, 0.86) 45%, rgba(21, 18, 14, 0.6) 100%),
    radial-gradient(120% 90% at 15% 30%, rgba(217, 154, 58, 0.16), transparent 60%);
}

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ale);
  margin: 0 0 1.1rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.4rem);
  max-width: 16ch;
  margin-bottom: 1.2rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--ale-bright);
}

.hero__lede {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.25rem);
  color: var(--parchment-dim);
  max-width: 40ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn--primary { background: var(--ale); color: var(--ink); }
.btn--primary:hover { background: var(--ale-bright); color: var(--ink); }
.btn--ghost { border-color: var(--plaster); color: var(--parchment); }
.btn--ghost:hover { border-color: var(--ale); color: var(--parchment); }

.hero__stars {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.2rem;
  font-size: 0.9rem;
  color: var(--parchment-dim);
}
.hero__stars strong { color: var(--parchment); font-weight: 600; }
.hero__stars svg { flex: none; }

/* ---------- generic section ---------- */

.band { padding-block: clamp(3.5rem, 8vw, 6rem); border-bottom: var(--rule); }
.band--stone { background: var(--ink-2); }

.band__label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ale);
  font-weight: 600;
  margin: 0 0 1rem;
}

.band h2 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.75rem);
  max-width: 20ch;
  margin-bottom: 1.4rem;
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 52rem) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--flip > :first-child { order: 2; }
}

.frame {
  border: 1px solid var(--stone-line);
  padding: 0.6rem;
  background: var(--stone);
}
.frame img { width: 100%; }

figure { margin: 0; }
figcaption {
  font-size: 0.82rem;
  color: var(--plaster);
  margin-top: 0.7rem;
  max-width: 42ch;
}

/* ---------- dishes ---------- */

/* Rules are drawn on the cells, not by letting a background show through a 1px gap, so a last
   row that does not fill leaves clean empty space instead of a stranded grey box. */
.dishes {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--stone-line);
  border-left: 1px solid var(--stone-line);
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.dishes li {
  padding: 1.35rem 1.4rem;
  border-right: 1px solid var(--stone-line);
  border-bottom: 1px solid var(--stone-line);
}
.dishes b {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  font-size: 1.18rem;
  color: var(--parchment);
  line-height: 1.25;
}
.dishes span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--plaster);
}

.note {
  margin-top: 1.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--terracotta);
  color: var(--parchment-dim);
  font-size: 0.95rem;
}

/* ---------- photo strip ---------- */

.strip {
  display: grid;
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--stone-line);
  border: 1px solid var(--stone-line);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 46rem) {
  .strip { grid-template-columns: repeat(4, 1fr); }
}
.strip img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- bar list ---------- */

.pours {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.pours h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--ale-bright);
}
.pours p { font-size: 0.95rem; color: var(--parchment-dim); }

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

.hours {
  margin: 0;
  border: 1px solid var(--stone-line);
  background: var(--stone);
}
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--stone-line);
  font-size: 0.98rem;
}
.hours div:last-child { border-bottom: 0; }
.hours dt { color: var(--parchment); }
.hours dd { margin: 0; color: var(--ale-bright); font-weight: 600; }
.hours div.shut dd { color: var(--plaster); font-weight: 400; }

.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 52rem) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.addr {
  font-style: normal;
  margin-top: 1.5rem;
  line-height: 1.8;
}
.addr strong { display: block; color: var(--parchment); }
.addr a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

.site-foot {
  padding-block: 2.5rem 3rem;
  color: var(--plaster);
  font-size: 0.88rem;
}
.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}
.site-foot a { color: var(--parchment-dim); }
.site-foot ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

/* ---------- 404 ---------- */

.lost {
  min-height: 100svh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: var(--pad);
  gap: 1.25rem;
}
.lost h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); }
.lost p { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
