:root {
  color-scheme: dark;
  --background: #0d0d0d;
  --text: #e5e4df;
  --muted: #999994;
  --accent: #e46153;
  --line: #363632;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, p { margin: 0; }
button { font: inherit; }
a { color: inherit; }
button, a, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--background); }

.page { width: min(52rem, calc(100% - 3rem)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: .5rem .75rem;
  background: var(--text);
  color: var(--background);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

main { flex: 1; padding-top: clamp(3.5rem, 12vh, 8rem); padding-bottom: 4rem; }

.server-header h1 {
  font-size: clamp(2.5rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.075em;
  overflow-wrap: anywhere;
}

.server-type { margin-top: 1.2rem; color: var(--muted); font-size: 1rem; }

.connection { width: min(100%, 36rem); margin-top: 3rem; }

.copy-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  min-height: 68px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.copy-button:hover { background: #181817; border-color: #777770; border-left-color: var(--accent); }
.copy-button:active { background: #252522; }

.address { min-width: 0; font-size: clamp(1rem, 3.5vw, 1.4rem); overflow-wrap: anywhere; }
.copy-label { flex: 0 0 auto; min-width: 7ch; font-size: .875rem; color: var(--muted); text-align: right; }
.copy-button:hover .copy-label { color: var(--text); }

.copy-status {
  min-height: 1.6em;
  margin-top: .65rem;
  color: var(--muted);
  font-size: .875rem;
  overflow-wrap: anywhere;
  opacity: 0;
}
.copy-status.is-visible { opacity: 1; }

.discord-link { display: inline-flex; align-items: center; min-height: 52px; color: var(--accent); font-size: 1.5rem; font-weight: 700; text-underline-offset: .3em; }
.discord-link:hover { color: var(--text); }

.rule { margin-top: 1.5rem; }
.rule h2 { color: var(--muted); font-size: 1rem; font-weight: 400; }
.rule p { margin-top: .25rem; font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 700; }

.join { width: min(100%, 36rem); margin-top: 2.75rem; border-top: 1px solid var(--line); }
.join summary { width: fit-content; min-height: 44px; padding-top: 1rem; cursor: pointer; color: var(--muted); font-size: .875rem; }
.join summary:hover, .join[open] summary { color: var(--text); }
.join summary::marker { color: var(--accent); }
.join ol { padding-left: 1.6rem; margin: 1rem 0 0; font-size: .9375rem; color: var(--muted); }
.join li { padding-left: .25rem; margin-block: .5rem; overflow-wrap: anywhere; }
.join strong { color: var(--text); font-weight: 400; }

.site-footer { padding-block: 1.75rem; border-top: 1px solid var(--line); color: #8b8b86; font-size: .75rem; }

@media (max-width: 480px) {
  .page { width: calc(100% - 2.5rem); }
  main { padding-top: 4rem; padding-bottom: 3rem; }
  .server-type { max-width: 20rem; font-size: .9375rem; }
  .connection { margin-top: 2.25rem; }
  .copy-button { gap: .65rem; padding: 1rem .75rem; }
  .address { font-size: 1rem; }
  .copy-label { font-size: .875rem; }
  .join { margin-top: 2.25rem; }
}

@media (max-width: 360px) {
  .copy-button { flex-wrap: wrap; }
  .copy-label { margin-left: auto; }
}
