/* =========================================================
   Printable weekend menu

   Designed for:
   - US Letter paper
   - portrait orientation
   - black ink on white paper
   - one-page weekend menus
========================================================= */


/* =========================================================
   Browser preview page
========================================================= */

.print-menu-page {
  padding: 2rem 1rem 3rem;
  background: #f3f3f3;
}

.print-menu-toolbar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 1.25rem;
}

.print-menu-toolbar__link,
.print-menu-toolbar__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  color: #111;
  background: #fff;
  border: 1px solid #222;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.print-menu-toolbar__link:hover,
.print-menu-toolbar__button:hover {
  background: #f7f7f7;
}

.print-menu-toolbar__link:focus-visible,
.print-menu-toolbar__button:focus-visible {
  outline: 3px solid rgba(150, 87, 191, 0.32);
  outline-offset: 4px;
}


/* =========================================================
   Printable sheet
========================================================= */

.print-menu-sheet {
  width: 8.5in;
  min-height: 11in;
  margin: 0 auto;
  padding: 0.5in;
  color: #111;
  background: #fff;
  border: 1px solid #d8d8d8;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   Header
========================================================= */

.print-menu-header {
  position: relative;
  min-height: 2.05in;
  margin-bottom: 0.25in;
  padding-bottom: 0.27in;
  border-bottom: 2px solid #111;
  text-align: center;
}

.print-menu-header__content {
  width: min(100%, 5.6in);
  margin: 0 auto;
}

.print-menu-logo {
  display: block;
  width: 1.05in;
  height: 1.05in;
  margin: 0 auto 0.14in;
  object-fit: contain;
}

.print-menu-brand {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.print-menu-theme {
  margin: 0.12in 0 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.print-menu-title {
  margin: 0.13in 0 0;
  font-family: "Quicksand", sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
}

.print-menu-date {
  margin: 0.1in 0 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.print-menu-eyebrow {
  max-width: 5.25in;
  margin: 0.13in auto 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.print-menu-pricing {
  display: inline-block;
  margin: 0.17in auto 0;
  padding: 0.09in 0.17in;
  border: 1.5px solid #111;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.print-menu-note {
  margin: 0.12in 0 0;
  font-size: 0.88rem;
  font-style: italic;
}


/* =========================================================
   QR block
========================================================= */

.print-menu-qr {
  position: absolute;
  top: -0.03in;
  right: -0.02in;
  width: 1.75in;
  height: 1.75in;
}

.print-menu-qr__image {
  position: absolute;
  top: 0.27in;
  left: 0.27in;
  display: block;
  width: 1.21in;
  height: 1.21in;
  background: transparent;
  object-fit: contain;
}

.print-menu-qr__top,
.print-menu-qr__bottom,
.print-menu-qr__left,
.print-menu-qr__right {
  position: absolute;
  color: #222;
  font-family: inherit;
  font-size: 0.2in;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: lowercase;
  white-space: nowrap;
}

.print-menu-qr__top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.print-menu-qr__bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.print-menu-qr__right {
  top: 50%;
  right: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: translateY(-50%);
}

.print-menu-qr__left {
  top: 50%;
  left: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: translateY(-50%) rotate(180deg);
}


/* =========================================================
   Menu item list
========================================================= */

.print-menu-items {
  margin-top: 0.1in;
  border-top: 1.5px solid #111;
}

.print-menu-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-areas: "content action";
  align-items: center;
  column-gap: 0.22in;
  min-height: 0.68in;
  padding: 0.13in 0;
  border-bottom: 1px solid #111;
  break-inside: avoid;
  page-break-inside: avoid;
}

.print-menu-item--has-teaser {
  grid-template-columns:
    minmax(0, 1fr)
    minmax(1.85in, 2.25in)
    max-content;
  grid-template-areas: "content teaser action";
}

.print-menu-item__content {
  grid-area: content;
  min-width: 0;
}

.print-menu-item__name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.22;
}

.print-menu-item__description {
  margin: 0.05in 0 0;
  font-size: 0.83rem;
  line-height: 1.35;
}

.print-menu-item__price {
  grid-area: action;
  justify-self: end;
  min-width: 1.35in;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}


/* =========================================================
   Sold-out state
========================================================= */

.print-menu-item--sold-out .print-menu-item__name {
  opacity: 0.62;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.print-menu-item--sold-out .print-menu-item__description {
  opacity: 0.5;
}

.print-menu-item__status {
  grid-area: action;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 0.05in;
  white-space: nowrap;
}

.print-menu-item__sold-out {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.07in 0.13in;
  border: 1px solid #111;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}


/* =========================================================
   Sold-out hearts
========================================================= */

.print-menu-item__hearts {
  position: relative;
  top: -0.09in;
  display: inline-block;
  flex: 0 0 auto;
  width: 0.24in;
  height: 0.21in;
  transform: rotate(-22deg);
  transform-origin: center;
}

.print-menu-item__heart {
  position: absolute;
  display: block;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.print-menu-item__heart--large {
  left: 0;
  bottom: 0;
  font-size: 0.18in;
}

.print-menu-item__heart--small {
  top: 0;
  right: 0;
  font-size: 0.12in;
}


/* =========================================================
   First sold-out teaser bubble
========================================================= */

.print-menu-item__teaser {
  position: relative;
  grid-area: teaser;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: max-content;
  max-width: 2.2in;
  min-height: 0.3in;
  margin: 0;
  padding: 0.045in 0.14in;
  color: #111;
  background: #fff;
  border: 1px solid #777;
  border-radius: 50%;
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
}

.print-menu-item__teaser::after {
  content: "";
  position: absolute;
  right: 0.23in;
  bottom: -0.045in;
  width: 0.085in;
  height: 0.085in;
  background: #fff;
  border-right: 1px solid #777;
  border-bottom: 1px solid #777;
  transform: rotate(45deg);
}

/* =========================================================
   Next week's treat-drop teaser
========================================================= */

.print-menu-next-drop {
  width: min(100%, 5.9in);
  margin: 0.32in auto 0;
  padding: 0.15in 0.24in;
  border-top: 1.5px dashed #555;
  border-bottom: 1.5px dashed #555;
  text-align: center;
  break-inside: avoid;
  page-break-inside: avoid;
}

.print-menu-next-drop__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.print-menu-next-drop__theme {
  margin: 0.07in 0 0;
  font-family: "Quicksand", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.15;
}

.print-menu-next-drop__copy {
  max-width: 5.2in;
  margin: 0.07in auto 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.print-menu-next-drop__date {
  margin: 0.06in 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

/* =========================================================
   Footer and empty state
========================================================= */

.print-menu-footer {
  margin-top: 0.22in;
  padding-top: 0.14in;
  border-top: 1.5px solid #111;
  text-align: center;
}

.print-menu-footer p {
  margin: 0.045in 0 0;
  font-size: 0.8rem;
  line-height: 1.3;
}

.print-menu-empty {
  padding: 1.5in 0.5in;
  text-align: center;
}

.print-menu-empty h1,
.print-menu-empty h2 {
  margin: 0;
  font-size: 1.8rem;
}

.print-menu-empty p {
  margin: 0.18in 0 0;
  font-size: 1rem;
}


/* =========================================================
   Hide normal site chrome on the print-menu page
========================================================= */

body:has(.print-menu-page) {
  padding-bottom: 0;
}

body:has(.print-menu-page) .quick-links,
body:has(.print-menu-page) footer,
body:has(.print-menu-page) .site-footer {
  display: none;
}


/* =========================================================
   Browser preview responsiveness

   These rules use "screen" so they do not alter the actual
   printed Letter layout.
========================================================= */

@media screen and (max-width: 900px) {
  .print-menu-page {
    padding: 1.25rem 0.75rem 2rem;
  }

  .print-menu-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 34rem;
    gap: 0.75rem;
  }

  .print-menu-toolbar__link,
  .print-menu-toolbar__button {
    width: 100%;
  }

  .print-menu-sheet {
    width: 100%;
    min-height: auto;
    padding: clamp(1rem, 4vw, 1.5rem);
  }

  .print-menu-header {
    min-height: 0;
  }

  .print-menu-qr {
    position: relative;
    top: auto;
    right: auto;
    width: 1.75in;
    height: 1.75in;
    margin: 0 auto 1rem;
  }
}

@media screen and (max-width: 640px) {
  .print-menu-toolbar {
    grid-template-columns: 1fr;
  }

  .print-menu-sheet {
    padding: 1rem;
  }

  .print-menu-title {
    font-size: 1.6rem;
  }

  .print-menu-item,
  .print-menu-item--has-teaser {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas:
      "content action"
      "teaser teaser";
    row-gap: 0.55rem;
  }

  .print-menu-item__price,
  .print-menu-item__status {
    justify-self: end;
    min-width: 0;
  }

  .print-menu-item__teaser {
    justify-self: center;
    max-width: 100%;
    white-space: normal;
  }
}

@media screen and (max-width: 420px) {
  .print-menu-page {
    padding-inline: 0.5rem;
  }

  .print-menu-sheet {
    padding: 0.85rem;
  }

  .print-menu-item,
  .print-menu-item--has-teaser {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "content"
      "action"
      "teaser";
    align-items: start;
  }

  .print-menu-item__price,
  .print-menu-item__status {
    justify-self: start;
    text-align: left;
  }

  .print-menu-item__teaser {
    justify-self: start;
  }
}


/* =========================================================
   Actual print output
========================================================= */

@page {
  size: letter portrait;
  margin: 0.45in;
}

@media print {
  html,
  body {
    margin: 0;
    padding: 0;
    color: #000 !important;
    background: #fff !important;
  }

  .no-print,
  .skip-link,
  .quick-links,
  footer,
  .site-footer {
    display: none !important;
  }

  .print-menu-page {
    padding: 0;
    background: #fff !important;
  }

  .print-menu-sheet {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    color: #000 !important;
    background: #fff !important;
    border: 0;
    box-shadow: none;
  }

  .print-menu-header {
    position: relative;
    min-height: 2.05in;
    padding-top: 0;
  }

  .print-menu-qr {
    position: absolute;
    top: -0.03in;
    right: -0.02in;
    width: 1.75in;
    height: 1.75in;
    margin: 0;
  }

  .print-menu-logo {
    filter: grayscale(1) contrast(1.25);
  }

  .print-menu-header,
  .print-menu-item,
  .print-menu-next-drop,
  .print-menu-footer,
  .print-menu-qr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-menu-title,
  .print-menu-item__name,
  .print-menu-item__price,
  .print-menu-item__sold-out,
  .print-menu-item__teaser,
  .print-menu-pricing,
  .print-menu-brand,
  .print-menu-theme,
  .print-menu-date,
  .print-menu-eyebrow,
  .print-menu-note,
  .print-menu-item__description,
  .print-menu-next-drop__eyebrow,
  .print-menu-next-drop__theme,
  .print-menu-next-drop__copy,
  .print-menu-next-drop__date,
  .print-menu-footer p,
  .print-menu-qr__top,
  .print-menu-qr__bottom,
  .print-menu-qr__left,
  .print-menu-qr__right {
    color: #000 !important;
  }

  .print-menu-pricing,
  .print-menu-item__teaser,
  .print-menu-item__teaser::after {
    background: #fff !important;
  }

  .print-menu-item__heart {
    color: #000 !important;
  }
}