/* Shared stylesheet for proc-generation teaching workspace.
   Tufte-ish: serif body text, generous whitespace, minimal chrome. Print-friendly. */

:root {
  --ink: #1a1a1a;
  --paper: #fdfcf9;
  --muted: #6b6b6b;
  --rule: #ddd8cc;
  --accent: #a6402d;
  --accent-soft: #f3e6df;
  --code-bg: #f4f2ea;
  --measure: 40em;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Gill Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  padding: 3.5rem 1.5rem 6rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.55;
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 0.3rem;
}

h2 {
  font-size: 1.3rem;
  margin: 2.4rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-family: var(--sans);
  font-size: 1rem;
  margin: 1.6rem 0 0.5rem;
}

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

.subtitle {
  font-family: var(--sans);
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 2rem;
}

a { color: var(--accent); text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

code, pre {
  font-family: var(--mono);
  font-size: 0.88rem;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  line-height: 1.5;
}

code {
  background: var(--code-bg);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

pre code {
  background: none;
  padding: 0;
}

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

.callout {
  margin: 1.6rem 0;
  padding: 1rem 1.2rem;
  background: var(--accent-soft);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.callout .callout-label {
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.win {
  margin: 2rem 0;
  padding: 1.2rem 1.3rem;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
}

.win .callout-label { color: var(--accent); }

.nav {
  font-family: var(--sans);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.nav a { color: var(--ink); }

footer.ask {
  margin-top: 3rem;
  padding: 1rem 1.2rem;
  border-radius: 6px;
  background: #f1f1ee;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}

.source {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.4rem 0.7rem;
  border-bottom: 1px solid var(--rule);
}

th { font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

.glossary-term {
  font-family: var(--sans);
  font-weight: 600;
  margin-top: 1.3rem;
}

@media print {
  body { padding: 0; }
  .callout, .win { break-inside: avoid; }
  footer.ask, .nav { display: none; }
}
