:root {
  --ink: #1c1a17;
  --paper: #fbf8f3;
  --paper-alt: #f1ece3;
  --brand: #c0432b;
  --brand-dark: #8f2f1e;
  --green: #2f5233;
  --line: #e4dccc;
  --muted: #6b6862;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
p { margin: 0 0 14px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: 'JetBrains Mono', monospace; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 11px; height: 11px; border-radius: 2px;
  background: var(--brand);
  display: inline-block;
}
nav.main-nav { display: flex; gap: 26px; flex: 1; justify-content: center; }
nav.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover { color: var(--ink); text-decoration: none; }
nav.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.header-cta { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); text-decoration: none; }
.btn.small { padding: 5px 10px; font-size: 0.8rem; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 1.1rem; padding: 6px 10px; cursor: pointer;
}

@media (max-width: 820px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 12px 24px 18px;
    gap: 14px;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-ghost { display: none; }
}

/* Hero */
.hero { border-bottom: 1px solid var(--line); background: var(--paper-alt); }
.hero-inner { max-width: 760px; margin: 0 auto; padding: 72px 24px 56px; text-align: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 0.85rem; font-weight: 600; margin-bottom: 22px;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.ip-display { font-size: 0.95rem; color: var(--muted); }

/* Sections */
.section { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.section.alt { background: var(--paper-alt); max-width: none; }
.section.alt > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.section.wide { max-width: 1160px; }
.link-arrow { font-weight: 600; }

.update-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.update-list li { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tag { background: var(--brand); color: #fff; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 4px; flex-shrink: 0; }

/* Rules / steps lists */
.rules-list, .steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: item; display: flex; flex-direction: column; gap: 22px; }
.rules-list li, .steps li { position: relative; padding-left: 44px; counter-increment: item; }
.rules-list li::before, .steps li::before {
  content: counter(item);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
}

.callout { background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 28px; }

/* Rank / store cards */
.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.rank-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; }
.rank-card.featured { border: 2px solid var(--brand); position: relative; }
.rank-card .price { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.rank-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.rank-card ul li { padding-left: 18px; position: relative; font-size: 0.92rem; color: var(--ink); }
.rank-card ul li::before { content: "+"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

@media (max-width: 820px) {
  .rank-grid { grid-template-columns: 1fr; }
}

/* Plugin grid */
.plugin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.plugin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.plugin-card h3 { color: var(--brand-dark); }
@media (max-width: 700px) { .plugin-grid { grid-template-columns: 1fr; } }

/* Team */
.team-card { display: flex; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 28px; align-items: flex-start; }
.avatar-placeholder { width: 64px; height: 64px; border-radius: var(--radius); background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.5rem; flex-shrink: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-alt); margin-top: 0; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 48px 24px 28px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--ink); font-size: 0.92rem; }
.footer-bottom { max-width: 1160px; margin: 0 auto; padding: 0 24px 28px; border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
