/* Tutorial (#/tutorial): the lab's own page parts; the pictures' labels in Excalidraw's Virgil hand, in the lab's ink. */
@font-face { font-family: "Virgil"; src: url("/tutorial/virgil.woff2") format("woff2"); font-display: swap; }
.tutorial { max-width: 1100px; }
.tut-index { list-style: none; margin: 2px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 24px; }
.tut-index button { font: 14px/1.4 var(--sans); color: var(--ink-2); background: none; border: 0; padding: 7px 0; cursor: pointer; display: flex; gap: 10px; align-items: baseline; text-align: left; }
.tut-index button:hover { color: var(--ink); }
.tut-index .n, .chapter > header .n { font-family: "Virgil", var(--sans); color: var(--ink-3); }
.tut-index .n { min-width: 20px; font-size: 16px; }
.chapter { margin: 0 0 64px; scroll-margin-top: 28px; }
.chapter > header { display: flex; align-items: baseline; gap: 12px; }
.chapter > header .n { font-size: 26px; }
.chapter > header h2 { font-size: 19px; margin: 0; letter-spacing: -0.01em; }
.chapter > p { margin: 4px 0 20px; color: var(--ink-2); }
.tut-fig { margin: 0 0 30px; }
.tut-fig .where { font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin: 0 0 8px; }
.tut-pair { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 26px; align-items: start; }
svg.shot { display: block; width: 100%; height: auto; overflow: visible; }
svg.shot .hand { font-family: "Virgil", "Comic Sans MS", cursive; fill: #111111; }
svg.shot.narrow { display: none; }
.tut-fig ol.legend { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; position: sticky; top: 24px; }
.tut-fig ol.legend li { display: flex; gap: 12px; align-items: baseline; font-size: 14px; line-height: 1.4; color: var(--ink); }
.tut-fig ol.legend .n { font-family: "Virgil", var(--sans); font-size: 19px; min-width: 18px; color: var(--ink); }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 26px; margin: 14px 0 0; }
.fields div { display: flex; gap: 8px; align-items: baseline; font-size: 13px; line-height: 1.45; }
.fields dt { font-weight: 600; white-space: nowrap; }
.fields dd { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) {
  .tut-index { grid-template-columns: 1fr; }
  .tut-pair { grid-template-columns: 1fr; gap: 14px; }
  svg.shot.wide { display: none; }
  svg.shot.narrow { display: block; }
  .tut-fig ol.legend { position: static; gap: 8px; }
  .fields { grid-template-columns: 1fr; }
}

/* The overview: two hand-drawn diagrams and three short lists, in the same ink and hands as the pictures. */
.overview .diagram-box { margin: 6px 0 26px; }
svg.diagram { display: block; width: 100%; height: auto; overflow: visible; }
svg.diagram .hand { font-family: "Virgil", "Comic Sans MS", cursive; fill: #111111; }
svg.diagram .plain { font: 15px var(--sans); fill: var(--ink-2); }
svg.diagram .page { font: 500 13px var(--sans); fill: var(--ink-3); }
svg.diagram.narrow, dl.checks.ways-narrow { display: none; }
.tut-sub { font-size: 15px; font-weight: 600; color: var(--ink); margin: 34px 0 14px; }
.hand-title { font-family: "Virgil", var(--sans); font-size: 23px; margin-bottom: 8px; display: flex; align-items: baseline; gap: 12px; }
.hand-title .who { font: 500 12.5px var(--sans); color: var(--ink-3); }
.two-rubrics { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.plain-list { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14px; }
.three-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
dl.checks { margin: 0; display: grid; gap: 9px; }
dl.checks div { font-size: 13.5px; line-height: 1.45; }
dl.checks dt { font-weight: 600; display: inline; margin-right: 6px; }
dl.checks dd { display: inline; margin: 0; color: var(--ink-2); }
.overview p.between { margin: 18px 0 0; color: var(--ink-2); max-width: 74ch; }
@media (max-width: 860px) {
  svg.diagram.wide { display: none; }
  svg.diagram.narrow { display: block; max-width: 340px; margin: 0 auto; }
  dl.checks.ways-narrow { display: grid; }
  .two-rubrics, .three-checks { grid-template-columns: 1fr; gap: 22px; }
}

.only-narrow { display: none; }
@media (max-width: 860px) { .only-wide { display: none; } .only-narrow { display: inline; } }
