/* One small stylesheet for every Coderynth page. Light and dark, no fonts or scripts loaded from elsewhere. */
:root {
  --bg: #f7f9f8;
  --surface: #ffffff;
  --text: #16211f;
  --muted: #566664;
  --line: #dfe6e4;
  --accent: #0f5c4f;
  --accent-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1513;
    --surface: #16201e;
    --text: #eaf1ef;
    --muted: #a5b5b2;
    --line: #26332f;
    --accent: #6fd9c0;
    --accent-text: #08201b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

header, main, footer { max-width: 44rem; margin: 0 auto; padding: 0 16px; }
header { padding-top: 32px; padding-bottom: 8px; }
footer { padding-top: 24px; padding-bottom: 48px; color: var(--muted); font-size: 0.9rem; }

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

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 1.25rem; margin: 32px 0 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }

.lede { font-size: 1.1rem; color: var(--muted); margin-top: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 16px 0;
}

.brand { font-weight: 700; letter-spacing: 0.02em; text-decoration: none; color: var(--text); }

.nav { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 0.95rem; }

.tag {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

ul { padding-left: 20px; }
li { margin: 4px 0; }

table { border-collapse: collapse; width: 100%; margin: 12px 0; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 8px 8px 0; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
