/* Café Linde: linden green, oat and espresso, with a linden-blossom accent. Bricolage Grotesque throughout. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../../fonts/bricolage.woff") format("woff");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../../fonts/mona-sans.woff") format("woff");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --bg: #efe8da;
  --paper: #f9f5ec;
  --ink: #1d140e;
  --green: #1d4a33;
  --green-2: #2a6045;
  --leaf: #d4e36c;
  --muted: #5c5045;
  --text-font: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --today-bg: var(--leaf);
  --today-ink: var(--ink);
  --focus: var(--ink);
  color-scheme: light;
}

.section-title {
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.25rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn--leaf {
  background: var(--leaf);
  color: var(--ink);
}

.btn--line {
  box-shadow: inset 0 0 0 2px currentColor;
}

/* green hero field */
.hero-field {
  background: var(--green);
  color: var(--bg);
  --focus: var(--leaf);
  --status-bg: rgba(239, 232, 218, 0.12);
  --status-ink: var(--bg);
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-block: 22px;
}

.logo {
  margin-right: auto;
  font-size: 1.75rem;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
}

.menu {
  display: flex;
  gap: 24px;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--leaf), var(--leaf)) 0 calc(100% - 8px) / 0 2px no-repeat;
  transition: background-size 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.menu a:hover {
  background-size: 100% 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(24px, 4vw, 56px) clamp(56px, 8vw, 112px);
}

.hero__text {
  display: grid;
  justify-items: start;
  gap: 28px;
}

.hero__title {
  font-size: clamp(3.5rem, 1.6rem + 8vw, 10rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--bg);
  text-wrap: balance;
}

.hero__lede {
  max-width: 36ch;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  color: rgba(239, 232, 218, 0.86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__art {
  display: grid;
  place-items: center;
  min-width: 0;
}

.hero__plate {
  grid-area: 1 / 1;
  width: 94%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
}

.hero__art img {
  grid-area: 1 / 1;
  width: 92%;
  margin-top: 6%;
}

/* menu */
.menu-section {
  padding-block: clamp(64px, 9vw, 128px);
}

.menu-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 16px 48px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.menu-head p {
  max-width: 38ch;
  color: var(--muted);
}

.tabs__list {
  display: none;
}

.js .tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tabs__list [role="tab"] {
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.tabs__list [role="tab"]:hover {
  background: #e3dac6;
}

.tabs__list [role="tab"][aria-selected="true"] {
  background: var(--green);
  color: var(--bg);
}

.panel + .panel {
  margin-top: 40px;
}

.js .panel + .panel {
  margin-top: 0;
}

.panel__title {
  margin-bottom: 12px;
  font-size: 1.5rem;
  font-weight: 800;
}

.panel__title small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.js .panel__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.dishes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
}

.dishes li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid rgba(29, 20, 14, 0.14);
}

.dish {
  flex: 1;
  min-width: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.dish small {
  display: block;
  margin-top: 2px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--muted);
}

.price {
  flex: none;
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* good to know */
.good {
  padding-block: 0 clamp(64px, 9vw, 128px);
}

.good .section-title {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.good__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.good__list li {
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--paper);
  color: var(--muted);
}

.good__list li:nth-child(3n + 2) {
  background: var(--leaf);
  color: var(--ink);
}

.good__list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 800;
}

/* visit */
.visit {
  padding-block: clamp(64px, 9vw, 128px);
  background: var(--paper);
}

.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px clamp(32px, 6vw, 96px);
  align-items: start;
}

.visit .section-title {
  grid-column: 1 / -1;
}

.hours {
  font-size: 1.1875rem;
}

.address {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 24px;
  background: var(--green);
  color: var(--bg);
  --focus: var(--leaf);
}

.address__lines {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
}

.address__transit {
  color: rgba(239, 232, 218, 0.82);
}

.address__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* footer */
.foot {
  padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px));
  background: var(--green);
  color: var(--bg);
  --focus: var(--leaf);
}

.foot__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 32px;
}

.foot .logo {
  margin: 0;
}

.foot__links {
  display: flex;
  gap: 20px;
}

@media (max-width: 860px) {
  .hero,
  .menu-head,
  .visit__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__art {
    order: -1;
    width: min(86%, 520px);
    justify-self: center;
  }

  .dishes,
  .good__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .menu {
    order: 3;
    width: 100%;
    gap: 18px;
  }

  .top .status {
    order: 2;
  }

  .logo {
    width: 100%;
  }
}
