/* Editorial notebook. Content-local colors preserve the shared shell and figure palette. */
.note-page { --notes-title:#eaece9; --notes-body:#c3c7c4; --notes-muted:#b0b6b2; }
.notes-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin-bottom:18px; color:var(--notes-muted); font:var(--eyebrow-font); letter-spacing:.04em; }
.notes-page .masthead { padding-inline:var(--margin); }
.notes-meta time { white-space:nowrap; }
.notes-meta .notes-date { color:var(--notes-body); }
.notes-meta a.notes-date { display:inline-flex; align-items:center; min-height:44px; margin-block:-13px; font:inherit; text-decoration:none; }
.notes-meta a.notes-date:hover { color:var(--teal); text-decoration:underline; text-underline-offset:4px; }
.notes-meta .notes-date__label { margin-right:8px; color:var(--notes-muted); }
.notes-meta .notes-published { color:var(--notes-muted); }
.notes-meta .meta-byline { white-space:nowrap; }
.notes-meta .meta-byline a { color:inherit; font:inherit; letter-spacing:inherit; line-height:inherit; text-decoration:underline; text-decoration-thickness:1px; text-decoration-color:color-mix(in srgb,currentColor 45%,transparent); text-underline-offset:3px; }
.notes-meta .meta-byline a:hover { color:var(--teal); text-decoration-color:currentColor; }
.notes-meta .meta-byline a:focus-visible { outline:2px solid var(--teal); outline-offset:3px; border-radius:2px; }
.note-content { min-width:0; overflow-wrap:anywhere; }
.notes-note .note-content > :last-child { margin-bottom:0; }
.note-content p { margin:0 0 18px; color:var(--notes-body); font:400 18px/1.55 Inter,sans-serif; }
.note-content .opening { color:var(--notes-title); }
.note-content :is(img,video,svg,iframe) { display:block; max-width:100%; height:auto; }
.note-content :is(pre,table) { max-width:100%; overflow-x:auto; }
.note-page { width:calc(100% - 2 * var(--margin)); max-width:680px; margin:0 auto; padding:144px 0 40px; }
.note-page header { margin:36px 0; }
.note-page h1 { margin-top:20px; }
.notes-back { display:block; width:fit-content; margin:112px var(--margin) -80px; padding:12px 0; color:var(--muted); font:400 14px/1.5 Inter,sans-serif; text-underline-offset:4px; }
.note-page .notes-back { margin:0 0 24px; }
/* Figures belong to their note and stay readable on the index and direct route. */
.note-content .figure { margin:28px 0; padding:24px; background:#151917; border-radius:3px; }
.note-content .figure-title { margin:0 0 18px; color:var(--muted); font:var(--eyebrow-font); }
.note-content .figcaption { margin-top:16px; color:var(--muted); font:400 12px/1.5 'Space Grotesk',sans-serif; }
.bar-row { display:grid; grid-template-columns:49px 1fr 82px; align-items:center; gap:10px; margin:12px 0; font:400 12px/1.5 'Space Grotesk',sans-serif; }
.bar-track { height:8px; background:#282e2a; }
.bar { height:100%; width:var(--width); background:#8b958d; }
.bar.after { background:var(--fg); }
.bar-val { text-align:right; white-space:nowrap; }
.diagram text { font-family:'Space Grotesk',sans-serif; }
.model { display:grid; grid-template-columns:1fr auto; align-items:center; gap:12px; margin:12px 0; }
.model label { font-size:14px; color:var(--muted); }
.model output,.model-result strong { font:400 28px/1.15 Inter,sans-serif; font-variant-numeric:tabular-nums; }
.model input { grid-column:1/-1; width:100%; min-height:44px; accent-color:var(--teal); cursor:pointer; }
.model-result { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:14px; color:var(--muted); }
.model-result strong { color:var(--fg); }
@media(max-width:767px) {
  .note-page { padding-top:112px; }
  .note-content .figure { padding:20px 16px; }
  .bar-row { grid-template-columns:42px 1fr 76px; gap:7px; }
}

/* A pull quote on the single-note page stays distinct from article headlines. */
.note-page .note-pullquote { position:relative; margin:0; padding:26px 0 0 24px; border-left:2px solid var(--teal); }
.note-page .note-pullquote::before { content:'“'; position:absolute; top:-20px; left:14px; color:var(--teal); opacity:.18; font:400 88px/1 Inter,sans-serif; pointer-events:none; }
.note-page .note-content .note-pullquote p { margin:0; color:#d8ddd9; font:italic 400 27px/1.5 Inter,sans-serif; }
.note-page :is(a,input):focus-visible,.notes-back:focus-visible { outline:2px solid var(--teal); outline-offset:6px; }
.notes-back:hover { color:var(--teal); }

/* Notes index: mixed masonry of tiles. Scoped to .notes-index so the shared shell and single-note pages are unaffected. */
@font-face { font-family:'Instrument Serif'; src:url('/fonts/instrument-serif-latin.woff2') format('woff2'); font-style:normal; font-weight:400; font-display:swap; }
.notes-page { -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
.notes-index { --tile:#141716; --tile-hover:#191d1b; --panel:#0f1211; --tile-body:rgba(242,244,243,.68); --tile-title:#f2f4f3; --tile-caption:#8a918e; width:calc(100% - 2 * var(--margin)); margin:0 auto; padding:72px 0 0; }
.notes-page .notes-index { padding-top:calc(72px + 88px); }
.notes-intro { display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:24px; margin-bottom:72px; }
.notes-intro h1 { color:var(--tile-title); margin:0; font:400 56px/1.06 Inter,sans-serif; letter-spacing:-.02em; }
.notes-intro p { margin:0; max-width:340px; color:#9aa19e; font:400 16px/1.6 Inter,sans-serif; }
.notes-intro a.notes-rss { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.notes-intro a.notes-rss:hover { color:var(--tile-title); }
.notes-wall { columns:3 300px; column-gap:48px; list-style:none; margin:0; padding:0; }
.notes-wall.is-flow { display:flex; align-items:flex-start; gap:48px; columns:auto; }
.notes-col { flex:1; min-width:0; display:flex; flex-direction:column; }
.notes-item { break-inside:avoid; margin:0 0 48px; padding:0; scroll-margin-top:112px; }
.notes-tile { position:relative; display:block; background:var(--tile); border:1px solid rgba(255,255,255,.035); border-radius:10px; padding:32px; color:var(--tile-title); }
.notes-note.is-clamped { max-height:520px; overflow:hidden; }
.notes-index h2 { margin:0 0 16px; color:var(--tile-title); font:500 22px/1.3 Inter,sans-serif; letter-spacing:-.01em; text-wrap:balance; }
.notes-index .note-content p { margin:0 0 14px; color:var(--tile-body); font:400 15px/1.65 Inter,sans-serif; }
.notes-index .note-content .opening { color:var(--tile-body); }
.notes-index .note-content > :last-child { margin-bottom:0; }
.notes-index .note-content .figure { margin:24px 0; padding:20px; background:var(--panel); border-radius:6px; }
.notes-index .note-content .figure:last-child { margin-bottom:0; }
.notes-index .figure-title { margin:0 0 12px; color:#8e9592; font:400 12px/1.5 Inter,sans-serif; }
.notes-index .figcaption { margin-top:8px; color:#8e9592; font:400 12px/1.5 Inter,sans-serif; }
.notes-index .bar-row { grid-template-columns:44px 1fr 64px; font:400 12px/1.5 Inter,sans-serif; color:#8e9592; }
.notes-index .bar-track { height:4px; border-radius:2px; background:#232826; }
.notes-index .bar { border-radius:2px; background:#8e9592; }
.notes-index .bar.after { background:var(--teal); }
.notes-index .model { margin:0 0 14px; gap:4px 12px; }
.notes-index .model label { color:#b5bbb8; font-size:13px; }
.notes-index .model output,.notes-index .model-result strong { font:300 24px/1.15 Inter,sans-serif; }
.notes-index .model-result { font-size:13px; color:#b5bbb8; }
.notes-index .diagram text { font-family:Inter,sans-serif; }
.notes-fade { position:absolute; left:0; right:0; bottom:0; height:160px; display:flex; align-items:flex-end; padding:0 32px 24px; border-radius:0 0 10px 10px; pointer-events:none; }
.notes-fade::before { content:''; position:absolute; inset:0; border-radius:inherit; background:linear-gradient(to bottom,rgba(20,23,22,0),rgba(20,23,22,.82) 55%,var(--tile) 85%); }
.notes-fade[hidden] { display:none; }
.notes-more { position:relative; z-index:1; display:inline-flex; align-items:center; pointer-events:auto; min-height:44px; padding:10px 0; color:var(--teal); font:400 14px/1.5 Inter,sans-serif; text-decoration:none; }
.notes-more:hover { text-decoration:underline; text-underline-offset:4px; }
.notes-quote { padding:48px 40px; text-align:center; }
.notes-quote__mark { margin-bottom:8px; color:var(--teal); font:400 40px/1 'Instrument Serif',Georgia,serif; }
.notes-index .notes-quote .note-pullquote { margin:0; padding:0; border:0; }
.notes-index .notes-quote .note-pullquote::before { content:none; }
.notes-index .notes-quote .note-content p { margin:0; color:#e6e9e7; font:400 28px/1.3 'Instrument Serif',Georgia,serif; letter-spacing:0; }
.notes-card { overflow:hidden; padding:0; text-decoration:none; transition:background .2s,border-color .2s; }
.notes-card__media { position:relative; aspect-ratio:16/9; overflow:hidden; border-radius:9px 9px 0 0; background:var(--panel); }
.notes-card__media img { display:block; width:100%; height:100%; object-fit:cover; opacity:.82; transition:opacity .3s; }
.notes-card__featured { position:absolute; top:16px; left:16px; z-index:3; padding:6px 12px; border-radius:999px; background:rgba(11,13,12,.72); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); color:#f2f4f3; font:500 12px/1.5 Inter,sans-serif; } /* z-index sits above the shared image-signal canvas (z-index 2) */
.notes-card__copy { padding:28px 32px 32px; }
.notes-card h2 { margin:0 0 16px; font-size:28px; line-height:1.2; letter-spacing:-.02em; }
.notes-card p { margin:0; color:var(--tile-body); font:400 15px/1.65 Inter,sans-serif; }
.notes-pill { display:inline-flex; align-items:center; gap:6px; margin-bottom:16px; color:var(--teal); font:400 11px/1.5 Inter,sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.notes-pill svg { width:12px; height:12px; transform:rotate(-45deg); transition:transform .2s; }
.notes-card:is(:hover,:focus-visible) { background:var(--tile-hover); border-color:rgba(255,255,255,.08); }
.notes-card:is(:hover,:focus-visible) img { opacity:1; }
.notes-card:is(:hover,:focus-visible) .notes-pill svg { transform:rotate(-45deg) translateX(2px); }
.notes-page .notes-card:focus-visible { outline:2px solid var(--teal); outline-offset:4px; }
.notes-page :is(.notes-more,.notes-date):focus-visible { outline:2px solid var(--teal); outline-offset:4px; }
.notes-page .notes-item:last-child { margin-bottom:0; } /* the 48px item margin must not add to the footer gap */
body.notes-page .crystal-footer { margin-top:96px; } /* 96px from the last row of tiles to the footer */
.notes-caption { display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin:12px 0 0; color:#6b7270; font:400 12px/1.5 Inter,sans-serif; letter-spacing:0; text-transform:none; transition:color .2s; }
.notes-tile:is(:hover,:focus-visible) + .notes-caption { color:#8a918e; }
.notes-caption :is(a,time) { color:inherit; font:inherit; text-decoration:none; }
.notes-caption a:hover { color:var(--teal); text-decoration:underline; text-underline-offset:4px; }
@media(max-width:767px) {
  .notes-page .notes-index { padding-top:128px; }
  .notes-intro { display:block; margin-bottom:48px; }
  .notes-intro h1 { font-size:clamp(38px,11vw,56px); }
  .notes-intro p { margin-top:20px; }
  .notes-wall { columns:1; }
}
@media(prefers-reduced-motion:reduce) { .notes-caption,.notes-card,.notes-card img,.notes-pill svg { transition:none; } }

/* Flight recorder: illustrative traffic timeline with selectable website changes. */
.flight-recorder { --fr-mono:ui-monospace,'SF Mono',Menlo,Consolas,monospace; --fr-ease:cubic-bezier(.22,1,.36,1); }
.flight-recorder .figure-title { font:400 11px/1.5 var(--fr-mono); letter-spacing:.04em; text-transform:uppercase; color:#8e9592; }
.fr-chart { display:none; position:relative; height:150px; margin:8px 0 0; }
.flight-recorder.is-ready .fr-chart { display:block; }
.flight-recorder .fr-svg { position:absolute; inset:0; width:100%; height:100%; max-width:none; overflow:visible; }
.fr-grid line { stroke:rgba(255,255,255,.06); stroke-width:1; vector-effect:non-scaling-stroke; }
.fr-line { fill:none; stroke:var(--teal); stroke-width:1.5; stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke; stroke-dasharray:1; stroke-dashoffset:0; }
.flight-recorder.is-armed .fr-line { stroke-dashoffset:1; }
.flight-recorder.is-armed.is-drawn .fr-line { stroke-dashoffset:0; transition:stroke-dashoffset 1.8s cubic-bezier(.65,0,.35,1); }
.fr-window,.fr-guide,.fr-dot { position:absolute; opacity:1; transition:left .6s var(--fr-ease),width .6s var(--fr-ease),top .6s var(--fr-ease),opacity .6s; pointer-events:none; }
.fr-window { top:0; bottom:0; background:rgba(127,242,198,.05); }
.fr-guide { top:0; bottom:0; width:0; border-left:1px dashed rgba(127,242,198,.5); }
.fr-dot { width:9px; height:9px; margin:-4.5px 0 0 -4.5px; border-radius:50%; background:var(--teal); box-shadow:0 0 0 4px rgba(127,242,198,.16); }
.flight-recorder.is-armed:not(.is-drawn) :is(.fr-window,.fr-guide,.fr-dot) { opacity:0; }
.fr-events { position:relative; height:52px; margin-top:6px; }
.flight-recorder:not(.is-ready) .fr-events { display:flex; flex-wrap:wrap; gap:8px; height:auto; margin:0 0 16px; }
.fr-event { position:absolute; top:0; transform:translateX(-50%); min-width:72px; min-height:48px; padding:6px 8px; display:flex; flex-direction:column; align-items:center; gap:2px; background:none; border:0; color:#8e9592; cursor:pointer; transition:color .3s; }
.flight-recorder:not(.is-ready) .fr-event { position:static; transform:none; align-items:flex-start; }
.fr-event__date { font:400 10px/1.4 var(--fr-mono); letter-spacing:.06em; text-transform:uppercase; }
.fr-event__name { white-space:nowrap; padding-bottom:3px; border-bottom:1px solid transparent; font:400 13px/1.4 Inter,sans-serif; transition:border-color .3s; }
.fr-event:hover,.fr-event[aria-pressed="true"] { color:var(--fg); }
.fr-event[aria-pressed="true"] .fr-event__name { border-bottom-color:var(--teal); }
.fr-event:focus-visible { outline:2px solid var(--teal); outline-offset:2px; border-radius:3px; }
.fr-panels { display:grid; margin-top:16px; padding-top:16px; border-top:1px solid rgba(255,255,255,.07); }
.fr-panel p { margin:0; }
.fr-panel + .fr-panel { margin-top:24px; }
.flight-recorder.is-ready .fr-panel { grid-area:1/1; margin:0; opacity:0; visibility:hidden; transform:translateY(6px); transition:opacity .35s,transform .5s var(--fr-ease),visibility 0s .35s; }
.flight-recorder.is-ready .fr-panel.is-active { opacity:1; visibility:visible; transform:none; transition:opacity .45s .08s,transform .5s var(--fr-ease) .08s,visibility 0s; }
.note-content .flight-recorder .fr-title { margin:0 0 6px; color:var(--notes-title,#f2f4f3); font:500 15px/1.4 Inter,sans-serif; }
.note-content .flight-recorder .fr-desc { margin:0 0 10px; font-size:14px; line-height:1.55; }
.note-content .flight-recorder .fr-pages { display:flex; flex-wrap:wrap; gap:4px 12px; margin:0 0 18px; color:#b5bbb8; font:400 12px/1.5 var(--fr-mono); }
.fr-pages span { color:#8e9592; text-transform:uppercase; letter-spacing:.06em; font-size:10px; line-height:1.9; }
.fr-ai { padding-left:14px; border-left:1px solid var(--teal); }
.note-content .flight-recorder .fr-label { margin:0 0 6px; color:var(--teal); font:400 10px/1.5 var(--fr-mono); letter-spacing:.06em; text-transform:uppercase; }
.note-content .flight-recorder .fr-ai p:last-child { margin:0; color:#c3c7c4; font-size:14px; line-height:1.6; }
.fr-ai [data-fr-delta] { color:var(--fg); }
@media(max-width:767px) { .fr-chart { height:120px; } .fr-event { min-width:60px; padding-inline:2px; } }
@media(prefers-reduced-motion:reduce) {
  .flight-recorder.is-armed .fr-line,.flight-recorder.is-armed.is-drawn .fr-line,.fr-window,.fr-guide,.fr-dot,.fr-event,.fr-event__name,.flight-recorder.is-ready .fr-panel,.flight-recorder.is-ready .fr-panel.is-active { transition:none; }
  .flight-recorder.is-ready .fr-panel { transform:none; }
}

/* Text-only note lists and inline source links. */
.note-content .note-sources { list-style:disc; margin:0 0 18px; padding-left:22px; color:var(--notes-body); font:400 18px/1.55 Inter,sans-serif; }
.note-content .note-sources li { margin:0 0 10px; padding-left:4px; }
.note-content .note-sources li::marker { color:var(--teal); }
.note-content .note-sources a { font:inherit; letter-spacing:inherit; color:var(--notes-title); text-decoration:underline; text-decoration-color:rgba(127,242,198,.5); text-underline-offset:3px; transition:color .2s,text-decoration-color .2s; }
.note-content .note-sources a:hover { color:var(--teal); text-decoration-color:var(--teal); }
.note-content .note-sources a:focus-visible { outline:2px solid var(--teal); outline-offset:3px; border-radius:2px; }
.notes-index .note-content .note-sources { margin-bottom:14px; font-size:15px; line-height:1.65; color:var(--tile-body); }
.notes-index .note-content .note-sources li { margin-bottom:8px; }
@media(prefers-reduced-motion:reduce) { .note-content .note-sources a { transition:none; } }
