/* ==========================================================================
   The Partisan — menu page stylesheet
   --------------------------------------------------------------------------
   Dense list layout. Cards stop working past about a dozen items; this
   handles 74. Shares the token set with style.css but is a standalone
   sheet — the menu page loads only this file.

   Contents
   01. Tokens
   02. Base & layout
   03. Navigation
   04. Masthead
   05. Service tabs
   06. Filters
   07. Menu list
   08. Callout & legend
   09. Footer
   10. Responsive
   11. Accessibility
   ========================================================================== */


/* 01. Tokens ============================================================== */

:root {
  --ink:       #131311;
  --ink-soft:  #4A4A44;
  --shell:     #EDEEE8;
  --paper:     #F7F7F4;
  --saffron:   #FFDE7A;
  --cove:      #14413F;
  --alert:     #C7452F;
  --line:      rgba(19, 19, 17, .12);
  --open:      #2E9E5B;

  --display: "Fraunces", Georgia, serif;
  --body:    "Archivo", "Helvetica Neue", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --gutter: 32px;
  --radius: 16px;
}


/* 02. Base & layout ======================================================= */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Narrower than the homepage: long menu lines are hard to scan at 1240px. */
.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}


/* 03. Navigation ========================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 244, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 76px;
}

.logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -.03em;
}

.logo em { font-style: normal; color: var(--cove); }

.nav__links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 500;
}

.nav__links a {
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}

.nav__links a:hover,
.nav__links a.is-current { border-bottom-color: var(--saffron); }

.nav__tel {
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
}

.nav__tel:hover { background: var(--shell); }

.nav__book {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
}

.nav__book:hover { background: var(--cove); }


/* 04. Masthead ============================================================ */

.masthead { padding-block: 48px 30px; }

.masthead h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -.035em;
}

.masthead h1 b { font-weight: 900; font-style: italic; }

.masthead p {
  max-width: 52ch;
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}


/* 05. Service tabs ======================================================== */
/* Sticks below the nav so the service is always visible while scrolling a
   long list. Scrolls horizontally on narrow screens rather than wrapping. */

.services {
  position: sticky;
  top: 76px;
  z-index: 30;
  background: rgba(247, 247, 244, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.services__inner {
  display: flex;
  gap: 4px;
  padding-block: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.services__inner::-webkit-scrollbar { display: none; }

.service {
  flex: 0 0 auto;
  padding: 11px 18px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  cursor: pointer;
}

.service:hover { background: var(--shell); color: var(--ink); }

.service[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.service small {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .08em;
  opacity: .65;
}

/* Green dot marks whichever service is running right now. */
.service .now {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--open);
  vertical-align: middle;
}

.service-hours {
  padding-block: 16px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--ink-soft);
}


/* 06. Filters ============================================================= */

.filters {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--shell);
  border-radius: var(--radius);
}

.filters__row + .filters__row { margin-top: 16px; }

.filters__label {
  margin-bottom: 11px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; }

.chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: .15s;
}

.chip:hover { border-color: var(--ink); }

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip--danger[aria-pressed="true"] {
  background: var(--alert);
  border-color: var(--alert);
  color: #fff;
}

.search {
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  font-family: var(--body);
  font-size: 14px;
}

.search::placeholder { color: var(--ink-soft); }

.filters__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.filters__count {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}

.filters__reset {
  border: 0;
  background: none;
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  color: var(--ink);
  cursor: pointer;
}


/* 07. Menu list =========================================================== */

.menu { padding-block: 34px 20px; }

.cat { margin-top: 38px; }
.cat:first-child { margin-top: 0; }

.cat__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.cat__count {
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: none;
  color: var(--ink-soft);
}

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  padding-block: 19px;
  border-bottom: 1px solid var(--line);
}

/* Only the eight photographed dishes carry a thumbnail. */
.item.has-img { grid-template-columns: 88px 1fr auto; }

.item__thumb {
  grid-row: span 3;
  width: 88px;
  height: 88px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #E2E4DC, #D3D6CA);
}

.item__thumb span {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(19, 19, 17, .35);
}

.item__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17.5px;
  letter-spacing: -.015em;
}

.item__price {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14.5px;
  text-align: right;
  white-space: nowrap;
}

.item__price small {
  display: block;
  margin-top: 3px;
  font-weight: 400;
  font-size: 10.5px;
  color: var(--ink-soft);
}

.item__desc {
  grid-column: 1 / -1;
  max-width: 66ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.item__add {
  grid-column: 1 / -1;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
}

.item__tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

/* When a thumbnail is present, text starts in the second column. */
.item.has-img .item__desc,
.item.has-img .item__add,
.item.has-img .item__tags { grid-column: 2 / -1; }

.tag {
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--shell);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tag--warn { background: rgba(199, 69, 47, .11); color: var(--alert); }

/* Dashed outline = allergen inferred from the description, not printed on
   the venue's own menu. Disappears once the kitchen confirms it. */
.tag--check {
  background: transparent;
  border: 1px dashed rgba(199, 69, 47, .45);
  color: var(--alert);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.empty {
  margin-top: 34px;
  padding: 44px 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.empty b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
}

.empty span { font-size: 14px; color: var(--ink-soft); }


/* 08. Callout & legend ==================================================== */

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--cove);
  color: var(--paper);
}

.callout div { flex: 1; min-width: 250px; }

.callout b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
}

.callout p { font-size: 13.5px; line-height: 1.6; opacity: .85; }

.callout a {
  padding: 12px 20px;
  border-radius: 100px;
  background: var(--saffron);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.legend {
  margin-top: 30px;
  padding-block: 24px 40px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.legend b { color: var(--ink); }


/* 09. Footer ============================================================== */

.footer {
  padding-block: 52px 60px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer__grid h4 {
  margin-bottom: 15px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer__grid p,
.footer__grid a {
  display: block;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.footer__grid a:hover { color: var(--ink); }

.footer__logo { margin-bottom: 14px; }


/* 10. Responsive ========================================================== */

@media (max-width: 940px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links,
  .nav__tel     { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }

  .item.has-img  { grid-template-columns: 64px 1fr auto; }
  .item__thumb   { width: 64px; height: 64px; }
  .item__thumb span { display: none; }
  .item__name    { font-size: 16px; }
  .footer__grid  { grid-template-columns: 1fr; }
}


/* 11. Accessibility ======================================================= */

:focus-visible {
  outline: 2.5px solid var(--cove);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}