/* ==================================================================
   TOKENS
================================================================== */
:root {
  --bg: #14120f;
  --bg-raised: #1c1914;
  --bg-raised-2: #221e17;
  --bg-card: #1a1712;

  --ink: #ede6d6;
  --ink-dim: #a69c87;
  --ink-faint: #6b6353;

  --accent: #7c9473;        /* moss / status green */
  --accent-soft: #7c947333;
  --accent-warm: #c97b4a;   /* ember / amber */
  --accent-warm-soft: #c97b4a26;

  --line: #322d24;
  --line-soft: #26221b;

  --radius: 10px;
  --radius-sm: 6px;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1120px;
  --max-narrow: 760px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================================================================
   RESET
================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle, rgba(237, 230, 214, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-warm);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.mono { font-family: var(--font-mono); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--narrow { max-width: var(--max-narrow); }

/* ==================================================================
   STATUS DOT — the site's recurring signature element
================================================================== */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot--active {
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(124, 148, 115, 0.5);
  animation: pulse-ring 2.4s var(--ease) infinite;
}
.status-dot--inactive {
  background: var(--ink-faint);
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(124, 148, 115, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(124, 148, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 148, 115, 0); }
}

/* ==================================================================
   EYEBROW / SECTION HEADS
================================================================== */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent-warm);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 18ch;
}
.section__meta {
  color: var(--ink-dim);
  font-size: 13px;
  margin-top: -12px;
  margin-bottom: 28px;
}

/* ==================================================================
   NAV
================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 18, 15, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin-right: auto;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-dim);
}
.nav-links a { transition: color 0.15s var(--ease); }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 720px) {
  .nav-links { display: flex; }
}

/* ==================================================================
   BUTTONS
================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease),
    background-color 0.15s var(--ease), color 0.15s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent-warm);
  color: #1a1108;
}
.btn--primary:hover { background: #d98c5c; }

.btn--secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--secondary:hover { border-color: var(--accent-warm); color: var(--accent-warm); }

.btn--small { padding: 8px 14px; font-size: 13px; }
.btn--lg { padding: 14px 26px; font-size: 15px; }
.btn--block { width: 100%; }

/* ==================================================================
   HERO
================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 90px;
}
.hero__glow {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(201, 123, 74, 0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__title {
  font-size: clamp(3rem, 2.2rem + 5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.hero__subtitle {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--ink);
  max-width: 34ch;
  margin-bottom: 6px;
}
.hero__subtitle--dim { color: var(--ink-dim); margin-bottom: 0; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 36px 0 22px;
}
.hero__ts-link {
  display: inline-block;
  color: var(--ink-faint);
  font-size: 14px;
  transition: color 0.15s var(--ease);
}
.hero__ts-link:hover { color: var(--ink-dim); }
.hero__ts-link .mono { color: var(--ink-dim); }

/* ==================================================================
   SECTIONS (generic)
================================================================== */
.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line-soft);
}
.section--raised { background: var(--bg-raised); }

.lede {
  font-size: 1.1rem;
  color: var(--ink);
  max-width: 60ch;
}
.lede--narrow { max-width: 40ch; margin-bottom: 26px; }

/* ==================================================================
   ABOUT
================================================================== */
.about__grid {
  display: grid;
  gap: 28px;
}
.about__side { display: flex; flex-direction: column; gap: 16px; color: var(--ink-dim); }
@media (min-width: 800px) {
  .about__grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

/* ==================================================================
   CARDS (shared)
================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.card:hover { border-color: var(--accent-soft); transform: translateY(-2px); }

/* ==================================================================
   PLATFORMS
================================================================== */
.platform-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) {
  .platform-grid { grid-template-columns: 1fr 1fr; }
}
.platform-card { display: flex; flex-direction: column; }
.platform-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.platform-card__head h3 { font-size: 1.3rem; }
.platform-card__tag { color: var(--ink-dim); margin-bottom: 18px; }
.platform-card__body { color: var(--ink-dim); margin-bottom: 18px; }
.platform-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--ink-dim);
  font-size: 14px;
}
.platform-card__list li { padding-left: 16px; position: relative; }
.platform-card__list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-warm);
}
.platform-card__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.address {
  color: var(--ink-dim);
  font-size: 14px;
  letter-spacing: 0.01em;
}
.address--lg { font-size: 18px; color: var(--ink); margin: 6px 0 18px; }

/* ==================================================================
   SERVERS
================================================================== */
.server-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}
@media (min-width: 720px) {
  .server-grid { grid-template-columns: repeat(3, 1fr); }
}
.server-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.server-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.server-card__head h3 { font-size: 1.05rem; font-weight: 600; }
.server-card__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: rgba(124, 148, 115, 0.08);
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
}
.server-card__game { color: var(--ink-faint); font-size: 13px; font-family: var(--font-mono); }
.server-card__desc { color: var(--ink-dim); font-size: 14px; flex-grow: 1; }
.server-card__whitelist {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.server-note {
  color: var(--ink-faint);
  font-size: 14px;
  max-width: 52ch;
  margin-bottom: 34px;
}

.archived-servers { display: grid; gap: 14px; }
.archived-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.archived-card__body { display: flex; flex-direction: column; gap: 2px; }
.archived-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.archived-card__desc { color: var(--ink-faint); font-size: 13px; }
.archived-card__status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ==================================================================
   TAG CLOUD (other games / events)
================================================================== */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-cloud li {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--ink-dim);
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.tag-cloud li:hover { border-color: var(--accent-warm); color: var(--ink); }

/* ==================================================================
   ORIGIN
================================================================== */
#origin p { color: var(--ink-dim); margin-bottom: 16px; max-width: 58ch; }
.pull-quote {
  margin: 30px 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--accent-warm);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  color: var(--ink);
  font-weight: 600;
}

/* ==================================================================
   PHILOSOPHY
================================================================== */
.prompt-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.prompt-list li {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink-dim);
  padding-left: 26px;
  position: relative;
}
.prompt-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ==================================================================
   CTA / JOIN
================================================================== */
.cta { border-bottom: none; text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__title {
  font-size: clamp(2.2rem, 1.8rem + 2vw, 3.4rem);
  margin-bottom: 14px;
}
.cta .lede { margin-bottom: 46px; }
.cta__grid {
  display: grid;
  gap: 20px;
  width: 100%;
}
@media (min-width: 640px) {
  .cta__grid { grid-template-columns: 1fr 1fr; }
}
.cta__block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.cta__label {
  color: var(--accent-warm);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ==================================================================
   FOOTER
================================================================== */
.site-footer { padding: 48px 0; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.footer__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.footer__host { color: var(--ink-faint); font-size: 13px; margin-top: 2px; }
.footer__links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-dim);
}
.footer__links a { transition: color 0.15s var(--ease); }
.footer__links a:hover { color: var(--ink); }
.footer__copy { color: var(--ink-faint); font-size: 12px; }

/* ==================================================================
   TOAST (copy feedback)
================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 200;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
