/* Paws & Plates — warm Brooklyn editorial, system fonts only. */

:root {
  --paper: #f7f0e1;
  --paper-deep: #efe5cf;
  --card: #fffaf0;
  --ink: #20283a;
  --ink-soft: #4a5268;
  --navy: #22304a;
  --tomato: #d0432a;
  --tomato-deep: #b23621;
  --leaf: #3d7a4c;
  --mustard: #d99a1f;
  --mustard-soft: #f3d9a4;
  --line: #d8cbae;
  --shadow: 0 2px 4px rgba(34, 40, 58, 0.08), 0 10px 24px rgba(34, 40, 58, 0.10);
  --radius: 14px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

[hidden] { display: none !important; }

a { color: var(--tomato-deep); }
a:hover { color: var(--tomato); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.4rem;
}

h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-sub {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
}

section { padding: 2.6rem 0; }

.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;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 30;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- buttons & chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--tomato);
  color: #fff;
}
.btn-primary:hover { background: var(--tomato-deep); color: #fff; }

.btn-secondary {
  background: var(--navy);
  color: #fff;
}
.btn-secondary:hover { background: #17233a; color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }

.chip {
  min-height: 44px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font: 600 0.9rem var(--font-body);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.chip:hover { background: var(--paper-deep); }
.chip[aria-pressed="true"] {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(rgba(34, 48, 74, 0.10) 1.3px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(160deg, #fbf5e8 0%, var(--paper) 55%, var(--paper-deep) 100%);
  border-bottom: none;
  text-align: center;
}

.hero-inner {
  padding-top: clamp(3rem, 8vw, 5.5rem);
  padding-bottom: clamp(2.6rem, 7vw, 4.5rem);
}

.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
}

.hero-title {
  font-size: clamp(3rem, 10vw, 5.6rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.8rem;
}
.hero-title .amp {
  color: var(--tomato);
  font-style: italic;
}

.hero-promise {
  max-width: 34rem;
  margin: 0 auto 1.2rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--ink-soft);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.6rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--leaf);
}

.hero-cta {
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-size: 1.05rem;
  padding: 0.7rem 1.8rem;
}

.checker-strip {
  height: 12px;
  background: repeating-conic-gradient(var(--navy) 0% 25%, var(--mustard) 0% 50%) 0 0 / 24px 24px;
  opacity: 0.85;
}

/* ---------- quick picks ---------- */

.quick-picks { padding-bottom: 1rem; }

.quick-picks-list {
  list-style: none;
  counter-reset: pick;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quick-picks-list li { counter-increment: pick; }

.quick-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  padding: 1rem 1rem 1rem 3.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--mustard);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.quick-pick:hover {
  transform: translateY(-2px);
  border-left-color: var(--tomato);
  color: var(--ink);
}
.quick-pick::before {
  content: counter(pick);
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  font: 700 0.95rem var(--font-display);
}

.quick-pick-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tomato-deep);
}
.quick-pick-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}
.quick-pick-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- controls ---------- */

.controls {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.8rem;
  display: grid;
  gap: 0.9rem;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.search-label {
  font-weight: 700;
  color: var(--navy);
}
#search-input {
  flex: 1;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font: 1rem var(--font-body);
  color: var(--ink);
}
#search-input:focus {
  border-color: var(--navy);
  outline: 3px solid var(--tomato);
  outline-offset: 2px;
}

.chip-group {
  border: none;
  margin: 0;
  padding: 0;
}
.chip-group legend {
  padding: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.controls-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  border-top: 1px dashed var(--line);
  padding-top: 0.8rem;
}
.results-count {
  margin: 0;
  font-weight: 700;
  color: var(--leaf);
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

/* ---------- card grid ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 1.5rem;
}

.card-mosaic {
  display: grid;
  grid-template-columns: 11fr 9fr;
  gap: 4px;
  background: var(--navy);
  border-bottom: 4px solid var(--mustard);
}

.photo-btn {
  padding: 0;
  border: none;
  background: var(--navy);
  cursor: zoom-in;
  display: block;
  height: 240px;
}
.photo-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.photo-btn:hover img { opacity: 0.9; transform: scale(1.02); }
.photo-btn:focus-visible { outline-offset: -3px; }

.card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.card-head { display: grid; gap: 0.1rem; }
.card-name {
  font-size: 1.5rem;
  margin: 0;
}
.card-sub {
  margin: 0;
  font-weight: 600;
  color: var(--tomato-deep);
}
.card-address {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.card-scores {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0;
  padding: 0.55rem 0.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.score {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.score small {
  font-weight: 600;
  color: var(--ink-soft);
}
.score-star { color: var(--mustard); }

.badge-price {
  margin-left: auto;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--mustard-soft);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card-seating,
.card-bestfor {
  margin: 0;
  font-size: 0.95rem;
}
.card-seating strong,
.card-bestfor strong { color: var(--leaf); }

.card-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--mustard);
  padding-left: 0.8rem;
}

.dog-menu {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.48);
}
.dog-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.38rem;
  color: var(--navy);
}
.dog-menu-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.18rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}
.dog-menu-yes { border-color: #8ab696; background: #eff8f0; }
.dog-menu-yes .dog-menu-badge { color: #174d27; background: #cfe8d3; }
.dog-menu-extras { border-color: #d6b66a; background: #fff8e7; }
.dog-menu-extras .dog-menu-badge { color: #624300; background: #f5dfa6; }
.dog-menu-none .dog-menu-badge { color: var(--ink-soft); background: var(--paper-deep); }
.dog-menu-unverified { border-color: #d18e64; background: #fff4ea; }
.dog-menu-unverified .dog-menu-badge { color: #713417; background: #f7d3bb; }
.dog-menu-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}
.dog-menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.8rem;
  margin-top: 0.42rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.card-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-tags li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.card-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.3rem;
}
.card-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card-primary-actions .btn { font-size: 0.88rem; padding: 0.45rem 0.95rem; }
.card-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 650;
}
.card-source-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-underline-offset: 0.2em;
}

.walkin-status {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--leaf) 45%, transparent);
  background: color-mix(in srgb, var(--leaf) 8%, var(--card));
  color: var(--leaf);
  font-size: 0.88rem;
  font-weight: 700;
}

/* ---------- reviews disclosure ---------- */

.reviews {
  border-top: 1px dashed var(--line);
  padding-top: 0.6rem;
}
.reviews summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  border-radius: 8px;
  padding: 0.3rem 0.4rem;
}
.reviews summary::-webkit-details-marker { display: none; }
.reviews summary:hover { background: var(--paper); }
.summary-marker::before {
  content: "+";
  font-size: 1.3rem;
  color: var(--tomato);
}
.reviews[open] .summary-marker::before { content: "–"; }

.reviews-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.review-text {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--ink);
}
.review-source {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.paraphrase-note {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------- comparison table ---------- */

.compare-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: 0.93rem;
}
.compare-table thead th {
  background: var(--navy);
  color: var(--paper);
  text-align: left;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.compare-table tbody th,
.compare-table tbody td {
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare-table tbody th {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  white-space: nowrap;
}
.compare-table tbody tr:nth-child(even) { background: var(--paper); }

/* ---------- caveat ---------- */

.caveat { padding-top: 0.6rem; }
.caveat-box {
  background: var(--mustard-soft);
  border: 2px solid var(--mustard);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.caveat-box h2 {
  font-size: 1.35rem;
  color: var(--navy);
}
.caveat-box p {
  margin: 0.5rem 0 0;
  color: var(--ink);
}

/* ---------- credits ---------- */

.credits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.credit-venue {
  font-weight: 700;
  color: var(--navy);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--paper);
}
.footer-inner {
  padding: 2rem 20px 2.4rem;
  text-align: center;
}
.site-footer a { color: var(--mustard-soft); }
.site-footer a:hover { color: #fff; }
.footer-fine {
  font-size: 0.8rem;
  color: #aab3c8;
}
#build-marker {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
  font-size: 0.78rem;
}

/* ---------- photo dialog ---------- */

.photo-dialog {
  border: none;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  padding: 0;
  max-width: min(680px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-shadow: 0 20px 60px rgba(10, 14, 24, 0.45);
}
.photo-dialog::backdrop {
  background: rgba(20, 25, 38, 0.72);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: 700 0.9rem var(--font-body);
  cursor: pointer;
}
.dialog-close:hover { background: var(--tomato); }

.dialog-figure { margin: 0; }
.dialog-figure img {
  width: 100%;
  height: auto;
  max-height: min(66dvh, 560px);
  object-fit: contain;
  background: var(--paper-deep);
}
.dialog-caption {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.2rem 1.2rem;
}
#dialog-alt {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
}
.dialog-credit {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
#dialog-source { font-size: 0.85rem; }

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .quick-picks-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .credits-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* Table becomes stacked cards instead of scrolling sideways. */
  .compare-table-wrap { border: none; border-radius: 0; overflow: visible; box-shadow: none; }
  .compare-table { display: block; border: none; background: none; box-shadow: none; }
  .compare-table thead { display: none; }
  .compare-table tbody { display: grid; gap: 14px; }
  .compare-table tbody tr {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
  }
  .compare-table tbody tr:nth-child(even) { background: var(--card); }
  .compare-table tbody th,
  .compare-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: none;
    padding: 0.45rem 1rem;
    white-space: normal;
  }
  .compare-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-soft);
    flex-shrink: 0;
  }
  .compare-table tbody td { text-align: right; }
  .compare-table tbody td[data-label="Weather resilience"] {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.2rem;
  }
  .compare-table tbody th { border-bottom: 2px solid var(--mustard); }
}

@media (max-width: 480px) {
  section { padding: 2rem 0; }
  .quick-picks-list { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; align-items: stretch; gap: 0.35rem; }
  .card-mosaic { grid-template-columns: 1fr 1fr; }
  .photo-btn { height: 190px; }
  .card-body { padding: 1rem 1rem 1.2rem; }
  .card-primary-actions .btn,
  .walkin-status { flex: 1 1 40%; }
  .badge-price { margin-left: 0; }
}

/* ---------- reduced motion ---------- */

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