@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/vazirmatn.ttf") format("truetype");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/vazirmatn-500.ttf") format("truetype");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/vazirmatn-700.ttf") format("truetype");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/vazirmatn-800.ttf") format("truetype");
}

:root {
  --charcoal: #24211f;
  --gold: #e7ad16;
  --ivory: #f5f1e9;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ivory);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 50% -120px,
      rgba(231, 173, 22, 0.13),
      transparent 320px
    ),
    var(--ivory);
  color: var(--charcoal);
  font-family: "Vazirmatn", sans-serif;
}

main {
  width: min(100% - 28px, 430px);
  margin-inline: auto;
  padding: 38px 0 28px;
}

header {
  margin-bottom: 30px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

h1 span {
  display: block;
}

h1 span:last-child {
  margin-top: 9px;
  color: var(--gold);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

nav {
  display: grid;
  gap: 12px;
}

.restaurant-card {
  --card-bg: #fff;
  --card-fg: #191919;
  --logo-bg: rgba(0, 0, 0, 0.035);
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 9px 11px;
  overflow: hidden;
  border: 1px solid rgba(36, 33, 31, 0.065);
  border-radius: 18px;
  background: var(--card-bg);
  color: var(--card-fg);
  box-shadow:
    0 10px 28px rgba(47, 39, 33, 0.085),
    0 2px 7px rgba(47, 39, 33, 0.035);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.restaurant-card:active {
  transform: scale(0.985);
}

.restaurant-card:focus-visible {
  outline: 3px solid rgba(231, 173, 22, 0.48);
  outline-offset: 3px;
}

.restaurant-card--brioche {
  --card-bg: #fdfcf9;
  --card-fg: #171717;
  --logo-bg: #f5f3ee;
}

.restaurant-card--chipsy {
  --card-bg: #111;
  --card-fg: #ffca14;
  --logo-bg: #070707;
  border-color: rgba(255, 202, 20, 0.13);
}

.restaurant-card--beefline {
  --card-bg: #fff;
  --card-fg: #e51b2a;
  --logo-bg: #fff3f4;
  border-color: rgba(229, 27, 42, 0.1);
}

.logo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: var(--logo-bg);
}

.logo img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
}

.restaurant-card--brioche .logo img {
  width: 56px;
  height: 35px;
}

.restaurant-card--chipsy .logo img {
  width: 47px;
  height: 47px;
}

.restaurant-card--beefline .logo img {
  width: 49px;
  height: 49px;
}

.name {
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 540px) {
  main {
    padding-top: 52px;
  }
}

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