/* The Shakey-Shakespeare, Bicester. Colours from their own pub: white render, slate roof,
   the plum of the painted sign, and the pink and green chalk of their specials board. */
:root {
  --wall: #f4f3ef;
  --wall-2: #e8e6e0;
  --ink: #1f2125;
  --plum: #5b3a4e;
  --board: #1a1b1d;
  --board-2: #26282b;
  --chalk: #f3f0ea;
  --pink: #f7a1ca;
  --green: #9be3a2;

  --small: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);
  --body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --head: clamp(2.125rem, 1.3rem + 3.2vw, 4rem);

  --pad: clamp(20px, 4vw, 64px);
  --sec: clamp(56px, 7vw, 120px);
  --gap: clamp(24px, 3.2vw, 56px);
  --display: "Libre Franklin", "Arial Narrow", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--wall); color: var(--ink); font-family: var(--text); font-size: var(--body); line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, blockquote, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.96; text-wrap: balance; }
h2 { font-size: var(--head); }
h3 { font-size: var(--lead); letter-spacing: -0.02em; line-height: 1.1; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.sec { padding-top: var(--sec); padding-bottom: var(--sec); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--chalk); padding: 12px 16px; z-index: 5; }
.skip:focus { left: 8px; top: 8px; }

/* buttons: square, flat */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; font-family: var(--display); font-weight: 700; font-size: var(--small); letter-spacing: -0.01em; text-decoration: none; background: var(--plum); color: #fff; border: 0; cursor: pointer; transition: transform .18s ease, background-color .18s ease; }
.btn:hover { background: #47293b; }
.btn:active { transform: translateY(2px); }
.btn.quiet { background: var(--wall-2); color: var(--ink); }
.btn.quiet:hover { background: #dad7cf; }
.btn.chalk { background: var(--pink); color: var(--board); }
.btn.chalk:hover { background: #ffb9da; }
.btn.dark { background: var(--board-2); color: var(--chalk); }
.btn.dark:hover { background: #34373b; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: var(--small); letter-spacing: -0.01em; text-transform: uppercase; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav { display: flex; align-items: center; gap: clamp(4px, 1.6vw, 28px); font-family: var(--display); font-weight: 700; font-size: var(--small); }
.nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.nav a.btn { padding: 0 18px; min-height: 44px; }
.nav a.btn:hover { text-decoration: none; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: center; padding-top: clamp(8px, 1.5vw, 24px); padding-bottom: var(--sec); }
.hero-text { container-type: inline-size; }
.hero h1 { font-size: clamp(2.5rem, 13.2cqi, 7rem); text-transform: uppercase; line-height: 0.9; }
.hero .lead { font-size: var(--lead); line-height: 1.4; margin-top: clamp(20px, 2.4vw, 36px); max-width: 30em; }
.hero .where { margin-top: 14px; font-size: var(--body); }
.hero .btns { margin-top: clamp(22px, 2.6vw, 40px); }
.hero-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 50%; }

/* the wall sign */
.sign { background: var(--plum); color: #fff; }
.sign h2 { font-size: var(--body); font-family: var(--text); font-weight: 400; letter-spacing: 0; line-height: 1.5; max-width: 34em; }
.sign-rows { margin-top: clamp(28px, 3.4vw, 56px); display: grid; gap: clamp(26px, 3vw, 48px); }
.sign-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.sign-big { container-type: inline-size; }
.sign-big p { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.9; font-size: clamp(2.4rem, 11.6cqi, 7rem); }
.sign-row > p { font-size: var(--lead); line-height: 1.35; padding-bottom: 0.2em; }

/* the board */
.board { background: var(--board); color: var(--chalk); }
.board-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.board-head h2 { color: var(--pink); }
.board-head p { font-size: var(--lead); line-height: 1.35; }
.price { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
.courses { margin-top: clamp(28px, 3.4vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.course h3 { color: var(--green); margin-bottom: 12px; }
.course li + li { margin-top: 6px; }
.dish { display: flex; width: 100%; min-height: 52px; align-items: center; text-align: left; padding: 10px 14px; margin-left: -14px; background: transparent; color: var(--chalk); border: 0; font: inherit; font-size: var(--body); line-height: 1.3; cursor: pointer; transition: background-color .16s ease, color .16s ease, transform .16s ease; }
.dish:hover { background: var(--board-2); }
.dish:active { transform: translateY(1px); }
.dish[aria-pressed="true"] { background: var(--pink); color: var(--board); font-weight: 600; }
.tally { margin-top: clamp(28px, 3.4vw, 56px); background: var(--board-2); padding: clamp(20px, 2.4vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--gap); align-items: center; }
.tally-line { font-family: var(--display); font-weight: 700; font-size: var(--lead); letter-spacing: -0.02em; line-height: 1.15; }
.tally-line b { color: var(--pink); }
.tally-picks { margin-top: 8px; font-size: var(--body); min-height: 1.55em; }
.board-note { margin-top: 22px; font-size: var(--small); max-width: 58em; }

/* the wrap shack */
.shack-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; }
.shack blockquote { font-size: var(--lead); line-height: 1.35; margin-top: clamp(18px, 2vw, 28px); }
.cite { margin-top: 10px; font-size: var(--small); }
.times { margin-top: clamp(22px, 2.6vw, 36px); display: grid; grid-template-columns: auto 1fr; column-gap: 28px; row-gap: 6px; font-size: var(--body); }
.times dt { font-weight: 600; }
.taste { background: var(--wall-2); padding: clamp(22px, 3vw, 48px); }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: baseline; }
.rows li + li { margin-top: 16px; }
.rows .n { font-family: var(--display); font-weight: 700; font-size: var(--lead); letter-spacing: -0.02em; line-height: 1.15; }
.rows .p { font-family: var(--display); font-weight: 700; font-size: var(--lead); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rows .d { grid-column: 1 / -1; font-size: var(--small); margin-top: 3px; max-width: 46em; }
.taste .btns { margin-top: clamp(22px, 2.6vw, 36px); }

/* the specials board photo */
.specials { background: var(--wall-2); }
.specials-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: center; }
.specials-photo img { width: 100%; aspect-ratio: 1290 / 1790; object-fit: cover; }
.specials blockquote { font-size: var(--lead); line-height: 1.35; margin-top: clamp(18px, 2vw, 28px); }
.specials .rows { margin-top: clamp(24px, 3vw, 44px); }
.specials .rows .n { font-size: var(--body); font-family: var(--text); font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.specials .rows .p { font-size: var(--body); }
.specials .rows li + li { margin-top: 12px; }

/* find us + footer */
.find { background: var(--board); color: var(--chalk); }
.find-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: start; }
.find-main { container-type: inline-size; }
.phone { display: inline-block; font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; font-size: clamp(2.6rem, 14cqi, 7.5rem); color: var(--pink); text-decoration: none; margin-top: clamp(14px, 1.6vw, 24px); white-space: nowrap; }
.phone:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.find address { font-style: normal; font-size: var(--lead); line-height: 1.35; margin-top: clamp(18px, 2vw, 28px); }
.find .btns { margin-top: clamp(22px, 2.6vw, 36px); }
.find h3 { color: var(--green); }
.find .times { margin-top: 14px; }
.find-side p { margin-top: 14px; font-size: var(--small); }
.foot { container-type: inline-size; margin-top: var(--sec); }
.foot .name { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.9; font-size: 6.9cqi; white-space: nowrap; color: var(--chalk); }
.foot .small { margin-top: 18px; font-size: var(--small); display: flex; flex-wrap: wrap; gap: 6px 28px; }
.foot .small a { min-height: 44px; display: inline-flex; align-items: center; }

/* menu page */
.menu-head { padding-top: clamp(20px, 3vw, 48px); padding-bottom: clamp(20px, 3vw, 40px); }
.menu-head h1 { font-size: var(--head); text-transform: uppercase; }
.menu-head p { font-size: var(--lead); line-height: 1.35; margin-top: 14px; max-width: 34em; }
.tabs { position: sticky; top: 0; z-index: 3; background: var(--wall); }
.tabs .wrap { display: flex; gap: 8px; padding-top: 10px; padding-bottom: 10px; overflow-x: auto; }
.tabs a { flex: none; font-family: var(--display); font-weight: 700; font-size: var(--small); text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; padding: 0 18px; background: var(--wall-2); }
.tabs a[aria-current="true"] { background: var(--ink); color: var(--wall); }
.sheet { scroll-margin-top: 68px; }
.sheet-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.sheet-head p { font-size: var(--lead); line-height: 1.35; }
.cols { margin-top: clamp(28px, 3.4vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.group + .group { margin-top: clamp(28px, 3vw, 44px); }
.group h3 { margin-bottom: 16px; }
.board .group h3 { color: var(--green); }
.board .rows .n, .sheet .rows .n { font-size: var(--body); line-height: 1.25; letter-spacing: -0.01em; }
.sheet .rows .p { font-size: var(--body); }
.sheet .rows .d { font-size: var(--small); line-height: 1.5; }
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 6px; margin-top: 12px; font-size: var(--small); }
.extras li { display: flex; justify-content: space-between; gap: 12px; }
.extras span:last-child { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.sheet-note { margin-top: clamp(24px, 3vw, 40px); font-size: var(--small); max-width: 58em; }
.sheet .btns { margin-top: clamp(22px, 2.6vw, 36px); }

/* entrances: slide up and fade only, with a settled fallback */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.in, .js.settled .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn, .dish { transition: none; }
}

/* phone and small tablet: its own order, photo first */
@media (max-width: 860px) {
  .nav a.hide-s { display: none; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-top: 0; }
  .hero-photo { order: -1; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
  .hero .btns .btn { flex: 1 1 100%; }
  .sign-row, .board-head, .shack-grid, .specials-grid, .find-grid, .sheet-head { grid-template-columns: 1fr; gap: 14px; }
  .sign-row > p { padding-bottom: 0; }
  .courses, .cols, .cols.two { grid-template-columns: 1fr; gap: 30px; }
  .tally { grid-template-columns: 1fr; gap: 18px; }
  .tally .btn, .taste .btn, .find .btns .btn, .sheet .btns .btn { width: 100%; }
  .shack-grid, .find-grid { gap: 32px; }
  .specials-grid { gap: 26px; }
  .specials-photo { max-width: 460px; }
  .dish { margin-left: -12px; padding: 10px 12px; width: calc(100% + 24px); }
}

/* pass 2: scale and affordance */
:root { --small: clamp(1rem, 0.9rem + 0.42vw, 1.125rem); }
.btn { font-size: var(--body); min-height: 56px; padding: 12px 28px; }
.nav a.btn { min-height: 48px; }
.hero { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.hero h1 { font-size: clamp(2.5rem, 13.6cqi, 7.5rem); }
.sign h2 { font-size: var(--lead); }
.dish { gap: 14px; font-size: clamp(1.0625rem, 0.95rem + 0.55vw, 1.4rem); min-height: 56px; }
.dish::before { content: ""; flex: none; width: 18px; height: 18px; background: #45484d; transition: background-color .16s ease; }
.dish[aria-pressed="true"]::before { background: var(--board); }
.course h3 { font-size: var(--head); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
.tally-line { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2.25rem); }
.specials .rows .n { font-family: var(--display); font-weight: 700; font-size: var(--lead); letter-spacing: -0.02em; line-height: 1.15; }
.specials .rows .p { font-size: var(--lead); }
.specials .rows li + li { margin-top: clamp(14px, 1.5vw, 24px); }
.foot .name { font-size: 7.15cqi; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
@media (min-width: 861px) {
  .shack-grid { align-items: stretch; }
  .shack-grid > div:first-child { display: flex; flex-direction: column; }
  .shack-grid > div:first-child .times { margin-top: auto; padding-top: 28px; font-size: var(--lead); }
}
@media (min-width: 861px) {
  .shack-grid > div:first-child { justify-content: center; }
  .shack-grid > div:first-child .times { margin-top: clamp(22px, 2.6vw, 36px); padding-top: 0; }
}
.cols > .group + .group { margin-top: 0; }
@media (max-width: 860px) { .nav .hide-s { display: none; } .wordmark { white-space: nowrap; } }
@media (min-width: 861px) {
  .shack-grid { align-items: center; }
  .shack-grid > div:first-child { display: block; }
}
.shack .btns { margin-top: clamp(22px, 2.6vw, 36px); }
@media (max-width: 860px) { .shack .btns .btn { width: 100%; } }
/* polish */
:focus-visible { outline-color: currentColor; }
.board .sheet-head h2 { color: var(--pink); }
@media (max-width: 860px) { .foot .small { flex-direction: column; gap: 0; } .foot .small span { padding: 8px 0; } }
