:root {
  --ink: #06101c;
  --ink-2: #0b1a2e;
  --ink-3: #12253d;
  --gold: #d4af37;
  --gold-2: #f0d78c;
  --teal: #2ee6c8;
  --teal-dim: #1a8f80;
  --cream: #f3ead7;
  --paper: #f7f1e4;
  --mute: #8ea0b5;
  --line: rgba(212, 175, 55, 0.22);
  --glass: rgba(11, 26, 46, 0.72);
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --font-display: "Unbounded", "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--cream);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(46, 230, 200, 0.08), transparent 50%),
    radial-gradient(900px 500px at -10% 20%, rgba(212, 175, 55, 0.09), transparent 45%),
    linear-gradient(180deg, #050b14 0%, #08131f 40%, #06101c 100%);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  z-index: 0;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--gold-2); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(6, 16, 28, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}
.site-nav.is-solid {
  background: rgba(6, 16, 28, 0.88);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}
.brand:hover { color: var(--gold-2); }
.brand img, .brand svg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(212,175,55,0.35);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 14px;
}
.brand-tag {
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a, .nav-links button.nav-text {
  color: var(--cream);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-links a:hover, .nav-links button.nav-text:hover,
.nav-links a.is-active {
  color: var(--ink);
  background: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 10px;
  padding: 8px 10px;
}

.btn, .btn-ghost, .btn-gold, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.btn-gold {
  background: linear-gradient(180deg, #f0d78c, #d4af37);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(212,175,55,0.25);
}
.btn-gold:hover { color: var(--ink); filter: brightness(1.05); }
.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
  background: rgba(255,255,255,0.03);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-danger {
  background: transparent;
  border-color: rgba(255,107,107,0.45);
  color: var(--danger);
}

.hero {
  position: relative;
  padding: 48px 0 28px;
  z-index: 1;
}
.hero-card { padding-top: 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.postcard {
  position: relative;
  margin: 0 auto;
  width: min(1080px, 100%);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(240, 215, 140, 0.35);
  box-shadow:
    0 0 0 8px rgba(6, 16, 28, 0.55),
    0 28px 80px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(212, 175, 55, 0.12);
  transform: perspective(1400px) rotateX(4deg);
}
.postcard img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 42%;
}
.postcard-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 56px 40px 32px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 11, 20, 0.55) 28%, rgba(5, 11, 20, 0.92) 100%);
  text-align: center;
}
.postcard-kicker {
  margin: 0 0 8px;
  color: var(--gold-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.postcard-copy h1 {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 52px);
  overflow-wrap: normal;
}
.postcard-from {
  margin: 10px 0 0;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
}
.postcard-actions {
  justify-content: center;
  margin-top: 22px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}
h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--cream);
}
.display {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.display em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold-2), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 18px;
  color: #e8eef6;
  max-width: 48ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.day-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18,37,61,0.85), rgba(6,16,28,0.9));
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.day-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 30%;
  height: 180px;
  background: radial-gradient(circle, rgba(46,230,200,0.18), transparent 65%);
}
.day-num {
  font-family: var(--font-display);
  font-size: clamp(88px, 14vw, 148px);
  line-height: 0.8;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(212,175,55,0.25);
}
.day-meta {
  margin-top: 18px;
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 13px;
}
.day-meta strong { color: var(--cream); font-weight: 600; }

.ticker {
  margin: 36px 0 8px;
  border-block: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  background: rgba(212,175,55,0.05);
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  padding: 12px 0;
  animation: ticker 36s linear infinite;
  color: var(--gold-2);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section { padding: 56px 0; position: relative; z-index: 1; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head p { color: var(--mute); margin: 8px 0 0; }

.cards, .mods, .people, .split {
  display: grid;
  gap: 18px;
}
.cards { grid-template-columns: repeat(2, 1fr); }
.mods { grid-template-columns: repeat(3, 1fr); }
.people { grid-template-columns: repeat(3, 1fr); }

.card, .mod, .person, .panel {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.card:hover, .mod:hover, .person:hover {
  border-color: rgba(212,175,55,0.35);
  transform: translateY(-3px);
  transition: 0.2s ease;
}
.card h3, .mod h3, .person h3 { font-size: 22px; }
.meta {
  color: var(--mute);
  font-size: 13px;
  font-family: var(--font-mono);
}
.mod-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: rgba(46,230,200,0.1);
  color: var(--teal);
  font-family: var(--font-mono);
  font-weight: 700;
}
.mod.soon { opacity: 0.72; }
.badge, .chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  color: var(--gold-2);
  background: rgba(212,175,55,0.08);
}
.chip { color: var(--teal); border-color: rgba(46,230,200,0.25); background: rgba(46,230,200,0.08); }

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #1a334f, #0b1a2e);
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-family: var(--font-display);
  font-weight: 800;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-top { display: flex; gap: 14px; align-items: center; }

.page-hero { padding: 36px 0 10px; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); overflow-wrap: normal; }

.article {
  max-width: 760px;
  margin-inline: auto;
}
.article-body {
  font-size: 18px;
  color: #e7edf5;
}
.article-body h1, .article-body h2, .article-body h3 { margin-top: 1.4em; }
.article-body pre, .article-body code {
  font-family: var(--font-mono);
  background: #081018;
  border-radius: 8px;
}
.article-body pre { padding: 16px; overflow: auto; border: 1px solid var(--line); }
.article-body code { padding: 0.1em 0.35em; }
.article-body pre code { padding: 0; background: none; }

.form-grid { display: grid; gap: 16px; }
.field-input, .field-check {
  width: 100%;
}
label { display: block; margin-bottom: 8px; color: var(--gold-2); font-size: 13px; letter-spacing: 0.04em; }
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
select,
textarea,
.field-input {
  background: rgba(5, 11, 20, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--cream);
  border-radius: 14px;
  padding: 12px 14px;
  width: 100%;
}
input:focus, select:focus, textarea:focus, .field-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
textarea.field-input { resize: vertical; min-height: 140px; }
.help { color: var(--mute); font-size: 13px; }
.errorlist { color: var(--danger); padding-left: 18px; }

.messages { list-style: none; padding: 0; }
.messages li {
  border: 1px solid rgba(46,230,200,0.3);
  background: rgba(46,230,200,0.08);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 12px 0;
}

.split { grid-template-columns: 1.2fr 0.8fr; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.stat {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold-2);
}

.login-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 40px 0 80px;
}
.login-card {
  width: min(460px, 100%);
  text-align: center;
}
.login-card .brand { justify-content: center; margin-bottom: 12px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--mute);
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: 0.55s ease var(--delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

.empty {
  color: var(--mute);
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 18px;
}

@media (max-width: 900px) {
  .hero-grid, .cards, .mods, .people, .split, .stats { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    inset: 76px 16px auto;
    flex-direction: column;
    padding: 12px;
    background: rgba(6,16,28,0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .nav-links.is-open { display: flex; }
  .section-head { flex-direction: column; align-items: start; }
  .postcard { transform: none; border-radius: 20px; }
  .postcard-copy { padding: 40px 18px 22px; }
}
