:root {
  color-scheme: light;
  color: #193b37;
  background: #f2ebdb;
  font: 17px/1.6 system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 76rem; padding: 0 clamp(1.25rem, 5vw, 4rem); }
a { color: inherit; }
a:focus-visible { outline: 3px solid #c75444; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); letter-spacing: -.065em; max-width: 10ch; }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); letter-spacing: -.045em; }
h3 { font-size: 1.2rem; }
p { max-width: 42ch; }

.masthead, footer, .rooms { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.masthead { padding: 1.15rem 0; border-bottom: 1px solid #b7c3b5; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; text-decoration: none; }
.brand img { border-radius: .6rem; }
nav { display: flex; flex-wrap: wrap; gap: 1rem; }
nav a { text-decoration-thickness: 1px; text-underline-offset: .25rem; }

.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(2.5rem, 8vw, 6rem) 0; }
.wordmark { display: block; width: min(12rem, 68%); height: auto; margin-bottom: 1.2rem; }
.hero p, .join p { margin-top: 1rem; }
.platforms { color: #375d55; font-size: .86rem; }
.city-art { width: 100%; height: auto; display: block; }
.button { display: inline-block; padding: .7rem 1.2rem; margin-top: 1.4rem; border-radius: 999px; color: #fff9ee; background: #174e43; text-decoration: none; font-weight: 700; }
.button:hover { background: #266456; }
.button.secondary { margin: 0; white-space: nowrap; }

.cities { scroll-margin-top: 1rem; }
.city-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-top: 1.2rem; }
.city-list article { padding: 1.2rem; border-radius: .9rem; background: #ebd7ae; }
.city-list article:nth-child(2) { background: #dce7ca; }
.city-list article:nth-child(3) { background: #e1e2ef; }
.city-list article:nth-child(4) { background: #eedee3; }
.city-list span { display: block; margin-top: .45rem; font-size: .9rem; }
.city-list p { margin-top: .8rem; font-size: .9rem; }
.rooms { padding: 1.5rem; margin: 2.4rem 0; border-radius: .9rem; background: #d6e6db; }
.rooms p { margin-top: .6rem; }
.join { padding: clamp(3rem, 10vw, 8rem) 0; }
.overview { margin: 2.4rem 0; }
.overview p, .support p { margin-top: .8rem; max-width: 62ch; }
.overview[dir="rtl"] h2, .support [dir="rtl"] h2 { letter-spacing: normal; }
.support { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.support section + section { margin-top: 2.4rem; }
.support a { overflow-wrap: anywhere; }
footer { flex-wrap: wrap; padding: 1.2rem 0; border-top: 1px solid #b7c3b5; font-size: .85rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero > div { animation: arrive .35s ease-out both; }
  .city-art { animation: arrive .45s .08s ease-out both; }
  .button { transition: background-color .18s ease, transform .18s ease; }
  .button:active { transform: scale(.98); }
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(.65rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 48rem) {
  .hero { grid-template-columns: 1fr; }
  .city-art { max-width: 33rem; margin: auto; }
  .city-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 27rem) {
  .masthead { align-items: flex-start; }
  nav { gap: .55rem; }
  .rooms { align-items: flex-start; flex-direction: column; }
}

.join-arabic { max-width: 42ch; margin-top: 2rem; }
.join-arabic h2 { letter-spacing: normal; }
.invite-code { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: .5rem; }
.invite-code code { font-size: 1.4rem; font-weight: 750; letter-spacing: .14em; user-select: all; }
.invite-code button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.invite-code button:focus-visible { outline: 3px solid #c75444; outline-offset: 5px; }
.invite-code button[hidden], #copy-status:empty { display: none; }
