:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #202124;
  --muted: #606368;
  --line: #dadce0;
  --wide: 1200px;
  --prose: 760px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.7; }
a { color: inherit; text-underline-offset: 3px; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; color: #73767c; }
:focus-visible { outline: 2px solid #185abc; outline-offset: 4px; }
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; }
figure { margin: 0; }
p { margin: 0 0 1.15em; }
h1, h2, h3, h4 { margin: 0 0 18px; font-weight: 600; line-height: 1.35; }
h1 { font-size: clamp(27px, 3.1vw, 40px); }
h2 { font-size: 28px; }
h3 { font-size: 21px; }
h4 { font-size: 17px; }
strong { font-weight: 600; }
code { font-size: .91em; overflow-wrap: anywhere; }
.math { font-family: Georgia, 'Times New Roman', serif; white-space: nowrap; }
.content-wide { width: min(var(--wide), calc(100% - 80px)); margin-inline: auto; }
.prose { width: min(var(--prose), calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 20; background: white; padding: 10px 18px; }
.skip-link:focus { top: 10px; }
.site-header { padding-block: 22px; border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; justify-content: center; gap: 10px 24px; flex-wrap: wrap; font-size: 14px; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.paper-header { text-align: center; padding-block: 54px 20px; }
.paper-header h1 { max-width: 1000px; margin-inline: auto; font-weight: 500; }
.paper-header h1 strong { font-weight: 800; }
.paper-header .paper-subtitle { color: var(--ink); font-size: clamp(16px, 1.7vw, 22px); font-weight: 500; line-height: 1.45; max-width: 920px; margin: 14px auto 0; text-align: center; }
.paper-header p { color: var(--muted); margin-top: 20px; }
.section { margin-top: 58px; }
#abstract { margin-top: 24px; }
.section > .prose > h2, .section.prose > h2 { margin-bottom: 24px; }
.prose ol { margin: 0.15em 0 1.15em; padding-left: 1.4em; }
.prose li { margin: 0 0 0.7em; padding-left: 0.25em; }
.prose li:last-child { margin-bottom: 0; }
.paper-figure { margin-top: 30px; margin-bottom: 42px; }
figcaption { font-size: 15px; line-height: 1.6; margin-top: 16px; text-align: left; }
figcaption:first-child { margin-top: 0; margin-bottom: 16px; }
.figure-number { font-weight: 600; }
.video-placeholder { min-height: 130px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); margin-top: 28px; }
.task-section { margin-top: 36px; }
.task-description { width: min(var(--prose), 100%); margin-inline: auto; }
.task-description h3 { margin-bottom: 12px; }
.success-players { display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 4px 0 14px; scrollbar-width: thin; }
.success-card { flex: 0 0 min(480px, 100%); min-width: 0; scroll-snap-align: start; }
.example-label { font-size: 14px; margin-bottom: 8px; color: var(--muted); }
.player-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #151515; }
.player-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #151515; }
.video-start { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: transparent; }
.play-disc { display: flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid #aaa; border-radius: 4px; color: #222; background: #fffffff2; font-size: 14px; }
.video-start:hover .play-disc { background: white; }
.video-message { position: absolute; bottom: 46px; left: 10px; right: 10px; background: #fffffff2; padding: 6px 10px; font-size: 12px; text-align: center; }
.video-message:empty { display: none; }
.player-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; color: var(--muted); font-size: 12px; }
.row-navigation { display: flex; justify-content: flex-end; gap: 10px; margin-top: 5px; }
.row-navigation button, .example-switch button { border: 1px solid var(--line); background: white; min-height: 36px; padding: 4px 12px; font-size: 13px; border-radius: 3px; }
.row-navigation button:disabled { opacity: .55; }
.comparison-section { max-width: 984px; }
.comparison-section > h3 { margin-bottom: 18px; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.comparison-column { min-width: 0; }
.comparison-column h4 { margin-bottom: 9px; }
.example-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; }
.example-switch > span { font-size: 13px; margin-right: 3px; color: var(--muted); }
.example-switch button[aria-pressed="true"] { background: #eceef0; border-color: #606368; }
.media-caption { color: var(--muted); font-size: 15px; }
.result-group { margin-top: 44px; }
.result-group + .result-group { margin-top: 58px; }
.result-group .prose > h3 { margin-bottom: 18px; }
.loading-copy, .noscript-note { color: var(--muted); font-size: 14px; }
.noscript-note { margin-top: 30px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-block: 25px 35px; margin-top: 64px; }
@media (max-width: 800px) {
  .content-wide, .prose { width: calc(100% - 40px); }
  .paper-header { padding-block: 38px 10px; }
  .section { margin-top: 44px; }
  h2 { font-size: 25px; }
  h3 { font-size: 20px; }
  .site-header nav { gap: 9px 17px; font-size: 13px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .comparison { grid-template-columns: 1fr; gap: 26px; }
  .comparison-section { max-width: 480px; }
  .task-section { margin-top: 28px; }
  .success-players { gap: 16px; }
  figcaption { font-size: 14px; }
  .paper-figure { margin-top: 24px; margin-bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Compact task galleries and article-like result surfaces. */
.task-gallery { margin-top: 28px; }
.task-tabs { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; padding: 3px; }
.task-tabs button { border: 1px solid transparent; background: transparent; border-radius: 999px; padding: 9px 22px; font-size: 15px; white-space: nowrap; }
.task-tabs button[aria-selected="true"] { background: #25272a; color: white; }
.task-tabs button:hover:not([aria-selected="true"]) { background: #f3f4f5; }
.success-players { cursor: grab; }
.success-players.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.player-frame { border-radius: 16px; }
.video-start { inset: auto auto 48px 14px; width: 38px; height: 38px; border-radius: 50%; color: white; background: #222b; font-size: 15px; }
.row-navigation button { border-radius: 50%; width: 38px; height: 38px; padding: 0; font-size: 19px; }
#framework .prose ol { padding: 0; list-style: none; display: grid; gap: 12px; }
#framework .prose li { margin: 0; padding: 18px 22px; border: 1px solid #e0e3e7; border-radius: 14px; background: #fcfcfd; box-shadow: 0 2px 9px #20212404; }
.result-group { width: min(1248px, calc(100% - 40px)); margin-inline: auto; padding: 34px 24px 8px; border: 1px solid #e2e5e9; border-radius: 20px; box-shadow: 0 5px 24px #20212406; }
.result-group .content-wide { width: 100%; }
.result-group .prose { width: min(var(--prose), 100%); }
.view-frame { position: relative; }
.view-scroll { overflow-x: auto; }
.view-row { display: grid; gap: 8px; min-width: 720px; }
.view-camera { position: relative; min-width: 0; }
.view-camera video { display: block; width: 100%; height: auto; object-fit: contain; background: #151515; border-radius: 16px; }
.view-camera-label { position: absolute; top: 8px; left: 10px; color: #fff; text-shadow: 0 1px 4px #000; font-size: 11px; pointer-events: none; }
.view-start { position: absolute; left: 14px; bottom: 14px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; color: white; background: #222b; font-size: 15px; }
.view-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.view-controls button { border: 1px solid var(--line); background: white; border-radius: 9px; min-height: 36px; padding: 4px 12px; font-size: 13px; }
.view-seek { flex: 1; min-width: 40px; accent-color: #25272a; }
.view-time { white-space: nowrap; }
.view-message { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.view-message:empty { display: none; }
@media (max-width: 600px) {
  .task-tabs button { padding: 8px 17px; }
  .result-group { padding: 24px 12px 0; width: calc(100% - 24px); border-radius: 16px; }
  #framework .prose li { padding: 16px; }
  .view-controls { flex-wrap: wrap; }
  .view-seek { flex-basis: 100%; }
  .view-camera-label { font-size: 10px; left: 7px; top: 5px; }
}

/* Approved v2: quiet color, generous surfaces, and locally hosted typography. */
@font-face { font-family: Inter; src: url('assets/fonts/inter/InterVariable.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: Inter; src: url('assets/fonts/inter/InterVariable-Italic.woff2') format('woff2'); font-style: italic; font-weight: 100 900; font-display: swap; }
:root { --paper: #f5f6f4; --ink: #292c2c; --muted: #707671; --line: #e3e7e1; --pink: #f67280; --sage: #a1c1a1; --prose-width: var(--prose); --media-width: var(--wide); }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.75; -webkit-font-smoothing: antialiased; }
input { font: inherit; }
h1, h2, h3 { letter-spacing: -.035em; text-wrap: balance; }
h2 { font-family: Fraunces, Georgia, serif; font-size: clamp(25px, 2.3vw, 32px); font-weight: 500; font-optical-sizing: auto; font-variation-settings: "SOFT" 20, "WONK" 1; }
h3 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 650; }
.section h2, .result-group h3 { text-align: center; }
.site-header { border-bottom: 0; padding-block: 24px 12px; }
.site-header nav { color: #656b66; font-size: 12px; gap: 8px 26px; }
.site-header nav a { padding: 7px 0; transition: color .2s; }
.site-header nav a:hover { color: #242c26; }
.paper-header { padding-block: 70px 28px; }
.paper-header h1 { font-size: clamp(32px, 4.1vw, 54px); line-height: 1.14; font-weight: 650; }
.paper-header h1 strong { font-weight: 750; }
.paper-header .paper-subtitle { max-width: 820px; margin-top: 22px; line-height: 1.55; font-size: clamp(17px, 1.7vw, 22px); color: #565e58; letter-spacing: -.018em; }
.paper-header > p:last-child { font-size: 13px; letter-spacing: .06em; margin-top: 22px; }
main > .section:not(#results):not(#framework):not(#abstract), .result-group, .method-card { width: min(1296px, calc(100% - 64px)); margin: 40px auto 0; padding: 48px; background: #fff; border: 1px solid #e7eae5; border-radius: 28px; box-shadow: 0 12px 44px -20px #263d2b25, 0 2px 6px #263d2b04; }
main > #abstract { margin-top: 24px; color: var(--ink); }
main > .section.prose { width: min(1296px, calc(100% - 64px)); }
#abstract > p, #abstract > h2 { max-width: var(--prose); margin-inline: auto; }
.section > .prose, .result-group .prose { width: min(var(--prose), 100%); }
.section > .content-wide, .result-group .content-wide { width: min(var(--wide), 100%); }
.section > .prose > :last-child, #abstract > :last-child { margin-bottom: 0; }
main > .section:not(#results) > .paper-figure:last-child { margin-bottom: 0; }
#framework .prose ol { gap: 12px; margin-block: 26px; }
#framework .prose li { border: 0; border-left: 3px solid #b8d0b7; background: #f4f7f2; box-shadow: none; border-radius: 4px 14px 14px 4px; padding: 19px 24px; transition: transform .3s, box-shadow .3s; }
#framework .prose li:nth-child(2) { border-color: #edb1b6; background: #fcf4f4; }
#framework .prose li:nth-child(3) { border-color: #c0c5c1; background: #f5f6f5; }
@media (hover: hover) { #framework .prose li:hover { transform: translateY(-2px); box-shadow: 0 6px 18px #33443809; } }
.section-split { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.section-split > .prose { width: min(var(--prose), 100%); }
.section-split > .content-wide { width: min(var(--wide), 100%); }
.section-split > .prose > h2 { margin-bottom: 24px; }
.section-split > .prose > :last-child { margin-bottom: 0; }
#framework { margin-top: 70px; }
#framework > .prose { width: min(var(--prose), calc(100% - 64px)); margin-bottom: 32px; }
.method-card { margin-top: 32px; }
.method-card > .prose { width: min(var(--prose), 100%); }
.method-card > .content-wide { width: min(var(--wide), 100%); }
.method-card > .prose > :last-child, .method-card > .paper-figure:last-child { margin-bottom: 0; }
#results { margin-top: 70px; }
#results > .prose { margin-bottom: 32px; }
.result-group, .result-group + .result-group { margin-top: 32px; padding-bottom: 18px; }
.result-group .paper-figure { margin-top: 34px; }
figcaption { color: #616961; line-height: 1.7; }
figcaption strong { color: #343b35; }
.site-footer { margin-top: 56px; border-top-color: #dfe5dc; font-size: 12px; padding-block: 28px 40px; }
@keyframes section-arrive { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal-arriving { animation: section-arrive 700ms cubic-bezier(.22, 1, .36, 1) both; }
@media (max-width: 800px) {
  main > .section:not(#results):not(#framework):not(#abstract), .result-group, .method-card { width: calc(100% - 24px); padding: 32px 20px; border-radius: 24px; }
  #framework > .prose { width: calc(100% - 24px); }
  .paper-header { padding-block: 45px 20px; }
  .result-group, .result-group + .result-group { margin-top: 24px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  main > .section:not(#results):not(#framework):not(#abstract), .result-group, .method-card { width: calc(100% - 16px); padding: 30px 11px; margin-top: 24px; border-radius: 20px; }
  #framework { margin-top: 44px; }
  #framework > .prose { width: calc(100% - 16px); }
  .paper-header { padding-top: 34px; }
  .paper-header h1 { font-size: 34px; }
  .paper-header .paper-subtitle { font-size: 17px; }
  .site-header nav { gap: 0 16px; font-size: 11px; }
  #framework .prose li { padding: 17px; }
  .section-split { margin-top: 28px; padding-top: 24px; }
  #results { margin-top: 44px; }
  .result-group .paper-figure { margin-top: 26px; margin-bottom: 8px; }
  .result-group { padding-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) { .reveal-arriving { animation: none; opacity: 1; transform: none; } }
@media print {
  body { background: white; }
  .reveal-arriving { animation: none; opacity: 1; transform: none; }
  main > .section:not(#results):not(#framework):not(#abstract), .result-group, .method-card { width: 100%; border: 0; box-shadow: none; padding: 24px 0; }
}

/* Approved v3: editorial title, a unified task card, and native scroll progress. */
@font-face { font-family: Fraunces; src: url('assets/fonts/fraunces/FrauncesVariable.ttf') format('truetype'); font-style: normal; font-weight: 100 900; font-display: swap; }
.paper-header h1 { max-width: 1120px; font-family: Fraunces, Georgia, serif; font-size: clamp(36px, 4.7vw, 66px); font-weight: 500; letter-spacing: -.035em; line-height: 1.16; font-optical-sizing: auto; font-variation-settings: "SOFT" 20, "WONK" 1; }
.paper-header h1 strong { font-weight: 800; }
.title-word { white-space: nowrap; }
.title-connector { font-weight: 400; }
.initial-d { color: var(--pink); }
.initial-e { color: var(--sage); }
.initial-c { color: #828784; }
.task-views { margin-top: 48px; }
.task-views > .prose { width: min(var(--prose), 100%); }
.task-views > .content-wide { width: min(var(--wide), 100%); }
.reading-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 100; pointer-events: none; background: #e8ebe6; }
.reading-progress > span { display: block; width: 100%; height: 100%; background: var(--pink); transform: scaleX(0); transform-origin: left; }
.closing-note { margin-top: 56px; color: var(--muted); text-align: center; }
@media (max-width: 600px) { .task-views { margin-top: 32px; } .closing-note { margin-top: 40px; } }
@media print { .reading-progress { display: none; } }
