@font-face {
  font-family: "Amatic SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/amatic-sc-bold-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f3eddf;
  --ink: #1d1d1b;
  --yellow: #f4b500;
  --yellow-hover: #ffca26;
  --font-heading: "Amatic SC", "Arial Narrow", sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
}

/* La stessa grana del progetto Tessari Feltrin, nella versione WebP. */
body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("grain.webp");
  background-repeat: repeat;
  background-size: 350px 350px;
  opacity: 0.6;
  mix-blend-mode: hard-light;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 48px) 24px 32px;
  text-align: center;
}

.logo {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
}

h1 {
  margin-top: 20px;
  font-size: clamp(3.25rem, 8vw, 4.5rem);
  line-height: 1.12;
}

.tagline {
  margin-top: 10px;
  font-size: clamp(1.6rem, 4.8vw, 2.125rem);
  line-height: 1.25;
}

.tagline span {
  display: block;
}

.reservations {
  margin-top: 28px;
}

.reservations h3 {
  font-size: 2.75rem;
  line-height: 1.1;
}

.contact-list {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 2px;
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 4px;
}

.text-link span {
  overflow-wrap: anywhere;
}

.icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 480px);
  min-height: 88px;
  margin: 28px auto 0;
  padding: 12px 24px 16px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 7vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.menu-link:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

.footer {
  margin-top: 24px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
}

.social-links .text-link {
  gap: 8px;
  padding-inline: 4px;
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .logo {
    width: 340px;
  }

  .social-links {
    column-gap: 32px;
  }
}

@media (hover: hover) {
  .text-link:hover {
    text-decoration: underline;
  }

  .menu-link:hover {
    background: var(--yellow-hover);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-link {
    transition: none;
  }
}
