/* Eric Notes Insights. The blog stays editorial; Compass is the separate research portal. */
:root {
  --ink-serif:Georgia,"Noto Serif CJK KR","Noto Serif KR",serif;
  --notes-deep:#201b20;--notes-deep-text:#f9efeb;--notes-deep-muted:#dbcbd1;--notes-deep-accent:#ff9da5;
}
:root,:root[data-theme=light]{
  color-scheme:light;--page-bg:#f7f4ef;--text:#201c1b;--header-border:#dcd4ce;--link-hover:#8e1b29;--accent:#a52332;--muted:#665b55;
  --row-border:#dcd4ce;--footer-border:#362c33;--border:#dcd4ce;--featured-bg:#eee8e1;--selected-bg:#262024;--selected-text:#fff2ed;--code-bg:#eee8e1;--focus:#a52332;
}
@media(prefers-color-scheme:dark){:root:not([data-theme]){
  color-scheme:dark;--page-bg:#151416;--text:#f7eeea;--header-border:#40383a;--link-hover:#ffa4ae;--accent:#ff8290;--muted:#c3b4ae;
  --row-border:#40383a;--footer-border:#40383a;--border:#40383a;--featured-bg:#231f23;--selected-bg:#ff9da5;--selected-text:#201b20;--code-bg:#2c2529;--focus:#ff8290;
}}
:root[data-theme=dark]{
  color-scheme:dark;--page-bg:#151416;--text:#f7eeea;--header-border:#40383a;--link-hover:#ffa4ae;--accent:#ff8290;--muted:#c3b4ae;
  --row-border:#40383a;--footer-border:#40383a;--border:#40383a;--featured-bg:#231f23;--selected-bg:#ff9da5;--selected-text:#201b20;--code-bg:#2c2529;--focus:#ff8290;
}
:lang(ja){--ink-serif:Georgia,"Noto Serif CJK JP","Noto Serif JP",serif}
:lang(zh-Hans){--ink-serif:Georgia,"Noto Serif CJK SC","Noto Serif SC",serif}
[hidden]{display:none!important}
.insights-main,.notes-shell{width:min(1200px,calc(100% - 80px));max-width:none;padding-inline:0;margin-inline:auto}
.notes-masthead,.notes-footer{display:block;max-width:none;height:auto;min-height:0;padding:0}
.notes-masthead{border-top:3px solid var(--notes-deep);border-bottom:1px solid var(--header-border);background:var(--page-bg)}
.notes-masthead-inner{min-height:77px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px}
.notes-brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;width:max-content}
.notes-mark{display:grid;place-items:center;width:34px;height:34px;flex:none;background:var(--notes-deep);color:var(--notes-deep-accent)}
.notes-mark svg{width:22px;height:22px}
.notes-wordmark{display:grid;gap:4px}.notes-name{font-size:1.45rem;font-weight:820;letter-spacing:-.065em;line-height:1;white-space:nowrap}.notes-name strong,.notes-footer-name strong{font-weight:inherit}
.notes-kicker{color:var(--accent);font-size:.57rem;font-weight:820;text-transform:uppercase;letter-spacing:.22em;line-height:1}
.notes-primary,.notes-languages{display:flex;align-items:center;justify-content:flex-start;gap:15px}
.notes-primary a,.notes-languages a,.notes-compass,.notes-footer a{display:inline-flex;min-height:2.35rem;align-items:center;text-decoration:none;white-space:nowrap;gap:3px}
.notes-primary a{font-size:.82rem;font-weight:670;position:relative}
.notes-primary a[aria-current=page],.notes-languages a[aria-current=page]{color:var(--accent);font-weight:800}
.notes-primary a[aria-current=page]::after{content:"";position:absolute;inset-inline:0;bottom:.16rem;height:1px;background:currentColor}
.notes-languages a[aria-current=page]{text-decoration:underline}
.notes-utilities{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.notes-compass{font-size:.79rem;font-weight:800}
.notes-languages{gap:8px}.notes-languages a{font-size:.65rem;color:var(--muted)}
.notes-theme{border-color:var(--header-border);border-radius:2px;font-size:.68rem;min-height:2rem;padding:.17rem .22rem}
.notes-footer{margin-top:1rem;padding-block:1.55rem;background:var(--notes-deep);color:var(--notes-deep-text);border-top-color:var(--footer-border)}
.notes-footer-inner,.notes-footer-links{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 18px}
.notes-footer-name{font-size:1rem;font-weight:800;letter-spacing:-.035em}
.notes-footer-name span{font-size:.72rem;font-weight:720;color:var(--notes-deep-muted);letter-spacing:0}
.notes-footer-identity p{margin:.08rem 0 0;color:var(--notes-deep-muted);font-size:.75rem}
.notes-footer-links{font-size:.76rem}.notes-footer-links svg{width:.88rem;height:.88rem;color:var(--notes-deep-accent)}
.notes-footer a:hover,.notes-footer a:focus-visible{color:var(--notes-deep-accent)}
.insights-kicker,.insights-edition,.insights-feature figcaption{font-size:.64rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.insights-kicker{color:var(--accent)}
.insights-intro{padding:27px 0 23px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:end;gap:16px}
.insights-intro .insights-kicker::before{content:"";display:inline-block;width:18px;height:2px;vertical-align:middle;margin-inline-end:9px;background:currentColor}
.insights-intro p{color:var(--muted);margin:5px 0 0;font-size:.88rem}
.insights-edition{color:var(--muted);text-align:right}
.insights-feature.featured{background:none;border:0;border-bottom:1px solid var(--border);border-radius:0;margin:0}
.insights-feature.featured>a{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);align-items:center;gap:clamp(25px,4vw,52px);padding:34px 0 39px}
.insights-feature.featured.no-cover>a{grid-template-columns:minmax(0,39rem)}
.insights-meta{font-size:.68rem;color:var(--muted);display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 10px}
.insights-meta strong{color:var(--accent)}
.insights-feature h1,.insights-essay h1{font-family:var(--ink-serif);font-size:clamp(2.15rem,4vw,3.56rem);font-weight:790;line-height:1.26;letter-spacing:-.057em;margin:15px 0 17px;text-wrap:balance}
.insights-feature .insights-feature-copy p{color:var(--muted);font-size:.94rem;line-height:1.85;max-width:31rem;margin:0 0 19px}
.insights-action{display:inline-flex;gap:14px;align-items:center;border-bottom:1px solid var(--accent);color:var(--accent);font-weight:800;font-size:.8rem;padding-bottom:3px}
.insights-feature figure{margin:0;min-width:0}
.insights-feature.featured img{display:block;width:100%;height:auto;aspect-ratio:1.83;object-fit:cover;border-radius:0;background:var(--featured-bg)}
.insights-feature figcaption{text-align:right;color:var(--muted);font-size:.56rem;padding-top:6px}
.insights-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,290px);gap:clamp(28px,5vw,66px);padding:32px 0 43px}
.insights-grid.insights-archive{grid-template-columns:minmax(0,1fr);max-width:57rem;margin-inline:auto}
.insights-list-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.insights-list-head h1,.insights-list-head h2,.insights-aside h2{font-family:var(--ink-serif);font-size:1.75rem;line-height:1.35;letter-spacing:-.055em;margin:0}
.insights-list-head a,.insights-aside a{color:var(--accent);text-decoration:none;font-size:.72rem;font-weight:790}
.insights-filters{display:flex;flex-wrap:wrap;gap:2px 14px;border-bottom:1px solid var(--border);margin-top:5px}
.insights-filters button{border:0;border-bottom:2px solid transparent;padding:8px 0 6px;background:none;color:var(--muted);font:inherit;font-size:.7rem;font-weight:670;cursor:pointer}
.insights-filters button[aria-pressed=true]{color:var(--accent);border-bottom-color:var(--accent);font-weight:830}
.insights-row.post-card>a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px 0}
.insights-row h2,.insights-row h3{font-size:clamp(1rem,1.66vw,1.28rem);font-weight:780;line-height:1.45;letter-spacing:-.04em;margin:3px 0}
.insights-row p{color:var(--muted);font-size:.79rem;line-height:1.6;margin:0}
.insights-row.post-card img{width:113px;height:70px;aspect-ratio:auto;border-radius:0}
.insights-aside{display:flex;flex-direction:column;gap:13px;padding-top:4px}
.insights-aside .author-intro,.insights-compass{border:0;border-top:2px solid var(--accent);padding:20px;margin:0;background:var(--featured-bg)}
.insights-aside h2{font-size:1.35rem;margin:7px 0}
.insights-aside p{font-size:.81rem;color:var(--muted);line-height:1.7;margin:0 0 10px}.insights-aside p strong{color:var(--text)}
.insights-aside-links{display:flex;flex-wrap:wrap;gap:5px 13px}
.insights-compass{background:var(--notes-deep);color:var(--notes-deep-text);border-top-color:#e9545f}
.insights-compass p{color:var(--notes-deep-muted)}
.insights-compass a,.insights-compass .insights-kicker{color:var(--notes-deep-accent)}
.insights-compass .insights-fallback{margin-inline-start:8px;color:var(--notes-deep-muted)}
.insights-essay.essay{max-width:800px;padding-block:32px 18px}
.insights-back{display:inline-flex;gap:.45rem;color:var(--accent);font-weight:800;font-size:.75rem;text-decoration:none;margin-bottom:17px}
.insights-essay .insights-kicker{margin:0}.insights-essay h1{margin:11px 0 14px;text-wrap:pretty}
.insights-essay .intro{font-size:clamp(1rem,2vw,1.12rem);margin:0 0 14px}
.insights-credit{display:flex;flex-wrap:wrap;gap:5px 14px;font-size:.76rem;color:var(--muted);border-bottom:1px solid var(--border);padding-bottom:15px;margin-bottom:18px}
.insights-credit strong{color:var(--text)}
.insights-prose,.insights-essay .author-byline,.insights-essay .post-back{max-width:660px;margin-inline:auto}
.insights-prose{font-size:1.05rem;line-height:1.9;overflow-wrap:anywhere}
.insights-prose p:first-child{margin-top:0}
.insights-prose img{display:block;height:auto;max-width:100%;margin-inline:auto}
.insights-prose blockquote{font-family:var(--ink-serif);border-left:2px solid var(--accent);font-size:1.12em}
.insights-prose table{display:block;max-width:100%;overflow-x:auto}
.insights-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:where(a,button,select):focus-visible{outline:2px solid var(--focus);outline-offset:4px}
@media(max-width:64rem){.insights-main,.notes-shell{width:calc(100% - 48px)}}
@media(max-width:50rem){.notes-masthead-inner{grid-template-columns:1fr auto;gap:0 14px;min-height:0;padding-top:10px}
  .notes-primary{grid-row:2;grid-column:1/-1}.notes-utilities{justify-content:flex-end}.notes-languages{order:3;width:100%;justify-content:flex-end;gap:7px}.notes-languages a{min-height:1.6rem}.notes-compass{min-height:1.8rem}}
@media(max-width:42.5rem){
  .insights-main,.notes-shell{width:calc(100% - 36px)}
  .notes-mark{width:30px;height:30px}.notes-name{font-size:1.3rem}.notes-brand{gap:7px}.notes-primary{gap:14px}
  .notes-utilities{gap:3px 6px}.notes-compass{font-size:.69rem}.notes-languages a{font-size:.58rem}
  .insights-intro{padding:19px 0 15px;align-items:start}.insights-intro p{font-size:.75rem}.insights-edition{font-size:.55rem}
  .insights-feature.featured>a{grid-template-columns:1fr;gap:16px;padding:19px 0 21px}
  .insights-feature h1,.insights-essay h1{font-size:clamp(1.9rem,8.2vw,2.8rem);margin:10px 0 12px}
  .insights-feature .insights-feature-copy p{font-size:.84rem;margin-bottom:10px}.insights-feature.featured img{aspect-ratio:2.1}
  .insights-grid{grid-template-columns:1fr;gap:20px;padding:23px 0 27px}
  .insights-list-head h1,.insights-list-head h2{font-size:1.48rem}.insights-row.post-card>a{gap:11px;padding:12px 0}
  .insights-row.post-card img{width:76px;height:53px}.insights-row p{display:none}
  .insights-aside .author-intro,.insights-compass{padding:15px}
  .insights-essay.essay{padding-top:21px}.insights-prose{font-size:.97rem}
  .notes-footer{padding-block:1.2rem}.notes-footer-inner{align-items:flex-start;flex-direction:column}
}
