:root {
  color-scheme: light;
  --ink: #171211;
  --muted: #5f5550;
  --paper: #fff8f0;
  --paper-strong: #ffffff;
  --orange: #ff6819;
  --orange-soft: #ffe6d4;
  --orange-deep: #a82d09;
  --green: #768a61;
  --green-soft: #edf3df;
  --magenta: #c800ad;
  --line: rgba(23, 18, 17, 0.16);
  --shadow: 0 24px 70px rgba(23, 18, 17, 0.18);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 18, 17, 0.034) 1px, transparent 1px),
    linear-gradient(rgba(23, 18, 17, 0.034) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

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

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

.mauw-pattern {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background:
    radial-gradient(circle at 26px 18px, rgba(255, 104, 25, 0.055) 0 4px, transparent 5px),
    radial-gradient(circle at 40px 16px, rgba(255, 104, 25, 0.045) 0 3px, transparent 4px),
    radial-gradient(circle at 54px 18px, rgba(255, 104, 25, 0.05) 0 4px, transparent 5px),
    radial-gradient(ellipse at 40px 34px, rgba(23, 18, 17, 0.035) 0 11px, transparent 12px);
  background-size: 150px 130px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 74%, transparent);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  display: grid;
  width: min(1120px, calc(100% - 28px));
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 10px;
  border: 1px solid rgba(23, 18, 17, 0.16);
  border-radius: 8px;
  background: rgba(255, 248, 240, 0.88);
  box-shadow: 0 14px 46px rgba(23, 18, 17, 0.12);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  font-weight: 1000;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-strong);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.brand-text {
  display: grid;
  gap: 1px;
  overflow-wrap: anywhere;
  line-height: 1;
}

.brand-text small {
  color: var(--orange-deep);
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.nav-links a,
.nav-join {
  min-height: 36px;
  padding: 9px 13px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 900;
}

.nav-links a:hover,
.nav-join:hover {
  background: rgba(255, 104, 25, 0.12);
}

.nav-join {
  justify-self: end;
  border: 2px solid var(--ink);
  background: var(--orange);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 94svh;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
  align-items: end;
  gap: clamp(24px, 5vw, 70px);
  overflow: hidden;
  padding: 126px max(22px, calc((100vw - 1120px) / 2)) 72px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(23, 18, 17, 0.94), rgba(23, 18, 17, 0.5) 50%, rgba(23, 18, 17, 0.88)),
    url("/assets/mauw-money-cat.jpg") center / cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 18px),
    radial-gradient(circle at 20% 26%, rgba(255, 104, 25, 0.14), transparent 18%);
  content: "";
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 24vh;
  background: linear-gradient(0deg, var(--paper), rgba(255, 248, 240, 0));
  content: "";
}

.hero-content {
  max-width: 780px;
  color: #fff;
}

.kicker {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: clamp(0.78rem, 2vw, 0.92rem);
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(23, 18, 17, 0.86);
}

.hero h1,
.section h2,
.join-strip h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero h1 {
  max-width: 9ch;
  font-size: clamp(4.1rem, 12vw, 9rem);
  font-weight: 1000;
  text-shadow: 7px 7px 0 rgba(200, 0, 173, 0.54);
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.55;
}

.hero-copy strong {
  color: #fff;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 13px 18px;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 1000;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(2px, 2px);
}

.button.primary {
  background: var(--orange);
  color: #fff;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.mauw-stats {
  display: grid;
  max-width: 690px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.mauw-stats div {
  min-height: 94px;
  padding: 14px;
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
}

.mauw-stats span {
  display: block;
  color: #fff;
  font-size: clamp(1.35rem, 3.4vw, 2.15rem);
  font-weight: 1000;
  line-height: 1;
}

.mauw-stats strong {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-preview {
  align-self: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow), 8px 8px 0 var(--orange);
  transform: rotate(1deg);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 3px solid var(--ink);
  background: var(--orange-soft);
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.card-top b {
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
}

.hero-preview img {
  width: 100%;
  aspect-ratio: 1.35;
  border-bottom: 3px solid var(--ink);
  object-fit: cover;
}

.preview-text {
  display: grid;
  gap: 3px;
  padding: 16px;
}

.preview-text strong {
  font-size: 1.1rem;
}

.preview-text span {
  color: var(--muted);
  font-weight: 800;
}

.invite-panel {
  display: grid;
  width: min(1120px, calc(100% - 44px));
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  align-items: stretch;
  gap: clamp(18px, 4vw, 32px);
  margin: clamp(38px, 7vw, 78px) auto 0;
  padding: clamp(22px, 4vw, 38px);
  border: 3px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 104, 25, 0.16), transparent 42%),
    #fff;
  scroll-margin-top: 112px;
  box-shadow: 8px 8px 0 var(--green);
}

.invite-copy {
  display: grid;
  align-content: center;
}

.invite-copy h2 {
  margin: 0;
  font-size: clamp(2.75rem, 5.5vw, 4.45rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 0.9;
  overflow-wrap: normal;
  white-space: nowrap;
}

.invite-copy p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.6;
}

.invite-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: 6px 6px 0 var(--orange);
}

.invite-card span {
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 1000;
}

.invite-card strong {
  margin-bottom: 4px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1;
}

.invite-card .button {
  width: 100%;
}

.section {
  width: min(1120px, calc(100% - 44px));
  margin-inline: auto;
  padding: clamp(58px, 9vw, 100px) 0;
}

.overview-section,
.standards-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
}

.section-copy,
.rules-copy {
  max-width: 620px;
}

.section .kicker,
.invite-panel .kicker,
.join-strip .kicker {
  text-shadow: none;
}

.section h2,
.join-strip h2 {
  font-size: clamp(2.45rem, 7vw, 5.15rem);
  font-weight: 1000;
}

.section p,
.room p,
.rules-copy li,
.identity-card p,
.site-footer {
  color: var(--muted);
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.65;
}

.statement {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 14px;
  margin-top: 24px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--green-soft);
  box-shadow: 5px 5px 0 rgba(23, 18, 17, 0.14);
}

.statement p {
  margin: 0;
}

.statement span {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--orange);
  box-shadow: 5px 5px 0 var(--green);
}

.image-stack {
  position: relative;
}

.stack-main,
.standards-section img,
.identity-card img {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.stack-main {
  aspect-ratio: 1.66;
  object-fit: cover;
}

.stack-badge {
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: clamp(92px, 15vw, 150px);
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 7px 7px 0 var(--green);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 28px;
}

.identity-grid,
.room-grid {
  display: grid;
  gap: 16px;
}

.identity-grid {
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  align-items: stretch;
}

.identity-card {
  display: grid;
  align-content: start;
  min-height: 360px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 6px 6px 0 rgba(23, 18, 17, 0.14);
}

.identity-card.feature {
  background: var(--orange-soft);
}

.identity-card img {
  aspect-ratio: 1.3;
  object-fit: cover;
  box-shadow: none;
}

.identity-card h3,
.room h3 {
  margin: 18px 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  letter-spacing: 0;
}

.identity-card p {
  margin: 0;
}

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

.room {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 6px 6px 0 rgba(23, 18, 17, 0.14);
}

.room:nth-child(2) {
  background: #fff1eb;
}

.room:nth-child(3) {
  background: var(--green-soft);
}

.room:nth-child(4) {
  background: #fff;
}

.room span {
  color: var(--orange-deep);
  font-size: 0.86rem;
  font-weight: 1000;
}

.room p {
  margin-bottom: 0;
}

.standards-section {
  grid-template-columns: minmax(300px, 1.1fr) minmax(0, 0.9fr);
}

.standards-section img {
  aspect-ratio: 1.55;
  object-fit: cover;
  box-shadow: var(--shadow), -8px 8px 0 var(--magenta);
}

.rules-copy ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.rules-copy li {
  position: relative;
  padding-left: 32px;
}

.rules-copy li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--orange);
  content: "";
  transform: rotate(8deg);
}

.join-strip {
  display: grid;
  width: min(1120px, calc(100% - 44px));
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  margin: 0 auto clamp(58px, 8vw, 92px);
  padding: clamp(26px, 5vw, 44px);
  border: 3px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), transparent 42%),
    var(--orange-soft);
  box-shadow: 8px 8px 0 var(--orange);
}

.join-strip .button {
  white-space: nowrap;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 2px solid var(--ink);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 1000;
}

.site-footer a {
  color: var(--orange-deep);
  font-weight: 1000;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 1000;
}

@media (max-width: 980px) {
  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .identity-grid {
    grid-template-columns: 1fr;
  }

  .identity-card {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .invite-panel,
  .overview-section,
  .standards-section,
  .join-strip {
    grid-template-columns: 1fr;
  }

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

  .hero-preview {
    max-width: 430px;
  }

  .join-strip .button {
    width: fit-content;
  }

  .standards-section img {
    order: 2;
  }

  .rules-copy {
    order: 1;
  }
}

@media (max-width: 620px) {
  .mauw-stats,
  .room-grid {
    grid-template-columns: 1fr;
  }

  .invite-copy h2 {
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .nav-join {
    padding-inline: 11px;
  }

  .hero {
    padding-inline: 18px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: clamp(3.55rem, 19vw, 5.8rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section,
  .invite-panel,
  .join-strip {
    width: calc(100% - 32px);
  }

  .stack-badge {
    right: 12px;
    bottom: -24px;
  }

  .join-strip .button {
    width: 100%;
  }
}
