/* THE MARFA FIELD GUIDE — mockup styles */

:root {
  --bg: #f5efe4;
  --bg-alt: #ebe3d3;
  --ink: #1f1b16;
  --ink-soft: #4a4239;
  --ink-muted: #7a7064;
  --rule: #d8cdb8;
  --accent: #b8462a;       /* sun-baked terracotta */
  --accent-soft: #e8c7b3;
  --open: #2f7d4f;
  --closing: #c98a2b;
  --closed: #a3998a;
  --paper: #fbf7ee;
}

* { box-sizing: border-box; }

/* ───── MOBILE NAV (hamburger) ───── */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}
.menu-toggle svg { width: 20px; height: 20px; pointer-events: none; }
.menu-toggle svg * { pointer-events: none; }
.menu-toggle:hover { background: var(--paper); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  /* Keep header on ONE row even on small screens */
  .header-inner {
    position: relative;
    padding: 10px 16px;
    gap: 12px;
    flex-wrap: nowrap;
    min-height: 56px;
  }
  /* Hide nav by default — only opens via hamburger.
   * !important is a deliberate safety net: when this rule is loaded into the
   * same cascade as the desktop `nav.primary { display: flex }` rule below in
   * this stylesheet, specificity is equal and the media-query rule wins by
   * order. But other stylesheets (sage.css) sometimes redeclare nav rules,
   * and the cascaded display can flip back to flex unexpectedly — !important
   * locks the mobile hidden default regardless of load order. */
  nav.primary {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    gap: 0;
    padding: 6px 20px 14px;
    box-shadow: 0 10px 30px rgba(31, 27, 22, 0.12);
    z-index: 50;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  nav.primary.open { display: flex !important; }
  nav.primary a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
  }
  nav.primary a:last-child { border-bottom: none; }
  /* Hide the desktop-only utility pill and search on phones — only hamburger needed */
  .header-utility .live-pill,
  .header-utility .search-btn { display: none; }
  .header-utility { gap: 0; }
  /* The live clock + Marfa Public Radio chips compete with the brand + hamburger
   * for limited phone-width space. Below 700px we hide them so the hamburger
   * button is always visible. (The radio player can be added back on the homepage
   * body in a future iteration if it should appear on phones.) */
  .header-utility .marfa-clock,
  .header-utility .marfa-radio { display: none; }
  /* Tighten the brand on phones so the header fits in one row */
  .brand { font-size: 0.92rem; line-height: 1.1; }
  .brand small { font-size: 0.55rem; letter-spacing: 0.18em; margin-top: 1px; }
  /* Make sure content below sticky header isn't covered when scrolling */
  html { scroll-padding-top: 70px; }
}

@media (max-width: 480px) {
  .brand small { display: none; }
  .brand { font-size: 0.88rem; }
  .header-inner { padding: 10px 14px; }
}

/* ───── MOBILE: prevent iOS form auto-zoom ───── */
@media (max-width: 700px) {
  input, select, textarea { font-size: 16px !important; }
}

/* ───── MOBILE: featured-today bumped CTA stack ───── */
@media (max-width: 800px) {
  .visit-cta-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", "Georgia", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ───── HEADER ───── */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 228, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  font-family: "Source Serif 4", "Iowan Old Style", "Georgia", serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  font-weight: 500;
  margin-top: 2px;
}

nav.primary {
  display: flex;
  gap: 26px;
  font-size: 0.88rem;
  font-weight: 500;
}

nav.primary a {
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav.primary a:hover,
nav.primary a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.header-utility {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--open);
  box-shadow: 0 0 0 3px rgba(47, 125, 79, 0.18);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.search-btn {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-muted);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ───── HERO ───── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero .eyebrow { display: inline-block; margin-bottom: 16px; }
.hero p.tagline {
  font-family: "Source Serif 4", serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 8px;
}

.hero-photo {
  margin: 36px auto 0;
  height: 360px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(31,27,22,0.18) 100%),
    linear-gradient(135deg, #d9b890 0%, #b8462a 38%, #6b3a4a 70%, #2a3850 100%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  max-width: 1180px;
}

.hero-photo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.25) 100%);
}

.hero-photo .horizon {
  position: absolute;
  left: 0; right: 0;
  bottom: 28%;
  height: 2px;
  background: rgba(20, 10, 5, 0.4);
}

.hero-photo .sun {
  position: absolute;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe2a8 0%, #f5b86b 60%, transparent 100%);
  top: 30%; right: 18%;
  filter: blur(2px);
}

.hero-photo .caption {
  position: absolute;
  bottom: 16px; left: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

/* ───── SECTIONS ───── */
section {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head .see-all {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 1px;
}

/* ───── BUSINESS CARDS ───── */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
}

.biz-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.biz-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 27, 22, 0.08);
}

.biz-card .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.biz-card .status .swatch {
  width: 8px; height: 8px; border-radius: 50%;
}

.status.open { color: var(--open); }
.status.open .swatch { background: var(--open); }
.status.closing { color: var(--closing); }
.status.closing .swatch { background: var(--closing); }
.status.closed { color: var(--closed); }
.status.closed .swatch { background: var(--closed); border: 1px solid var(--closed); background: transparent; }

.biz-card .name {
  font-family: "Source Serif 4", serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}

.biz-card .meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ───── EVENT LIST ───── */
.event-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}

.event-row:last-child { border-bottom: none; }

.event-row .when {
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.event-row .what {
  font-size: 1.02rem;
  font-weight: 500;
}

.event-row .what .where {
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 0.88rem;
  display: block;
  margin-top: 2px;
}

.event-row .price {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ───── FIELD NOTE CARDS ───── */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .notes-grid { grid-template-columns: 1fr; }
}

.note-card .photo {
  height: 200px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.note-card.n1 .photo { background: linear-gradient(135deg, #d9b890, #b8462a); }
.note-card.n2 .photo { background: linear-gradient(135deg, #c5b8a3, #6b6253); }
.note-card.n3 .photo { background: linear-gradient(135deg, #a8c5b8, #4a6b6b); }

.note-card .photo {
  position: relative;
}
.note-card .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 35%, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.note-card h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.note-card .byline {
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.note-card p { font-size: 0.95rem; }

/* ───── CTA BAND ───── */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 24px;
  text-align: center;
  border-radius: 6px;
  margin: 40px 0;
}

.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(251, 247, 238, 0.75); max-width: 520px; margin: 0 auto 20px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover { background: #9a3a22; color: var(--paper); }

.btn.ghost {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
}

.btn.ghost:hover { background: var(--paper); color: var(--ink); }

/* ───── FOOTER ───── */
footer.site {
  background: var(--bg-alt);
  padding: 50px 24px 30px;
  border-top: 1px solid var(--rule);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  font-family: inherit;
  font-size: 0.92rem;
}

.footer-links {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.45;
  text-align: right;
}

@media (max-width: 700px) {
  .footer-links { text-align: left; }
}

.footer-links a { color: var(--ink-soft); }

.footer-bottom {
  max-width: 1180px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ───── PAGE-SPECIFIC: OPEN NOW ───── */
.page-head {
  padding: 50px 0 30px;
}

.page-head .timestamp {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.heads-up {
  background: #fbeed3;
  border-left: 3px solid var(--closing);
  padding: 16px 20px;
  border-radius: 4px;
  margin: 24px 0;
}

.heads-up h4 {
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--closing);
  margin-bottom: 8px;
}

.heads-up ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.92rem; }
.heads-up li { margin-bottom: 4px; }

.filter-bar {
  display: flex;
  gap: 10px;
  margin: 24px 0 36px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.filter-bar .chip {
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-bar .chip.active,
.filter-bar .chip:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.category-block {
  margin-bottom: 40px;
}

.category-block h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.biz-list-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}

.biz-list-row {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.biz-list-row:last-child { border-bottom: none; }
.biz-list-row:hover { background: var(--bg); }

.biz-list-row .info .name {
  font-family: "Source Serif 4", serif;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.biz-list-row .info .meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.biz-list-row .info .verified {
  font-size: 0.75rem;
  color: var(--open);
  margin-top: 4px;
}

.biz-list-row .right { text-align: right; }
.biz-list-row .right .status { font-size: 0.78rem; }
.biz-list-row .right .hours { font-size: 0.85rem; color: var(--ink-soft); margin-top: 2px; }

/* ───── PAGE-SPECIFIC: CALENDAR ───── */
.day-block { margin-bottom: 36px; }

.day-block h3 {
  font-family: "Source Serif 4", serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}

.featured-event {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  margin: 24px 0 36px;
}

@media (max-width: 700px) {
  .featured-event { grid-template-columns: 1fr; }
}

.featured-event .photo {
  background: linear-gradient(135deg, #6b3a4a 0%, #b8462a 50%, #d9b890 100%);
  min-height: 220px;
}

.featured-event .body {
  padding: 28px;
}

.featured-event .tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.featured-event h3 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

/* ───── PAGE-SPECIFIC: VISIT ───── */
.visit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) { .visit-grid { grid-template-columns: repeat(2, 1fr); } }

.visit-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  display: block;
}

.visit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(31, 27, 22, 0.1);
}

.visit-card .photo {
  height: 140px;
}

.visit-card.c1 .photo { background: linear-gradient(135deg, #d9b890, #b8462a); }
.visit-card.c2 .photo { background: linear-gradient(135deg, #c5b8a3, #6b6253); }
.visit-card.c3 .photo { background: linear-gradient(135deg, #a8c5b8, #4a6b6b); }
.visit-card.c4 .photo { background: linear-gradient(135deg, #e8c7b3, #b8462a); }

.visit-card .body {
  padding: 18px;
}

.visit-card h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.visit-card p { font-size: 0.88rem; margin: 0; color: var(--ink-muted); }

.essentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
  margin: 20px 0;
}

.essentials li {
  list-style: none;
  padding-left: 22px;
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.essentials li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.day-trips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 700px) { .day-trips { grid-template-columns: 1fr; } }

.trip-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px;
  border-radius: 6px;
}

.trip-card h4 {
  font-family: "Source Serif 4", serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.trip-card p { font-size: 0.9rem; margin: 0; color: var(--ink-muted); }

/* ───── PAGE-SPECIFIC: ABOUT ───── */
.principles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 30px 0;
}

@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, 1fr); } }

.principle {
  border-top: 2px solid var(--accent);
  padding-top: 16px;
}

.principle .num {
  font-family: "Source Serif 4", serif;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.principle .text {
  font-family: "Source Serif 4", serif;
  font-size: 1.1rem;
  margin-top: 6px;
  color: var(--ink);
}

.bio {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: start;
  margin: 24px 0;
}

@media (max-width: 700px) { .bio { grid-template-columns: 1fr; } }

.bio .avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9b890, #b8462a);
}

.contact-form {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
}

.contact-form textarea { min-height: 120px; resize: vertical; }

/* prose blocks */
.prose {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.prose p { color: var(--ink-soft); margin-bottom: 1.2em; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
