/* Taos Eats — system fonts only, no external font/CDN requests. Mobile-first. */

:root {
  --adobe: #b5623a;
  --adobe-dark: #93492a;
  --sand: #efe5d1;
  --sand-deep: #e2d3b3;
  --sage: #7c8a6e;
  --sky: #4d6f7a;
  --sun: #e3a857;
  --mountain-far: #cdbb9c;
  --mountain-near: #a98a63;
  --ink: #2b241c;
  --ink-soft: #5a5142;
  --muted: #8a8171;
  --paper: #fbf8f2;
  --line: #e3d8c1;
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  /* Subtle adobe-stucco texture — pure CSS, no image request. */
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(181, 98, 58, 0.035) 0, transparent 45%),
    radial-gradient(circle at 85% 8%, rgba(124, 138, 110, 0.05) 0, transparent 40%),
    radial-gradient(circle at 60% 90%, rgba(181, 98, 58, 0.03) 0, transparent 50%);
  background-attachment: fixed;
}

a { color: var(--adobe-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Header ---------- */

.site-header {
  padding: 1.1rem 1.25rem;
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-deep) 100%);
  border-bottom: 3px solid var(--adobe);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.site-title:hover { text-decoration: none; opacity: 0.85; }

.site-mark {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--adobe);
  flex-shrink: 0;
}

.site-nav a {
  margin-left: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

/* ---------- Layout ---------- */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 2.75rem 0 1.75rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 90px;
  opacity: 0.55;
  z-index: 0;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 65%;
  opacity: 0.16;
  z-index: 0;
}

.hero .eyebrow, .hero h1, .hero-sub { position: relative; z-index: 1; }

.hero-small { padding: 1.75rem 0 1.25rem; text-align: left; }
.hero-small h1 { font-size: 1.8rem; margin: 0.4rem 0 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage);
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.hero-sub {
  max-width: 42em;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* Pueblo-step chevron divider — pure CSS, no image. */
.chevron-divider {
  height: 14px;
  margin: 0 auto;
  max-width: 900px;
  background-image:
    linear-gradient(45deg, var(--sand-deep) 25%, transparent 25%),
    linear-gradient(-45deg, var(--sand-deep) 25%, transparent 25%);
  background-size: 20px 20px;
  background-position: center;
  opacity: 0.6;
}

/* ---------- Filters ---------- */

.filters {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1.1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filters summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  list-style: none;
}
.filters summary::-webkit-details-marker { display: none; }
.filters summary::before {
  content: "\25B8";
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--adobe);
  transition: transform 0.15s ease;
}
.filters[open] summary::before { transform: rotate(90deg); }

.filters-inner {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.filter-label {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.filter-links a {
  display: inline-block;
  font-size: 0.8rem;
  background: var(--sand);
  color: var(--ink);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin: 0 0.35rem 0.35rem 0;
  font-weight: 600;
}
.filter-links a:hover { background: var(--sand-deep); text-decoration: none; }

/* ---------- Eatery grid / cards ---------- */

.eatery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.eatery-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.eatery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 36, 28, 0.1);
}

.eatery-card a { display: flex; flex-direction: column; color: inherit; }
.eatery-card a:hover { text-decoration: none; }
.eatery-card h2 { margin: 0.1rem 0 0.35rem; font-size: 1.2rem; color: var(--adobe-dark); }

.card-header {
  text-align: center;
  padding: 1.1rem 1.2rem 0.9rem;
}
.card-eyebrow { margin: 0 0 0.4rem; }

.card-media { flex: none; width: 100%; height: 9.5rem; }

.card-icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.card-icon-tile .card-icon { width: 2.1rem; height: 2.1rem; }
.card-icon-tile.tone-adobe { background: var(--adobe); }
.card-icon-tile.tone-adobe-dark { background: var(--adobe-dark); }
.card-icon-tile.tone-sage { background: var(--sage); }
.card-icon-tile.tone-sky { background: var(--sky); }

.card-photo {
  background-size: cover;
  background-position: center;
}

.card-body { padding: 0.9rem 1.2rem 1.1rem; min-width: 0; flex: 1; }

.rating { margin: 0; display: flex; justify-content: center; align-items: baseline; gap: 0.3rem; flex-wrap: wrap; }
.card-price { color: var(--muted); font-size: 0.86rem; }
.star-row { display: inline-flex; gap: 0.1rem; align-items: center; }
.star-icon { width: 0.95rem; height: 0.95rem; }
.star-icon.filled { color: var(--adobe); }
.star-icon.empty { color: var(--line); }
.eatery-header .star-row .star-icon { width: 1.15rem; height: 1.15rem; }
.rating-pending {
  color: var(--sky);
  letter-spacing: normal;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.eatery-card-meta, .review-meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 0.45rem;
}

.excerpt { margin: 0.3rem 0 0; color: var(--ink-soft); text-align: left; }

/* ---------- Sort bar ---------- */

.sort-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.82rem;
}
.sort-label {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.sort-options { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.sort-btn {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.sort-btn:hover { background: var(--sand); }
.sort-btn.active {
  background: var(--adobe);
  border-color: var(--adobe);
  color: white;
}

/* ---------- Single eatery page ---------- */

.eatery-header { text-align: center; }
.card-icon-tile-lg {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  margin: 0 auto 1rem;
  flex: none;
}
.card-icon-tile-lg .card-icon { width: 2.2rem; height: 2.2rem; }

.eatery-header h1 { font-size: 1.9rem; margin: 0.15rem 0 0.4rem; }
.not-yet-reviewed {
  display: inline-block;
  background: var(--sky);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.review-date { color: var(--muted); font-size: 0.85rem; margin: 0 0 1.25rem; }

.contact-block {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0 1.5rem;
}
.contact-line { margin: 0 0 0.35rem; font-size: 0.95rem; }
.contact-links { margin: 0.7rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }

.btn {
  display: inline-block;
  background: var(--adobe);
  color: white;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
}
.btn:hover { background: var(--adobe-dark); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--adobe-dark);
  border: 1.5px solid var(--adobe);
}
.btn-outline:hover { background: var(--adobe); color: white; }

.review-photos {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}
.review-photos img {
  width: 100%;
  max-width: 340px;
  border-radius: 8px;
  object-fit: cover;
}

.review-body { margin-top: 1.25rem; }
.review-body p { margin: 0 0 1rem; }
.review-body h2 { font-size: 1.25rem; margin: 1.75rem 0 0.6rem; color: var(--adobe-dark); }

.review-tags { margin-top: 1.5rem; }
.tag {
  display: inline-block;
  background: var(--sage);
  color: white;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  margin: 0 0.4rem 0.4rem 0;
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 2rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- About page ---------- */

main > p { max-width: 42em; }

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  body { font-size: 17px; }
  .site-header { padding: 1.25rem 2rem; }
  main { padding: 0 2rem 5rem; }
  .hero { padding: 3.5rem 0 2.25rem; }
  .hero-art { height: 130px; }
  .hero h1 { font-size: 2.6rem; }
  .hero-sub { font-size: 1.08rem; }
  .filters-inner { grid-template-columns: 1fr 1fr; }
  .eatery-grid { grid-template-columns: 1fr 1fr; }
  .eatery-header h1 { font-size: 2.3rem; }
}

/* geo: links only work on devices that actually have a map app registered
   as a handler (phones/tablets) — on desktop they just throw a browser
   error, so hide that button for fine-pointer (mouse/trackpad) devices. */
@media (any-pointer: fine) {
  .geo-link { display: none; }
}
