@font-face {
  font-family: Bricolage;
  src: url("assets/bricolage.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #15362d;
  --muted: #50645a;
  --white: #fff;
  --surface: #fafdf9;
  --mint: #e7f4e6;
  --pink: #ffcbda;
  --lime: #d9f29a;
  --line: #d7e3d9;
  --glass: #122f2aed;
  --radius: 24px;
  --target: 2.75rem;
  --nav-height: 80px;
  --gutter: clamp(24px, 5vw, 88px);
  --text: 1.0625rem;
  --label: .9375rem;
  --note: .875rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #184737; }
body { position: relative; isolation: isolate; min-width: 320px; margin: 0; line-height: 1.48; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 640; line-height: 1.12; letter-spacing: -.03em; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #db5881; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.frame, .shell { width: min(1248px, calc(100% - var(--gutter))); margin-inline: auto; }

.scene-backdrop { position: fixed; z-index: -2; inset: 0; overflow: hidden; background: #1b6650; }
.scene-backdrop > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
body:not(.home-page)::before { content: ""; position: fixed; z-index: -1; inset: 0; background: #15362d4d; }

.masthead {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  margin-top: 16px;
  padding: 8px 16px;
  border: 1px solid #ffffff38;
  border-radius: 20px;
  background: var(--glass);
  color: var(--white);
  backdrop-filter: blur(16px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: var(--target);
  color: #fcfffa;
  text-decoration: none;
  white-space: nowrap;
  font: 740 1.625rem/1.12 Bricolage, system-ui, sans-serif;
  letter-spacing: -.032em;
}
.wordmark img { width: 38px; height: 38px; }
.wordmark .bite { color: var(--lime); }
.masthead nav { display: flex; align-items: center; gap: 8px; }
.masthead nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--target);
  padding: 8px 12px;
  border-radius: 12px;
  color: inherit;
  font-size: var(--label);
  font-weight: 580;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.masthead nav a:hover { background: #ffffff20; }
.masthead nav .nav-veggie { color: var(--lime); }

.home-page main { overflow-x: clip; }
.stage {
  position: relative;
  min-height: max(385px, calc(68vh - var(--nav-height)));
  min-height: max(385px, calc(68svh - var(--nav-height)));
}
.finn-puppet {
  position: absolute;
  top: calc(50svh + .294 * max(100svh, 62.6vw) - var(--nav-height));
  left: 50.6%;
  width: min(39vw, 57svh);
  aspect-ratio: 4 / 5;
  transform: translate(-50%, -93%);
  pointer-events: none;
}
.finn-track, .finn-facing { position: absolute; inset: 0; }
.finn-track[data-facing="left"] .finn-facing { transform: scaleX(-1); }
.finn-puppet img { position: absolute; display: block; height: auto; pointer-events: none; }
.finn-body { inset: 0 auto auto 0; width: 100%; transform-origin: 13% 91%; animation: finn-sway 5.6s ease-in-out infinite; }
.finn-tail { bottom: 9.5%; left: -36%; width: 67%; transform-origin: 90% 90%; animation: tail-wag 2.8s ease-in-out infinite; }
.finn-frame { position: absolute; inset: 0; display: none; overflow: hidden; contain: paint; }
.finn-frame img { inset: 0 auto auto 0; width: 200%; height: 200%; max-width: none; }
.finn-track[data-pose]:not([data-pose="idle"]) .finn-body { visibility: hidden; }
.finn-track[data-pose="wave"] .finn-gesture,
.finn-track[data-pose="read"] .finn-gesture,
.finn-track[data-pose="menu"] .finn-gesture,
.finn-track[data-pose="listen"] .finn-gesture,
.finn-track[data-pose="walk"] .finn-walk { display: block; }
.finn-track[data-pose="read"] .finn-gesture img { transform: translate3d(-50%, 0, 0); }
.finn-track[data-pose="menu"] .finn-gesture img { transform: translate3d(0, -50%, 0); }
.finn-track[data-pose="listen"] .finn-gesture img { transform: translate3d(-50%, -50%, 0); }
.finn-track[data-pose="walk"] .finn-walk { animation: step-bob .35s ease-in-out infinite alternate; }
.finn-track[data-pose="walk"] .finn-walk img { animation: step-frames .70s steps(1, end) infinite; }
.finn-hit {
  position: absolute;
  inset: 8% 16% 19% 15%;
  pointer-events: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
}
.stage.finn-idle .finn-puppet img, .stage.finn-idle .finn-walk { animation-play-state: paused; }
@keyframes step-frames {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-50%, 0, 0); }
  50% { transform: translate3d(0, -50%, 0); }
  75% { transform: translate3d(-50%, -50%, 0); }
}
@keyframes step-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}
@keyframes finn-sway {
  0%, 100% { transform: rotate(.32deg) scaleY(1); }
  50% { transform: translateY(-2px) rotate(-.64deg) scaleY(1.012); }
}
@keyframes tail-wag {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(11deg) scale(1.035, .98); }
}

.speech {
  position: absolute;
  top: max(94px, calc(28svh - 24px));
  right: 0;
  z-index: 2;
  width: min(312px, 32vw);
  padding: 14px 16px 16px;
  border-radius: 20px;
  background: #fffffff8;
  box-shadow: 0 8px 26px #1538304a;
}
.speech::before { content: ""; position: absolute; top: 51%; left: -6px; width: 16px; height: 16px; border-radius: 4px; transform: rotate(45deg); background: inherit; }
.speaker { position: relative; color: var(--muted); font-size: var(--label); font-weight: 620; }
#finn-line { position: relative; min-height: 2.8em; margin: 4px 0 10px; font-size: var(--text); line-height: 1.4; font-weight: 570; letter-spacing: -.008em; }
.speech-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.speech-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: var(--target);
  padding: 7px 10px;
  border-radius: 11px;
  color: var(--ink);
  background: var(--mint);
  text-decoration: none;
  font-size: var(--note);
  line-height: 1.28;
  font-weight: 620;
  white-space: nowrap;
}
.speech-actions a:first-child { background: var(--pink); }
.speech-actions a:hover { box-shadow: inset 0 0 0 1px #6c9b81; }
.speech-actions a svg { width: 1rem; height: 1rem; }

.menu-jump {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 14px 8px 8px;
  border-radius: 17px;
  background: #fbfff6f5;
  text-decoration: none;
  box-shadow: 0 5px 25px #153e3362;
}
.menu-jump:hover { background: var(--lime); }
.tiny-menus { display: flex; align-items: center; }
.tiny-menus img { display: block; height: 40px; width: 41px; object-fit: cover; border-radius: 10px; border: 2px solid white; }
.tiny-menus img + img { margin-left: -12px; }
.menu-jump strong, .menu-jump small { display: block; line-height: 1.28; }
.menu-jump strong { font-size: 1rem; font-weight: 650; letter-spacing: -.008em; }
.menu-jump small { margin-top: 2px; color: var(--muted); font-size: var(--note); font-weight: 530; }

.menu-board { position: relative; z-index: 2; scroll-margin-top: 18px; padding-bottom: 20px; }
.board-controls {
  margin-bottom: 18px;
  padding: 18px 20px 16px;
  border: 1px solid #ffffff44;
  border-radius: var(--radius);
  color: #f9fff9;
  background: var(--glass);
  backdrop-filter: blur(16px);
}
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.board-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.board-heading h1 { font-size: clamp(1.875rem, 3.4vw, 2.5625rem); letter-spacing: -.034em; }
#results { color: #dcebd7; white-space: nowrap; font-size: var(--note); font-weight: 520; }
.board-filters { display: flex; align-items: center; gap: 10px; width: min(51%, 536px); }
.search-input {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 48px;
  padding: 7px 12px;
  border: 1px solid #b9cebe;
  border-radius: 13px;
  background: white;
  color: var(--ink);
}
.search-input:focus-within { outline: 2px solid var(--lime); outline-offset: 2px; }
.search-input input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: inherit; font-size: 1rem; font-weight: 500; }
.search-input input::placeholder { color: #526f60; opacity: 1; }
.cuisine-select { display: none; }
.cuisines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cuisines button, .veg-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: var(--target);
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid #ffffff0c;
  border-radius: 11px;
  color: #f4fff6;
  background: #ffffff20;
  font-size: var(--label);
  line-height: 1.25;
  font-weight: 570;
  white-space: nowrap;
}
.veg-toggle { min-height: 48px; color: var(--ink); background: var(--lime); font-size: var(--label); font-weight: 620; }
.cuisines button:hover { border-color: #f6fff6a6; }
.veg-label-short { display: none; }
.veg-toggle:hover { background: #e8ffae; }
.cuisines button[aria-pressed="true"] { color: var(--ink); background: #f6fff3; }
.veg-toggle[aria-pressed="true"] { color: var(--ink); background: var(--pink); }

.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.menu-card { min-width: 0; }
.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #fff9;
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 6px 20px #163a3136;
}
.card-link:hover { border-color: var(--lime); }
.menu-photo { position: relative; background: var(--mint); }
.menu-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; }
.leaf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #27543d;
  background: #e9f6e7;
  font-size: var(--note);
  font-weight: 630;
  line-height: 1.28;
}
.leaf-badge svg { width: 1rem; height: 1rem; }
.menu-photo .leaf-badge { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 7px #163d3144; }
.menu-caption { display: flex; flex-direction: column; flex: 1; padding: 16px 20px 19px; }
.type-label { color: #47665a; font-size: var(--note); line-height: 1.3; font-weight: 590; }
.menu-caption h3 { margin-top: 5px; font-size: clamp(1.375rem, 2.25vw, 1.625rem); line-height: 1.17; letter-spacing: -.028em; }
.summary { margin-top: 7px; color: var(--muted); font-size: 1rem; line-height: 1.49; font-weight: 460; }
.hours { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px; color: #3b5d4f; font-size: var(--note); line-height: 1.42; font-weight: 520; }
.hours svg { margin-top: 1px; width: 1.02rem; height: 1.02rem; }
.menu-caption .hours { margin-top: auto; padding-top: 14px; }
.empty { padding: 28px 20px; border-radius: var(--radius); background: white; text-align: center; }
.empty h2 { font-size: 1.5rem; }
.empty .action { margin-top: 16px; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--target);
  padding: 8px 15px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: var(--pink);
  font-size: var(--label);
  line-height: 1.28;
  font-weight: 625;
  text-decoration: none;
}
.action:hover { background: #ffdae4; }

.site-footer { padding: 0 0 20px; color: #f1fff3; font-size: var(--note); line-height: 1.43; font-weight: 510; }
.site-footer > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; width: 100%; margin-inline: auto; padding: 12px 15px; border-radius: 16px; background: var(--glass); }

.interior { margin-block: 20px 20px; padding: clamp(20px, 3.1vw, 36px); border: 1px solid #fff7; border-radius: 28px; background: #fcfff9f7; box-shadow: 0 12px 40px #193c3047; }
.restaurant-page > article { margin-top: 15px; }
.underlink { display: inline-flex; align-items: center; min-height: var(--target); text-underline-offset: 4px; font-weight: 590; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(21px, 3.45vw, 44px); align-items: start; }
.detail-photo { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; }
.detail-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.42; object-fit: cover; }
.detail-photo figcaption { padding: 10px 14px; color: var(--muted); font-size: var(--note); font-weight: 460; }
.detail-ticket h1 { margin-top: 6px; font-size: clamp(2.25rem, 5.1vw, 3.75rem); letter-spacing: -.036em; }
.detail-summary { margin-top: 12px; color: var(--muted); font-size: var(--text); line-height: 1.5; font-weight: 480; }
.veg-note { margin-top: 18px; padding: 13px; border-radius: 15px; background: var(--mint); }
.veg-note p { margin-top: 6px; font-size: 1rem; line-height: 1.42; font-weight: 540; }
.ordering { margin-block: 20px 8px; }
.ordering h2 { margin-bottom: 10px; font-size: 1.5rem; letter-spacing: -.02em; }
.ordering > div { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-aspect-ratio: 4/5) {
  .finn-puppet { top: calc(50svh + .191 * max(100svh, 211.5vw) - var(--nav-height)); left: 48%; width: min(70vw, 36svh, 520px); }
}
@media (max-width: 1000px) {
  .board-heading { display: block; }
  #results { margin-top: 4px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .speech { top: 20svh; width: min(312px, 35vw); }
}
@media (max-width: 700px) {
  :root { --nav-height: 68px; --gutter: 24px; }
  .masthead { margin-top: 10px; min-height: 58px; gap: 7px; padding: 6px 9px; border-radius: 16px; }
  .wordmark { font-size: 1.45rem; gap: 6px; }
  .wordmark img { width: 33px; height: 33px; }
  .masthead nav { gap: 3px; }
  .masthead nav a { padding-inline: 8px; font-size: var(--note); }
  .stage { min-height: max(366px, calc(65svh - var(--nav-height))); }
  .speech { top: clamp(18px, 5svh, 46px); width: min(278px, 96%); padding: 9px 12px 12px; border-radius: 17px; }
  .speech::before { top: auto; left: 40px; bottom: -5px; }
  #finn-line { margin: 1px 0 8px; font-size: 1rem; }
  .speech-actions a { padding-inline: 8px; }
  .menu-jump { bottom: 12px; min-height: 56px; padding-block: 6px; }
  .tiny-menus img { width: 36px; height: 36px; }
  .board-controls { margin-bottom: 12px; padding: 13px 14px; border-radius: 18px; }
  .board-top { display: block; }
  .board-heading { display: flex; align-items: baseline; justify-content: space-between; }
  .board-heading h1 { font-size: clamp(1.5625rem, 5.6vw, 1.875rem); }
  #results { margin-top: 0; }
  .board-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: 100%; margin-top: 10px; }
  .board-filters .search-input { grid-column: 1 / -1; }
  .search-input, .veg-toggle { min-height: var(--target); }
  .cuisines { display: none; }
  .cuisine-select { position: relative; display: block; min-width: 0; }
  .cuisine-select::after { content: ""; position: absolute; top: calc(50% - 5px); right: 11px; width: 7px; height: 7px; transform: rotate(45deg); border-bottom: 1.5px solid white; border-right: 1.5px solid white; pointer-events: none; }
  .cuisine-select select { appearance: none; width: 100%; min-height: var(--target); padding: 7px 25px 7px 9px; border: 1px solid #ffffff56; border-radius: 11px; color: white; background: #27473e; font-size: var(--note); line-height: 1.25; font-weight: 560; }
  .cuisine-select option { color: var(--ink); background: white; }
  .veg-toggle { padding-inline: 9px; font-size: var(--note); }
  .menu-grid { gap: 14px; }
  .menu-caption { padding: 15px 16px 17px; }
  .interior { margin-block: 16px; padding: 17px; border-radius: 20px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 470px) {
  .nav-veggie > span:last-child { display: none; }
  .masthead nav .nav-veggie { width: var(--target); padding-inline: 0; }
  .menu-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 350px) {
  .masthead { padding-inline: 6px; }
  .masthead nav a { padding-inline: 6px; }
  .stage { min-height: max(350px, calc(63svh - var(--nav-height))); }
  .speech { top: 11px; }
  .veg-label { display: none; }
  .veg-label-short { display: inline; }
  .board-controls { padding-inline: 11px; }
  .board-heading h1 { font-size: 1.48rem; }
}

@media (max-width: 350px) and (max-aspect-ratio: 4/5) {
  .finn-puppet { width: min(58vw, 31svh); }
}

.icon { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.13em; }
.search-input > .icon, .hours > .icon, .leaf-badge > .icon { width: 18px; height: 18px; }
.nav-veggie > .icon, .speech-actions .icon, .veg-toggle .icon { width: 17px; height: 17px; }
.menu-photo-empty {
  display: grid;
  aspect-ratio: 1.65;
  place-items: center;
  color: #33765a;
  background: radial-gradient(ellipse at 28% 15%, #fff7e4, transparent 65%), #ddeddd;
}
.menu-photo-empty > span > .icon { width: 42px; height: 42px; }
.menu-card:nth-child(3n + 2) .menu-photo-empty { background-color: #f7dfe4; }
.menu-card:nth-child(3n) .menu-photo-empty { background-color: #f4e8bf; }
.dish-match { margin-top: 9px; color: #29694e; font-size: .86rem; font-weight: 650; }
.google-rating { font-size: .925rem; font-weight: 690; color: var(--ink); margin-top: 9px; }
.google-rating > span:not(.rating-star), .google-rating small { color: var(--muted); font-weight: 520; }
.rating-star { color: #a05100; }
.detail-ticket .hours { margin-bottom: 6px; }
.detail-ticket .google-rating { margin-block: 14px; }
.detail-layout.no-cover { grid-template-columns: minmax(0, 1fr); }
.detail-layout.no-cover .detail-ticket { max-width: 660px; }
.ordering p { margin-top: 12px; color: var(--muted); line-height: 1.5; font-size: .93rem; }
.maps-link { display: inline-flex; margin-top: 13px; }
.photo-open { display: block; }
.photo-open:focus-visible { outline-offset: -5px; }
.menu-section { margin-top: clamp(24px, 5vw, 52px); }
.menu-section h2 { margin: 0 0 16px; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.02em; }
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.dish-list { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0 0 18px; }
.dish-list li { border-radius: 999px; padding: 8px 13px; background: #eaf3e8; color: #244b3d; font-size: .91rem; }
.menu-categories { color: var(--muted); margin-bottom: 18px; line-height: 1.65; }
