/* Shared course stylesheet — Tufte-inspired, print-friendly.
   First component of the workspace; every lesson links ../assets/course.css */
:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #b4552d;      /* muted terracotta, doubles as link+rule */
  --accent-soft: #f4ece7;
  --rule: #e3ddd6;
  --code-bg: #f7f5f2;
  --good: #3d6b52;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 3.5rem 1.5rem 5rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fffdfb;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: inherit; color: var(--ink); line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 0 0 .4rem; letter-spacing: -.015em; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; border-top: 1px solid var(--rule); padding-top: 1.4rem; }
h3 { font-size: 1.05rem; margin: 1.6rem 0 .4rem; }
p { margin: .8rem 0; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(180,85,45,.28); }
a:hover { border-bottom-color: var(--accent); }
ul, ol { margin: .8rem 0; padding-left: 1.3rem; }
li { margin: .35rem 0; }
code, .mono { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: .88em; }
em { color: inherit; }

/* subtle top rule + kicker */
.kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.lead { font-size: 1.12rem; color: #333; }

/* callout = highlighted knowledge or tip */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: .9rem 1.1rem;
  margin: 1.3rem 0;
  border-radius: 0 6px 6px 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* task box = the hands-on deliverable */
.task {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--good);
  background: #fbfdfa;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}
.task h3 { margin-top: 0; color: var(--good); }

/* the coach prompt, ready to copy */
.prompt {
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .85rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-x: auto;
}
.prompt .tag { display:block; font-size: .72rem; letter-spacing:.08em; text-transform:uppercase; color: var(--muted); margin-bottom: .5rem; }
.prompt + .prompt, p + .prompt { margin-top: .4rem; }

/* quoted primary source */
.source { margin: 1.6rem 0; padding-left: 1.2rem; border-left: 2px solid var(--rule); color: var(--muted); font-size: .92rem; }
.source .who { color: var(--ink); font-weight: 600; }

/* footer reminder to ask the teacher */
.ask-teacher {
  margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--rule);
  font-size: .95rem; color: #444;
  display: flex; align-items: baseline; gap: .5rem;
}
.ask-teacher .bubble {
  background: var(--accent-soft); border-radius: 999px; padding: .15rem .8rem;
  font-weight: 600; font-size: .85rem; color: var(--accent); white-space: nowrap;
}

.table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .85rem; }

@media print {
  body { background: #fff; padding: 1.5rem 0 0; max-width: 100%; }
  a { color: var(--ink); border-bottom: none; }
  .ask-teacher { break-before: avoid; }
}
