:root {
  --paper: #f7f3e8;
  --paper-deep: #eee6d5;
  --card: rgba(255, 253, 246, .78);
  --ink: #130e09;
  --muted: #655d52;
  --orange: #ef731b;
  --orange-dark: #c94d08;
  --blue: #19a9d1;
  --line: rgba(38, 27, 16, .13);
  --display: Impact, "Arial Narrow", sans-serif;
  --condensed: "DIN Condensed", "Arial Narrow", sans-serif;
  --body: "Avenir Next Condensed", "Arial Narrow", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper-deep);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(239, 115, 27, .12), transparent 28rem),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  font-family: var(--body);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  width: min(100%, 1080px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 48px);
}

.brand {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  padding: clamp(22px, 5vw, 52px);
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--orange);
  box-shadow: 7px 7px 0 var(--ink);
}

.brand::after {
  content: "";
  position: absolute;
  right: clamp(12px, 4vw, 40px);
  bottom: -24px;
  width: clamp(120px, 22vw, 220px);
  aspect-ratio: 418 / 439;
  background: url("ruffo-r.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: .2;
  pointer-events: none;
}

.brand__stamp {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: .22em .3em .15em;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--display);
  font-size: clamp(21px, 5vw, 46px);
  line-height: 1;
  letter-spacing: .02em;
}

.brand__tagline {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-right: clamp(0px, 15vw, 150px);
  font-family: var(--condensed);
  font-size: clamp(11px, 1.8vw, 16px);
  font-weight: 700;
  letter-spacing: .12em;
}

.category-nav {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(247, 243, 232, .9);
  box-shadow: 0 8px 24px rgba(31, 22, 13, .08);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav a {
  flex: 0 0 auto;
  padding: 9px 14px 7px;
  border-radius: 0;
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.category-nav a:hover,
.category-nav a:focus-visible {
  color: var(--paper);
  background: var(--ink);
  outline: none;
  transform: translateY(-1px);
}

.section,
.extras {
  min-width: 0;
  padding: clamp(22px, 4vw, 36px);
  scroll-margin-top: 88px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(36, 26, 16, .06);
}

.section > h1,
.extras h1 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.025em;
}

.section > h1::after,
.extras h1::after {
  content: "";
  display: block;
  width: 42px;
  height: 5px;
  margin-top: 14px;
  background: var(--orange);
}

.dish {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.dish:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.dish:last-child {
  padding-bottom: 0;
}

.dish h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 6px;
  font-family: var(--condensed);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .035em;
}

.dish h2 span,
.price-list li > span,
.filtered p span {
  flex: 0 0 auto;
  color: var(--orange-dark);
  white-space: nowrap;
}

.dish p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.8vw, 15px);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: .035em;
}

.breakfast {
  border-top: 6px solid var(--orange);
}

.price-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  position: relative;
  min-width: 0;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-family: var(--condensed);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .035em;
}

.price-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.price-list li > span {
  float: right;
  margin-left: 16px;
}

.price-list small {
  display: block;
  clear: both;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.subhead {
  margin: 28px 0 16px;
  padding: 10px 12px 8px;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
}

.lunch {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}

.lunch > h1::after {
  background: var(--orange);
}

.lunch__hours,
.lunch__includes,
.lunch__price {
  margin: 0;
  font-family: var(--condensed);
  font-weight: 700;
}

.lunch__hours {
  font-size: 18px;
}

.lunch__includes {
  max-width: 26ch;
  margin-top: 3px;
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1;
}

.lunch__price {
  display: inline-block;
  margin: 18px 0 8px;
  padding: 7px 10px 5px;
  color: var(--ink);
  background: var(--orange);
  font-size: 19px;
}

.lunch .dish {
  border-color: rgba(255, 255, 255, .18);
}

.lunch .dish p {
  color: rgba(255, 252, 244, .7);
}

.drinks > h1,
.small-section > h1 {
  font-size: clamp(29px, 4.8vw, 44px);
}

.filtered__intro,
.filtered__sale,
.filtered__day,
.filtered__refill,
.extras p {
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .035em;
}

.filtered__sale,
.filtered__day {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.filtered__refill {
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
}

.extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 2px solid var(--ink);
  background: var(--orange);
  box-shadow: 5px 5px 0 var(--ink);
}

.extras h1 {
  margin-bottom: 14px;
  font-size: clamp(29px, 4.8vw, 44px);
}

.extras h1::after {
  background: var(--ink);
}

.plant-mark {
  display: block;
  flex: 0 0 auto;
  width: 94px;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  object-fit: cover;
}

.footer {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 30px);
  padding: clamp(24px, 4vw, 40px) 4px;
}

.footer__r {
  display: block;
  flex: 0 0 auto;
  width: 64px;
  height: 70px;
  object-fit: contain;
}

.footer__copy {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-family: var(--condensed);
  font-size: clamp(11px, 1.7vw, 14px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .035em;
}

.footer__copy strong {
  color: var(--ink);
  font-size: 1.1em;
}

@media (min-width: 760px) {
  .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand,
  .category-nav,
  .breakfast,
  .footer {
    grid-column: 1 / -1;
  }

  .breakfast {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
  }

  .breakfast > h1 {
    grid-column: 1 / -1;
  }

  .breakfast .dish:nth-of-type(1),
  .breakfast .dish:nth-of-type(2) {
    padding-top: 0;
    border-top: 0;
  }

  .pastry,
  .lunch,
  .coffee,
  .milk-coffee,
  .cold-coffee,
  .filtered,
  .infusions,
  .alcohol,
  .soft-drinks,
  .extras {
    height: 100%;
  }
}

@media (max-width: 480px) {
  .menu {
    gap: 12px;
    padding: 12px;
  }

  .brand {
    min-height: 180px;
    padding: 24px 20px;
    border-radius: 0;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .brand__tagline {
    flex-basis: 100%;
    max-width: none;
    padding-right: 56px;
    white-space: nowrap;
  }

  .category-nav {
    top: 6px;
    margin-inline: 2px;
  }

  .category-nav a {
    padding-inline: 10px;
    font-size: 12.5px;
  }

  .section,
  .extras {
    padding: 22px 18px;
  }

  .dish h2 {
    align-items: flex-start;
    font-size: 17px;
  }

  .dish p {
    font-size: 13px;
  }

  .price-list li {
    font-size: 16px;
  }

  .extras {
    align-items: flex-end;
  }

  .plant-mark {
    width: 76px;
  }

  .footer {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .category-nav a {
    transition: none;
  }
}

@media print {
  html,
  body {
    background: #fff;
  }

  .menu {
    display: block;
    width: 100%;
    padding: 0;
  }

  .category-nav {
    display: none;
  }

  .brand,
  .section,
  .extras {
    margin-bottom: 16px;
    break-inside: avoid;
    box-shadow: none;
  }
}
