:root {
  --bg: #f7f5ee;
  --surface: #ffffff;
  --tint: #edf3e4;
  --ink: #13201a;
  --muted: #56665b;
  --line: #e2e0d5;
  --green: #2e7d3a;
  --green-ink: #1d5428;
  --button: #2e7d3a;
  --button-hover: #256a30;
  --button-ink: #ffffff;
  --sky-top: #7cc6ff;
  --sky-bottom: #d6f0ff;
  --code-bg: #eef1e8;
  --radius: 16px;
  --wrap: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1611;
    --surface: #142019;
    --tint: #111d16;
    --ink: #edf3ec;
    --muted: #9fb2a4;
    --line: #22332a;
    --green: #8fd45a;
    --green-ink: #8fd45a;
    --button: #4caf50;
    --button-hover: #5cbf60;
    --button-ink: #0b130e;
    --sky-top: #0a1a2e;
    --sky-bottom: #24476a;
    --code-bg: #1b2a21;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: var(--green-ink);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 850;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 750;
}

p {
  margin: 0 0 1em;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--code-bg);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 10px;
}

.skip-link:focus {
  top: 12px;
}

/* Eyebrow: a small label with a pixel square. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-ink);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--button);
  color: var(--button-ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 0 0 var(--green-ink);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover {
  background: var(--button-hover);
}

.button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 0 var(--green-ink);
}

.button--small {
  padding: 9px 16px;
  font-size: 0.95rem;
  box-shadow: 0 3px 0 0 var(--green-ink);
}

.text-link {
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.brand__icon svg {
  width: 30px;
  height: auto;
}

.brand__word svg {
  height: 18px;
  width: auto;
}

.nav {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--tint);
}

@media (max-width: 640px) {
  .site-header__inner {
    gap: 8px;
  }
  .brand__word {
    display: none;
  }
  .nav a {
    padding: 8px;
  }
  .site-header .button {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom) 75%);
  color: #0f1c15;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 10vh, 112px) 0 220px;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  border: 2px solid rgba(15, 40, 22, 0.2);
  border-radius: 10px;
  background: #fff7dc;
  color: #13201a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 3px 0 0 rgba(15, 40, 22, 0.2);
}

.hero__title {
  margin: 0 auto 28px;
  width: min(760px, 100%);
}

.hero__title svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 0 rgba(10, 30, 15, 0.12));
}

.hero__lead {
  max-width: 34em;
  margin: 0 auto 32px;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: #18301f;
}

.hero__invite {
  max-width: 34em;
  margin: -16px auto 28px;
  font-weight: 700;
  color: #13301f;
}

.hero__scene {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: clamp(190px, 30vw, 300px);
  object-fit: cover;
  object-position: center bottom;
  image-rendering: pixelated;
  z-index: 1;
}

.hero__sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cloud {
  position: absolute;
  left: -20%;
  opacity: 0.92;
  animation: drift linear infinite;
}

.cloud svg {
  width: 100%;
  height: auto;
}

.cloud--a {
  top: 12%;
  width: 150px;
  animation-duration: 95s;
  animation-delay: -30s;
}

.cloud--b {
  top: 26%;
  width: 96px;
  animation-duration: 120s;
  animation-delay: -80s;
}

.cloud--c {
  top: 6%;
  width: 210px;
  animation-duration: 150s;
  animation-delay: -10s;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(140vw);
  }
}

@media (prefers-color-scheme: dark) {
  .wm-top {
    fill: #c6f29a;
  }
  .wm-body {
    fill: #7ccd55;
  }
  .wm-side {
    fill: #2b5a33;
  }
  .hero {
    color: var(--ink);
  }
  .hero__lead {
    color: #d7e6f2;
  }
  .hero__scene {
    filter: brightness(0.62) saturate(0.85);
  }
  .cloud {
    opacity: 0.22;
  }
  .hero__title svg {
    filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cloud {
    animation: none;
  }
  .cloud--a {
    left: 8%;
  }
  .cloud--b {
    left: 62%;
  }
  .cloud--c {
    left: 78%;
  }
}

/* Join options: Java copies the address, Bedrock opens the add-server link. */
.join {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(780px, 100%);
  margin: 0 auto;
  text-align: left;
}

.join__option {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 2px solid rgba(15, 40, 22, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: #13201a;
  box-shadow: 0 6px 0 0 rgba(15, 40, 22, 0.14);
}

.join__edition {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #56665b;
}

.join__button {
  --face: #2e7d3a;
  --face-hover: #256a30;
  --edge: #1d5428;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--face);
  color: #ffffff;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 0 var(--edge);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.join__button--bedrock {
  --face: #2d6fc0;
  --face-hover: #255ea6;
  --edge: #1c4a85;
}

.join__button:hover {
  background: var(--face-hover);
}

.join__button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 0 var(--edge);
}

.join__button:focus-visible {
  outline: 3px solid #13201a;
  outline-offset: 3px;
}

.join__button[data-copied] {
  background: var(--edge);
}

.join__icon {
  flex: none;
  width: 44px;
}

.join__icon svg {
  display: block;
  width: 100%;
  height: auto;
}

.join__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.join__title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.join__action {
  font-size: 0.95rem;
  font-weight: 600;
}

.join__address,
.join__soon {
  margin: 0;
  font-size: 0.95rem;
  color: #2a4233;
}

.join__address code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef1e8;
  color: #13201a;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.join__note {
  margin: 0;
  font-size: 0.88rem;
  color: #56665b;
}

.join__soon {
  font-size: 1.05rem;
  font-weight: 600;
}

.join__option--quiet {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.join__steps {
  padding-top: 12px;
  border-top: 2px dashed rgba(15, 40, 22, 0.18);
}

.join__steps-title {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1d5428;
}

.join__path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.join__path li {
  margin: 0;
  padding: 4px 10px;
  border-radius: 8px;
  background: #e3efd8;
  color: #13201a;
  font-size: 0.9rem;
  font-weight: 700;
}

.join__path li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-block;
  min-width: 1.4em;
  margin-right: 6px;
  border-radius: 6px;
  background: #2e7d3a;
  color: #ffffff;
  text-align: center;
}

.join__intro {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  color: #13301f;
}

.join__hint {
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: #2a4233;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .join__hint {
    color: #c7d8e6;
  }
  .join__intro,
  .hero__invite {
    color: #e8f1f8;
  }
}

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

.prose .join__intro {
  text-align: left;
  color: var(--ink);
}

.prose .join {
  margin: 0 0 12px;
}

.prose .join__hint {
  margin: 0 0 40px;
  text-align: left;
  color: var(--muted);
}

/* Sections */
.section {
  padding: clamp(64px, 10vw, 112px) 0;
}

.section--tint {
  background: var(--tint);
  border-block: 1px solid var(--line);
}

.section h2 {
  max-width: 18em;
}

/* Mode cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 0 -4px var(--line);
}

.card--quiet {
  background: transparent;
  border-style: dashed;
}

.card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--tint);
}

.card__icon svg {
  width: 34px;
  height: auto;
}

.card__tag {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.card p {
  color: var(--muted);
}

.card__how {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink) !important;
  font-weight: 600;
}

/* Rules and safety */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

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

.rules {
  counter-reset: rule;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.rules li {
  counter-increment: rule;
  position: relative;
  padding: 20px 22px 20px 74px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.rules li::before {
  content: counter(rule);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--button);
  color: var(--button-ink);
  font-weight: 800;
  box-shadow: 0 3px 0 0 var(--green-ink);
}

.rules strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
}

.rules--large {
  margin: 8px 0 48px;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 28px;
  list-style: none;
  margin: 56px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
}

.checks__icon svg {
  width: 20px;
  height: auto;
  margin-top: 3px;
}

/* Join steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 36px 0 40px;
  padding: 0;
}

.steps li {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.steps__n {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--tint);
  color: var(--green-ink);
  font-weight: 800;
}

/* Inner pages */
.page-head {
  padding: clamp(56px, 9vw, 96px) 0 24px;
  background: linear-gradient(180deg, var(--tint), var(--bg));
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}

.prose {
  max-width: 760px;
  padding-bottom: 96px;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 1.8em;
}

.prose li {
  margin-bottom: 0.4em;
}

/* Legal pages */
.legal__updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal__pending {
  padding: 16px 18px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--muted);
}

.legal__more {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal__more ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal__more a {
  font-weight: 700;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 22px;
  font-weight: 700;
  font-size: 1.08rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-ink);
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq__a {
  padding: 0 22px 8px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  font-size: 0.95rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__brand p {
  margin: 0;
}

.site-footer__name {
  font-weight: 800;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.site-footer__legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__legal p {
  margin: 0;
}
