:root {
  --ink: #102b2f;
  --muted: #617174;
  --cream: #f7f0e5;
  --paper: #fffaf2;
  --line: #e3d2bf;
  --cedar: #a95d38;
  --cedar-dark: #854529;
  --juniper: #214f4b;
  --sage: #dce6d2;
  --sky: #d9e6ec;
  --gold: #dca84a;
  --shadow: 0 18px 45px rgba(55, 39, 24, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 5vw, 64px);
  background: rgba(247, 240, 229, 0.9);
  border-bottom: 1px solid rgba(227, 210, 191, 0.85);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(16, 43, 47, 0.2), rgba(16, 43, 47, 0.62)),
    url("assets/downtown_montrose.jpg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 45%;
  background: linear-gradient(180deg, rgba(247, 240, 229, 0), var(--cream));
}

.hero-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(72px, 12vw, 132px) 0 96px;
  color: #fffaf2;
}

.search-panel label {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cedar);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd98b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(2.55rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 26px;
  color: rgba(255, 250, 242, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.search-panel {
  max-width: 850px;
  padding: 14px;
  border: 1px solid rgba(255, 250, 242, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.16);
  backdrop-filter: blur(16px);
}

.search-row {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.search-row input,
.search-row button,
.primary-button,
.quick-filter,
.text-button,
.card-button {
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 900;
}

.search-row input,
.suggest-form input,
.suggest-form select,
.suggest-form textarea,
.toolbar-actions select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: var(--paper);
  color: var(--ink);
}

.search-row button,
.primary-button,
.card-button {
  border: 0;
  background: var(--cedar);
  color: #fff;
  cursor: pointer;
}

.search-row button:hover,
.primary-button:hover,
.card-button:hover {
  background: var(--cedar-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-filter,
.text-button {
  border: 1px solid rgba(255, 250, 242, 0.6);
  padding: 0 16px;
  background: rgba(255, 250, 242, 0.9);
  color: var(--ink);
  cursor: pointer;
}

.quick-filter.is-active {
  border-color: var(--cedar);
  background: var(--cedar);
  color: #fff;
}

.weather-band,
.section,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.weather-band {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: -54px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.weather-band h2 {
  margin-bottom: 2px;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
}

.weather-band p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 750;
}

.weather-tip {
  align-self: end;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--sage);
  color: var(--ink) !important;
}

.section {
  padding: 54px 0;
}

.section-tinted {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1120px) / 2));
  background: #efe2d2;
}

#loved {
  display: none;
}

.intro-split,
.section-heading,
.guide-toolbar,
.suggest-section {
  display: grid;
  gap: 18px;
}

.intro-split p,
.section-heading p,
.guide-toolbar p,
.suggest-section p {
  color: var(--muted);
}

.question-grid,
.loved-grid,
.recommendation-grid,
.partner-grid {
  display: grid;
  gap: 14px;
}

.question-card,
.loved-card,
.recommendation-card,
.partner-grid article,
.results-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(55, 39, 24, 0.08);
}

.question-card {
  min-height: 150px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.question-card:hover,
.question-card.is-active {
  border-color: var(--cedar);
  transform: translateY(-1px);
}

.question-card p,
.loved-card p,
.recommendation-card p,
.partner-grid p {
  color: var(--muted);
}

.loved-card,
.recommendation-card,
.partner-grid article,
.results-empty {
  padding: 18px;
}

.badge-row,
.tag-row,
.best-row,
.meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.tag,
.best-pill,
.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.badge {
  background: var(--juniper);
  color: #fff;
}

.tag,
.category-pill {
  background: #f0ded0;
  color: var(--cedar-dark);
}

.best-pill {
  background: var(--sky);
  color: var(--ink);
}

.loved-card {
  display: grid;
  gap: 12px;
}

.prompt-list {
  display: grid;
  gap: 10px;
}

.prompt-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-weight: 900;
}

.prompt-button:hover {
  border-color: var(--cedar);
}

.guide-toolbar {
  align-items: end;
  margin-bottom: 18px;
}

.toolbar-actions {
  display: grid;
  gap: 10px;
}

.text-button {
  border-color: var(--line);
  background: var(--paper);
}

.recommendation-card {
  display: grid;
  gap: 14px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.local-take {
  border-left: 4px solid var(--gold);
  padding-left: 12px;
  color: var(--ink) !important;
  font-weight: 800;
}

.meta-links a {
  color: var(--cedar-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.partner-hooks {
  display: grid;
  gap: 20px;
  padding-top: 22px;
}

.partner-hooks[aria-label="Future partner options"] {
  display: none;
}

.partner-grid article {
  background: rgba(255, 250, 242, 0.75);
  box-shadow: none;
}

.partner-grid span {
  color: var(--cedar-dark);
  font-weight: 950;
}

.suggest-section {
  align-items: center;
  border-top: 1px solid var(--line);
}

.form-actions {
  display: grid;
  gap: 14px;
}

.primary-button {
  padding: 0 18px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 43, 47, 0.62);
}

.modal {
  position: relative;
  width: min(720px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
}

.suggest-form {
  display: grid;
  gap: 14px;
}

.suggest-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 850;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  padding: 36px 0 54px;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (min-width: 680px) {
  .search-row {
    grid-template-columns: 1fr auto;
  }

  .weather-band,
  .intro-split,
  .section-heading,
  .guide-toolbar,
  .suggest-section,
  .partner-hooks {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  }

  .question-grid,
  .loved-grid,
  .recommendation-grid,
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar-actions {
    grid-template-columns: minmax(180px, 1fr) auto;
  }

  .form-actions {
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  }
}

@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }

  .question-grid,
  .loved-grid,
  .recommendation-grid,
  .partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    min-height: 735px;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    padding-block: 14px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: 860px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(16, 43, 47, 0.03), rgba(16, 43, 47, 0.14) 22%, rgba(16, 43, 47, 0.54) 54%, rgba(16, 43, 47, 0.2) 74%, rgba(247, 240, 229, 0.96)),
      url("assets/downtown_montrose.jpg") 52% 60% / auto 106% no-repeat;
  }

  .hero-overlay {
    height: 34%;
  }

  .hero-content {
    width: min(100% - 24px, 1120px);
    min-height: 860px;
    display: flex;
    flex-direction: column;
    padding: clamp(112px, 18svh, 152px) 0 62px;
  }

  .hero .eyebrow {
    margin-bottom: 12px;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(2.28rem, 10.8vw, 3.35rem);
    line-height: 1;
  }

  .hero-subtitle {
    max-width: 31rem;
    margin-bottom: auto;
    font-size: 1rem;
    line-height: 1.42;
  }

  .search-panel {
    margin-top: 70px;
    padding: 12px;
    background: rgba(16, 43, 47, 0.42);
    border-color: rgba(255, 250, 242, 0.42);
    backdrop-filter: blur(10px);
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .search-row input,
  .search-row button {
    min-height: 50px;
  }

  .search-row input {
    padding-inline: 12px;
    font-size: 0.88rem;
  }

  .hero-actions {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 14px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .hero-actions::-webkit-scrollbar {
    display: none;
  }

  .quick-filter {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 18px;
  }

  .quick-filter:last-child {
    grid-column: auto;
  }

  .weather-band {
    margin-top: -38px;
  }
}
