/* Shared stylesheet for the ClaudeTag course.
   Tufte-ish: serif body, generous margins, restrained palette, prints well. */

:root {
  --ink: #1a1a1a;
  --paper: #fffef9;
  --rule: #d9d4c5;
  --accent: #b3541e;      /* terracotta — Anthropic-ish warm */
  --muted: #6b6555;
  --code-bg: #f4f1e8;
  --note-bg: #f7f4ea;
  --max: 46rem;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0 auto;
  max-width: var(--max);
  padding: 4rem 1.5rem 6rem;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.kicker {
  font-family: ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 0.3rem 0 0.4rem;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
  margin: 2.6rem 0 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
}

h3 { font-size: 1.15rem; margin: 1.8rem 0 0.4rem; }

p, li { font-size: 1rem; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(179,84,30,0.3); }
a:hover { border-bottom-color: var(--accent); }

.subtitle { font-size: 1.15rem; color: var(--muted); font-style: italic; margin-top: 0; }

.meta {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 1rem 0 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid var(--ink);
}

blockquote {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

code {
  font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
}
pre code { background: none; padding: 0; font-size: inherit; }

.note, .prism {
  background: var(--note-bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.9rem 1.2rem;
  margin: 1.4rem 0;
  font-size: 0.95rem;
}
.prism { border-left: 4px solid var(--accent); }
.note .label, .prism .label {
  display: block;
  font-family: ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

table { border-collapse: collapse; width: 100%; margin: 1.4rem 0; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

sup a { font-size: 0.7em; border: none; }

.footnotes { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.82rem; color: var(--muted); }
.footnotes li { margin-bottom: 0.4rem; }

.tldr { background: var(--ink); color: var(--paper); border-radius: 8px; padding: 1.2rem 1.4rem; margin: 1.8rem 0; }
.tldr .label { color: #f0c9a8; }
.tldr a { color: #f0c9a8; border-bottom-color: rgba(240,201,168,0.4); }

footer { margin-top: 4rem; padding-top: 1.2rem; border-top: 2px solid var(--ink); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.8rem; color: var(--muted); }

@media print {
  body { padding: 0; max-width: 100%; }
  a { color: var(--ink); border: none; }
  .tldr { background: none; color: var(--ink); border: 2px solid var(--ink); }
}
