:root {
  --cloud: #f7f5ef;
  --cloud-2: #fbfaf6;
  --sand: #ded2c3;
  --taupe: #a58f7e;
  --amber: #b87427;
  --amber-2: #c9873a;
  --merlot: #7b1722;
  --ink: #231a17;
  --muted: #6f625a;
  --line: rgba(88, 63, 48, .12);
  --shadow: 0 16px 50px rgba(66, 45, 34, .08);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
}

img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.shell { width: min(1420px, calc(100% - 64px)); margin-inline: auto; }

.site-header {
  height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  font-size: clamp(24px, 2.3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.05em;
}
.brand-vibes { color: var(--amber); }
.brand-decoder { color: var(--merlot); }

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 14px;
  color: #2d2522;
}
.desktop-nav a { transition: .2s ease; }
.desktop-nav a:hover { color: var(--amber); }

.header-actions { display: flex; gap: 12px; align-items: center; }
.icon-btn, .avatar-btn {
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.icon-btn { font-size: 30px; line-height: 1; }
.avatar-btn {
  background: var(--merlot);
  color: white;
  font-size: 17px;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.12);
}

.hero {
  min-height: 550px;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: 42px;
  padding-block: 28px 56px;
}

.hero-copy { padding-left: 18px; max-width: 620px; }
.eyebrow {
  margin: 0 0 24px;
  font-size: 13px;
  letter-spacing: .22em;
  color: #7c5944;
  font-weight: 600;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  margin: 0;
  font-weight: 600;
}
h1 {
  font-size: clamp(62px, 6.5vw, 108px);
  line-height: .98;
  letter-spacing: -.055em;
}
.amber { color: var(--amber); }
.merlot { color: var(--merlot); }
.hero-sub {
  max-width: 520px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}
.hero-actions { display: flex; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: white;
  box-shadow: 0 10px 24px rgba(184,116,39,.18);
}
.btn-secondary {
  background: rgba(255,255,255,.42);
  border-color: #9f7d61;
  color: #654431;
}
.play { font-size: 12px; }

.hero-visual { position: relative; min-height: 520px; }
.map-circle-wrap {
  position: absolute;
  width: min(540px, 75%);
  aspect-ratio: 1;
  top: 18px;
  left: 2%;
  border-radius: 50%;
  overflow: hidden;
  background: #ebe6dc;
  box-shadow: var(--shadow);
  border: 10px solid rgba(255,255,255,.55);
}
.map-circle { position: absolute; inset: 0; }
.map-circle .maplibregl-control-container { display: none; }
.map-label {
  position: absolute;
  z-index: 4;
  font-size: 13px;
  letter-spacing: .14em;
  color: #6d675f;
  pointer-events: none;
}
.label-berkeley { top: 18%; right: 17%; }
.label-oakland { top: 48%; left: 49%; }
.label-alameda { bottom: 18%; left: 27%; }

.vibe-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid var(--cloud-2);
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 14px rgba(0,0,0,.2);
}
.vibe-marker.icon {
  background: var(--amber);
  color: white;
  display: grid;
  place-items: center;
  font-size: 18px;
  border-width: 3px;
}
.vibe-marker.icon.merlot-bg { background: var(--merlot); }

.polaroid-stack {
  position: absolute;
  right: 0;
  top: 36px;
  width: 245px;
  height: 450px;
}
.polaroid {
  margin: 0;
  position: absolute;
  width: 180px;
  background: #fffdf8;
  padding: 10px 10px 28px;
  box-shadow: 0 14px 30px rgba(39,28,21,.2);
}
.polaroid img { aspect-ratio: 4 / 5; object-fit: cover; }
.p1 { right: 12px; top: 0; transform: rotate(5deg); }
.p2 { right: -2px; top: 146px; transform: rotate(8deg); }
.p3 { right: 44px; top: 300px; transform: rotate(-5deg); }

.section {
  border-top: 1px solid var(--line);
  padding-block: 38px 56px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(36px, 4vw, 58px);
  letter-spacing: -.04em;
}
.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.see-all { color: #9b5a23; font-size: 15px; white-space: nowrap; }

.feed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.feed-card {
  background: rgba(255,255,255,.3);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feed-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1.25; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.feed-card:hover .card-media img { transform: scale(1.03); }
.card-author {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 600;
  font-size: 13px;
  text-shadow: 0 1px 5px rgba(0,0,0,.5);
}
.card-author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid white; }
.card-body { padding: 16px 16px 14px; }
.card-title { font-size: 18px; line-height: 1.35; margin-bottom: 14px; }
.card-actions { display: flex; gap: 22px; align-items: center; color: #4e4640; font-size: 14px; }
.card-actions button { border: 0; background: transparent; padding: 0; color: inherit; }

.people-section { padding-top: 34px; }
.people-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
}
.person { text-align: center; }
.person img {
  width: min(142px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(56,38,28,.08);
}
.person strong { display: block; margin-top: 12px; font-size: 15px; }
.person span { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }

.site-footer {
  border-top: 1px solid var(--line);
  min-height: 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-brand { font-size: 30px; }
.footer-tag { font-size: 13px; letter-spacing: .25em; color: #6b615c; }

.finder-modal {
  border: 0;
  border-radius: 26px;
  padding: 0;
  width: min(620px, calc(100% - 32px));
  background: transparent;
}
.finder-modal::backdrop { background: rgba(46,31,24,.42); backdrop-filter: blur(5px); }
.finder-panel {
  position: relative;
  padding: 38px;
  background: var(--cloud-2);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(40,25,18,.28);
}
.modal-close { position: absolute; top: 16px; right: 18px; border: 0; background: transparent; font-size: 28px; color: var(--muted); }
.finder-panel h3 { font-size: 42px; line-height: 1.05; max-width: 460px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; }
.chip { border: 1px solid var(--line); background: #efe9df; color: #5c4c42; border-radius: 999px; padding: 10px 14px; }
.chip.active { background: var(--merlot); color: white; }
.finder-label { display:block; font-size:13px; color:var(--muted); margin-bottom:8px; }
.finder-panel input { width: 100%; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: white; padding: 0 14px; outline: none; }
.finder-panel input:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(184,116,39,.12); }
.modal-submit { width: 100%; margin-top: 16px; }
.finder-result { min-height: 22px; margin: 16px 0 0; color: var(--merlot); font-weight: 600; }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 520px; }
  .map-circle-wrap { left: 8%; width: min(520px, 66%); }
  .polaroid-stack { right: 5%; }
  .feed-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .people-row { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1420px); }
  .site-header { height: 70px; grid-template-columns: 1fr auto; }
  .brand { font-size: 28px; }
  .hero { min-height: unset; gap: 12px; padding-bottom: 30px; }
  .hero-copy { padding-left: 0; }
  h1 { font-size: clamp(54px, 15vw, 76px); }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-visual { min-height: 390px; }
  .map-circle-wrap { width: 88vw; max-width: 430px; left: 50%; transform: translateX(-50%); }
  .polaroid-stack { display: none; }
  .map-label { font-size: 10px; }
  .section { padding-block: 30px 40px; }
  .section-head { align-items: start; }
  .feed-grid { grid-template-columns: 1fr; }
  .people-row { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 14px; }
  .site-footer { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 28px; }
  .footer-tag { line-height: 1.6; }
}
