@font-face {
  font-family: Instrument;
  src: url(/assets/display.woff2) format('woff2');
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url(/assets/display-i.woff2) format('woff2');
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(/assets/sans.woff2) format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --wine: #642b38;
  --wine-dark: #4c202a;
  --ink: #282820;
  --muted: #68675d;
  --paper: #faf8f2;
  --line: #dcd9ce;
  --olive: #536145;
  --serif: Instrument, Georgia, serif;
  --sans: DM, Arial, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
summary,
select {
  cursor: pointer;
}
button {
  border: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #9c6329;
  outline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
}
.icon {
  flex-shrink: 0;
  vertical-align: middle;
}
.wrap {
  width: min(1280px, calc(100% - clamp(40px, 9vw, 152px)));
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: -80px;
  left: 12px;
  padding: 10px 20px;
  z-index: 5;
  background: white;
}
.skip:focus {
  top: 0;
}
.mast {
  border-bottom: 1px solid var(--line);
}
.mast-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: 81px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 2rem/1 var(--serif);
  letter-spacing: -0.035em;
  width: fit-content;
  color: var(--wine);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--wine);
  color: #fff0da;
  border-radius: 50%;
}
.mast nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 32px;
}
.mast nav a {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}
.mast nav a:hover,
.mast nav a[aria-current] {
  color: var(--wine);
}
.mast nav a[aria-current]:after {
  content: '';
  position: absolute;
  bottom: 15px;
  height: 2px;
  left: 0;
  right: 0;
  background: var(--wine);
}
.log-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #bdb9aa;
  border-radius: 6px;
  color: var(--ink);
  padding: 8px 15px;
  font-size: 0.85rem;
  font-weight: 600;
}
.log-link:hover,
.btn.secondary:hover {
  background: #eeece3;
}
main {
  min-height: 62vh;
}
.hero {
  --copy-width: 47%;
  position: relative;
  margin-top: 28px;
  display: grid;
  grid-template-columns: var(--copy-width) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 12px;
  background: var(--wine);
  color: #fff4e3;
}
.hero-copy {
  padding: clamp(30px, 3.5vw, 54px) clamp(28px, 4.3vw, 65px);
  background: radial-gradient(ellipse at 0% 60%, #6e313e 0%, #622b37 70%);
}
.eyebrow,
.tiny {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.69rem;
  line-height: 1.25;
  color: var(--wine);
}
.minirule {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.9;
}
.hero-label {
  color: #efd8bb;
}
.hero h1 {
  font: 400 clamp(4.35rem, 6.15vw, 6.1rem)/0.94 var(--serif);
  letter-spacing: -0.038em;
  margin: 20px 0 18px;
}
.hero h1 em {
  font-weight: 400;
  color: #f0ccac;
}
.hero p {
  font-size: clamp(0.95rem, 1.14vw, 1.03rem);
  line-height: 1.52;
  max-width: 365px;
  color: #f4e4da;
  margin: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 27px;
}
.hero-button,
.hero-text,
.btn,
.text-link,
.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}
.hero-actions a {
  white-space: nowrap;
}
.hero-button {
  background: #fff3df;
  color: var(--wine-dark);
  border-radius: 5px;
  padding: 10px 16px;
}
.hero-button:hover {
  background: white;
}
.hero-text {
  color: #fff0dc;
  gap: 4px;
}
.hero-text:hover,
.text-link:hover,
.back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero-art {
  position: relative;
  min-width: 0;
}
.hero-art > img {
  height: 100%;
  width: 100%;
  position: absolute;
  object-fit: cover;
  object-position: 57% 53%;
}
.location {
  position: absolute;
  right: 17px;
  bottom: 16px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 11px;
  background: #fcf5e8ed;
  color: #40372c;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
}
.seal {
  position: absolute;
  left: var(--copy-width);
  top: 50%;
  width: 78px;
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-8deg);
  color: #64323a;
  filter: drop-shadow(0 2px 3px #29100824);
  pointer-events: none;
}
.seal text {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 1.4px;
}
.home-strip {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  min-height: 65px;
  color: var(--muted);
}
.home-strip div {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.855rem;
}
.home-strip .icon {
  color: var(--olive);
  margin-right: 2px;
}
.home-strip strong {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 650;
}
.home-strip i {
  width: 1px;
  height: 15px;
  background: var(--line);
}
.section {
  margin: 38px 0 48px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 19px;
}
.section-head h2,
h2,
h3 {
  font-family: var(--serif);
  font-weight: normal;
}
.section-head h2 {
  font-size: clamp(2.5rem, 3.45vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 7px 0 0;
}
.text-link {
  color: var(--wine);
  gap: 4px;
}
.card-grid,
.meal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.place-card,
.meal-card,
.panel,
.empty {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdf8;
}
.place-card {
  overflow: hidden;
  display: block;
}
.place-image {
  position: relative;
  aspect-ratio: 2.22;
  overflow: hidden;
  background: #e8dfcf;
}
.place-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.place-card:hover .place-image img {
  transform: scale(1.035);
}
.tag,
.state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}
.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fcf6eaf2;
  padding: 4px 9px;
  color: #464537;
}
.place-info {
  position: relative;
  padding: 16px 18px 18px;
}
.tiny {
  font-size: 0.66rem;
  color: var(--olive);
  letter-spacing: 0.13em;
}
.place-info h3,
.meal-card h3 {
  font-size: clamp(1.65rem, 2.1vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 4px 0 8px;
}
.meta {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.815rem;
}
.card-go {
  position: absolute;
  right: 16px;
  bottom: 18px;
  color: var(--wine);
}
.paper-image {
  background: repeating-linear-gradient(45deg, #f4ecdf, #f4ecdf 8px, #f1e9dd 8px, #f1e9dd 9px);
  display: grid;
  place-items: center;
  color: var(--wine);
}
.foot {
  margin-top: 54px;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.brand.small {
  font-size: 1.35rem;
  gap: 7px;
}
.small .brand-mark {
  width: 24px;
  height: 24px;
}
.small .icon {
  width: 14px;
  height: 14px;
}
.foot b {
  font-weight: 400;
  margin: 0 4px;
}
.foot > a:last-child {
  margin-left: auto;
}
.foot > a:hover {
  text-decoration: underline;
}
.intro {
  padding: 45px 0 24px;
}
.intro h1 {
  font: 400 clamp(3.2rem, 5.5vw, 5.1rem)/1.05 var(--serif);
  letter-spacing: -0.04em;
  margin: 7px 0 10px;
}
.intro p {
  max-width: 670px;
  color: var(--muted);
  margin: 0;
}
.back {
  margin-top: 27px;
  color: var(--wine);
}
.back:before {
  content: '‹';
  font-size: 1.3em;
}
.back + .intro {
  padding-top: 17px;
}
.progress-band {
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 21px 24px;
  background: #e9ecdf;
  color: #3e4c36;
}
.progress-band > div {
  flex: 1;
}
.progress-band strong {
  font-weight: 600;
}
.progress-band > span:last-child {
  font-size: 0.85rem;
}
.progress-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #f9faf1;
  border-radius: 50%;
}
progress {
  display: block;
  margin-top: 6px;
  width: min(100%, 560px);
  height: 6px;
  border: 0;
  border-radius: 5px;
  appearance: none;
  overflow: hidden;
  background: #d0d7c3;
}
progress::-webkit-progress-bar {
  background: #d0d7c3;
}
progress::-webkit-progress-value {
  background: var(--olive);
}
progress::-moz-progress-bar {
  background: var(--olive);
}
label,
.rating legend {
  font-size: 0.875rem;
  font-weight: 600;
}
input:not([type='radio']):not([type='checkbox']),
select,
textarea {
  width: 100%;
  display: block;
  margin-top: 6px;
  border: 1px solid #bfbcae;
  border-radius: 5px;
  padding: 9px 11px;
  min-height: 43px;
  background: #fffefb;
  font-size: 1rem;
  font-weight: 400;
}
textarea {
  resize: vertical;
}
select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555546' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr auto;
  align-items: end;
  gap: 15px;
  margin: 25px 0 18px;
}
.search-input {
  position: relative;
}
.search-input > .icon {
  position: absolute;
  left: 12px;
  top: 14px;
  color: var(--muted);
}
.search-input input {
  padding-left: 36px !important;
}
.btn {
  min-height: 42px;
  border: 1px solid transparent;
  padding: 9px 17px;
  border-radius: 5px;
  width: fit-content;
}
.btn.primary {
  background: var(--wine);
  color: #fff8eb;
}
.btn.primary:hover {
  background: var(--wine-dark);
}
.btn.secondary {
  border-color: #bcb8a9;
  background: transparent;
}
.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.result-line {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
}
.result-line a {
  text-decoration: underline;
}
.rows {
  border-top: 1px solid var(--line);
}
.row {
  padding: 15px 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.row:hover {
  background: #f1ede3;
}
.row-name {
  display: block;
  flex: 1;
}
.row-name strong {
  display: block;
  font-size: 1.02rem;
}
.row-name small,
.row-status {
  display: block;
  color: var(--muted);
  font-size: 0.81rem;
}
.check-box {
  border: 1px solid #b6b4a4;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.check-box.done,
.state.ok {
  background: #e7ecdd;
  color: var(--olive);
}
.state {
  padding: 4px 10px;
  background: #eee4d1;
  color: #674d31;
}
.empty {
  padding: clamp(35px, 5vw, 65px) 22px;
  text-align: center;
}
.empty-icon {
  background: #eee7d8;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--wine);
}
.empty h2 {
  font-size: 2.5rem;
  margin: 10px 0 4px;
  line-height: 1.12;
}
.empty p {
  max-width: 490px;
  margin: 0 auto 18px;
  color: var(--muted);
}
.actions,
.scores {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.meal-card {
  overflow: hidden;
}
.meal-main {
  display: block;
}
.meal-main img {
  width: 100%;
  aspect-ratio: 2.1;
  object-fit: cover;
}
.meal-main > div {
  padding: 16px 18px;
}
.meal-main:hover h3 {
  text-decoration: underline;
}
.meal-main > .scores {
  border-top: 1px solid var(--line);
  gap: 15px;
}
.score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
}
.score strong {
  margin-left: 4px;
  color: var(--ink);
}
.score small {
  color: var(--muted);
}
.initial {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-weight: 650;
  border-radius: 50%;
  font-size: 0.7rem;
  color: var(--wine);
  background: #f1dfdc;
}
.initial.bill {
  background: #e3eadc;
  color: var(--olive);
}

.meal-main:focus-visible {
  outline-offset: -4px;
}
.meal-photo-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
}
.review-page {
  max-width: 60rem;
  margin-inline: auto;
}
.review-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  border-block: 1px solid var(--line);
  padding: 13px 0;
}
.review-summary .scores {
  gap: 16px;
}
.review-summary .text-link {
  font-size: 0.82rem;
}
.review-writing {
  display: grid;
  gap: 20px;
  padding: 24px 0;
  max-width: 68ch;
}
.review-writing h2 {
  font-size: 1.8rem;
  line-height: 1.15;
  margin: 0 0 5px;
}
.review-writing p,
.review-dish figcaption {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.review-writing p {
  margin: 0;
}

.review-gallery {
  margin-top: clamp(20px, 2.5vw, 32px);
}
.gallery-heading,
.gallery-controls {
  display: flex;
  align-items: center;
}
.gallery-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.gallery-heading h2 {
  margin: 0;
  font: 400 clamp(1.65rem, 2.2vw, 2.05rem)/1.1 var(--serif);
}
.gallery-controls {
  gap: 6px;
}
.gallery-controls[hidden] {
  display: none;
}
.gallery-controls span {
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}
.gallery-controls button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--wine);
}
.gallery-controls button[aria-disabled='true'] {
  color: #837e73;
  background: var(--paper);
  cursor: default;
}
.gallery-controls button[aria-disabled='false']:hover {
  border-color: var(--wine);
}
.gallery-controls button[data-step='-1'] svg {
  transform: rotate(180deg);
}
.review-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85%, 43rem);
  align-items: start;
  gap: clamp(12px, 2vw, 22px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  position: relative;
  padding: 4px 4px 12px;
  scroll-padding-inline: 4px;
  scrollbar-width: thin;
  scrollbar-color: #bfb6a6 transparent;
}
.review-track:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}
.review-dish {
  scroll-snap-align: start;
  margin: 0;
  min-width: 0;
}
.review-track:has(.review-dish:only-child) {
  grid-auto-columns: min(100%, 40rem);
}
.photo-frame {
  display: block;
  padding: clamp(4px, 0.5vw, 7px);
  border: 1px solid #cec6b8;
  background: #fffdf7;
  box-shadow: 0 1px 4px #3e332519;
  border-radius: 4px;
  cursor: zoom-in;
}
.photo-frame img {
  width: 100%;
  height: clamp(220px, 53vw, 395px);
  object-fit: cover;
  border-radius: 1px;
}
.review-dish figcaption {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 28px);
  margin: -38px 14px 2px;
  padding: 10px 16px;
  background: #fffdf8;
  border: 1px solid #d4ccbf;
  box-shadow: 0 2px 5px #3e332518;
  border-radius: 3px;
}
.review-dish figcaption strong,
.review-dish figcaption p:only-child {
  display: block;
  color: var(--ink);
  font: 400 clamp(1.3rem, 2.2vw, 1.9rem)/1.12 var(--serif);
}
.review-dish figcaption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}
.review-dish figcaption strong + p {
  margin-top: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .review-track {
    scroll-behavior: smooth;
  }
}
.panel {
  padding: 24px;
  align-self: start;
}
.entry-form {
  max-width: 820px;
  display: grid;
  gap: 16px;
}
.form-panel {
  --panel-padding: 23px 26px;
  display: grid;
  gap: 17px;
  padding: var(--panel-padding);
}
.form-panel h2 {
  font-size: 1.9rem;
  line-height: 1;
  margin: 0;
}
.form-panel p,
.save-panel p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.form-grid,
.ratings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-panel .text-link {
  justify-self: start;
}
.rating {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.rating legend {
  padding: 0;
  margin-bottom: 8px;
}
.rating > div {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}
.rating label {
  position: relative;
  cursor: pointer;
}
.rating input {
  position: absolute;
  opacity: 0;
}
.rating span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  min-width: 34px;
  padding: 6px 8px;
  text-align: center;
}
.rating input:checked + span {
  background: var(--wine);
  color: white;
  border-color: var(--wine);
}
.rating input:focus-visible + span {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}
details.form-panel {
  display: block;
  padding: 0;
}
details.form-panel > summary {
  padding: var(--panel-padding);
}
details.form-panel > .detail-fields {
  margin-top: 0;
  padding: var(--panel-padding);
  padding-top: 0;
}
summary {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: auto;
}
summary:after {
  content: '+';
  color: var(--wine);
  font-size: 1.15rem;
}
details[open] > summary:after {
  content: '−';
}
.detail-fields {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px !important;
  height: 1px;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0 !important;
}
.food-editor > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.food-items {
  display: grid;
  gap: 12px;
}
.food-items:empty,
.food-picker[hidden],
.dish-action[hidden],
.dish-status:empty {
  display: none;
}
.food-item {
  margin: 0;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  display: grid;
  grid-template-columns: clamp(74px, 18vw, 140px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.dish-preview {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px;
  background: #efebe1;
}
.dish-fields {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.dish-fields textarea {
  field-sizing: content;
  min-height: 64px;
  resize: vertical;
}
.dish-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}
.dish-action {
  padding: 3px 0;
  border: 0;
  background: none;
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
  font: 0.8rem var(--sans);
}
.dish-actions label,
.dish-status {
  font: 0.8rem/1.4 var(--sans);
  color: var(--muted);
}
.food-picker {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px dashed #aa9b88;
  border-radius: 7px;
  padding: 16px;
  color: var(--wine);
  background: var(--paper);
  cursor: pointer;
}
.food-picker strong,
.food-picker small {
  display: block;
}
.food-picker small {
  color: var(--muted);
  font-weight: 400;
}
.food-picker:focus-within {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .food-item {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 9px;
    gap: 9px;
  }
}
.inline-check {
  display: flex;
  align-items: center;
  gap: 5px;
}
.save-panel {
  display: grid;
  gap: 14px;
}
.delete-link {
  font-size: 0.82rem;
  color: var(--wine);
  text-decoration: underline;
  display: inline-block;
  margin-top: 24px;
}
.form-error {
  color: #892c30 !important;
  background: #f9e8e1;
  border-radius: 4px;
  padding: 12px;
}
.entry-form small {
  font-weight: 400;
}
@media (min-width: 1550px) {
  .hero-copy {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero {
    --copy-width: 54%;
  }
  .hero-copy {
    padding: 32px clamp(24px, 3.2vw, 32px);
  }
  .hero h1 {
    font-size: clamp(3.4rem, 7vw, 4.3rem);
  }
  .hero-actions {
    gap: 16px;
  }
  .hero-text {
    font-size: 0.8rem;
  }
  .card-grid,
  .meal-grid {
    gap: 14px;
  }
  .mast nav {
    gap: 19px;
  }
  .hero-label {
    font-size: 0.65rem;
  }
  .seal {
    width: 66px;
  }
  .filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
    gap: 9px;
  }
  .filters label:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 820px) {
  .mast-inner {
    min-height: unset;
    grid-template-columns: 1fr auto;
    gap: 0;
    padding-top: 14px;
  }
  .brand {
    font-size: 1.65rem;
    gap: 8px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .brand-mark > .icon {
    width: 17px;
  }
  .log-link {
    grid-column: 2;
    grid-row: 1;
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .mast nav {
    grid-column: 1/-1;
    grid-row: 2;
    justify-content: space-between;
    gap: 6px;
    margin-top: 4px;
  }
  .mast nav a {
    padding: 9px 0;
    font-size: clamp(0.73rem, 3.25vw, 0.82rem);
    white-space: nowrap;
  }
  .mast nav a[aria-current]:after {
    bottom: 0;
  }
}
@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .hero {
    grid-template-columns: 1fr;
    margin-top: 16px;
    border-radius: 9px;
  }
  .hero-copy {
    padding: 27px clamp(16px, 5.7vw, 25px) 30px;
  }
  .hero h1 {
    margin: 13px 0;
    font-size: clamp(3rem, 14.6vw, 5.6rem);
  }
  .hero p {
    max-width: 390px;
    line-height: 1.45;
  }
  .hero-actions {
    column-gap: clamp(10px, 3.5vw, 18px);
    margin-top: 19px;
  }
  .hero-button {
    padding-inline: 12px;
  }
  .hero-art {
    height: clamp(175px, 46vw, 245px);
  }
  .hero-art > img {
    object-position: 50% 49%;
  }
  .seal {
    top: auto;
    left: auto;
    right: 16px;
    bottom: clamp(175px, 46vw, 245px);
    transform: translateY(50%) rotate(6deg);
    width: 62px;
  }
  .location {
    bottom: 10px;
    right: 10px;
  }
  .home-strip {
    gap: 12px;
    min-height: 52px;
  }
  .home-strip div {
    gap: 4px;
    font-size: 0.72rem;
  }
  .home-strip .icon {
    width: 14px;
    height: 14px;
    margin: 0;
  }
  .home-strip strong {
    font-size: 0.8rem;
  }
  .home-strip i {
    height: 12px;
  }
  .section {
    margin: 27px 0 34px;
  }
  .section-head {
    margin-bottom: 14px;
    gap: 8px;
  }
  .section-head h2 {
    font-size: 2.45rem;
  }
  .eyebrow {
    font-size: 0.62rem;
    gap: 7px;
  }
  .minirule {
    width: 17px;
  }
  .text-link {
    font-size: 0.8rem;
  }
  .card-grid,
  .meal-grid {
    grid-template-columns: 1fr;
  }
  .place-image {
    aspect-ratio: 2.4;
  }
  .place-info {
    padding: 14px 16px;
  }
  .foot {
    border-top: 1px solid var(--line);
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 35px;
    font-size: 0.72rem;
  }
  .foot .brand {
    width: 100%;
  }
  .intro {
    padding: 32px 0 19px;
  }
  .intro h1 {
    font-size: 3.1rem;
  }
  .intro p {
    font-size: 0.95rem;
  }
  .progress-band {
    gap: 11px;
    padding: 15px;
  }
  .progress-icon {
    width: 36px;
    height: 36px;
  }
  .progress-band > span:last-child {
    font-size: 0.75rem;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters .btn {
    grid-column: 1/-1;
    width: 100%;
  }
  .form-grid,
  .ratings {
    grid-template-columns: 1fr;
  }
  .form-panel {
    --panel-padding: 18px;
  }
  .row {
    padding: 12px 2px;
    gap: 10px;
  }
  .progress-band strong {
    font-size: 0.9rem;
  }
  .home-strip .icon {
    display: none;
  }
  .hero-text {
    font-size: 0.84rem;
  }
}
@media (max-width: 440px) {
  .filters {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
  }
  .filters label:has(select) {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }
  .filters select {
    margin-top: 0;
  }
}
@media (max-width: 360px) {
  .filters label:has(select) {
    display: block;
  }
  .filters select {
    margin-top: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.place-monogram {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border: 3px double #9f8464;
  border-radius: 50%;
  font: italic 2.9rem var(--serif);
  letter-spacing: -0.04em;
}

.directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.view-switch {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.view-switch a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  min-height: 35px;
  color: var(--muted);
  font: 600 0.85rem var(--sans);
  border-radius: 5px;
}
.view-switch a[aria-current] {
  color: #fffaf0;
  background: var(--wine);
}
.map-filters {
  border-block: 1px solid var(--line);
  margin-bottom: 14px;
}
.map-filters summary {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 12px;
  cursor: pointer;
  color: var(--wine);
  font-size: 0.9rem;
  font-weight: 600;
}
.map-filters .filters {
  margin: 2px 0 16px;
}
.map-legend,
.map-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.map-legend {
  margin-left: auto;
  gap: 14px;
}
.map-legend i {
  width: 9px;
  height: 9px;
  background: var(--wine);
  border-radius: 50%;
}
.map-legend i.visited {
  background: var(--olive);
}
#restaurant-map {
  isolation: isolate;
  height: clamp(360px, 56vh, 620px);
  border: 1px solid #c4c3b7;
  border-radius: 10px;
  background: #e7e6da;
  font-family: var(--sans);
}
#restaurant-map .leaflet-tile-pane {
  filter: saturate(0.68);
}
#restaurant-map .leaflet-control-attribution {
  background: #fffdf5ee;
  font-size: 11px;
}
#restaurant-map .leaflet-control-attribution a {
  color: #404c39;
  text-decoration: underline;
}
.food-cluster {
  display: grid;
  place-items: center;
  background: var(--wine);
  color: #fffaf3;
  border: 2px solid #fffaf3;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px #632c3950,
    0 2px 5px #40252b48;
  font: 700 13px var(--sans);
}
.food-marker {
  display: grid;
  justify-content: center;
  align-content: start;
}
.food-marker::before {
  content: '';
  grid-area: 1/1;
  width: 28px;
  height: 28px;
  border: 2px solid #fffcf5;
  border-radius: 50% 50% 50% 2px;
  background: var(--wine);
  transform: rotate(-45deg);
  transform-origin: center;
  box-shadow: -1px 2px 4px #3025294d;
}
.food-marker.visited::before {
  background: var(--olive);
}
.food-marker > span {
  grid-area: 1/1;
  z-index: 1;
  color: white;
  align-self: center;
  text-align: center;
  font: 700 16px var(--sans);
}
.map-reset,
#restaurant-map .leaflet-bar a {
  background: #fffdf7;
  color: var(--wine-dark);
}
.map-reset {
  border: 1px solid #b8b6ab;
  border-radius: 5px;
  box-shadow: 0 1px 4px #30252922;
  padding: 8px 11px;
  font: 600 13px var(--sans);
}
#restaurant-map .leaflet-popup-content-wrapper,
#restaurant-map .leaflet-popup-tip {
  background: var(--paper);
}
.restaurant-popup {
  display: grid;
  gap: 3px;
  font: 0.82rem/1.4 var(--sans);
  color: var(--muted);
}
.restaurant-popup strong {
  color: var(--ink);
  font: 1.75rem/1.04 var(--serif);
  margin: 4px 0;
}
.popup-status {
  color: var(--wine);
  font-size: 0.7rem;
  font-weight: 700;
}
.popup-status.visited {
  color: var(--olive);
}
.restaurant-popup a,
.map-note a {
  color: var(--wine-dark);
  text-decoration: underline;
}
.restaurant-popup a {
  font-weight: 600;
  margin-top: 7px;
}
.unpinned-heading {
  font: 2rem var(--serif);
}
.map-note {
  font-size: 0.9rem;
  color: var(--muted);
}
@media (max-width: 680px) {
  .directory-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .directory-heading .view-switch {
    margin-bottom: 18px;
  }
  #restaurant-map {
    height: clamp(360px, 55svh, 520px);
  }
}
@media (max-width: 440px) {
  .result-line:has(.map-legend) {
    gap: 8px;
    flex-wrap: wrap;
  }
  .map-legend {
    gap: 8px;
  }
}

.food-cluster.visited {
  background: var(--olive);
}
.food-cluster.mixed {
  background: #45443b;
}

.place-picker {
  min-width: 0;
}
.place-picker [hidden] {
  display: none;
}
.picker-search {
  position: relative;
}
.picker-search > .icon {
  position: absolute;
  left: 12px;
  top: 14px;
  color: var(--muted);
  pointer-events: none;
}
.place-picker .picker-search input {
  padding-inline: 36px 40px;
}
.picker-toggle {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  display: grid;
  place-items: center;
  width: 36px;
  background: transparent;
  color: var(--wine);
}
.picker-menu {
  position: absolute;
  z-index: 5;
  inset-inline: 0;
  top: calc(100% + 4px);
  overflow: hidden;
  border: 1px solid #c1b9a8;
  border-radius: 6px;
  background: #fffdf8;
  box-shadow: 0 5px 18px #3e33251f;
}
.picker-menu ul {
  max-height: min(16rem, 40vh);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  list-style: none;
  margin: 0;
  padding: 3px;
}
.picker-menu li {
  padding: 8px 10px;
  border-radius: 3px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.picker-menu li[aria-selected='true'],
.picker-menu li:hover {
  background: #efe8da;
}
.picker-menu li strong {
  display: block;
  font-size: 0.94rem;
}
.picker-menu li small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}
.picker-menu [data-empty] {
  padding: 6px 12px 12px;
}

.shortlist-picker {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px;
  margin-bottom: 24px;
}
.shortlist-picker .place-picker {
  flex: 1 1 250px;
}
.shortlist-card form {
  margin-top: 10px;
}
.shortlist-empty {
  padding: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  overflow: hidden;
  background: #f4eee2;
}
.shortlist-empty > div {
  align-self: center;
  padding: clamp(24px, 5vw, 64px);
}
.shortlist-empty h2 {
  font: clamp(2.25rem, 4vw, 4rem)/1 var(--serif);
  color: var(--wine);
  margin: 0;
}
.shortlist-empty p {
  max-width: 38ch;
  color: var(--muted);
  margin: 12px 0 22px;
}
.shortlist-empty img {
  width: 100%;
  height: 100%;
  max-height: 325px;
  object-fit: cover;
}
@media (max-width: 520px) {
  .shortlist-empty {
    grid-template-columns: 1fr;
  }
  .shortlist-empty img {
    height: 145px;
    grid-row: 1;
  }
}
