:root {
  color-scheme: light;
  --ink: #202226;
  --muted: #697078;
  --line: #e4e6e8;
  --accent: #343a40;
  --sans: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 18px/1.7 var(--serif); -webkit-font-smoothing: antialiased; }
button, select { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: fixed; left: 12px; top: -100px; background: #fff; padding: 8px; z-index: 5; }
.skip:focus { top: 12px; }
.article-copy { width: min(700px, calc(100% - 44px)); margin: 0 auto; }
.intro { padding-top: 46px; }
.back { display: inline-block; font: 13px var(--sans); text-decoration: none; margin-bottom: 50px; color: var(--muted); }
.eyebrow { font: 10px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
h1 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.12; font-weight: 500; letter-spacing: -.035em; max-width: 650px; margin: 15px 0 23px; }
.article-copy p { margin: 0 0 22px; }
.article-copy h2 { font-weight: 500; font-size: 29px; line-height: 1.2; letter-spacing: -.02em; margin: 44px 0 20px; }
.experiment { width: min(920px, calc(100% - 48px)); margin: 44px auto 60px; font: 14px/1.5 var(--sans); }
.section-top { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 24px; margin-bottom: 24px; gap: 18px; }
.section-top h2 { font: 500 27px/1.2 var(--serif); margin: 0; }
.subtle { font-size: 11px; color: var(--muted); }
.example-picker { display: flex; align-items: center; gap: 12px; }
label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
select { font: 13px var(--sans); background: #fff; border: 1px solid #cfd3d7; border-radius: 4px; min-height: 40px; padding: 8px 30px 8px 12px; max-width: 100%; }
#example-select { min-width: 180px; }
#workflow-title { font-size: 15px; line-height: 1.5; font-weight: 500; margin: 18px 0 12px; }
.approaches { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.approach { display: flex; align-items: baseline; gap: 10px; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 10px 0 12px; margin-bottom: -1px; color: var(--muted); min-height: 44px; }
.approach:hover { color: var(--ink); }
.approach[aria-pressed=true] { border-bottom-color: var(--ink); color: var(--ink); }
.approach strong { font-size: 13px; font-weight: 500; }
.approach-time { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.approach-time::after { content: ' total'; font-size: 10px; color: var(--muted); }
figure { margin: 0; }
video { display: block; width: 100%; aspect-ratio: 1512/860; object-fit: contain; background: #f5f5f5; border: 1px solid var(--line); border-radius: 3px; }
figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); margin-top: 8px; }
figcaption span:last-child { white-space: nowrap; }
.outcome { font-size: 13px; margin: 18px 0 5px; }
.comparison-note { font-size: 11px; line-height: 1.65; color: var(--muted); margin: 0 0 18px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 13px; list-style: none; display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 14px 0; }
summary::-webkit-details-marker { display: none; }
summary::before { content: '+'; font: 14px var(--mono); color: var(--muted); }
details[open] > summary::before { content: '−'; }
.technical-details { border-top: 1px solid var(--line); border-bottom: 0; }
.details-body { padding: 6px 0 0; }
.goal { font-size: 13px; margin: 0 0 12px; }
.outcome-detail, .product { font-size: 12px; color: var(--muted); margin: 8px 0; }
.detail-controls { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 22px 0 14px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; gap: 12px; }
.metric-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.metric-value { font: 13px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.timing-note, .capture-note { color: var(--muted); font-size: 11px; line-height: 1.65; margin: 12px 0; }
#call-count { font: 10px var(--mono); color: var(--muted); margin-left: auto; }
.logs { padding-bottom: 10px; }
.log { display: grid; grid-template-columns: 80px 1fr 100px; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f1f4; font-size: 12px; }
.log:last-child { border: 0; }
.log span { overflow-wrap: anywhere; }
.log strong { font-weight: 500; }
.log-time { text-align: right; font: 11px/1.6 var(--mono); }
.log-time small { display: block; font: 10px/1.5 var(--sans); color: var(--muted); }
.experiment-note { margin: 18px 0 6px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.table-wrap { overflow: auto; margin: 4px 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
td, th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 500; color: var(--muted); }
td:nth-last-child(-n+3) { font-family: var(--mono); font-size: 10px; }
.data-links { display: flex; gap: 12px 22px; flex-wrap: wrap; font-size: 12px; margin: 16px 0; }
.video-download { display: inline-block; font-size: 12px; margin: 4px 0 12px; }
.discussion { padding-bottom: 28px; }
.discussion strong { font-weight: 600; }
.method summary { font: 15px var(--serif); }
.method li { font-size: 16px; margin: 10px 0; color: #525e6c; }
.method ul { padding-left: 20px; }
footer { display: flex; justify-content: space-between; gap: 16px; font: 11px var(--sans); color: var(--muted); padding: 26px 0; margin-top: 26px; border-top: 1px solid var(--line); }
[data-view=embed] .article-copy { display: none; }
[data-view=embed] .experiment { width: 100%; margin: 0; padding: 22px 20px 10px; }
[data-view=embed] .section-top { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 540px) {
  .intro { padding-top: 25px; }
  .back { margin-bottom: 34px; }
  .article-copy { width: calc(100% - 36px); }
  .article-copy p { font-size: 17px; }
  .article-copy h2 { font-size: 26px; }
  .experiment { width: calc(100% - 28px); margin-top: 35px; }
  .section-top .subtle { max-width: 90px; text-align: right; }
  .approaches { gap: 24px; }
  .approach { flex-wrap: wrap; gap: 3px 8px; }
  .approach-time::after { content: ''; }
  figcaption { font-size: 10px; gap: 8px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 18px; }
  .log { grid-template-columns: 67px 1fr; gap: 8px; }
  .log-time { grid-column: 2; text-align: left; }
  .log-time small { display: inline; margin-left: 8px; }
  footer { flex-direction: column; gap: 8px; }
  [data-view=embed] .experiment { padding: 18px 14px 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
