/* Pegaso Bistrot - Terracina.
   A grill house: charred wood, ember orange, salt-white plates. Warm and dark at the top,
   opening into light where the food is. */

:root {
  --ink: #1B1512;          /* charred wood */
  --ink-soft: #2A2320;
  --paper: #FBF6EF;        /* the tablecloth */
  --paper-warm: #F3E9DC;
  --ember: #C25A1E;        /* the coals */
  --ember-deep: #8C2F1E;
  --brass: #C79A4C;
  --text: #241D19;
  --muted: #6B5F57;
  --line: rgba(27, 21, 18, .14);
  --shell: 1120px;
  --radius: 3px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.3rem, 6.2vw, 4rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.06rem; font-family: 'Karla', sans-serif; font-weight: 600; letter-spacing: .01em; }

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

a { color: inherit; }

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }

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

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

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

.site-head {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  z-index: 10;
}

.site-head__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.05rem 0;
  flex-wrap: wrap;
}

.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.wordmark span {
  display: block;
  font-family: 'Karla', sans-serif;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: .2rem;
}

.site-nav { display: flex; gap: 1.45rem; flex-wrap: wrap; }
.site-nav a {
  font-size: .82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(251, 246, 239, .74);
  padding: .3rem 0;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.site-nav a:hover { color: var(--paper); border-bottom-color: var(--ember); }

.head-tel {
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  color: var(--paper);
  border: 1px solid rgba(199, 154, 76, .55);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background .18s, border-color .18s;
}
.head-tel:hover { background: var(--ember); border-color: var(--ember); }

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

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.2rem, 7vw, 5.5rem) 0 0;
  position: relative;
}

.hero__eyebrow {
  font-size: .78rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}

.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--ember); }

.hero__lede {
  max-width: 52ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(251, 246, 239, .82);
  margin-top: 1.4rem;
}

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

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .82rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
}
.btn--primary { background: var(--ember); color: #fff; }
.btn--primary:hover { background: var(--ember-deep); }
.btn--ghost { border-color: rgba(251, 246, 239, .38); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(251, 246, 239, .08); }

.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ember); }

.hero__stars {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.8rem;
  font-size: .93rem;
  color: rgba(251, 246, 239, .74);
}
.hero__stars strong { color: var(--paper); }

.hero__plate {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  position: relative;
}
.hero__plate img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: center 58%;
}

/* ---------- bands ---------- */

.band { padding: clamp(3.4rem, 7vw, 6rem) 0; }
.band--warm { background: var(--paper-warm); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink .band__label { color: var(--brass); }

.band__label {
  font-size: .76rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: .9rem;
}

.band > .shell > h2 { max-width: 18ch; }
.band > .shell > p { max-width: 62ch; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split > div { min-width: 0; }
.split h2 { max-width: 16ch; }

.frame { margin: 0; }
.frame img { width: 100%; }
.frame figcaption {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .7rem;
  max-width: 42ch;
}
.band--ink .frame figcaption { color: rgba(251, 246, 239, .6); }

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

.dishes {
  list-style: none;
  padding: 0;
  margin: 2.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0 2.6rem;
}
.dishes li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.dishes b {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -.005em;
}
.dishes span {
  display: block;
  font-size: .88rem;
  color: var(--muted);
  margin-top: .18rem;
}

.note {
  margin-top: 2rem;
  font-size: .9rem;
  color: var(--muted);
  max-width: 58ch;
  border-left: 2px solid var(--brass);
  padding-left: 1rem;
}
.band--ink .note { color: rgba(251, 246, 239, .68); }

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

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .7rem;
  margin-top: 2.8rem;
}
.strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- room list ---------- */

.room {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: grid;
  gap: 1.35rem;
}
.room--grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem 2.6rem;
  margin-top: 2.4rem;
}
.room li { padding-left: 1.6rem; position: relative; }
.room li::before {
  content: '';
  position: absolute;
  left: 0; top: .58rem;
  width: .55rem; height: .55rem;
  background: var(--ember);
  border-radius: 50%;
}
.room h3 { margin-bottom: .18rem; }
.room p { font-size: .95rem; color: var(--muted); }
.band--ink .room p { color: rgba(251, 246, 239, .7); }

/* ---------- hours + contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2.2rem;
  align-items: start;
}

.service {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0;
}
.service li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}
.service li:last-child { border-bottom: 1px solid var(--line); }
.service dt, .service .svc {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
}
.service .time { font-variant-numeric: tabular-nums; font-weight: 600; }

.addr {
  font-style: normal;
  line-height: 1.85;
}
.addr strong {
  display: block;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: .1rem;
}
.addr a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

.site-foot {
  background: var(--ink);
  color: rgba(251, 246, 239, .7);
  padding: 2.4rem 0;
  font-size: .9rem;
}
.site-foot__inner {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
}
.site-foot a { color: var(--paper); }

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

.oops {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  padding: 2rem;
  gap: .4rem;
}
.oops .wordmark { margin: 0 0 1.2rem; }
.oops p { color: rgba(251, 246, 239, .78); max-width: 40ch; }
.oops .hero__actions { justify-content: center; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--flip .frame { order: 2; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
  .hero__plate img { aspect-ratio: 4 / 3; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-head__inner { gap: 1rem; }
  .head-tel { padding: .45rem .8rem; font-size: .88rem; }
  .btn { width: 100%; text-align: center; }
}

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