/* Brand taken from the printed Chopped Cheese menu:
   red band, white crown, heavy wide capitals, red tags, lines running to the prices. */

:root {
  --red: #be2a1e;
  --red-dark: #96200f;
  --ink: #1c1a1a;
  --soft: #5b5654;
  --line: #a9a3a0;
  --paper: #fff;

  --gutter: clamp(1rem, 3.4vw, 3rem);
  --type: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; }

html { background: var(--paper); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  color: var(--ink);
  font-family: var(--type);
  font-size: 1.0625rem;
  line-height: 1.35;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sign a:focus-visible { outline-color: var(--paper); }

/* ---------- The red sign, shared by both pages ---------- */

.sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  background: var(--red);
  color: var(--paper);
  padding: clamp(1rem, 2.4vw, 2.25rem) var(--gutter);
}

.brand {
  display: flex;
  align-items: flex-end;
  gap: .22em;
  color: inherit;
  font-size: clamp(2.4rem, min(5.2vw, 20vh), 6.5rem);
  font-stretch: 125%;
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.012em;
  text-decoration: none;
  text-transform: uppercase;
}

.crown { flex: none; width: .92em; height: auto; margin-bottom: .05em; fill: currentColor; }

.words span { display: inline-block; }

.tagline {
  flex: none;
  margin-left: auto;
  font-size: clamp(.72rem, 1vw, .9rem);
  font-stretch: 112%;
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.55;
  text-transform: uppercase;
}

.tagline span { display: block; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: .5rem 1.6rem;
  border: 3px solid var(--red);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .12s, color .12s, border-color .12s;
}

.button-call { background: var(--red); color: var(--paper); }
.button-call:hover { background: var(--red-dark); border-color: var(--red-dark); }

.button-menu { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-menu:hover { background: var(--ink); color: var(--paper); }

.button-on-red { flex: none; background: var(--paper); color: var(--red); border-color: var(--paper); }
.button-on-red:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.actions { display: flex; flex: none; gap: .75rem; }

/* ---------- Home page: sign on the roofline, buttons on the sidewalk ---------- */

.home-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(30vh, 1fr) auto;
  grid-template-rows: auto minmax(30svh, 1fr) auto;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 40%;
}

.sidewalk {
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 3rem;
  background: var(--paper);
  padding: clamp(1rem, 2vw, 1.6rem) var(--gutter);
}

.note { max-width: 36rem; }
.note h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; line-height: 1.15; }
.note p { margin-top: .3rem; color: var(--soft); }

.place { display: flex; flex-wrap: wrap; gap: .1rem 1.5rem; font-weight: 700; }
.place a { display: inline-block; padding-block: .2rem; color: var(--ink); text-underline-offset: .18em; }
.place a:hover { color: var(--red); }

/* ---------- Menu page ---------- */

.jump { display: none; }

/* The phone number stays on the right edge the whole way down the page.
   --tab-room keeps the prices clear of it. */
.menu-page { --tab-width: 3.25rem; --tab-room: max(var(--gutter), calc(var(--tab-width) + .75rem)); }

.call-tab {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 3;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  block-size: var(--tab-width);
  padding-inline: 1.25rem;
  background: var(--red);
  color: var(--paper);
  box-shadow: 0 0 0 2px var(--paper);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .12s;
}

.call-tab:hover { background: var(--red-dark); }
.call-tab:focus-visible { outline: 3px solid var(--paper); outline-offset: -6px; }

.menu { padding: clamp(1.5rem, 3vw, 2.75rem) var(--tab-room) 1rem var(--gutter); }

.columns {
  columns: 3 21rem;
  column-gap: clamp(2rem, 4vw, 4rem);
  max-width: 92rem;
  margin-inline: auto;
}

.group {
  break-inside: avoid;
  padding-bottom: 2.25rem;
  scroll-margin-top: 4.25rem;
}

.tag {
  display: inline-block;
  background: var(--red);
  color: var(--paper);
  padding: .3rem .7rem .26rem;
  font-size: 1.3rem;
  font-stretch: 125%;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.sub {
  margin-top: 1.1rem;
  color: var(--red);
  font-size: .82rem;
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sub span {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.tag + .sub { margin-top: .5rem; }

table { width: 100%; border-collapse: collapse; margin-top: .45rem; }

thead th {
  color: var(--red);
  font-size: .72rem;
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody th { padding: .24rem 0; text-align: left; font-weight: 400; }

.line { display: flex; align-items: baseline; gap: .45rem; }

.line::after {
  content: "";
  flex: 1 1 .75rem;
  min-width: .75rem;
  border-bottom: 1px solid var(--line);
}

/* A badge drops under the name when the row is too narrow for both. */
.line:has(.badge) { flex-wrap: wrap; row-gap: .2rem; }
.line:has(.badge) .name { flex: none; }
.line:has(.badge)::after { flex-basis: 0; min-width: 0; }

.name { font-weight: 700; }

.badge {
  flex: none;
  background: var(--red);
  color: var(--paper);
  padding: .1rem .35rem;
  font-size: .68rem;
  font-stretch: 112%;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.desc { display: block; color: var(--soft); font-size: .86rem; line-height: 1.25; margin-top: .05rem; }

th + .price, .price {
  width: 3.6rem;
  padding: .24rem 0 .24rem .55rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
  vertical-align: top;
  white-space: nowrap;
}

.group-note { margin-top: .5rem; color: var(--soft); font-size: .86rem; }

.promos { break-inside: avoid; display: grid; gap: .6rem; padding-bottom: 1.5rem; }

.promo {
  background: var(--red);
  color: var(--paper);
  padding: .95rem 1.1rem;
  font-size: .92rem;
}

.promo strong {
  display: block;
  font-size: 1.15rem;
  font-stretch: 118%;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: calc(92rem + 2 * var(--gutter));
  margin-inline: auto;
  padding: 1rem var(--tab-room) 2rem var(--gutter);
  color: var(--soft);
  font-size: .86rem;
}

/* Tablets and small laptops: keep the name on one line beside the button. */
@media (min-width: 761px) and (max-width: 1240px) {
  .brand { font-size: 4.3vw; }
}

/* The home sign also holds the menu button, so the name is a little smaller.
   The tagline only shows when there is room for all three. */
@media (min-width: 761px) {
  .home-page .brand { font-size: clamp(2.4rem, min(4vw, 20vh), 5.2rem); }
}

@media (min-width: 761px) and (max-width: 1320px) {
  .home-page .brand { font-size: 4.6vw; }
  .home-page .tagline { display: none; }
  .home-page .sign .button { margin-left: auto; }
}

/* ---------- Phones ---------- */

@media (max-width: 760px) {
  .backdrop { object-position: 79% 50%; }

  .sign { flex-direction: column; align-items: stretch; }

  .brand { font-size: min(11vw, 4.5rem); }
  .crown { width: 1.5em; margin-bottom: .08em; }
  .words span { display: block; }

  .tagline { margin-left: 0; font-size: clamp(.62rem, 2.6vw, .66rem); letter-spacing: .06em; }
  .tagline span { display: inline; margin-right: .6em; }
  .menu-page .tagline { display: none; }

  .home-page .sign { gap: .7rem; }
  .home-page .sign .button { min-height: 3rem; }

  .menu-page { --tab-width: 2.75rem; --tab-room: calc(var(--tab-width) + .5rem); }
  .call-tab { font-size: 1.05rem; padding-inline: 1rem; }
  th + .price, .price { width: 3.1rem; padding-left: .35rem; }

  .line:has(.badge)::after { display: none; }

  .sidewalk { flex-direction: column; align-items: stretch; }
  .sidewalk .actions { order: -1; }
  .note { max-width: none; }
  .actions { flex-direction: column; }
  .menu-page .brand { min-height: 2.75rem; align-items: center; }
  .menu-foot .place { justify-content: center; }

  /* On the menu page the name stays on one line so the food comes sooner. */
  .menu-page .brand { font-size: min(6.4vw, 2.5rem); }
  .menu-page .crown { width: .92em; }
  .menu-page .words span { display: inline-block; }

  .jump {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    gap: .25rem;
    overflow-x: auto;
    background: var(--paper);
    border-bottom: 2px solid var(--red);
    padding-inline: .5rem;
    scrollbar-width: none;
  }

  .jump::-webkit-scrollbar { display: none; }

  .jump a {
    flex: none;
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding-inline: .6rem;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
  }

  .menu-foot { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Phones turned sideways: one line for the name so the photo still shows. */
@media (max-width: 960px) and (max-height: 480px) {
  .home-page .sign { flex-direction: row; align-items: center; padding-block: .6rem; }
  .home-page .brand { font-size: 4.6vw; }
  .home-page .crown { width: .92em; }
  .home-page .sign .button { margin-left: auto; min-height: 2.75rem; }
  .home-page .words span { display: inline-block; }
  .home-page .tagline { display: none; }
  .sidewalk { flex-direction: row; align-items: center; }
  .sidewalk .actions { flex-direction: row; }
}

/* Very short phones: give the photo the room the tagline would use. */
@media (max-width: 760px) and (max-height: 640px) {
  .home-page .tagline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .call-tab { transition: none; }
}
