@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");
:root {
  font-family: "DM Sans", sans-serif;
  color: #292f29;
  background: #f8f9f5;
  --bg: #f8f9f5;
  --surface: #fff;
  --text: #292f29;
  --muted: #7a8076;
  --line: #e2e6dc;
  --accent: #d7ef80;
  --soft: #eef1e8;
  --panel: #eff3e7;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #171c19;
  --surface: #202722;
  --text: #edf0e7;
  --muted: #a1ad9e;
  --line: #364137;
  --soft: #29332a;
  --panel: #283224;
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  transition:
    background 0.18s,
    transform 0.18s;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #91a94e;
  outline-offset: 4px;
}
button {
  border: 0;
}
input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 14px 15px;
  text-transform: lowercase;
}
input::placeholder {
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand {
  font-family: "Manrope", sans-serif;
}
button,
h1,
h2,
h3,
p,
strong,
a,
small {
  text-transform: lowercase;
}
.shell {
  max-width: 1200px;
  margin: auto;
  padding: 0 44px;
}
.topbar {
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 39px;
  letter-spacing: -2.5px;
}
.brand .brand-dot {
  color: #8ca947;
}
.brand-word {
  display: flex;
  align-items: baseline;
}
.brand-expansion {
  display: inline-grid;
  grid-template-columns: 0fr;
  opacity: 0;
}
.brand-expansion > span {
  min-width: 0;
  overflow: hidden;
}
.brand-animating .brand-expansion {
  animation: brand-unfold 1.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes brand-unfold {
  0%,
  12%,
  100% {
    grid-template-columns: 0fr;
    opacity: 0;
  }
  38%,
  65% {
    grid-template-columns: 1fr;
    opacity: 1;
  }
}
.header-actions {
  min-width: 0;
  margin-left: 12px;
}
.header-actions .quiet {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-button {
  flex-shrink: 0;
}
.header-actions,
.inline,
.share-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quiet {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 30px;
  padding: 11px 17px;
  font-size: 13px;
}
.quiet:hover {
  background: var(--soft);
}
.theme-button {
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 40px;
  width: 40px;
  font-size: 23px;
  background: transparent;
}
.hero {
  position: relative;
  padding: 66px 0 62px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #89a555;
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(42px, 5.4vw, 64px);
  line-height: 1.12;
  letter-spacing: -3.4px;
  margin: 22px 0;
}
.hero h1 > span {
  color: #889879;
}
.hero p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.hero-doodle {
  position: absolute;
  right: 40px;
  top: 100px;
  width: 310px;
  height: 200px;
}
.bubble {
  position: absolute;
  border: 1.5px solid var(--text);
  border-radius: 26px;
  padding: 20px 32px;
  font:
    650 27px "Manrope",
    sans-serif;
  box-shadow: 4px 5px 0 var(--text);
}
.bubble:after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 30px;
  width: 18px;
  height: 18px;
  background: inherit;
  border-bottom: 1.5px solid var(--text);
  border-right: 1.5px solid var(--text);
  transform: skewY(35deg);
}
.bubble-one {
  background: var(--accent);
  color: #293122;
  transform: rotate(-9deg);
  left: 0;
  top: 0;
}
.bubble-one span {
  padding-left: 22px;
  font-size: 34px;
}
.bubble-two {
  background: var(--surface);
  right: 0;
  top: 91px;
  transform: rotate(7deg);
  font-size: 23px;
}
.spark {
  position: absolute;
  right: 5px;
  top: -25px;
  font-size: 49px;
  color: #8e9e78;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 335px;
  gap: 48px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 23px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.8px;
}
.count {
  font:
    12px "DM Sans",
    sans-serif;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 8px;
  vertical-align: middle;
  margin-left: 5px;
}
.live {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding-left: 14px;
}
.search > span {
  font-size: 25px;
  color: var(--muted);
}
.search input {
  border: 0;
  background: transparent;
  font-size: 12px;
}
.room-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.room-card {
  display: flex;
  align-items: center;
  padding: 21px 19px;
  gap: 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.room-card:hover {
  transform: translateY(-2px);
  border-color: #a2b27c;
}
.room-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 23px;
  color: #465736;
  background: #edf2df;
}
.tint-1 {
  background: #ece7f6;
  color: #756285;
}
.tint-2 {
  background: #f7e9dc;
  color: #957250;
}
.room-card h3 {
  font-size: 15px;
  letter-spacing: -0.3px;
  overflow-wrap: anywhere;
}
.room-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.arrow {
  margin-left: auto;
  font-size: 24px;
  color: var(--muted);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 27px;
  background: var(--panel);
}
.create-panel > .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
}
.create-panel h2 {
  font-size: 26px;
  letter-spacing: -1px;
  margin: 12px 0;
}
.create-panel > p,
.join-panel > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.create-panel > label:not(.privacy) {
  display: block;
  margin: 25px 0 9px;
  font-size: 11px;
  font-weight: 600;
}
.create-panel > input {
  font-size: 12px;
}
.privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin: 23px 0;
}
.privacy strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.privacy small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.privacy input {
  appearance: none;
  flex-shrink: 0;
  width: 34px;
  height: 20px;
  padding: 0;
  border-radius: 20px;
  background: var(--line);
  position: relative;
  cursor: pointer;
}
.privacy input:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-radius: 50%;
  transition: transform 0.15s;
}
.privacy input:checked {
  background: #93ac56;
}
.privacy input:checked:before {
  transform: translateX(14px);
  background: white;
}
.primary {
  background: var(--accent);
  color: #293122;
  border-radius: 9px;
  padding: 14px 20px;
  font-weight: 650;
  font-size: 12px;
  white-space: nowrap;
}
.primary:hover:not(:disabled) {
  background: #c8e56b;
}
.full {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.join-panel {
  padding: 25px 5px;
}
.join-panel h3 {
  font-size: 15px;
  margin-bottom: 5px;
}
.join-panel .inline {
  margin-top: 15px;
  gap: 8px;
}
.join-panel input {
  font-size: 11px;
}
.join-button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-size: 20px;
  padding: 10px 15px;
}
.directory-note {
  font-size: 10px;
  color: var(--muted);
  margin: 22px 0;
  line-height: 1.6;
}
.empty {
  text-align: center;
  padding: 60px 25px;
}
.empty-icon {
  font-size: 40px;
  color: #97aa77;
  display: block;
  margin-bottom: 17px;
}
.empty h3,
.empty h2 {
  font-size: 19px;
  margin-bottom: 10px;
}
.empty p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 300px;
  margin: 0 auto 15px;
}
.error {
  color: #b54d48 !important;
  font-size: 12px;
  line-height: 1.6;
  margin: 14px 0;
}
.settings {
  margin-top: 20px;
  max-width: 480px;
  margin-left: auto;
}
.settings label {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
}
.settings small {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 62px;
  padding: 24px 0 30px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.conversation {
  padding-top: 32px;
}
.back {
  font-size: 12px;
  color: var(--muted);
}
.chat-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 35px;
}
.chat-heading h1 {
  font-size: 36px;
  letter-spacing: -1.5px;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.room-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  margin: 20px 0;
}
.room-id {
  overflow-wrap: anywhere;
}
.offline {
  background: #c9a85d;
}
.chat-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 17px;
  overflow: hidden;
}
.messages {
  height: clamp(260px, 48vh, 600px);
  overflow-y: auto;
  padding: 25px;
}
.message {
  display: flex;
  gap: 14px;
  margin: 0 0 24px;
  font-size: 13px;
}
.avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 11px;
  text-transform: lowercase;
}
.message strong {
  font-size: 11px;
  color: var(--muted);
}
.message p {
  line-height: 1.7;
  margin-top: 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message > div:last-child {
  min-width: 0;
}
.composer {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 15px;
}
.composer input {
  border: 0;
  background: var(--bg);
  font-size: 13px;
}
.name-prompt {
  border-top: 1px solid var(--line);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 90px;
    padding-bottom: 80px;
  }
}
@media (max-width: 900px) {
  .shell {
    padding: 0 26px;
  }
  .home-grid {
    gap: 25px;
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .hero-doodle {
    right: 0;
    transform: scale(0.8);
    transform-origin: right center;
  }
  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .hero h1 {
    font-size: 52px;
  }
}
@media (max-width: 680px) {
  .shell {
    padding: 0 20px;
  }
  .topbar {
    height: 82px;
  }
  .brand {
    font-size: 34px;
  }
  .header-actions {
    gap: 7px;
  }
  .quiet {
    font-size: 11px;
    padding: 10px 12px;
  }
  .hero {
    padding: 42px 0 35px;
  }
  .hero h1 {
    font-size: 46px;
    letter-spacing: -2.8px;
  }
  .hero p {
    font-size: 13px;
  }
  .hero-doodle {
    display: none;
  }
  .home-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .section-title {
    flex-direction: row;
    align-items: center;
  }
  .section-title h2 {
    font-size: 18px;
  }
  .empty {
    padding: 38px 20px;
  }
  .panel {
    padding: 24px;
  }
  .desktop {
    display: none;
  }
  footer {
    margin-top: 30px;
    gap: 15px;
    line-height: 1.7;
    flex-direction: column;
  }
  .chat-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .chat-heading h1 {
    font-size: 30px;
  }
  .room-meta {
    gap: 10px;
  }
  .name-prompt {
    flex-direction: column;
  }
  .composer {
    padding: 10px;
    gap: 7px;
  }
  .composer .primary {
    padding: 12px;
  }
  .settings .inline {
    flex-wrap: wrap;
  }
  .settings .inline input {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-animating .brand-expansion {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
