/* Lesson plan: readable on screen, clean when printed (handout and roster on their own pages). */

@font-face { font-family: "Cinzel"; src: url("../fonts/Cinzel.woff2") format("woff2"); font-weight: 400 900; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/SourceSerif4.woff2") format("woff2"); font-weight: 200 900; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/SourceSerif4-Italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; }

:root {
  --ink: #1a1e25;
  --muted: #566070;
  --rule: #d6dce5;
  --accent: #2f4a6e;
  --paper: #fafbfc;
  --caps: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 1.06rem; line-height: 1.6; }
a { color: #24456f; text-underline-offset: 2px; }

.topbar {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .7rem 1.4rem;
  background: #080b12; color: #e1e6ed;
}
.topbar a { color: #e1e6ed; text-decoration: none; font-family: var(--caps); font-weight: 600; letter-spacing: .08em; font-size: .9rem; }
.topbar button {
  font: 600 .82rem var(--caps); letter-spacing: .1em; text-transform: uppercase;
  color: #dde6f2; background: transparent; border: 1px solid rgba(142,166,198,.6);
  padding: .5rem .9rem; border-radius: 2px; cursor: pointer;
}

.doc, .handout, .roster-print { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.5rem; }
.doc-head { border-bottom: 2px solid var(--accent); padding-bottom: 1.5rem; margin-bottom: 1rem; }
.kicker { margin: 0; font-family: var(--caps); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h1 { margin: .3rem 0 .4rem; font-family: var(--caps); font-weight: 700; font-size: clamp(1.9rem, 5vw, 2.7rem); letter-spacing: .04em; line-height: 1.15; }
.lede { margin: 0 0 1.2rem; font-size: 1.2rem; color: #323a46; }
h2 { margin: 2.2rem 0 .6rem; font-family: var(--caps); font-weight: 700; font-size: 1.25rem; letter-spacing: .06em; }
h3 { margin: 1.4rem 0 .4rem; font-size: 1.08rem; }
.at-a-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem 1.4rem; margin: 0; }
.at-a-glance dt { font-family: var(--caps); font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.at-a-glance dd { margin: .1rem 0 0; }
.note, .source { font-size: .95rem; color: var(--muted); }
.callout { margin-top: 2rem; padding: .2rem 1.4rem 1rem; background: #edf1f6; border-left: 4px solid var(--accent); }
.callout h2 { margin-top: 1rem; }
.standards li { margin-bottom: .4rem; }
.facts { padding-left: 1.1rem; }
.facts li { margin-bottom: .3rem; }

table { width: 100%; border-collapse: collapse; margin: .6rem 0 1rem; font-size: .98rem; }
th, td { text-align: left; vertical-align: top; padding: .5rem .6rem; border-bottom: 1px solid var(--rule); }
thead th { font-family: var(--caps); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--rule); }

.step { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; padding: .4rem 0 .8rem; border-bottom: 1px solid var(--rule); }
.step h3 { margin-top: .2rem; }
.step-time { margin: .35rem 0 0; font-family: var(--caps); font-weight: 700; font-size: .82rem; color: var(--accent); }

.handout, .roster-print { border-top: 2px dashed var(--rule); }
.handout h2, .roster-print h2 { margin-top: .4rem; }
.names-line { margin: .6rem 0 1rem; }
.fill th { width: 34%; font-weight: 600; }
.fill td { height: 2.2rem; }
.lines span { display: block; height: 2rem; border-bottom: 1px solid #b4bcc8; }
.roster { font-size: .9rem; }

@media print {
  @page { margin: 0.6in; }
  body { background: #fff; font-size: 11pt; }
  .topbar { display: none; }
  .doc, .handout, .roster-print { max-width: none; padding: 0; }
  .handout, .roster-print { break-before: page; border-top: 0; }
  a { color: inherit; text-decoration: none; }
  .sources-list a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; word-break: break-all; }
  .step, .callout, table, .fill tr { break-inside: avoid; }
  .callout { background: none; border: 1px solid #999; }
}
