:root {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #172820;
  background: #f8f8f2;
  font-synthesis: none;
  --ink: #172820;
  --muted: #57625a;
  --edge: #e0e5da;
  --dark: #15362c;
  --mint: #aef5be;
  --paper: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
body.has-dialog { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #519e71; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shell { max-width: 1280px; margin-inline: auto; width: calc(100% - 112px); }
.site-header { border-bottom: 1px solid #e8ebe2; }
.header-inner {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.wordmark {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.065em;
  white-space: nowrap;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #b3f8c4;
  border-radius: 11px;
}
.brand-mark .icon { width: 21px; height: 21px; stroke-width: 2; }
.brand-period { color: #378257; }
.site-nav { display: flex; gap: 35px; align-items: center; font-size: 14px; font-weight: 600; color: #536058; }
.site-nav a { padding: 12px 2px; transition: color .16s; }
.site-nav a:hover, .site-nav .nav-current { color: var(--dark); }
.site-nav .nav-current { font-weight: 750; }
.button {
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 45px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.button:active { transform: translateY(1px); }
.button .icon { width: 17px; height: 17px; }
.header-access {
  justify-self: end;
  min-height: 40px;
  padding-inline: 14px;
  color: var(--dark);
  background: #fff;
  border-color: #dce4da;
  font-size: 13px;
}
.header-access:hover { background: #e8f2e8; border-color: #b6cbb9; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 386px;
  margin-top: 31px;
  border-radius: 24px;
  background: #0d2a24;
  color: #f5fbf5;
}
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 58%;
  background: url("/hero.webp") center / auto 111% no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.hero-content { padding: 43px 0 44px 54px; width: min(54%, 600px); }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  padding: 7px 11px;
  background: #244238;
  border: 1px solid #345345;
  border-radius: 99px;
  color: #d8eddd;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .105em;
}
.hero-tag span { width: 6px; height: 6px; background: #abf5bd; border-radius: 50%; }
.hero h1 { font-size: clamp(50px, 5.38vw, 80px); line-height: .95; font-weight: 800; letter-spacing: -.075em; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero p { max-width: 333px; margin-top: 20px; color: #d3e3d8; font-size: 16px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.button-mint { background: var(--mint); color: #132f26; }
.button-mint:hover { background: #c6ffd1; }
.button-ghost { border-color: #597469; background: #102b25; color: #f0faf2; }
.button-ghost:hover { background: #28483d; border-color: #8caf99; }
.button-dark { background: var(--dark); color: #fff; }
.button-dark:hover { background: #235343; }

.rooms { margin: 47px 0 0; scroll-margin-top: 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-heading h2, .how h2 { font-weight: 800; font-size: 36px; letter-spacing: -.055em; line-height: 1.07; }
.section-heading p, .how-intro p { color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 7px; }
.room-filters {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 3px;
  padding: 4px;
  border: 1px solid #e3e7dd;
  background: #eff1e9;
  border-radius: 11px;
}
.room-filters button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 10px;
  color: #516057;
  background: transparent;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}
.room-filters .icon { width: 15px; height: 15px; }
.room-filters button:hover { color: var(--dark); background: #e4e9df; }
.room-filters .is-active { color: var(--dark); background: #fff; border-color: #e0e5db; box-shadow: 0 1px 2px #17331f0d; }
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.room-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 0;
  border-radius: 16px;
  border: 1px solid var(--edge);
  background: var(--paper);
  box-shadow: 0 2px 3px #223b2a05;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.room-card:hover { border-color: #a8c8af; box-shadow: 0 8px 20px #183d2810; transform: translateY(-2px); }
.room-card.is-joined { border-color: #b1d7b9; }
.room-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.room-icon {
  width: 45px;
  height: 45px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
}
.room-icon .icon { width: 23px; height: 23px; }
.tone-mint { background: #ddf4e5; color: #276045; }
.tone-violet { background: #eee8ff; color: #644a9c; }
.tone-peach { background: #faeadd; color: #9a542f; }
.tone-blue { background: #e1effc; color: #305a82; }
.tone-yellow { background: #fbf1d5; color: #805d1b; }
.room-category {
  border: 1px solid #ecefe8;
  background: #f6f7f2;
  border-radius: 30px;
  padding: 4px 8px;
  margin-top: 2px;
  color: #5b685d;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.room-card h3 { margin-top: 15px; letter-spacing: -.035em; font-size: 20px; line-height: 1.2; }
.room-card p { margin: 6px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.47; flex: 1; }
.room-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 49px;
  padding: 7px 0;
  border: 0;
  border-top: 1px solid #eef0ea;
  background: transparent;
  color: #24573e;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
}
.room-action .icon { width: 17px; height: 17px; transition: transform .18s; }
.room-action:hover .icon { transform: translate(2px, -2px); }
.room-action:hover span { text-decoration: underline; text-underline-offset: 3px; }
.rooms-empty {
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  padding: 35px 20px;
}
.rooms-empty .room-icon { margin: 0 auto 12px; }
.rooms-empty p { color: var(--muted); margin: 7px 0 16px; }

.how {
  margin-top: 46px;
  padding: 27px;
  display: grid;
  grid-template-columns: 1.02fr repeat(3, 1fr);
  gap: 25px;
  align-items: start;
  border: 1px solid #dce8da;
  border-radius: 17px;
  background: #edf3e9;
  scroll-margin-top: 25px;
}
.how h2 { font-size: 24px; }
.how-intro p { font-size: 13px; }
.how-step { display: flex; align-items: flex-start; gap: 9px; }
.step-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; color: #24573e; background: #dceadd; }
.step-icon .icon { width: 16px; height: 16px; }
.how-step h3 { font-size: 14px; margin: 1px 0 5px; }
.how-step p { font-size: 13px; line-height: 1.45; color: var(--muted); }
.site-footer {
  margin-top: 30px;
  min-height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #e4e9df;
}
.site-footer .wordmark { font-size: 20px; }
.site-footer .brand-mark { width: 27px; height: 27px; border-radius: 8px; }
.site-footer .brand-mark .icon { width: 16px; height: 16px; }
.site-footer p { color: var(--muted); font-size: 13px; }

.dialog {
  border: 1px solid var(--edge);
  border-radius: 21px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 90px #10261b41;
  max-width: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
}
.dialog::backdrop { background: #0b231dc0; backdrop-filter: blur(4px); }
.join-dialog { width: 435px; padding: 23px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 15px; }
.icon-button { display: grid; place-items: center; padding: 0; border: 1px solid #e3e8df; width: 34px; height: 34px; border-radius: 9px; background: #fff; color: var(--ink); }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button:hover { background: #edf4eb; }
.dialog h2 { font-size: 26px; line-height: 1.12; letter-spacing: -.045em; }
.dialog-intro { color: var(--muted); margin: 7px 0 20px; font-size: 14px; line-height: 1.45; }
#join-form, #approval-form { display: grid; gap: 13px; margin-top: 16px; }
#referral-form .dialog-submit, #approval-review .access-secondary { width: 100%; }
.referral-status { color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 12px; }
#join-form label, #approval-form label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; }
.approval-field { display: grid; gap: 6px; font-size: 13px; }
.optional-field, .field-hint { color: var(--muted); font-weight: 400; }
#approval-form input, #join-form select, .chat-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce4d9;
  border-radius: 9px;
  color: var(--ink);
  background: #fafbf8;
  padding: 11px 10px;
  font-size: 16px;
  font-weight: 400;
}
.dialog-submit { margin-top: 5px; }
.access-secondary { background: #fafbf8; border-color: #dce4d9; color: var(--dark); }
.access-secondary:hover { background: #e8f2e8; border-color: #b6cbb9; }
.form-error { color: #a03830; font-size: 13px; line-height: 1.4; }
.chat-dialog { width: 640px; height: min(650px, calc(100dvh - 24px)); padding: 0; }
.chat-dialog[open] { display: flex; flex-direction: column; }
.chat-header { display: flex; gap: 12px; align-items: center; padding: 16px; border-bottom: 1px solid var(--edge); }
.chat-header h2 { font-size: 22px; }
.chat-header p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.chat-header .icon-button { margin-left: auto; flex: none; }
.chat-messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: #f7f9f5; padding: 16px; }
.chat-messages:focus-visible { outline-offset: -4px; }
.chat-empty { margin: 24px auto; color: var(--muted); text-align: center; font-size: 14px; line-height: 1.45; }
.chat-message { margin-bottom: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--edge); border-radius: 10px; }
.message-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; margin-bottom: 5px; }
.message-handle { color: #21583d; font-size: 13px; font-weight: 750; }
.message-time { font-size: 11px; color: var(--muted); }
.message-text { font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-text a { color: #1f6642; text-decoration: underline; text-underline-offset: 2px; }
.message-copy { margin-top: 6px; border: 1px solid #dae6da; border-radius: 6px; padding: 4px 7px; color: #21583d; background: #f2f8f1; font-size: 12px; }
.message-copy:hover { background: #e3f0e2; }
.chat-error { padding: 8px 14px 0; }
.chat-form { padding: 12px; display: flex; align-items: flex-end; gap: 9px; border-top: 1px solid var(--edge); }
.chat-form textarea { flex: 1; resize: vertical; min-height: 45px; max-height: 112px; }
.chat-form .send-button { width: 45px; padding: 0; }
.toast { position: fixed; z-index: 2; bottom: 16px; right: 16px; max-width: calc(100% - 32px); color: white; background: var(--dark); border-radius: 9px; padding: 10px 13px; font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 72px); }
  .hero-content { padding-left: 40px; }
  .hero-art { background-size: auto 104%; }
  .how { gap: 16px; padding: 21px; }
}

@media (max-width: 810px) {
  .shell { width: calc(100% - 48px); }
  .site-nav { gap: 18px; }
  .hero { min-height: 354px; }
  .hero-content { padding-left: 32px; }
  .hero-art { width: 55%; background-size: auto 87%; }
  .hero h1 { font-size: clamp(42px, 7.1vw, 62px); }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { grid-template-columns: 1fr auto; height: 64px; }
  .site-nav { display: none; }
  .wordmark { font-size: 23px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 9px; }
  .brand-mark .icon { width: 19px; height: 19px; }
  .header-access { min-height: 36px; padding-inline: 9px; gap: 5px; font-size: 12px; }
  .header-access .icon { width: 15px; height: 15px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: auto; margin-top: 17px; border-radius: 19px; }
  .hero-content { width: auto; padding: 26px 21px 0; }
  .hero-tag { margin-bottom: 14px; }
  .hero h1 { font-size: clamp(45px, 11.8vw, 65px); }
  .hero p { margin-top: 15px; font-size: 15px; }
  .hero-actions { margin-top: 18px; gap: 7px; flex-wrap: wrap; }
  .hero-actions .button { min-height: 42px; padding-inline: 10px; font-size: 13px; gap: 5px; }
  .hero-art { position: static; order: 1; width: 100%; min-height: clamp(185px, 51vw, 240px); background-size: auto 118%; background-position: center 48%; }
  .rooms { margin-top: 31px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 14px; }
  .section-heading h2 { font-size: 31px; }
  .section-heading p { font-size: 14px; }
  .room-card { padding: 15px 14px 0; }
  .room-top { flex-wrap: wrap; }
  .room-card h3 { font-size: 18px; }
  .room-card p { font-size: 13px; }
  .room-grid { gap: 10px; }
  .how { margin-top: 29px; grid-template-columns: 1fr; gap: 17px; }
  .site-footer { align-items: flex-start; justify-content: center; flex-direction: column; gap: 9px; padding-block: 15px; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
