:root {
  --bg: #f4f1ea;
  --ink: #1d1a16;
  --muted: #4e4943;
  --paper: #fffdf9;
  --accent: #8d451f;
  --line: #ddd4c6;
  --serif: Georgia, "Iowan Old Style", serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  --radius: 12px;
  --header-h: 64px;
  --shadow: 0 18px 50px rgba(40, 30, 20, 0.08);
  --danger: #8a3030;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--chrome, 0px) + var(--header-h, 64px) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { text-wrap: balance; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.05; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.8rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
}
.skip:focus { top: calc(var(--chrome, 0px) + 0.4rem); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.wrap-s { width: min(760px, calc(100% - 2rem)); margin-inline: auto; }
.kicker {
  margin: 0 0 0.55rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { margin: 0; max-width: 40rem; color: var(--muted); font-size: 1.08rem; }
.fine { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.88rem; }
.section { padding: 4.2rem 0; }
.section-head { margin-bottom: 1.6rem; }
.section-head h2 { margin: 0 0 0.7rem; font-size: clamp(2rem, 4vw, 3.3rem); }

.site-header {
  position: sticky;
  top: var(--chrome, 0px);
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0 1rem;
  background: color-mix(in srgb, var(--bg) 92%, white);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desk-nav { display: none; gap: 1rem; align-items: center; }
.desk-nav a { text-decoration: none; font-size: 0.95rem; }
.header-actions { display: flex; align-items: center; gap: 0.45rem; flex: none; }

.section-menu { position: relative; }
.section-menu summary {
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0 0.2rem;
}
.section-menu summary::-webkit-details-marker { display: none; }
.section-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  padding: 0.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.section-menu nav a {
  text-decoration: none;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
}
.section-menu nav a:hover { background: var(--bg); }

@media (min-width: 860px) {
  .desk-nav { display: flex; }
  .section-menu { display: none; }
  .site-header { padding-inline: 1.4rem; }
}

.btn, .text-btn, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0 1.05rem;
  border-radius: var(--radius);
  border: 0;
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, white); }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 35%, var(--line));
}
.btn.secondary:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn:disabled, .choice input:disabled + span { opacity: 0.45; cursor: not-allowed; }
.text-btn {
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  padding-inline: 0;
  min-height: 44px;
  font-weight: 500;
}
.icon-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field > span, legend, .check span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
legend { padding: 0; margin-bottom: 0.45rem; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid color-mix(in srgb, var(--ink) 28%, var(--bg));
  background: var(--paper);
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; padding-top: 0.7rem; }
::placeholder { color: #5e584f; opacity: 1; }
.form-grid { display: grid; gap: 0.8rem; }
.lrx-error { color: var(--danger); font-size: 0.86rem; min-height: 0; }
.lrx-error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.4rem; }

.choices { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.choice { position: relative; display: inline-flex; }
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  min-height: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--ink) 25%, var(--line));
  background: var(--paper);
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.98rem;
  color: var(--ink);
}
.choice input:checked + span {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.choices.days { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.35rem; scroll-snap-type: x proximity; }
.choice.day span {
  flex-direction: column;
  gap: 0.05rem;
  min-width: 64px;
  min-height: 72px;
  line-height: 1.15;
  scroll-snap-align: start;
}
.choice.day small, .choice.day em { font-style: normal; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.choice.day strong { font-size: 1.15rem; font-family: var(--serif); font-weight: 560; }

.check { display: flex; align-items: center; gap: 0.55rem; min-height: 44px; }
.check input { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--ink); }
.check span { letter-spacing: 0; text-transform: none; font-size: 1rem; color: var(--ink); }

.success {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
}
.success h3 { margin: 0 0 0.4rem; font-size: 2rem; }
.success p { margin: 0.35rem 0; }

.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.star { width: 16px; height: 16px; }
.star.off { opacity: 0.28; }
.star-input { margin-bottom: 0.8rem; }
.star-row { display: flex; gap: 0.15rem; }
.star-hit { position: relative; display: inline-flex; }
.star-hit input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.star-hit .star { width: 28px; height: 28px; color: color-mix(in srgb, var(--ink) 25%, var(--bg)); }
.star-hit.is-on .star { color: var(--accent); opacity: 1; }
.star-hit input:focus-visible + .visually-hidden + .star,
.star-hit input:focus-visible + .star { outline: 2px solid var(--ink); outline-offset: 2px; }

.review-layout { display: grid; gap: 1.2rem; }
.review-list { display: grid; gap: 0.75rem; }
.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
}
.review-card.is-new { box-shadow: inset 3px 0 0 var(--accent); }
.review-top { display: flex; justify-content: space-between; gap: 0.8rem; align-items: center; }
.review-card p { margin: 0.55rem 0 0; }
.review-card .by, .when { color: var(--muted); font-size: 0.9rem; margin: 0.45rem 0 0; }
.review-avg { margin: 0.8rem 0 0; font-variant-numeric: tabular-nums; }
.review-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.review-form h3 { margin: 0; font-size: 1.6rem; }

.hours { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.hours li, .meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.map {
  background: #efe6d4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 240px;
  position: relative;
}
.map svg { width: 100%; height: 100%; min-height: 240px; display: block; }
.map figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: var(--paper);
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  max-width: 16rem;
  box-shadow: var(--shadow);
}
.map figcaption strong, .map figcaption span { display: block; }
.map figcaption strong { font-family: var(--serif); font-size: 1.05rem; }

dialog {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius);
  width: min(680px, calc(100% - 1.25rem));
  max-height: min(88vh, 860px);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(22, 16, 12, 0.52); }
dialog.drawer {
  width: min(440px, 100%);
  height: 100%;
  max-height: none;
  margin: 0 0 0 auto;
  border-radius: 0;
}
dialog.drawer form, dialog .dialog-body, dialog.drawer .success { height: 100%; overflow: auto; padding: 1.1rem 1.1rem 1.6rem; }
.drawer-head, .dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.drawer-head h2, .dialog-head h2 { margin: 0; font-size: 1.8rem; }

.line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.8rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.line .price { font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; gap: 0.25rem; }
.qty button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.notice {
  padding: 0.75rem 0.85rem;
  background: color-mix(in srgb, var(--accent) 8%, var(--paper));
  border-left: 3px solid var(--accent);
  margin: 0.6rem 0;
}
.notice.bad { border-left-color: var(--danger); background: #fbf4f2; }

.timeline { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1rem 1.15rem;
  border-left: 2px solid var(--line);
}
.timeline li::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line);
  position: absolute;
  left: -7px;
  top: 0.15rem;
}
.timeline li.is-done { border-left-color: var(--accent); }
.timeline li.is-done::before, .timeline li.is-current::before {
  background: var(--accent);
  border-color: var(--accent);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline strong { display: block; }
.timeline span { color: var(--muted); font-size: 0.92rem; }

.compare {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd;
  user-select: none;
}
.compare img { width: var(--frame, 100%); height: 100%; max-width: none; object-fit: cover; }
.compare-top {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid white;
}
.compare input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  min-height: 0;
}
.compare .handle {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  translate: -50% -50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  color: #1d1a16;
  display: grid;
  place-items: center;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  font-size: 0.85rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer {
  padding: 2.4rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer a { color: var(--ink); }
.footer-grid { display: grid; gap: 1rem; }
.noscript {
  margin: 0;
  padding: 0.7rem 1rem;
  background: #fff4d8;
  color: #1d1a16;
}

@media (min-width: 800px) {
  .section { padding: 5.5rem 0; }
  .review-layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .compare { height: 460px; }
}

@media (max-width: 720px) {
  :root { --header-h: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  html.js [data-reveal].is-in { opacity: 1; transform: none; }
}

::selection { background: color-mix(in srgb, var(--accent) 30%, white); }
