:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-dim: #1f6feb;
  --border: #30363d;
  --tag-bg: #1f2937;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.contact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.contact a { color: var(--text-muted); }
.contact a:hover { color: var(--accent); }

h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.about {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.available {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  font-style: italic;
}

section { margin-bottom: 1.5rem; }

.entry {
  padding: 0.6rem 0;
}

.entry-title {
  font-weight: 500;
  font-size: 0.95rem;
}

.entry-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.entry-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.project {
  margin-bottom: 1.25rem;
}

.project-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.project-title a {
  color: var(--accent);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  margin-right: 0.3rem;
}

ol {
  padding-left: 1.5rem;
}

ol li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

ol li em { font-style: italic; }

.footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  body { padding: 1rem; }
  h1 { font-size: 1.6rem; }
  .contact { gap: 0.75rem; }
}

/* === Whitepaper / Article Styles === */

.back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }

.wp-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.wp-title {
  font-size: 1.8rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.wp-author {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.wp-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.wp-body h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.wp-body h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--accent);
}

.wp-body p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.wp-body strong {
  color: #fff;
}

.wp-body ul, .wp-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.wp-body li {
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 0.3rem 0;
}

.wp-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.wp-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 0 6px 6px 0;
}

.wp-body blockquote p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-style: italic;
}

.wp-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.wp-body th {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wp-body td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}

.wp-body code {
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85em;
}

/* Callout boxes */
.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

/* Key stat highlight */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}

.stat-card .big {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-card .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
  letter-spacing: 0.5px;
}

/* Architecture diagram */
.diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
}

.diagram svg {
  width: 100%;
  height: auto;
  max-width: 700px;
  display: block;
  margin: 0 auto;
}

.diagram-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.75rem;
  font-style: italic;
}

/* Bio section */
.wp-bio {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.wp-bio p {
  color: var(--text-muted) !important;
  font-size: 0.9rem !important;
  font-style: italic;
}

@media (max-width: 600px) {
  .wp-title { font-size: 1.4rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Book button */
.book-btn {
  display: inline-block;
  margin: 0.5rem 0 1.5rem 0;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  background: var(--accent-dim);
  color: var(--text) !important;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.book-btn:hover {
  background: var(--accent);
  color: var(--bg) !important;
}
