/*
  Quinlan's Bar & Kitchen: concept "after".
  Palette: mist page, slate ink, shopfront red (the painted fascia), pint amber (the kitchen lamp).
  Type: Besley (Clarendon-style shopfront serif) + Hanken Grotesk. Both OFL.
*/
@font-face {
  font-family: "Besley";
  src: url("/assets/redesigns/quinlans-bar/fonts/besley.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Besley";
  src: url("/assets/redesigns/quinlans-bar/fonts/besley-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/redesigns/quinlans-bar/fonts/hanken.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --mist: #edf0ee;
  --paper: #fafbfa;
  --stone: #dde3e0;
  --ink: #16232b;
  --slate: #4a5b64;
  --red: #b1322b;
  --red-deep: #7c1f1a;
  --amber: #e3a02d;
  --gold: #f4d38c;
  --letter: #fbf6ec;
  --line: rgba(22, 35, 43, 0.16);
  --serif: "Besley", "Rockwell", "Roboto Slab", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  padding-bottom: 72px; /* room for the phone call bar */
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--red);
  text-underline-offset: 0.18em;
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid var(--red);
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font: 700 1.0625rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

/* ---------- top nav ---------- */
.top {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top__nav {
  display: flex;
  gap: 4px;
  margin-inline: -10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.top__nav a:hover {
  color: var(--red);
  text-decoration: underline;
}

.top__call {
  display: none;
}

/* ---------- hero: the painted fascia + the board ---------- */
.hero {
  padding: 20px 0 8px;
}

.hero__grid {
  display: grid;
  gap: 20px;
}

.fascia {
  position: relative;
  padding: 30px 26px 26px;
  background: var(--red);
  color: var(--letter);
  /* sign-writer's double pinstripe */
  box-shadow:
    inset 0 0 0 9px var(--red),
    inset 0 0 0 10px var(--gold),
    inset 0 0 0 13px var(--red),
    inset 0 0 0 14px var(--gold);
}

.fascia span {
  display: block;
}

.fascia {
  container-type: inline-size;
}

.fascia__name {
  font: 800 clamp(3rem, 14.5vw, 6.5rem) / 0.92 var(--serif);
  font-size: min(18cqi, 8rem);
  letter-spacing: -0.01em;
  text-shadow: 0.035em 0.035em 0 var(--red-deep);
}

.fascia__sub {
  margin-top: 10px;
  color: var(--gold);
  font: italic 600 clamp(1.5rem, 5vw, 2.25rem) / 1.1 var(--serif);
}

.fascia__place {
  margin-top: 14px;
  font: 700 0.8125rem/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro {
  align-self: start;
}

.lede {
  max-width: 34rem;
  font-size: 1.1875rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.actions .btn {
  flex: 1 1 220px;
}

/* ---------- the board: tonight at quinlan's ---------- */
.tonight {
  position: relative;
  padding: 24px 22px 20px;
  background: var(--paper);
  border: 1px solid var(--red);
  box-shadow:
    inset 0 0 0 5px var(--paper),
    inset 0 0 0 6px var(--red);
}

.tonight__day {
  font: 700 0.8125rem/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.tonight__title {
  margin-top: 6px;
  font: 800 clamp(1.75rem, 5vw, 2.25rem) / 1.1 var(--serif);
}

.rows {
  margin-top: 14px;
}

.row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 4px 12px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.row dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 0.8125rem/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

.row dd strong {
  display: block;
  font: italic 600 clamp(1.3rem, 4.4vw, 1.625rem) / 1.2 var(--serif);
}

.row dd span {
  display: block;
  margin-top: 2px;
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.lamp {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--stone);
  box-shadow: inset 0 0 0 1.5px rgba(22, 35, 43, 0.35);
}

.lamp[data-state="on"] {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(227, 160, 45, 0.3);
}

.lamp--music[data-state="on"] {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(177, 50, 43, 0.25);
}

.lamp--bar[data-state="on"] {
  background: var(--ink);
  box-shadow: 0 0 0 3px rgba(22, 35, 43, 0.18);
}

.lamp[data-state="soon"] {
  background: #f5dba6;
  box-shadow: inset 0 0 0 1.5px var(--amber);
}

.tonight__track {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tonight__track[hidden] {
  display: none;
}

.tonight__book {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--slate);
}

.tonight__book a {
  font-weight: 700;
}

/* ---------- timeline bars (shared by the board and the week) ---------- */
.track {
  --h: 9px;
  position: relative;
  height: calc(var(--h) * 2 + 4px);
  background: repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc(23.0769% - 1px),
      rgba(22, 35, 43, 0.12) calc(23.0769% - 1px),
      rgba(22, 35, 43, 0.12) 23.0769%
    );
}

.track--big {
  --h: 14px;
}

.track i {
  position: absolute;
  left: var(--l);
  width: var(--w);
}

.track .t-bar {
  top: -3px;
  bottom: -3px;
  background: var(--stone);
  z-index: 0;
}

.track .t-k,
.track .t-s {
  z-index: 1;
  height: var(--h);
}

.track .t-k {
  top: 0;
  background: var(--amber);
}

.track .t-s {
  bottom: 0;
  background: var(--red);
}

.track .now {
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: var(--at);
  z-index: 2;
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
}

.track .now::after {
  content: "Now";
  position: absolute;
  top: -1.55em;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 5px;
  background: var(--ink);
  color: #fff;
  font: 700 0.6875rem/1.5 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.track--big .now {
  top: -4px;
  bottom: -8px;
}

.tonight__track {
  padding-top: 26px;
}

.axis {
  position: relative;
  height: 20px;
  margin-top: 8px;
  color: var(--slate);
  font: 600 0.75rem/20px var(--sans);
}

.axis span {
  position: absolute;
}

.axis span:nth-child(1) { left: 0; }
.axis span:nth-child(2) { left: 23.0769%; transform: translateX(-50%); }
.axis span:nth-child(3) { left: 46.1538%; transform: translateX(-50%); }
.axis span:nth-child(4) { left: 69.2308%; transform: translateX(-50%); }
.axis span:nth-child(5) { left: 92.3077%; transform: translateX(-50%); }

/* ---------- sections ---------- */
section h2 {
  font: 800 clamp(1.875rem, 5vw, 2.75rem) / 1.08 var(--serif);
}

.section-head {
  display: grid;
  gap: 8px;
  max-width: 40rem;
}

.section-head p {
  color: var(--slate);
}

/* week */
.week {
  padding: 56px 0 24px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 20px 0 8px;
  color: var(--slate);
  font-size: 0.875rem;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.key {
  display: block;
  width: 22px;
  height: 10px;
}

.key--bar { background: var(--stone); }
.key--k { background: var(--amber); }
.key--s { background: var(--red); }

.axisrow .axis {
  margin: 0 0 4px;
}

.days {
  border-top: 2px solid var(--ink);
}

.day {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--line);
}

.day__name {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 800 1.375rem/1.2 var(--serif);
}

.day__today {
  padding: 1px 8px;
  background: var(--ink);
  color: #fff;
  font: 700 0.6875rem/1.5 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.day__today[hidden] {
  display: none;
}

.day p {
  font-size: 0.9375rem;
  line-height: 1.4;
}

.day small {
  display: block;
  color: var(--slate);
  font-size: 0.8125rem;
}

.lbl {
  display: block;
  color: var(--slate);
  font: 700 0.6875rem/1.6 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.day__b {
  grid-column: 1 / -1;
}

.day__b .lbl {
  display: inline;
  margin-right: 8px;
}

.day .track {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.day[aria-current="date"] {
  background: var(--paper);
  margin-inline: -12px;
  padding-inline: 12px;
  box-shadow: inset 4px 0 0 var(--red);
}

/* menu */
.menu {
  padding: 56px 0 32px;
}

.menu__intro {
  display: grid;
  gap: 24px;
  align-items: center;
}

.menu__intro p {
  margin-top: 12px;
  max-width: 34rem;
}

.menu__intro .menu__meta {
  color: var(--slate);
  font-size: 0.9375rem;
}

.menu__photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
}

.menu__cols {
  display: grid;
  gap: 36px 56px;
  margin-top: 40px;
}

.menu__col {
  display: grid;
  gap: 36px;
  align-content: start;
}

.course h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  font: 800 1.5rem/1.2 var(--serif);
}

.course h3 span {
  color: var(--slate);
  font: 600 0.875rem/1.3 var(--sans);
}

.dishes li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.dishes b {
  font: 700 1.0625rem/1.3 var(--sans);
}

.dishes i {
  font: 700 1.0625rem/1.3 var(--sans);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.dishes span {
  grid-column: 1;
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.dishes span:empty {
  display: none;
}

.menu__fine {
  margin-top: 28px;
  padding: 14px 16px;
  background: var(--paper);
  border-left: 4px solid var(--amber);
  font-size: 0.9375rem;
}

/* music */
.music {
  margin-top: 40px;
  padding: 56px 0;
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.music__grid {
  display: grid;
  gap: 32px;
}

.music p {
  margin-top: 14px;
  max-width: 34rem;
}

.nights > div {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.nights > div:first-child {
  border-top: 2px solid var(--ink);
}

.nights dt {
  font: italic 700 1.625rem/1.2 var(--serif);
  color: var(--red);
}

.nights dd strong {
  font-weight: 700;
}

/* find us */
.find {
  padding: 56px 0 64px;
}

.find__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.find__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.find__photo figcaption {
  margin-top: 8px;
  color: var(--slate);
  font-size: 0.875rem;
}

.find__text p {
  margin-top: 14px;
  max-width: 34rem;
}

.facts {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  max-width: 34rem;
  font-size: 0.9375rem;
}

.facts li {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* footer */
.foot {
  padding: 32px 0;
  background: var(--ink);
  color: #c9d3d8;
  font-size: 0.9375rem;
}

.foot a {
  color: #fff;
}

.foot__name {
  color: #fff;
  font: 800 1.375rem/1.2 var(--serif);
}

.foot p + p {
  margin-top: 6px;
}

.foot__small {
  color: #9fb0b8;
  font-size: 0.8125rem;
}

/* fixed call bar, phones only */
.callbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 20px calc(0px + env(safe-area-inset-bottom));
  background: var(--red);
  color: #fff;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
}

.callbar strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.callbar:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -6px;
}

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .day {
    grid-template-columns: 1.1fr 1.1fr 1fr;
  }
  .day__b {
    grid-column: auto;
  }
  .day__b .lbl {
    display: block;
    margin: 0;
  }
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .callbar {
    display: none;
  }

  .top__in {
    min-height: 56px;
  }

  .top__call {
    display: inline-flex;
  }

  .hero {
    padding: 36px 0 24px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "fascia board"
      "intro board";
    gap: 28px 48px;
    align-items: start;
  }

  .fascia {
    grid-area: fascia;
    padding: 44px 40px 36px;
  }

  .intro {
    grid-area: intro;
  }

  .tonight {
    grid-area: board;
    padding: 30px 28px 24px;
  }

  .actions .btn {
    flex: 0 1 auto;
  }

  .menu__intro {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .menu__cols {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .music__grid {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }

  .find__grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
  }
}

@media (min-width: 1000px) {
  .day {
    grid-template-columns: 150px 1.15fr 1.15fr 1.05fr minmax(0, 1.6fr);
    gap: 4px 20px;
    align-items: start;
    padding: 18px 0;
  }

  .day__name {
    grid-column: auto;
    align-items: center;
    flex-wrap: wrap;
  }

  .day .track {
    grid-column: auto;
    align-self: center;
    margin-top: 0;
  }

  .axisrow {
    display: grid;
    grid-template-columns: 150px 1.15fr 1.15fr 1.05fr minmax(0, 1.6fr);
    gap: 4px 20px;
  }

  .axisrow .axis {
    grid-column: 5;
  }
}
