
/* Substack-inspired reading style */
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --heading: #0a0a0a;
  --link: #0f5fb0;
  --link-hover: #093d73;
  --border: #e5e5e3;
  --code-bg: #f3f2ed;
  --accent: #c04f15;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18171a;
    --surface: #1f1e22;
    --text: #e8e6df;
    --text-muted: #9a968e;
    --heading: #ffffff;
    --link: #7eb7ff;
    --link-hover: #b7d7ff;
    --border: #2d2c30;
    --code-bg: #26252a;
  }
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
header.site {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: var(--text-muted);
}
header.site a { color: var(--text-muted); text-decoration: none; }
header.site a:hover { color: var(--link); }
header.site .brand { font-weight: 600; letter-spacing: 0.02em; color: var(--heading); }
h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 2em 0 0.6em;
}
h1 { font-size: 42px; margin-top: 0.2em; letter-spacing: -0.01em; }
h2 { font-size: 28px; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; margin-top: 2.2em; }
h3 { font-size: 22px; }
h4 { font-size: 18px; color: var(--accent); text-transform: none; letter-spacing: 0.01em; }
p { margin: 1em 0; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
blockquote {
  margin: 1.5em 0;
  padding: 12px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--text);
  font-style: italic;
  border-radius: 0 6px 6px 0;
}
blockquote p { margin: 0; }
code {
  font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
}
pre {
  background: var(--code-bg);
  padding: 16px 20px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
}
pre code { background: none; padding: 0; font-size: inherit; }
hr { border: none; border-top: 1px solid var(--border); margin: 2.5em 0; }
ul, ol { padding-left: 1.4em; margin: 1em 0; }
li { margin: 0.3em 0; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  line-height: 1.45;
}
th, td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
th { font-weight: 700; color: var(--heading); background: var(--surface); }
tbody tr:hover { background: var(--surface); }

/* Index page */
.tickers { display: grid; gap: 24px; margin-top: 32px; }
.ticker-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.ticker-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.ticker-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ticker-symbol { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 0.05em; }
.ticker-date { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 13px; color: var(--text-muted); }
.ticker-title { font-size: 22px; font-weight: 700; color: var(--heading); margin: 4px 0 12px; line-height: 1.3; }
.ticker-meta { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); font-family: -apple-system, BlinkMacSystemFont, sans-serif; margin-bottom: 12px; }
.ticker-meta strong { color: var(--heading); font-weight: 600; }
.ticker-links { display: flex; gap: 16px; font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.ticker-links a { display: inline-block; padding: 6px 14px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--link); }
.ticker-links a:hover { background: var(--code-bg); border-color: var(--link); }

.footer-note { color: var(--text-muted); font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; margin-top: 48px; text-align: center; }

/* Responsive */
@media (max-width: 640px) {
  main { padding: 32px 16px 64px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  body { font-size: 17px; }
}
