:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --bg-soft: #eceef2;
  --panel: #ffffff;
  --panel-strong: #f0f1f5;
  --line: rgba(24, 25, 31, 0.13);
  --line-strong: rgba(106, 0, 242, 0.46);
  --text: #191a22;
  --muted: #626773;
  --faint: #8d929b;
  --coffee: #c77b39;
  --coffee-light: #e0a060;
  --unknown: #6a00f2;
  --unknown-bright: #7d18ff;
  --unknown-soft: rgba(106, 0, 242, 0.1);
  --silver: #b9bbc1;
  --minecraft-green: #22a51f;
  --cream: #11131a;
  --shadow: 0 26px 70px rgba(21, 20, 33, 0.14);
  --shadow-soft: 0 16px 38px rgba(21, 20, 33, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 12%, rgba(106, 0, 242, 0.12), transparent 24rem),
    radial-gradient(circle at 12% 44%, rgba(185, 187, 193, 0.2), transparent 22rem),
    linear-gradient(rgba(24, 25, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 25, 31, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 40px 40px, 40px 40px, auto;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.coffee-page {
  color-scheme: dark;
  background:
    linear-gradient(rgba(255, 247, 237, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 247, 237, 0.035) 1px, transparent 1px),
    #0f0906;
  background-size: 32px 32px, 32px 32px, auto;
  color: #fff3e5;
}

.coffee-page .site-header {
  background: rgba(15, 9, 6, 0.9);
  border-bottom-color: rgba(236, 213, 187, 0.12);
}

.coffee-page .brand,
.coffee-page nav a {
  color: #fff3e5;
}

.coffee-page .nav-pill {
  background: rgba(255, 247, 237, 0.04);
  border-color: rgba(236, 213, 187, 0.16);
  color: #cbb9a9;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 4rem);
  background: rgba(246, 247, 249, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
nav,
.hero-actions,
.join-actions,
.status-list,
.preview-tabs,
.setup-tabs,
.profile-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  color: var(--cream);
  font-weight: 900;
}

.brand-logo {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
}

.brand-mark {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 247, 237, 0.16);
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--unknown), var(--unknown-bright));
  color: #07100c;
  font-size: 0.85rem;
  font-weight: 900;
}

nav {
  flex-wrap: wrap;
  gap: clamp(0.8rem, 3vw, 2rem);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

nav a:hover,
nav a:focus-visible {
  color: var(--cream);
}

.nav-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.68);
  color: var(--faint);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  width: min(1280px, 100%);
  min-height: 82vh;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem);
}

.server-hero {
  grid-template-columns: minmax(280px, 0.82fr) minmax(430px, 1.18fr);
}

.hero-copy-block {
  max-width: 520px;
}

.server-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(11.5rem, 46vw);
  aspect-ratio: 1;
  margin: 0 0 1.35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.server-logo {
  display: block;
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.eyebrow,
.panel-label {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
span,
strong {
  overflow-wrap: anywhere;
}

.server-hero h1,
.hero-server-address,
.server-address {
  overflow-wrap: normal;
  word-break: keep-all;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--cream);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(4rem, 7vw, 6.35rem);
  font-weight: 950;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

h3 {
  font-size: 1.45rem;
}

.hero-copy,
.section-heading p,
.feature-card p,
footer p {
  color: var(--muted);
}

.hero-copy {
  max-width: 520px;
  margin: 1.2rem 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

.hero-actions,
.join-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.85rem 1.15rem;
  font-weight: 900;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.button.primary {
  border-color: rgba(106, 0, 242, 0.55);
  background: linear-gradient(135deg, #5f00df, #7b18ff);
  color: #ffffff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.server-join-card {
  min-width: 0;
  border: 1px solid rgba(106, 0, 242, 0.2);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(106, 0, 242, 0.08), transparent 34rem),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 3vw, 2rem);
}

.hero-server-address {
  margin: 0;
  color: var(--cream);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.edition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.edition-grid article {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.edition-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(106, 0, 242, 0.28);
  background: rgba(255, 255, 255, 0.95);
}

.edition-card {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  align-items: flex-start;
}

.edition-grid h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.edition-grid p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.edition-grid strong,
.edition-options strong {
  color: var(--cream);
  font-family: "Cascadia Mono", Consolas, monospace;
}

.mini-button {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border: 1px solid rgba(106, 0, 242, 0.32);
  border-radius: 0.85rem;
  background: var(--unknown-soft);
  color: var(--unknown);
  padding: 0.65rem 0.85rem;
  font-weight: 900;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.mini-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
}

.card-actions {
  margin-top: 1.1rem;
}

.purple-mini {
  border-color: rgba(106, 0, 242, 0.55);
  background: linear-gradient(135deg, #5f00df, #7b18ff);
  color: #ffffff;
}

.mini-button:hover,
.mini-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(106, 0, 242, 0.5);
  background: rgba(106, 0, 242, 0.14);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.quick-tags span {
  border: 1px solid rgba(106, 0, 242, 0.22);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: var(--unknown-soft);
  color: var(--unknown);
  font-size: 0.92rem;
  font-weight: 900;
}

.launcher-preview {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background:
    linear-gradient(135deg, rgba(199, 123, 57, 0.14), transparent 30rem),
    rgba(31, 19, 13, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.launcher-preview.compact {
  margin-top: 2rem;
}

.launcher-preview.slim {
  opacity: 1;
  box-shadow: var(--shadow-soft);
}

.launcher-preview.slim .preview-body {
  grid-template-columns: minmax(180px, 0.32fr) minmax(300px, 1fr);
}

.muted-section {
  margin-top: 2rem;
  background: transparent;
  border: 0;
}

.coffee-section {
  color: #fff3e5;
}

.launcher-page {
  min-height: calc(100vh - 5rem);
  padding-top: clamp(5rem, 9vw, 8rem);
}

.coffee-section .eyebrow,
.coffee-section .panel-label {
  color: #d5ad83;
}

.coffee-section h1,
.coffee-section h2,
.coffee-section h3,
.coffee-section .preview-title {
  color: #fff3e5;
  font-family: Georgia, "Times New Roman", serif;
}

.coffee-section .section-heading p,
.coffee-section .profile-list span,
.coffee-section .setup-panel label {
  color: #cbb9a9;
}

.coffee-section .preview-tabs span,
.coffee-section .setup-tabs span,
.coffee-section .profile-actions span,
.coffee-section .setup-panel label > span,
.coffee-section .profile-list strong {
  color: #fff3e5;
}

.coffee-section .preview-tabs .active,
.coffee-section .profile-list article.selected {
  border-color: rgba(199, 123, 57, 0.65);
  background: rgba(199, 123, 57, 0.16);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.mode-grid article {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
}

.mode-grid span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--unknown);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 900;
}

.mode-grid p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.preview-title {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  font-weight: 900;
  line-height: 1;
}

.preview-tabs,
.setup-tabs,
.profile-actions,
.status-list {
  flex-wrap: wrap;
  gap: 0.6rem;
}

.preview-tabs span,
.setup-tabs span,
.profile-actions span {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  padding: 0.55rem 0.85rem;
  background: rgba(15, 10, 7, 0.48);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
}

.preview-tabs .active {
  border-color: var(--line-strong);
  background: rgba(199, 123, 57, 0.12);
  color: #ffd9aa;
}

.preview-body {
  display: grid;
  grid-template-columns: minmax(210px, 0.38fr) minmax(340px, 1fr);
  gap: 1.35rem;
  padding: 1.35rem;
}

.profile-panel,
.setup-panel,
.feature-card,
.server-panel,
.join-section {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
}

.coffee-section .profile-panel,
.coffee-section .setup-panel {
  border-color: rgba(236, 213, 187, 0.14);
  background: rgba(25, 15, 11, 0.86);
}

.profile-panel,
.setup-panel {
  min-width: 0;
  padding: 1.2rem;
}

.profile-panel h2,
.setup-panel h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.profile-actions {
  justify-content: space-between;
  margin: 1.15rem 0;
}

.profile-list {
  display: grid;
  gap: 0.7rem;
}

.profile-list article {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.85rem;
  background: rgba(10, 7, 5, 0.28);
}

.profile-list article.selected {
  border-color: var(--line-strong);
  background: rgba(199, 123, 57, 0.12);
}

.profile-list strong {
  color: var(--cream);
  font-size: 0.95rem;
}

.profile-list span,
.setup-panel label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.setup-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.setup-panel label {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.setup-panel label > span {
  display: flex;
  min-height: 3rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(10, 7, 5, 0.58);
  color: var(--text);
  padding: 0 0.95rem;
}

.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.setup-panel button {
  min-height: 3rem;
  margin-top: 1.25rem;
  border: 0;
  border-radius: 0.95rem;
  background: var(--coffee);
  color: var(--cream);
  padding: 0 1.3rem;
  font: inherit;
  font-weight: 900;
}

.project-section,
.join-section,
footer {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.project-section {
  scroll-margin-top: 6rem;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 4rem);
}

.hero,
.join-section,
.section-heading h2 {
  scroll-margin-top: 6rem;
}

.project-section.accent {
  width: 100%;
  max-width: none;
  background:
    linear-gradient(135deg, rgba(185, 187, 193, 0.18), transparent 28rem),
    rgba(255, 255, 255, 0.48);
}

.project-section.accent > * {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.section-heading {
  max-width: 760px;
}

.section-heading p {
  margin: 1rem 0 0;
  font-size: 1.08rem;
}

.section-actions {
  margin-top: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.server-panel,
.join-section {
  box-shadow: var(--shadow-soft);
}

.feature-card {
  min-height: 12rem;
  padding: 1.4rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(106, 0, 242, 0.24);
  background: rgba(255, 255, 255, 0.98);
}

.feature-card p {
  margin: 0.8rem 0 0;
}

.server-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.server-panel h3 {
  margin-bottom: 0.6rem;
}

.server-address {
  margin: 0;
  color: var(--unknown);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  font-weight: 900;
}

.status-list {
  align-content: start;
}

.status-list span {
  border: 1px solid rgba(106, 0, 242, 0.22);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: var(--unknown-soft);
  color: var(--unknown);
  font-size: 0.92rem;
  font-weight: 900;
}

.join-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-block: clamp(4rem, 8vw, 7rem);
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.join-section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.join-section .join-actions {
  margin-top: 0;
}

.join-copy {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.join-copy strong {
  color: var(--cream);
  font-family: "Cascadia Mono", Consolas, monospace;
}

footer {
  padding: 2rem clamp(1rem, 4vw, 4rem) 3rem;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

@media (max-width: 1050px) {
  .hero,
  .preview-body,
  .setup-grid,
  .server-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 800px) {
  .site-header,
  .join-section,
  .preview-topbar,
  .setup-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .feature-grid,
  .feature-grid.two-column,
  .server-panel,
  .edition-grid,
  .mode-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 4.4rem);
  }

  .hero-server-address {
    font-size: clamp(1.55rem, 8vw, 2.25rem);
  }

  .button,
  .setup-panel button {
    width: 100%;
  }

  .preview-body,
  .launcher-preview {
    border-radius: 1rem;
  }
}
