:root {
  --bg: #0a0a0a;
  --surface: #111;
  --border: #222;
  --text: #ccc;
  --text-dim: #666;
  --accent: #f0c040;
  --link: #88b4e7;
  --code-bg: #1a1a1a;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Header */
header {
  margin-bottom: 3rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

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

.subtitle {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Sections */
section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #eee;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 0.8rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.25rem;
  margin-bottom: 0.8rem;
}

li {
  margin-bottom: 0.4rem;
}

code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: #aaa;
  word-break: break-all;
}

/* Lessons */
.lesson {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.lesson h3 {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.lesson p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text);
}

/* Token Cards */
.token-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}

.token-card h3 {
  font-size: 1.1rem;
  color: #fff;
}

.token-card > p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.token-card.minor {
  background: transparent;
  border-color: var(--border);
}

.token-details {
  margin-bottom: 0.75rem;
}

.detail {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.label {
  color: var(--text-dim);
  min-width: 70px;
  flex-shrink: 0;
}

.links {
  display: flex;
  gap: 1rem;
}

.links a {
  font-size: 0.85rem;
}

.eco-list > div {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.eco-list strong {
  min-width: 120px;
  flex-shrink: 0;
}

/* Wallets */
.wallet {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.wallet strong {
  min-width: 120px;
  flex-shrink: 0;
  color: #ddd;
}

.wallet a {
  font-size: 0.8rem;
}

/* Contact */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.contact-links a {
  font-size: 0.9rem;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 2rem 1rem 3rem;
  }
  
  h1 { font-size: 1.5rem; }
  
  .detail {
    flex-direction: column;
    gap: 0.1rem;
  }
  
  .wallet {
    flex-direction: column;
    gap: 0.2rem;
  }
  
  .eco-list > div {
    flex-direction: column;
    gap: 0.1rem;
  }
}
