:root {
  --ink: #171412;
  --paper: #faf6ed;
  --mist: #efe8dc;
  --green: #11644d;
  --green-deep: #0b3f32;
  --coral: #f26d4f;
  --gold: #caa24c;
  --violet: #6b4cc2;
  --line: rgba(23, 20, 18, 0.16);
  --shadow: 0 24px 70px rgba(23, 20, 18, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(250, 246, 237, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 210px;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--ink);
}

.brand span {
  display: grid;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1;
}

.brand small {
  margin-top: 3px;
  color: rgba(23, 20, 18, 0.66);
  font-size: 0.74rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  font-size: 0.9rem;
}

nav a {
  text-decoration: none;
  color: rgba(23, 20, 18, 0.72);
}

nav a:hover {
  color: var(--ink);
}

.nav-action {
  padding: 9px 14px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: calc(88vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px) clamp(44px, 6vw, 72px);
  overflow: hidden;
  color: white;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 13, 12, 0.82), rgba(13, 13, 12, 0.44) 48%, rgba(13, 13, 12, 0.08)),
    url("https://images.squarespace-cdn.com/content/v1/5853944fb3db2b6a3ffc399e/1481883999089-A7HOJLYD8QRWXQ4OU33X/galaxy+and+trees+1.jpg") center / cover;
  transform: scale(1.02);
}

.hero-content,
.finder-card {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.55rem);
  line-height: 0.9;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero-copy {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--green);
}

.button.primary:hover {
  background: var(--green-deep);
}

.button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.09);
}

.button.secondary.dark {
  color: var(--green-deep);
  border-color: rgba(17, 100, 77, 0.32);
  background: rgba(17, 100, 77, 0.08);
}

.button.wide {
  width: 100%;
}

.chip {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: rgba(23, 20, 18, 0.72);
  background: white;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.chip:hover,
.chip.is-active {
  color: white;
  border-color: var(--green);
  background: var(--green);
}

.finder-card {
  align-self: center;
  display: grid;
  gap: 14px;
  padding: 20px;
  color: var(--ink);
  background: rgba(250, 246, 237, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: rgba(23, 20, 18, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 11px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.finder-card p,
.submit-form p {
  margin: 0;
  color: rgba(23, 20, 18, 0.62);
  font-size: 0.86rem;
}

.section {
  padding: clamp(64px, 9vw, 110px) clamp(20px, 5vw, 72px);
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading > p,
.split > p,
.host-copy p,
.submit-section > div p {
  margin: 0;
  max-width: 720px;
  color: rgba(23, 20, 18, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.section-heading.split {
  grid-template-columns: 0.9fr 1fr;
  gap: 24px;
  align-items: end;
}

.meditations {
  background: #ffffff;
}

.library-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 24px;
}

.meditation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.meditation-card,
.event-card,
.partner-list > div,
.submit-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.meditation-card {
  display: grid;
  gap: 14px;
  min-height: 320px;
  padding: 22px;
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meditation-card span,
.event-date,
.tag {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(17, 100, 77, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
}

h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.1;
}

.meditation-card p,
.event-card p,
.partner-list span {
  margin: 0;
  color: rgba(23, 20, 18, 0.68);
}

audio {
  width: 100%;
  margin-top: auto;
}

.events {
  background: var(--mist);
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.map-panel {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 520px;
  background: var(--ink);
}

.map-panel img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  opacity: 0.76;
}

.map-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 16px;
  color: white;
  background: rgba(23, 20, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
}

.map-overlay span {
  display: block;
  color: var(--gold);
  font-weight: 900;
}

.map-overlay p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: white;
}

.event-link {
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.event-link:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 100, 77, 0.38);
  box-shadow: 0 18px 45px rgba(23, 20, 18, 0.12);
}

.event-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.event-card h3 {
  margin-bottom: 5px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag.coral {
  color: #76301f;
  background: rgba(242, 109, 79, 0.16);
}

.tag.violet {
  color: #39216f;
  background: rgba(107, 76, 194, 0.14);
}

.event-detail {
  margin-top: 24px;
}

.detail-shell {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(17, 100, 77, 0.28);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 24px 70px rgba(23, 20, 18, 0.12);
}

.detail-back {
  width: fit-content;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.detail-shell h2 {
  max-width: 780px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.detail-lede {
  max-width: 780px;
  margin: 0;
  color: rgba(23, 20, 18, 0.72);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
}

.detail-facts div {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.detail-facts dt {
  color: rgba(23, 20, 18, 0.54);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.detail-shell > p:not(.eyebrow):not(.detail-lede) {
  max-width: 780px;
  margin: 0;
  color: rgba(23, 20, 18, 0.72);
}

.detail-actions {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.detail-claim-link {
  color: rgba(23, 20, 18, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-claim-link:hover {
  color: var(--green);
}

.host-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 6vw, 90px);
  background: #ffffff;
}

.host-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.partner-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.partner-list > div {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
}

.partner-list strong {
  font-size: 1.2rem;
}

.submit-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--green-deep);
  color: white;
}

.submit-section .eyebrow {
  color: var(--gold);
}

.submit-section > div p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 18px;
}

.submit-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  color: var(--ink);
  background: var(--paper);
}

.submit-form .button {
  border: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: white;
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .section-heading.split,
  .event-layout,
  .host-section,
  .submit-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  .meditation-grid,
  .filters,
  .detail-facts,
  .partner-list {
    grid-template-columns: 1fr;
  }

  .map-panel {
    position: relative;
    top: auto;
    min-height: 340px;
  }

  .map-panel img {
    height: 340px;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  nav {
    gap: 8px;
    font-size: 0.84rem;
  }

  nav a {
    white-space: nowrap;
  }

  .hero h1 {
    max-width: 9.5ch;
    font-size: clamp(2.7rem, 14vw, 3.6rem);
    line-height: 0.96;
  }

  .hero-copy {
    max-width: 31ch;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .event-card header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
