:root {
  color-scheme: dark;
  --bg: #141311;
  --card: #1e1c18;
  --border: #39342b;
  --gold: #e7ba69;
  --gold-light: #f1d7a4;
  --text: #f2eee5;
  --muted: #b6ad9e;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 system-ui, sans-serif;
}
html { scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@scope (#wiki) {
h1, h2, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-header {
  border-bottom: 1px solid var(--border);
}
.header-inner, nav {
  display: flex;
  align-items: center;
}
.header-inner {
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 70px;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-decoration: none;
}
.brand span { color: var(--gold); font-size: .875rem; }
nav { flex-wrap: wrap; gap: 8px clamp(12px, 2.5vw, 28px); }
nav a {
  padding-block: 8px;
  color: var(--muted);
  font-size: .875rem;
  text-decoration: none;
}
nav a:hover { color: var(--gold-light); }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--gold);
  color: #20180d;
  font: 700 .875rem/1.25 system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.action:hover { background: var(--gold-light); color: #20180d; }

main { padding-block: 26px 48px; }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 382px;
  overflow: hidden;
  padding: clamp(22px, 5vw, 58px);
  border: 1px solid #463b2b;
  border-radius: 14px;
  background: linear-gradient(110deg, #231e17, #32281b);
}
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 49%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  mask-image: linear-gradient(90deg, transparent, #000 28%);
}
.hero-copy { max-width: min(58%, 575px); }
.eyebrow {
  color: var(--gold);
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  margin-block: 13px 17px;
  font-size: clamp(2rem, 4.9vw, 3.8rem);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -.04em;
}
h1 em { color: var(--gold-light); font-style: normal; }
.intro { max-width: 39ch; color: var(--muted); font-size: 1.0625rem; }

.topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-block: 18px 16px;
}
.panel {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}
.panel:target { border-color: var(--gold); }
h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}
.panel p { margin-top: 9px; color: var(--muted); }
.panel strong { color: var(--text); }
.join {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(205px, 27%);
  align-items: center;
  gap: 20px 36px;
}
.server {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #51422c;
  border-radius: 8px;
  background: #181612;
}
.server label { color: var(--muted); font-size: .875rem; }
.server input {
  width: 100%;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font: 1rem/1.4 ui-monospace, Consolas, monospace;
}
.copy-status { color: var(--gold-light); font-size: .875rem; }
.copy-status:empty { display: none; }
.shop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 16px;
}

@media (max-width: 700px) {
  .hero { align-items: end; padding-top: clamp(180px, 54vw, 305px); }
  .hero-art {
    inset: 0 0 auto;
    width: 100%;
    height: clamp(205px, 65vw, 365px);
    object-position: center 36%;
    mask-image: linear-gradient(#000 55%, transparent);
  }
  .hero-copy { max-width: 100%; }
  .topics, .join { grid-template-columns: 1fr; }
  .server { justify-self: start; width: min(100%, 310px); }
}
@media (max-width: 460px) {
  .header-inner { flex-wrap: wrap; }
  nav { width: 100%; }
  nav .action { margin-left: auto; }
}
}
