/* Rocket Rides — Client Statement
   Design: bank-statement / ledger aesthetic. Serif display for gravitas,
   tabular-figure mono for numbers, deep ink + muted forest accent. */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #14213D;
  --paper: #FAF9F6;
  --sidebar: #10141F;
  --sidebar-text: #A8ADBB;
  --sidebar-text-active: #FAF9F6;
  --accent: #2F6F4E;
  --accent-soft: #E7EFEA;
  --muted: #6B7280;
  --rule: #E5E3DD;
  --rule-dark: #262B3A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 32px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 0 28px 28px;
  border-bottom: 1px solid var(--rule-dark);
  margin-bottom: 12px;
}

.sidebar-header .firm {
  font-family: 'Source Serif 4', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sidebar-text-active);
  letter-spacing: 0.01em;
}

.sidebar-header .period {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--sidebar-text);
  margin-top: 6px;
  letter-spacing: 0.03em;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.92rem;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nav-list a .tick {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: #545B6E;
  width: 16px;
}

.nav-list a:hover {
  color: var(--sidebar-text-active);
}

.nav-list a.active {
  color: var(--sidebar-text-active);
  border-left-color: var(--accent);
  background: rgba(47, 111, 78, 0.15);
}

.nav-list a.active .tick {
  color: var(--accent);
}

.sidebar-footer {
  margin-top: auto;
  padding: 20px 28px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: #545B6E;
  border-top: 1px solid var(--rule-dark);
}

/* Main content */
main {
  flex: 1;
  padding: 56px 64px;
  max-width: 760px;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1 {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 2.1rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

/* Ledger rows */
.ledger {
  border-top: 1px solid var(--ink);
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.ledger-row .label {
  color: var(--muted);
  font-size: 0.95rem;
}

.ledger-row .value {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 500;
}

.ledger-row.total {
  border-bottom: none;
  border-top: 2px solid var(--ink);
  margin-top: 4px;
  padding-top: 20px;
}

.ledger-row.total .label {
  color: var(--ink);
  font-weight: 600;
}

.ledger-row.total .value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

/* Table variant (revenue breakdown) */
.stmt-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
}

.stmt-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.stmt-table th:last-child, .stmt-table td:last-child { text-align: right; }

.stmt-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}

.stmt-table td.value {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* Focus visibility */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 720px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; padding: 20px 0; }
  .sidebar-footer { display: none; }
  main { padding: 32px 24px; }
  h1 { font-size: 1.6rem; }
}

/* Charts */
.chart-section {
  margin-bottom: 48px;
}

.chart-section h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.chart-section .chart-caption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.chart-box {
  position: relative;
  height: 220px;
}

.chart-row {
  display: flex;
  gap: 40px;
}

.chart-row > div {
  flex: 1;
}

@media (max-width: 720px) {
  .chart-row { flex-direction: column; gap: 32px; }
}

/* Archive list */
.archive-list {
  border-top: 1px solid var(--ink);
}

.archive-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}

.archive-row:hover .archive-month {
  color: var(--accent);
}

.archive-month {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.15s ease;
}

.archive-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.archive-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.archive-arrow {
  color: var(--muted);
  font-size: 1rem;
}

.archive-row.current .archive-note {
  color: var(--accent);
}
