/* 80 Fame - Civitavecchia. Tokens sampled from the venue's own photographs; see _brief.md. */

:root {
  /* the piazza's basalt paving, lightened */
  --stone: #e3e4de;
  --stone-mid: #c4c7be;
  --stone-deep: #6e7169;
  /* the oiled wood of the tables */
  --ink: #231a15;
  --ink-soft: #4a3b31;
  /* the plates */
  --bone: #f6f5f1;
  /* the terrace linen and the painted ceiling */
  --ember: #b8410f;
  --ember-deep: #7e2a08;

  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  /* fluid spine: the page tightens and loosens on purpose, so these are not all in use
     everywhere - sections pick the step that suits their density */
  --s1: 0.5rem;
  --s2: 0.875rem;
  --s3: 1.25rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: clamp(3.5rem, 7vw, 6.5rem);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 62ch;
}

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

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

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 0.98rem + 0.42vw, 1.1875rem);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--ember-deep);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--ember);
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 var(--s3);
  max-width: var(--measure);
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--s3);
  top: var(--s3);
  z-index: 50;
  background: var(--ink);
  color: var(--bone);
  padding: var(--s2) var(--s3);
  border-radius: 2px;
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--stone) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone-mid);
}

.site-head__inner {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 4rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.wordmark span {
  color: var(--ember);
}

.site-nav {
  margin-left: auto;
  display: none;
  gap: clamp(1rem, 2vw, 2rem);
}

.site-nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--ember);
}

.head-tel {
  margin-left: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--bone);
  background: var(--ink);
  text-decoration: none;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: background-color 160ms ease;
}

.head-tel:hover {
  background: var(--ember-deep);
  color: var(--bone);
}

@media (min-width: 60rem) {
  .site-nav {
    display: flex;
  }

  .head-tel {
    margin-left: 0;
  }
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(84vh, 44rem);
  display: flex;
  align-items: flex-end;
  padding-block: var(--s6) var(--s5);
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(20, 13, 9, 0.9) 0%,
    rgba(20, 13, 9, 0.74) 42%,
    rgba(20, 13, 9, 0.3) 100%
  );
}

.hero__inner {
  color: var(--bone);
}

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 var(--s3);
  color: #f0b79b;
}

.hero h1 {
  font-size: clamp(2.35rem, 1.4rem + 5.2vw, 5.6rem);
  margin-bottom: var(--s3);
  /* `balance` evens the line lengths, which on a phone turns this headline into five stubby
     lines. `pretty` only guards against a lone last word, which is what is wanted here. */
  text-wrap: pretty;
}

/* The measure is only worth capping once there is room for it; on a phone it just forces
   four ragged lines. */
@media (min-width: 48rem) {
  .hero h1 {
    max-width: 15ch;
  }
}

.hero__lead {
  font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  color: #ece4dd;
  max-width: 46ch;
  margin-bottom: var(--s4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
}

.btn {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.6rem;
  border-radius: 4px;
  transition: background-color 170ms ease, color 170ms ease, transform 170ms ease;
}

.btn--primary {
  background: var(--ember);
  color: var(--bone);
}

.btn--primary:hover {
  background: var(--ember-deep);
  color: var(--bone);
  transform: translateY(-1px);
}

.btn--ghost {
  border: 1.5px solid rgba(246, 245, 241, 0.5);
  color: var(--bone);
}

.btn--ghost:hover {
  border-color: var(--bone);
  background: rgba(246, 245, 241, 0.1);
  color: var(--bone);
}

.rating {
  position: absolute;
  right: var(--gutter);
  bottom: var(--s5);
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  background: var(--bone);
  color: var(--ink);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: 0 6px 24px rgba(20, 13, 9, 0.3);
}

.rating b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
}

@media (max-width: 59.99rem) {
  .rating {
    position: static;
    margin-top: var(--s4);
  }
}

/* ---------- the address slab: the signature element ---------- */

.slab {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
  border-radius: 0;
}

.slab__label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-mid);
  margin: 0 0 var(--s2);
}

.slab__address {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.85rem, 0.6rem + 5.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s3);
  max-width: none;
  text-transform: uppercase;
}

.slab__address em {
  font-style: normal;
  color: var(--ember);
}

.slab__meta {
  margin: 0;
  color: var(--stone-mid);
  font-size: 1rem;
  max-width: 52ch;
}

/* ---------- generic sections ---------- */

.section {
  padding-block: var(--s6);
}

.section--tight {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.section__kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin: 0 0 var(--s2);
}

h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
  margin-bottom: var(--s4);
}

/* ---------- il locale ---------- */

.split {
  display: grid;
  gap: var(--s5);
  align-items: start;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 0.72fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

.split__media {
  margin: 0;
}

.split__media img {
  border-radius: 3px;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.split__caption {
  font-size: 0.9rem;
  color: var(--stone-deep);
  margin: var(--s2) 0 0;
  font-style: italic;
}

/* ---------- la cucina ---------- */

.note {
  color: var(--ink-soft);
  font-size: 1rem;
  border-left: 3px solid var(--ember);
  padding-left: var(--s3);
  margin-bottom: var(--s5);
  max-width: 54ch;
}

.dishes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.dish {
  background: var(--bone);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e6e4dd;
}

.dish img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.dish__body {
  padding: var(--s3) var(--s3) calc(var(--s3) + 0.25rem);
}

.dish h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.dish p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- the dehor band ---------- */

.band {
  position: relative;
  isolation: isolate;
  min-height: min(60vh, 30rem);
  display: flex;
  align-items: flex-end;
  padding-block: var(--s5);
  overflow: hidden;
}

.band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(20, 13, 9, 0.88) 12%, rgba(20, 13, 9, 0.18) 78%);
}

.band__inner {
  color: var(--bone);
}

.band h2 {
  color: var(--bone);
  margin-bottom: var(--s3);
  max-width: 18ch;
}

.band p {
  color: #ece4dd;
  max-width: 48ch;
  margin: 0;
}

/* ---------- orari e contatti ---------- */

.practical {
  display: grid;
  gap: var(--s5);
}

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

.hours {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s3);
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--stone-mid);
  border-radius: 2px;
}

.hours th {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.hours td {
  text-align: right;
  font-family: var(--display);
  font-weight: 600;
}

.hours tr:last-child th,
.hours tr:last-child td {
  border-bottom: 0;
  color: var(--ember-deep);
}

.contact-list {
  list-style: none;
  margin: 0 0 var(--s4);
  padding: 0;
}

.contact-list li {
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--stone-mid);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list span {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone-deep);
  margin-bottom: 0.15rem;
}

.contact-list a,
.contact-list strong {
  font-size: 1.1rem;
  font-weight: 600;
}

/* These are the phone number and the directions link: on a phone they are the two things most
   likely to be tapped, so they get a real target rather than a line of text. */
.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.caveat {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
}

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

.site-foot {
  background: var(--ink);
  color: var(--stone-mid);
  padding-block: var(--s5);
  font-size: 0.95rem;
}

.site-foot__inner {
  display: grid;
  gap: var(--s3);
}

@media (min-width: 44rem) {
  .site-foot__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.site-foot .wordmark {
  color: var(--bone);
  font-size: 1.15rem;
  display: inline-block;
  margin-bottom: var(--s1);
}

.site-foot p {
  margin: 0;
  max-width: none;
}

.site-foot a {
  color: var(--bone);
}

.site-foot a:hover {
  color: #f0b79b;
}

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

.lost {
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding-block: var(--s6);
}

.lost h1 {
  font-size: clamp(2.2rem, 1.3rem + 4vw, 4rem);
  margin-bottom: var(--s3);
}

.lost p {
  font-size: 1.1rem;
}

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