/* Note Harness — Minimal Blog Theme */

:root {
  --bg: #fff;
  --fg: #111;
  --fg-muted: #666;
  --border: #e5e5e5;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --code-bg: #f5f5f5;
  --gate-bg: #fefce8;
  --gate-border: #facc15;
  --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #ededed;
    --fg-muted: #999;
    --border: #2a2a2a;
    --accent: #60a5fa;
    --accent-hover: #93bbfd;
    --code-bg: #1a1a1a;
    --gate-bg: #1c1a00;
    --gate-border: #a38500;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

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

/* Header */
.site-header { margin-bottom: 3rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.site-title { font-size: 1.25rem; font-weight: 700; color: var(--fg); }
.site-title:hover { color: var(--accent); text-decoration: none; }

/* Footer */
.site-footer { margin-top: 4rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--fg-muted); font-size: 0.875rem; }

/* Article */
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: 2rem; line-height: 1.3; margin-bottom: 0.5rem; }
.article-meta { display: flex; gap: 1rem; align-items: center; color: var(--fg-muted); font-size: 0.875rem; margin-bottom: 0.5rem; }
.article-description { color: var(--fg-muted); font-size: 1.05rem; }
.article-tags { display: flex; gap: 0.5rem; }
.tag { background: var(--code-bg); padding: 0.125rem 0.5rem; border-radius: 4px; font-size: 0.8rem; }

.article-body h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.article-body h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.article-body code { background: var(--code-bg); padding: 0.125rem 0.375rem; border-radius: 3px; font-size: 0.9em; }
.article-body pre { background: var(--code-bg); padding: 1rem; border-radius: 6px; overflow-x: auto; margin-bottom: 1rem; }
.article-body pre code { background: none; padding: 0; }
.article-body blockquote { border-left: 3px solid var(--border); padding-left: 1rem; color: var(--fg-muted); margin-bottom: 1rem; }
.article-body img { max-width: 100%; border-radius: 6px; margin: 1rem 0; }

/* Gate CTA */
.gate-cta {
  background: var(--gate-bg);
  border: 1px solid var(--gate-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}
.gate-message { color: var(--fg-muted); margin-bottom: 1rem; }
.gate-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
}
.gate-button:hover { background: var(--accent-hover); color: #fff; text-decoration: none; cursor: pointer; }
button.gate-button { border: none; cursor: pointer; }
.gate-input {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  background: var(--bg);
  color: var(--fg);
}

/* Article list (index) */
.article-list h1 { font-size: 1.75rem; margin-bottom: 2rem; }
.article-card { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.article-card a { color: var(--fg); }
.article-card a:hover { color: var(--accent); text-decoration: none; }
.article-card h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.article-card time { font-size: 0.85rem; color: var(--fg-muted); }
.article-card p { color: var(--fg-muted); margin-top: 0.25rem; font-size: 0.95rem; }
.gate-badge { display: inline-block; background: var(--gate-border); color: #000; font-size: 0.75rem; padding: 0.125rem 0.5rem; border-radius: 4px; margin-top: 0.25rem; }
