:root {
  color-scheme: dark;
  --page: #0b121f;
  --panel: #121d2c;
  --line: #2a3a50;
  --text: #f7f7f0;
  --muted: #b5c3d4;
  --gold: #ffd478;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-inline-size: 0;
  margin: 0;
  background: radial-gradient(ellipse at top, #132235 0, var(--page) 42rem);
  color: var(--text);
}

a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.page-width {
  width: min(100% - 5rem, 77.5rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  padding: .75rem 1rem;
  transform: translateY(-200%);
  background: var(--gold);
  color: #1d1508;
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header { min-height: 5.25rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.brand img {
  flex: none;
  border: 1px solid var(--line);
  border-radius: .45rem;
}

.brand-description {
  display: block;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: normal;
}

.languages {
  display: flex;
  flex: none;
  gap: .15rem;
  padding: .2rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--panel);
}

.languages a {
  display: grid;
  min-width: 2.6rem;
  min-height: 2.3rem;
  place-items: center;
  border-radius: .32rem;
  color: var(--muted);
  font: 700 .875rem/1 var(--mono);
  text-decoration: none;
}

.languages a:hover { color: var(--text); }

.languages a[aria-current] {
  background: #263448;
  color: var(--gold);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 36rem;
  overflow: hidden;
  border: 1px solid #344653;
  border-radius: .9rem;
  background: #081522;
}

.hero-art,
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 49%;
}

@media (min-width: 901px) {
  .hero-art img {
    position: absolute;
    right: 0;
    width: auto;
    mask-image: linear-gradient(90deg, transparent, black 32%);
  }
}

.hero::after {
  content: "";
  background: linear-gradient(90deg, #071422ee 0%, #071422be 32%, #07142248 55%, transparent 74%);
}

.hero-content {
  width: min(100%, 39rem);
  padding: 3.6rem 1rem 3.6rem clamp(1.75rem, 5.1vw, 4.75rem);
}

.snowflake,
.footer-snowflake {
  color: var(--gold);
  font-family: "Segoe UI Symbol", sans-serif;
}

.snowflake {
  display: block;
  margin-bottom: .75rem;
  font-size: 2rem;
  line-height: 1;
}

h1, h2, h3, p { margin: 0; }

h1 {
  font-size: clamp(3.55rem, 6.35vw, 6.15rem);
  font-weight: 900;
  line-height: .99;
  letter-spacing: -.075em;
}

h1 span { color: var(--gold); }

.intro {
  max-width: 30rem;
  margin-top: 1.4rem;
  color: #ecf2fa;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.6;
}

.join {
  max-width: 32rem;
  margin-top: 1.7rem;
}

.server-card {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem;
  border: 1px solid #46546a;
  border-radius: .55rem;
  background: #101b2bf0;
  box-shadow: 0 6px 20px #02070e60;
}

.server-icon {
  display: grid;
  flex: none;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid #3e4d62;
  border-radius: .3rem;
  background: #203047;
  color: var(--gold);
}

.server-icon span {
  position: relative;
  width: 1rem;
  height: .85rem;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.server-icon span::before,
.server-icon span::after {
  position: absolute;
  left: 2px;
  width: 2px;
  height: 2px;
  background: currentColor;
  content: "";
}

.server-icon span::before { top: 2px; }
.server-icon span::after { bottom: 1px; }

.server-details {
  flex: 1;
  min-width: 0;
}

.server-label {
  display: block;
  margin-bottom: .27rem;
  color: var(--muted);
  font: 700 .78rem/1.1 var(--mono);
  letter-spacing: .045em;
  text-transform: uppercase;
}

.server-details code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font: 650 clamp(.93rem, 1.65vw, 1.15rem)/1.25 var(--mono);
  user-select: all;
}

.copy-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .55rem .8rem;
  border: 1px solid #ffe4a9;
  border-radius: .3rem;
  background: var(--gold);
  color: #211708;
  cursor: pointer;
  line-height: 1.1;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 800;
}

.copy-button:hover { background: #ffe3a5; }
.copy-button:focus-visible { outline-color: var(--text); }

.copy-icon {
  position: relative;
  display: block;
  flex: none;
  width: 1rem;
  height: 1rem;
}

.copy-icon::before,
.copy-icon::after {
  position: absolute;
  width: .65rem;
  height: .66rem;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  content: "";
}

.copy-icon::before { inset: 0 auto auto 0; }

.copy-icon::after {
  inset: auto 0 0 auto;
  background: var(--gold);
}

.copy-button:hover .copy-icon::after { background: #ffe3a5; }

.copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.copy-status[data-visible] {
  position: static;
  width: auto;
  height: auto;
  margin-top: .55rem;
  clip-path: none;
  color: var(--text);
  font-size: .9rem;
  white-space: normal;
}

.instructions {
  margin-block: 2.15rem 2.5rem;
}

.instructions h2 {
  margin-bottom: .8rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.035em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--panel);
}

.step-number {
  display: grid;
  flex: none;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid #4b463d;
  border-radius: .25rem;
  background: #2a2826;
  color: var(--gold);
  font: 700 .93rem/1 var(--mono);
}

.steps h3 {
  margin-bottom: .2rem;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.25;
}

.steps p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
}

.site-footer {
  min-height: 4.25rem;
  padding-block: .75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.footer-snowflake { margin-right: .2rem; }

@media (max-width: 900px) {
  .page-width { width: calc(100% - 3rem); }

  .hero {
    min-height: 32rem;
  }

  .hero-content { max-width: 31rem; }

  .hero::after {
    background: linear-gradient(90deg, #071422f0 0%, #071422bb 38%, #07142245 65%, transparent 85%);
  }
}

@media (max-width: 720px) {
  .page-width { width: calc(100% - 2rem); }
  .site-header { min-height: 4.55rem; }

  .hero {
    min-height: 0;
    padding-top: clamp(12.5rem, 53vw, 22rem);
  }

  .hero-art,
  .hero::after {
    bottom: auto;
    height: clamp(18rem, 68vw, 27.5rem);
  }

  .hero-art img { object-position: 68% 51%; }

  .hero::after {
    background: linear-gradient(180deg, transparent 43%, #081522 100%);
  }

  .hero-content {
    max-width: none;
    padding: 0 clamp(1rem, 5vw, 2rem) 1.8rem;
  }

  .snowflake { display: none; }

  h1 { font-size: clamp(2.75rem, 10.5vw, 4.85rem); }

  .intro { margin-top: .95rem; }
  .join { margin-top: 1.15rem; }

  .instructions { margin-block: 1.65rem 2rem; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .server-icon { display: none; }
}

@media (max-width: 460px) {
  .server-card {
    align-items: stretch;
    flex-direction: column;
    gap: .65rem;
    padding: .75rem;
  }
}

@media (max-width: 420px) {
  .hero { padding-top: clamp(13rem, 67vw, 16.5rem); }

  .hero-art,
  .hero::after { height: clamp(16rem, 82vw, 21rem); }

  .hero-art img { object-position: center top; }
}
