:root {
  color-scheme: light;
  font-family:
    Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui,
    sans-serif;
  --ink: #17211f;
  --muted: #68736f;
  --line: #dce3df;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --teal: #0f766e;
  --blue: #215aa8;
  --saffron: #d68910;
  --coral: #c3513f;
  --shadow: 0 18px 45px rgba(23, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.topbar {
  align-items: center;
  background: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid rgba(220, 227, 223, 0.82);
  display: flex;
  gap: 24px;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 54px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

nav {
  align-items: center;
  display: flex;
  gap: clamp(14px, 3vw, 34px);
}

nav a {
  color: #3f4b47;
  font-size: 15px;
  font-weight: 650;
}

.nav-action,
.primary-action,
.secondary-action,
.text-link,
.quick-view a,
.join-form button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  white-space: nowrap;
}

.icon {
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.large-icon {
  color: currentColor;
  font-size: 24px;
}

.nav-action {
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  min-height: 42px;
  padding: 0 15px;
}

.hero {
  min-height: 72vh;
  overflow: hidden;
  padding: 132px clamp(18px, 5vw, 72px) 42px;
  position: relative;
}

.hero > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.36) 48%, rgba(0, 0, 0, 0.04) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.52) 100%);
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-content {
  color: #fff;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9de7da;
}

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

h1 {
  font-size: clamp(42px, 7vw, 82px);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 24px;
  max-width: 920px;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 0;
}

h3 {
  font-size: 20px;
  letter-spacing: 0;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 680px;
}

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

.primary-action,
.secondary-action {
  font-weight: 780;
  min-height: 48px;
  padding: 0 18px;
}

.primary-action {
  background: #fff;
  color: var(--ink);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: #fff;
}

.hero-metrics {
  align-items: stretch;
  bottom: 28px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  z-index: 1;
}

.hero-metrics span {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  min-width: 130px;
  padding: 13px 15px;
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 6px;
}

.section {
  padding: 86px clamp(18px, 5vw, 72px);
}

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

.search-panel {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 48px;
  min-width: min(360px, 100%);
  padding: 0 14px;
}

.search-panel input {
  background: transparent;
  border: 0;
  color: var(--ink);
  min-width: 0;
  outline: 0;
  width: 100%;
}

.filter-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-row button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #41504c;
  cursor: pointer;
  font-size: 14px;
  font-weight: 720;
  min-height: 38px;
  padding: 0 14px;
}

.filter-row button.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.space-layout {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
}

.space-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
}

.space-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}

.space-card.selected {
  border-color: rgba(15, 118, 110, 0.68);
  box-shadow: var(--shadow);
}

.space-card img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  width: 100%;
}

.status {
  background: rgba(15, 118, 110, 0.92);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 820;
  padding: 6px 9px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
}

.status.muted {
  background: rgba(108, 117, 125, 0.9);
}

.space-card-body {
  display: grid;
  gap: 11px;
  padding: 16px;
}

.space-card-body strong {
  font-size: 20px;
}

.space-city,
.card-footer,
.tag-row,
.quick-view li,
.check-list span {
  align-items: center;
  display: flex;
  gap: 7px;
}

.space-city {
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  flex-wrap: wrap;
}

.tag-row span {
  background: #eef5f2;
  border-radius: 999px;
  color: #2d5d56;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 9px;
}

.card-footer {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  justify-content: space-between;
}

.detail-panel {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.quick-view {
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  padding: 24px;
}

.quick-view .eyebrow {
  color: #9de7da;
}

.quick-view h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.quick-view p,
.quick-view li {
  color: rgba(255, 255, 255, 0.78);
}

.quick-view ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.quick-view a {
  background: #fff;
  color: var(--ink);
  font-weight: 780;
  min-height: 46px;
  padding: 0 16px;
  width: 100%;
}

.gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.activity-section {
  background: #ffffff;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
}

.activity-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 0.95fr 1.3fr;
}

.membership {
  background: #173f3a;
  border-radius: 8px;
  color: #fff;
  min-height: 310px;
  padding: 28px;
}

.membership h3 {
  font-size: 30px;
  margin: 18px 0 12px;
}

.membership p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 500px;
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.check-list span {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  font-weight: 720;
  padding: 8px 11px;
}

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

.event-card {
  align-items: center;
  background: #f5f7f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 72px 1fr;
  min-height: 94px;
  padding: 18px;
}

.event-card > span {
  background: var(--saffron);
  border-radius: 8px;
  color: #fff;
  font-weight: 850;
  padding: 12px 8px;
  text-align: center;
}

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

.event-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.stack-section {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(260px, 0.85fr) 1.3fr;
}

.stack-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  margin-top: 22px;
}

.stack-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.stack-grid svg {
  color: var(--coral);
}

.stack-grid h3 {
  margin: 18px 0 8px;
}

.stack-grid p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.join-section {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 clamp(18px, 5vw, 72px) 54px;
  padding: 34px;
  border-radius: 8px;
}

.join-section .eyebrow {
  color: #9de7da;
}

.join-form {
  background: #fff;
  border-radius: 8px;
  display: flex;
  min-height: 54px;
  min-width: min(520px, 100%);
  overflow: hidden;
}

.join-form input {
  border: 0;
  flex: 1;
  min-width: 0;
  outline: 0;
  padding: 0 16px;
}

.join-form button {
  background: var(--teal);
  border: 0;
  color: #fff;
  cursor: pointer;
  font-weight: 820;
  padding: 0 18px;
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero-metrics {
    left: clamp(18px, 5vw, 72px);
    right: auto;
  }

  .section-heading,
  .space-layout,
  .activity-grid,
  .stack-section,
  .join-section {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar {
    gap: 12px;
    height: 64px;
  }

  .nav-action {
    font-size: 0;
    min-height: 40px;
    width: 42px;
  }

  .nav-action .icon {
    font-size: 18px;
  }

  .hero {
    min-height: 650px;
    padding-top: 104px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-metrics {
    bottom: 18px;
  }

  .hero-metrics span {
    min-width: calc(50% - 5px);
  }

  .section {
    padding-bottom: 64px;
    padding-top: 64px;
  }

  .space-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card {
    grid-template-columns: 58px 1fr;
  }

  .join-section {
    margin-bottom: 28px;
    padding: 22px;
  }

  .join-form {
    display: grid;
  }

  .join-form input,
  .join-form button {
    min-height: 52px;
  }
}
