/* ── Brand tokens ─────────────────────────────────────────────────── */
:root {
  --brand:              #697B4B;
  --brand-soft:         rgba(105, 123, 75, 0.10);
  --brand-glow:         rgba(105, 123, 75, 0.05);
  --brand-border:       rgba(105, 123, 75, 0.22);
  --brand-border-hover: rgba(105, 123, 75, 0.48);
  --brand-soft-hover:   rgba(105, 123, 75, 0.16);
  --font-display:       'Uncial Antiqua', Georgia, serif;
  --hero-scale:         0.85; /* Uncial Antiqua renders large at equal rem */
  --font-body:          'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:          'JetBrains Mono', ui-monospace, monospace;
}
[data-theme="dark"] {
  --surface:   #141414;
  --surface-1: #1a1a1a;
  --surface-2: #202020;
  --surface-3: #262626;
  --surface-4: #2e2e2e;
  --border:    #262626;
  --border-mid:#333333;
  --hero-dot-color: rgba(255, 255, 255, 0.07);
  --ink-ghost: #8A8A8A;
  --ink-mute:  #999999;
}
[data-theme="light"] {
  --surface:   #e7ecec;
  --surface-1: #eef1f1;
  --surface-2: #e3e8e8;
  --surface-3: #d8dede;
  --surface-4: #cdd4d4;
  --border:    #d0d8d8;
  --border-mid:#c4cccc;
  --hero-dot-color: oklch(25.42% 0.004 182 / 0.12);
}

/* ── Hero dot grid (matches jolkr.app landing) ─────────────────────── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, var(--hero-dot-color) 1.5px, transparent 1.5px),
    radial-gradient(circle, var(--hero-dot-color) 1.5px, transparent 1.5px);
  background-size: 28px 48px;
  background-position: 0 0, 14px 24px;
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 0%, black 0%, transparent 88%);
  mask-image: radial-gradient(ellipse 100% 90% at 50% 0%, black 0%, transparent 88%);
}
.hero > .wrap {
  position: relative;
  z-index: 1;
}
/* Keep the hint above the ::before dot grid without overriding the
   global absolute positioning that anchors it to the hero's bottom */
.hero > .hero-scroll-hint { z-index: 1; }
.hero-bg-svg { z-index: 1; }

/* ── Hero background glyph (Uncial Antiqua looks wrong italic) ──────── */

/* ── Hero overrides ────────────────────────────────────────────────── */

/* ── Tab layout demo ─────────────────────────────────────────────── */
.layout-demo {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  margin: 2.5rem 0;
  background: var(--surface-1);
}
.layout-demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.layout-demo-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.layout-demo-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--brand);
  letter-spacing: 0.06em;
}
.layout-demo-inner {
  padding: 1.75rem 1.5rem;
}

/* Discord-style sidebar preview */
.discord-preview {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-mid);
  border-radius: 0.625rem;
  overflow: hidden;
  height: 160px;
}
.discord-rail {
  width: 52px;
  background: #111111;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 6px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.discord-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-3);
  flex-shrink: 0;
  transition: border-radius 0.15s;
}
.discord-dot.active { border-radius: 10px; background: var(--brand-soft); border: 1px solid var(--brand-border); }
.discord-dot.small  { width: 24px; height: 24px; opacity: 0.4; }
.discord-spacer { width: 24px; height: 1px; background: var(--border); margin: 2px 0; }
.discord-content { flex: 1; background: var(--surface-1); display: flex; align-items: center; justify-content: center; }
.discord-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  text-align: center;
}

/* Jolkr-style tab bar preview */
.jolkr-preview {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-mid);
  border-radius: 0.625rem;
  overflow: hidden;
  height: 160px;
}
.jolkr-tabstrip {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  background: #111111;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
}
.jolkr-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--surface-3);
  white-space: nowrap;
}
.jolkr-tab.active { background: var(--brand-soft); border: 1px solid var(--brand-border); }
.jolkr-tab-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--surface-4); flex-shrink: 0; }
.jolkr-tab.active .jolkr-tab-dot { background: var(--brand); opacity: 0.5; }
.jolkr-tab-name {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--ink-ghost);
  letter-spacing: 0.04em;
}
.jolkr-tab.active .jolkr-tab-name { color: var(--brand); }
.jolkr-content { flex: 1; background: var(--surface-1); display: flex; align-items: center; justify-content: center; }

.layout-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.layout-compare-item {}
.layout-compare-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  margin-bottom: 0.625rem;
}
.layout-compare-label.highlight { color: var(--brand); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .wrap, .wrap-wide { padding: 0 1.25rem; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .compare-cell.head:first-child,
  .compare-cell.feature { grid-column: 1 / -1; border-bottom: 1px solid var(--border); }
  .stack-grid { grid-template-columns: 1fr; }
  .layout-compare { grid-template-columns: 1fr; }
}
