:root {
  color-scheme: light;
  --page:        #f9f9f7;
  --surface:     #fcfcfb;
  --text-1:      #0b0b0b;
  --text-2:      #52514e;
  --text-muted:  #898781;
  --gridline:    #e1e0d9;
  --baseline:    #c3c2b7;
  --border:      rgba(11,11,11,0.10);
  --accent:      #f1568e;
  --accent-wash: rgba(241,86,142,0.10);
  --good:        #006300;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page:        #0d0d0d;
    --surface:     #1a1a19;
    --text-1:      #ffffff;
    --text-2:      #c3c2b7;
    --text-muted:  #898781;
    --gridline:    #2c2c2a;
    --baseline:    #383835;
    --border:      rgba(255,255,255,0.10);
    --accent:      #f7a8c6;
    --accent-wash: rgba(247,168,198,0.16);
    --good:        #0ca30c;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--page);
  color: var(--text-1);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

/* Migration alert banner: full-bleed, loud on purpose, above everything else. */
.alert-banner {
  background: var(--accent);
  border-bottom: 1px solid var(--border);
}
.alert-banner.success {
  background: var(--good);
}
.alert-banner-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alert-icon {
  font-size: 18px;
  line-height: 1.4;
  flex-shrink: 0;
}
.alert-banner p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #1a0d13;
}
.alert-banner.success p {
  color: #ffffff;
}
@media (max-width: 620px) {
  .alert-banner-inner { padding: 12px 16px; gap: 10px; }
  .alert-banner p { font-size: 14px; }
}
.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

header.hero {
  margin-bottom: 48px;
}
header.hero .kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
}
header.hero h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
header.hero p {
  font-size: 17px;
  color: var(--text-2);
  margin: 0;
}

/* Terminal branding widget — fixed dark palette, not theme-aware on purpose. */
.terminal-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 32px;
}
.terminal {
  width: 214px;
  background: #16141a;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(247,168,198,0.2);
  font-family: "JetBrains Mono", monospace;
}
.terminal-bar {
  height: 39px;
  background: #211d25;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 15px;
  position: relative;
}
.terminal-bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.terminal-bar .dot-1 { background: #f1568e; }
.terminal-bar .dot-2 { background: #f7a8c6; }
.terminal-bar .dot-3 { background: #5c5860; }
.terminal-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
  color: #6f6a72;
  letter-spacing: 0.04em;
}
.terminal-body {
  padding: 18px 17px 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.terminal-prompt {
  font-size: 15px;
  color: #8a8590;
  white-space: nowrap;
}
.terminal-prompt .t-user { color: #f1568e; }
.terminal-prompt .t-path { color: #f7a8c6; }
.terminal-prompt .t-dim { color: #6f6a72; }
.terminal-cmd {
  font-size: 17px;
  font-weight: 700;
  color: #f6f2ef;
  white-space: nowrap;
}
.terminal-cmd .t-caret {
  color: #f1568e;
  margin-right: 6px;
}
.terminal-cmd .cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: #f1568e;
  margin-left: 6px;
  vertical-align: -3px;
  animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .terminal-cmd .cursor { animation: none; }
}

section { margin-bottom: 56px; }
section h2 {
  font-size: 22px;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
section > p.lead {
  color: var(--text-2);
  margin: -8px 0 20px;
  max-width: 62ch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 620px) {
  .news-grid { grid-template-columns: 1fr; }
}
.news-card-highlight {
  background: var(--accent-wash);
  border-color: var(--accent);
}
.news-card-highlight .tag {
  background: var(--accent);
  color: #fff;
}
.news-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-wash);
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.news-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.news-card p {
  color: var(--text-2);
  margin: 0;
  font-size: 15px;
}
.news-card .when {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.jersey {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-wash);
  padding: 3px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Upgrades */
ul.upgrades {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ul.upgrades li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--gridline);
}
ul.upgrades li:first-child { border-top: none; padding-top: 0; }
ul.upgrades .item-info { min-width: 0; }
ul.upgrades .item-name {
  font-size: 15px;
  color: var(--text-1);
}
ul.upgrades .item-desc {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 3px;
}
ul.upgrades .item-cost {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-2);
}
.budget-total {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-weight: 600;
}

/* Support */
.support-card p { color: var(--text-2); margin: 0 0 20px; max-width: 60ch; }
.progress { margin: 0 0 20px; }
.progress-track {
  height: 8px;
  background: var(--gridline);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.progress-value {
  font-weight: 600;
  color: var(--text-1);
}
.support-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-1);
  background: var(--page);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.support-note {
  margin-top: 14px !important;
  font-size: 13px !important;
  color: var(--text-muted) !important;
}

footer {
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--gridline);
  padding-top: 20px;
}
