:root {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-raised: #202020;
  --text-primary: #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted: #898781;
  --hairline: #2c2c2a;
  --border: rgba(255, 255, 255, 0.10);
  --good: #0ca30c;
  --critical: #d03b3b;
  --accent: #0ca30c;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--page);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

header.site-header {
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--hairline);
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand .accent {
  color: var(--good);
}

.subtitle {
  color: var(--text-muted);
  font-size: 13px;
}

/* Hero */

.hero {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--hairline);
}

.hero .eyebrow {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.hero .figure {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  font-variant-numeric: normal;
}

.hero .delta-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
}

.hero .delta-row .period {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 14px;
}

.delta.good { color: var(--good); }
.delta.critical { color: var(--critical); }
.delta.flat { color: var(--text-secondary); }

/* Chart */

.chart-card {
  margin-top: 24px;
}

.chart-card svg {
  width: 100%;
  height: 160px;
  display: block;
  overflow: visible;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  transform: translate(-50%, -110%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.chart-tooltip .value {
  font-weight: 700;
  color: var(--text-primary);
}

.chart-tooltip .date {
  color: var(--text-muted);
  font-size: 11px;
}

.chart-wrap {
  position: relative;
}

/* Stat row */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 24px;
}

.stat-tile {
  background: var(--surface);
  padding: 16px;
}

.stat-tile .label {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0 0 4px;
}

.stat-tile .value {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

/* Holdings */

.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 40px 0 12px;
}

.holdings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.holdings-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
}

.holdings-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-variant-numeric: tabular-nums;
}

.holdings-table td.ticker {
  font-weight: 700;
  font-variant-numeric: normal;
}

.holdings-table th:not(:first-child),
.holdings-table td:not(:first-child) {
  text-align: right;
}

.empty-state {
  color: var(--text-muted);
  font-size: 14px;
  padding: 24px 0;
}

/* Pending trades */

.pending-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}

.pending-card .pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: var(--surface-raised);
  border-radius: 999px;
  padding: 3px 8px;
  margin-bottom: 8px;
}

/* Feed / posts */

.feed {
  margin-top: 8px;
}

.post {
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}

.post:last-child {
  border-bottom: none;
}

.post-date {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
}

.trade-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
}

.trade-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}

.trade-badge.buy { background: rgba(12, 163, 12, 0.15); color: var(--good); }
.trade-badge.sell { background: rgba(208, 59, 59, 0.15); color: var(--critical); }
.trade-badge.hold { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }

.trade-main {
  flex: 1;
  min-width: 0;
}

.trade-headline {
  font-weight: 700;
  font-size: 15px;
}

.trade-headline .muted {
  color: var(--text-muted);
  font-weight: 400;
}

.trade-reasoning {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

.lessons-box {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.lessons-box .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.lessons-box .lesson {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 4px 0;
}

.lessons-box .lesson .ticker {
  color: var(--text-primary);
  font-weight: 700;
}

footer {
  padding: 32px 0 48px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}
