@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0c14;
  --bg-2: #0f1220;
  --panel: rgba(22, 26, 42, 0.78);
  --panel-solid: #161a2a;
  --panel-2: #1d2236;
  --line: #2a3048;
  --line-2: #3a4262;
  --text: #ece6d6;
  --muted: #a49f92;
  --gold: #d9b45a;
  --gold-2: #b68f37;
  --gold-soft: rgba(217, 180, 90, 0.12);
  --violet: #a294f7;
  --good: #7fc79a;
  --good-bg: #15291e;
  --bad: #f08a80;
  --bad-bg: #2e1718;
  --warn: #e7c26a;
  --warn-bg: #2b2414;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, Consolas, "SF Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  position: relative;
  overflow-x: hidden;
}

/* The night sky: three layers of stars drawn with gradients, plus a slow twinkle. */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
body::before {
  background:
    radial-gradient(1px 1px at 20px 30px, #fff8, transparent 60%),
    radial-gradient(1px 1px at 140px 90px, #fff6, transparent 60%),
    radial-gradient(1.5px 1.5px at 90px 160px, #ffe9b8aa, transparent 60%),
    radial-gradient(1px 1px at 200px 220px, #fff5, transparent 60%),
    radial-gradient(1px 1px at 260px 40px, #c9c2ff88, transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% -10%, #1f2448 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 100%, #181a33 0%, transparent 70%);
  background-size: 300px 260px, 300px 260px, 300px 260px, 300px 260px, 300px 260px, 100% 100%, 100% 100%;
}
body::after {
  background:
    radial-gradient(1.5px 1.5px at 60px 80px, #fffc, transparent 60%),
    radial-gradient(1px 1px at 330px 200px, #fff9, transparent 60%),
    radial-gradient(2px 2px at 420px 60px, #ffe6a8, transparent 60%),
    radial-gradient(1px 1px at 180px 330px, #fffa, transparent 60%);
  background-size: 480px 420px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.35; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; opacity: 0.7; }
  .feature, .link-card { transition: none; }
}

main { flex: 1; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: 68px; letter-spacing: 0.01em; }
h2 { font-size: 36px; }
h3 { font-size: 23px; }
p { margin: 0 0 12px; }
code { font: 15px var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.section { padding-top: 72px; }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 6px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: rgba(10, 12, 20, 0.82); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.top-inner { max-width: 1080px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand span { font: 500 26px/1 var(--serif); letter-spacing: 0.03em; }
.brand:hover { color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); border-bottom-color: var(--gold); }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.who img { width: 26px; height: 26px; border-radius: 50%; }

.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.on { color: var(--good); border-color: #2c5a3e; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.pill.on .dot, .dot.on { background: var(--good); box-shadow: 0 0 0 3px rgba(127, 199, 154, 0.18); }
.dot.off { background: var(--bad); }

/* hero */
.hero { text-align: center; padding: 80px 0 24px; }
.hero-mark { display: block; margin: 0 auto 18px; filter: drop-shadow(0 0 24px rgba(217, 180, 90, 0.35)); }
.hero h1 { background: linear-gradient(180deg, #fff6df 0%, #e2c27a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 auto 22px; }
.lede.left { margin: 0 0 8px; }
.status-line { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; color: var(--muted); min-height: 24px; margin-bottom: 18px; }
.address {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 10px 18px; margin-bottom: 8px;
}
.address-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.address code { font-size: 18px; color: var(--text); }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.heads { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.heads img { border-radius: 6px; image-rendering: pixelated; border: 1px solid var(--line); }

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.feature svg { width: 36px; height: 36px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px;
  padding: 6px; border-radius: 10px; background: var(--gold-soft); box-sizing: content-box; }
.feature p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ways li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; }
.ways strong { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.ways span { color: var(--muted); font-size: 15px; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.news.list { grid-template-columns: 1fr; }
.news-item { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.news-item p { color: var(--muted); margin: 0; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--line-2); border-radius: 16px; padding: 28px 32px;
  background: linear-gradient(120deg, rgba(217, 180, 90, 0.1), rgba(162, 148, 247, 0.08));
}
.band h2 { margin-bottom: 6px; }
.band p { margin: 0; }

/* inner pages */
.page-hero { padding-top: 56px; padding-bottom: 12px; }
.page-hero h1 { font-size: 56px; }
.sigil-hero h1 span { color: var(--violet); }
.rules { list-style: none; counter-reset: rule; margin: 16px 0 20px; padding: 0; display: grid; gap: 12px; }
.rules li { counter-increment: rule; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px 20px 76px; }
.rules li::before {
  content: counter(rule); position: absolute; left: 22px; top: 18px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font: 500 22px/1 var(--serif); color: var(--gold); border: 1px solid var(--gold-2); background: var(--gold-soft);
}
.rules h3 { margin-bottom: 4px; }
.rules p { margin: 0; color: var(--muted); }
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.person { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.person img { border-radius: 8px; image-rendering: pixelated; }
.person div { display: flex; flex-direction: column; }

/* cards (Sigil) */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.link-card { display: flex; flex-direction: column; color: var(--text); text-decoration: none; }

/* buttons and forms */
.button, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--sans); padding: 12px 20px; border-radius: 9px; cursor: pointer;
  background: var(--gold); color: #1a1408; border: 1px solid var(--gold); text-decoration: none;
}
.button:hover, button:hover { background: #e6c46e; color: #1a1408; }
button:disabled { opacity: 0.55; cursor: wait; }
.ghost, .button.ghost { background: rgba(255, 255, 255, 0.02); color: var(--text); border-color: var(--line-2); }
.ghost:hover, .button.ghost:hover { background: var(--panel-2); color: var(--text); }
.danger { background: #a3342c; border-color: #a3342c; color: #fff; }
.danger:hover { background: #bd3d34; color: #fff; }
button.small, .button.small { padding: 8px 14px; font-size: 14px; }
.discord, .button.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.discord:hover, .button.discord:hover { background: #6d78f4; color: #fff; }

label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input {
  width: 100%; max-width: 360px; font: 16px var(--sans); color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
input:focus { border-color: var(--gold-2); outline: none; }
.field { display: flex; max-width: 360px; }
.field span { padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; font-family: var(--mono); }
.field input { border-radius: 0 8px 8px 0; }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
form button[type="submit"] { margin-top: 16px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.row h2 { margin: 0 8px 0 0; }

.msg { padding: 10px 14px; border-radius: 8px; margin: 12px 0; font-size: 15px; }
.msg.good { background: var(--good-bg); color: var(--good); }
.msg.bad { background: var(--bad-bg); color: var(--bad); }
.msg.warn { background: var(--warn-bg); color: var(--warn); }
.tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); }
.tag.active { background: var(--good-bg); color: var(--good); }
.tag.locked { background: var(--warn-bg); color: var(--warn); }
.tag.disabled, .tag.migrated { background: var(--bad-bg); color: var(--bad); }
.code { font: 600 30px var(--mono); letter-spacing: 0.12em; color: var(--gold); background: var(--bg-2); border: 1px dashed var(--gold-2); border-radius: 8px; padding: 12px 18px; display: inline-block; }
.addr { font-family: var(--mono); color: var(--text); background: var(--bg-2); padding: 1px 6px; border-radius: 4px; }

details { border-top: 1px solid var(--line); padding: 10px 0; }
details:last-child { padding-bottom: 0; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; padding: 28px 24px; margin-top: 80px; background: rgba(10, 12, 20, 0.6); }
.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 14px; font-size: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--gold); }

@media (max-width: 760px) {
  h1 { font-size: 50px; }
  h2 { font-size: 30px; }
  .page-hero h1 { font-size: 44px; }
  .wrap, .top-inner { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 48px; }
  .section { padding-top: 52px; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .features, .news { grid-template-columns: 1fr; }
  .band { padding: 22px; }
  .rules li { padding-left: 66px; }
  .rules li::before { left: 16px; }
  .code { font-size: 24px; }
}
