/* Readable transcript using the workshop's neutral palette and system type. */
:root {
  color-scheme: dark;
  --bg: #171717;
  --surface: #242424;
  --text: #f1f1f1;
  --muted: #b9b9b9;
  --border: #454545;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 22px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .2em; text-decoration-color: #818181; }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
.page-header, main { width: min(1080px, 100%); margin: 0 auto; padding: 40px 36px; }
.page-header { padding-bottom: 0; }
main { padding-top: 24px; padding-bottom: 100px; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
h1 { margin: 0 0 24px; font-size: 32px; }
h2 { margin: 0 0 28px; font-size: 32px; }
h3 { margin: 24px 0 16px; font-size: 27px; }
h4 { margin: 24px 0 16px; font-size: 25px; }
p, ul, ol, dl, figure, pre, table { margin: 0 0 22px; }
p, li, dd { overflow-wrap: break-word; }
p { color: var(--muted); }
strong { color: var(--text); }
li + li { margin-top: 10px; }
li p { margin: 10px 0 0; }
ul, ol { padding-left: 1.4em; }
.page-header nav { line-height: 1.8; }
.copy-outline { margin-top: 30px; }
.copy-outline ol, .copy-outline ul { columns: 2; column-gap: 50px; }
.copy-outline li { break-inside: avoid; padding-left: 4px; }
.copy-section { padding: 36px 0 18px; border-top: 1px solid var(--border); }
.slide-link { margin-bottom: 12px; font-size: 19px; }
.copy-content > :last-child { margin-bottom: 0; }
.copy-stage:not(img) { padding: 12px 0 20px; }
.copy-stage:not(img) + .copy-stage:not(img) { border-top: 1px solid var(--border); }
.copy-stage > h4:first-child { margin-top: 14px; }
.grid-2, .columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.roadmap li span { display: block; color: var(--muted); }
.feature-list dt { font-weight: 600; }
.feature-list dd { margin: 6px 0 22px; color: var(--muted); }
img { display: block; max-width: 100%; width: auto; height: auto; border-radius: 6px; }
.cover-wordmark { max-width: 360px; margin-bottom: 16px; }
.page-wordmark { width: min(280px, 50vw); height: auto; margin: 0 0 34px; }
.reference-logo { max-width: 240px; width: auto; margin: 30px 0; }
.cover-lab { display: block; text-decoration: none; }
.image-alt, figcaption { font-size: 19px; line-height: 1.5; color: var(--muted); margin-top: 14px; }
.image-alt { margin-bottom: 24px; }
.response-comparison figure + figure { margin-top: 28px; }
.prompt-container { position: relative; margin: 24px 0; }
pre {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prompt-container pre { padding-top: 66px; }
button {
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid #676767;
  border-radius: 6px;
  cursor: pointer;
  touch-action: manipulation;
}
.copy-prompt { position: absolute; top: 12px; right: 12px; padding: 7px 12px; font-size: 16px; min-height: 40px; }
.copy-prompt:hover { background: #333; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 16px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { width: 26%; font-weight: 600; }
td { color: var(--muted); }
.reading-content > h2 { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.reading-content a, .reading-content code { overflow-wrap: anywhere; }
.reading-content blockquote { margin: 24px 0; padding-left: 22px; border-left: 3px solid var(--border); }
.reference-table { table-layout: fixed; }
.reference-table th { width: auto; }
.reference-table th, .reference-table td { overflow-wrap: anywhere; }
.reference-code code { font: inherit; }
#copy-status { position: fixed; bottom: 16px; right: 16px; margin: 0; padding: 10px 16px; font-size: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; }
#copy-status:empty { display: none; }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 12px; background: var(--surface); }
.skip-link:focus { top: 16px; }
@media (max-width: 700px) {
  body { font-size: 21px; }
  .page-header, main { padding-left: 22px; padding-right: 22px; }
  h1 { font-size: 30px; }
  h2 { font-size: 28px; }
  h3, h4 { font-size: 24px; }
  .copy-outline ol, .copy-outline ul { columns: 1; }
  .grid-2, .columns { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 20px; }
  pre { padding: 20px 18px; font-size: 20px; }
  .prompt-container pre { padding-top: 68px; }
  th, td { padding: 14px 8px; }
  .copy-prompt { min-height: 44px; }
  .reference-table { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: #fff; color: #111; font-size: 12pt; }
  p, td, dd, figcaption, .image-alt, strong, h1, h2, h3, h4 { color: inherit; }
  .copy-prompt, #copy-status, .skip-link { display: none; }
  pre, .card { background: #f5f5f5; color: #111; }
  pre, .prompt-container pre { padding: 18px; }
  .copy-section { break-before: page; }
  .page-header, main { width: auto; padding: 0; }
}

.raw-url { overflow-wrap:anywhere; }
.source-urls { display:flex; flex-direction:column; gap:8px; }
.slide-footer > .link-label, .resource-group li > .resource-label { display:block; }

/* Keep source screenshots at native width and separate preceding instructions. */
.copy-content figure > figcaption:first-child { margin:0 0 24px; }

@media(max-width:600px) {
 .directory-screenshot img { width:100%; padding:16px; background:#151515; box-sizing:border-box; }
}

/* Match outline rhythm across reading pages. */
.copy-outline { padding-top:24px; border-top:1px solid var(--border); }
.copy-outline ol { list-style:decimal; padding-left:24px; }
.copy-outline li { margin:0 0 8px; padding-left:6px; line-height:1.5; font-size:17px; }
.copy-outline li::marker { color:var(--muted); font-size:14px; font-variant-numeric:tabular-nums; }
.copy-outline a { text-underline-offset:3px; }
