:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --card: #fffcf6;
  --ink: #251c18;
  --muted: #65574d;
  --red: #b32820;
  --line: #d9cfc0;
  --body: "DM Sans", system-ui, sans-serif;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
img { display: block; max-width: 100%; }
h1,h2,h3,p { margin: 0; }
button,input,select { font: inherit; color: inherit; }
button,select { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { width: min(1280px, calc(100% - 10vw)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; top: .5rem; left: .5rem; background: var(--paper); padding: .5rem 1rem; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 900 2rem/.9 var(--display); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand span { margin-left: -.55rem; }
.brand span, h2 span { color: var(--red); }
nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
nav a, .footer-inner > a:last-child { font-size: .9375rem; font-weight: 700; text-decoration: none; }
nav a:hover, .footer-inner > a:last-child:hover { color: var(--red); text-decoration: underline; text-underline-offset: .25em; }
.hero { display: grid; grid-template-columns: .98fr 1.02fr; gap: clamp(1.5rem, 4vw, 4.25rem); align-items: center; padding-block: clamp(2.75rem, 5vw, 5.25rem); }
.hero-copy { padding-block: .5rem; }
.eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: var(--red); margin-bottom: 1.1rem; }
h1 { font: 900 clamp(4.35rem, 7.55vw, 8.125rem)/.82 var(--display); letter-spacing: -.018em; }
h1 span { color: var(--red); white-space: nowrap; }
.intro { max-width: 32ch; margin: 1.55rem 0 1.45rem; font-size: clamp(1.08rem, 1.45vw, 1.3rem); line-height: 1.48; color: var(--muted); }
.primary { display: inline-block; padding: .78rem 1.2rem; border: 1px solid var(--red); background: var(--red); color: #fffaf4; font-weight: 700; text-decoration: none; }
.primary:hover { background: #8b1d17; border-color: #8b1d17; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 1.38; height: auto; object-fit: cover; background: #a36445; }
.photo-mark { position: absolute; top: -23px; right: -22px; width: clamp(42px, 5.2vw, 76px); color: var(--paper); filter: drop-shadow(1px 2px 1px #0005); transform: rotate(12deg); }
.ledger { border-block: 1px solid var(--line); background: #efe8dc; padding-block: clamp(2.35rem, 4.5vw, 4rem) clamp(3rem, 5vw, 5rem); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .86rem; }
h2 { font: 900 clamp(3.15rem, 5.6vw, 5.55rem)/.9 var(--display); letter-spacing: -.012em; }
#result-status { color: var(--muted); white-space: nowrap; font-size: .9rem; }
.review-note { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; }
.rating-guide-link { margin: .9rem 0 0 auto; }
.rating-scale { display: grid; grid-template-columns: 4.1rem 1fr; gap: .65rem .85rem; align-items: center; margin: 1.25rem 0 0; }
.rating-scale dd { margin: 0; }
.toolbar { display: flex; justify-content: space-between; gap: .9rem; margin-block: 1rem 1.35rem; flex-wrap: wrap; }
.filters,.tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter, .search, .sort { min-height: 42px; border: 1px solid #bdb0a1; background: transparent; border-radius: 2px; font-weight: 700; font-size: .875rem; }
.filter { padding: .47rem .86rem; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tools { flex: 0 1 auto; }
.search { display: flex; align-items: center; padding-inline: .65rem; gap: .42rem; }
.search input { min-width: 90px; width: 110px; border: 0; background: transparent; }
.search:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.search input:focus { outline: 0; }
.sort { display: grid; position: relative; }
.sort::after { content: ""; position: absolute; right: .8rem; top: 43%; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.sort select { appearance: none; border: 0; background: transparent; padding: .48rem 1.9rem .48rem .75rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.7rem); }
.card { background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.card-media { position: relative; }
.card-media img, .image-placeholder { width: 100%; aspect-ratio: 1.64; height: auto; object-fit: cover; background: #dac6b0; }
.image-placeholder { display: grid; place-items: center; }
.image-placeholder img { width: 46px; height: 46px; background: transparent; opacity: .6; }
.score { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 2.1rem; min-height: 2rem; color: var(--paper); background: var(--red); font-size: 1rem; line-height: 1; font-weight: 700; padding: .32rem .5rem; }
.score-avoid { color: var(--red); background: var(--card); border: 1px solid var(--red); font-size: 1.45rem; }
.verdict { display: flex; align-items: center; gap: .7rem; font-size: .9rem; font-weight: 600; }
.card-media .score { position: absolute; right: .72rem; top: .72rem; }
.card-body { padding: 1rem 1.05rem; display: flex; flex-direction: column; flex: 1; }
.meta { font-size: .79rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--red); }
h3 { font: 800 2.25rem/.96 var(--display); letter-spacing: -.01em; margin-top: .4rem; overflow-wrap: anywhere; }
.summary { color: var(--muted); margin-top: .7rem; margin-bottom: 1rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.plain { width: fit-content; display: inline-block; border: 0; padding: 0; background: transparent; font-size: .9rem; color: var(--red); font-weight: 800; text-decoration: underline; text-underline-offset: .3em; }
.plain:hover { color: var(--ink); }
.card .plain { margin-top: auto; }
.empty { border: 1px dashed #bdb0a1; padding: 2rem; text-align: center; }
#no-reviews { margin-top: 1.25rem; }
.empty button { margin-top: .6rem; }
.map-section { padding-block: clamp(2.85rem, 5vw, 4.75rem); }
.map-intro { margin-block: .85rem 1.15rem; color: var(--muted); }
.map-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(220px, 1fr); gap: 1.1rem; align-items: stretch; }
.map-frame { position: relative; min-width: 0; border: 1px solid var(--line); }
#restaurant-map { height: clamp(320px, 48vw, 480px); isolation: isolate; background: #e7e0d3; }
.map-fallback { position: absolute; z-index: 1; inset: auto .75rem 1.55rem; background: var(--card); color: var(--ink); padding: .65rem .85rem; font-size: .875rem; pointer-events: none; }
.restaurant-pin { display: grid; place-items: center; background: var(--red); color: white; border: 2px solid white; border-radius: 50%; box-shadow: 0 2px 7px #251c1873; font-size: 1.55rem; line-height: 1; }
.restaurant-pin:hover, .restaurant-pin:focus-visible { background: var(--ink); }
.restaurant-pin:has(.pin-avoid) { background: var(--card); color: var(--red); border-color: var(--red); }
.map-directory { min-width: 0; background: var(--card); border: 1px solid var(--line); padding: 1rem; }
.map-directory h3 { font-size: 1.9rem; margin: 0 0 .75rem; }
.map-directory ul { margin: 0; padding: 0; list-style: none; max-height: 410px; overflow: auto; }
.map-directory li { border-top: 1px solid var(--line); }
.map-place { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; padding: .7rem .25rem; border: 0; background: transparent; text-align: left; }
.map-place:hover { color: var(--red); }
.map-place:focus-visible { outline-offset: -2px; }
.map-place-name { font-weight: 800; overflow-wrap: anywhere; }
.map-place-area { display: block; color: var(--muted); font-size: .875rem; font-weight: 500; }
.map-section + .about { border-top: 1px solid var(--line); }
.about { display: grid; grid-template-columns: auto minmax(0, 620px); justify-content: center; align-items: center; gap: clamp(1.25rem, 4vw, 4rem); padding-block: clamp(3rem, 6vw, 6rem); }
.about h2 { font-size: clamp(2.7rem, 4.75vw, 4.7rem); }
.about p { margin-top: 1rem; font-size: 1.1rem; color: var(--muted); }
.about img { width: clamp(40px, 8vw, 100px); height: auto; transform: rotate(12deg); }
footer { background: var(--ink); color: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 1.5rem; }
.footer-inner .brand span { color: #ff786c; }
.footer-inner p { font-size: .875rem; }
dialog { color: var(--ink); background: var(--card); border: 1px solid var(--line); padding: 0; width: min(540px, calc(100% - 2rem)); max-height: calc(100% - 2rem); }
dialog::backdrop { background: #251c18aa; }
dialog form { position: absolute; z-index: 1; right: .8rem; top: .8rem; }
.close { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; width: 42px; height: 42px; background: var(--card); font-size: 1.6rem; line-height: 1; }
dialog .card-body { padding: 1.5rem; }
dialog .card-body:first-child { padding-right: 4rem; }
dialog h2 { font-size: clamp(2.8rem, 9vw, 4.5rem); overflow-wrap: anywhere; margin-block: .35rem .8rem; }
.detail-notes { margin-block: 1rem; overflow-wrap: anywhere; white-space: pre-wrap; }
dialog .score { align-self: flex-start; }
@media (max-width: 1050px) and (min-width: 761px) {
  h1 { font-size: 7.15vw; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  h1 { font-size: clamp(4rem, 13vw, 7rem); }
  .photo-mark { right: -9px; top: -15px; }
  .hero-photo img { aspect-ratio: 1.48; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .masthead-inner { min-height: 63px; }
  .brand { font-size: 1.7rem; gap: .35rem; }
  .brand img { width: 20px; height: auto; }
  .brand span { margin-left: -.35rem; }
  nav { gap: clamp(.55rem, 2vw, 1rem); }
  nav a { font-size: .875rem; white-space: nowrap; }
  h1 { font-size: clamp(3.2rem, 12vw, 4rem); }
  .cards { grid-template-columns: 1fr; }
  .tools { width: 100%; }
  .search { flex: 1; min-width: 0; }
  .search input { width: 100%; }
  .about { align-items: start; }
  .footer-inner p { order: 1; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.review-editor { padding-block: clamp(2rem, 5vw, 4.75rem); }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.editor-panel { margin: 0; min-width: 0; border: 1px solid var(--line); background: var(--card); padding: 1rem 1.2rem 1.2rem; }
.editor-panel legend { padding-inline: .4rem; color: var(--red); font: 800 1.7rem/1 var(--display); }
.editor-panel label { display: block; margin-bottom: .9rem; font-weight: 700; }
.editor-panel :is(input, textarea, select) { display: block; width: 100%; margin-top: .28rem; min-height: 44px; padding: .55rem; background: var(--paper); color: var(--ink); border: 1px solid #bdb0a1; border-radius: 2px; font-weight: 500; }
.editor-panel select { appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23251c18' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .65rem center; background-size: .7rem; }
.editor-panel textarea { resize: vertical; }
.editor-panel .optional { color: var(--muted); font-size: .875rem; font-weight: 500; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
#editor-map { height: clamp(210px, 30vw, 330px); isolation: isolate; background: #e7e0d3; margin-block: .65rem 1rem; }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; margin-top: 1.2rem; }
.editor-actions .primary:disabled { opacity: .65; cursor: default; }
.owner-link { color: var(--red); }
.review-heading-actions { display: flex; align-items: baseline; justify-content: flex-end; gap: .55rem 1rem; flex-wrap: wrap; }
.owner-link { white-space: nowrap; }
#review-feedback { margin-top: .85rem; color: var(--muted); font-weight: 700; }
@media (max-width: 760px) { .editor-grid { grid-template-columns: 1fr; } }
