/* Art+Logic · articles, newsletters, videos, and the Resources hub.
   Built on the variables in site.css; only adds what content pages need. */

.i-mod{--ic:var(--mod);--ic-tx:var(--mod-tx);--ic-lt:#FDF0CF}
.i-res{--ic:var(--res);--ic-tx:var(--res-tx);--ic-lt:#F8DCE3}
.i-bld{--ic:var(--bld);--ic-tx:var(--bld-tx);--ic-lt:#D3ECE5}
.i-rch{--ic:var(--rch);--ic-tx:var(--rch-tx);--ic-lt:#E0DFF8}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.hl{background:linear-gradient(transparent 58%,color-mix(in srgb,var(--teal-lt) 55%,transparent) 58%)}

/* header */
.e-head{padding:120px 0 56px;overflow:hidden}
.e-narrow{max-width:820px}
.crumbs{color:var(--mute);margin-bottom:22px;position:relative}
.crumbs a:hover{color:var(--teal)}
.e-tags{display:flex;gap:10px;align-items:center;flex-wrap:wrap;position:relative}
.e-kind{display:inline-flex;align-items:center;gap:8px;color:var(--mute)}
.e-kind i,.tile .kind i{font-style:normal}
.e-kind i{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;background:var(--ink);color:#fff;font-size:.72rem}
.k-video .e-kind i{background:var(--cta)}
.e-intent{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:.86rem;padding:6px 12px 6px 8px;border-radius:999px;background:var(--card);box-shadow:var(--sh-chip);transition:transform .25s var(--ease)}
.e-intent i{width:14px;height:14px;border-radius:50%;background:var(--ic);box-shadow:0 0 0 3px var(--ic-lt)}
.e-intent:hover{transform:translateY(-2px)}
.mast{font:700 .74rem var(--f-mono);letter-spacing:.06em;color:var(--mod-tx);border:1px solid rgba(232,163,23,.4);border-radius:6px;padding:4px 7px;background:#FFF8EC}
.e-head h1{font-size:clamp(2.3rem,5vw,4rem);margin:22px 0 18px;position:relative;text-wrap:balance}
.e-head .lede{font-size:1.2rem;position:relative}
.e-by{display:flex;flex-wrap:wrap;gap:6px 18px;color:var(--mute);margin-top:22px;position:relative}
.e-by span+span::before{content:"·";margin-right:18px;color:var(--line)}

/* body copy */
.prose{font-size:1.1rem;line-height:1.72;color:var(--ink2);padding-bottom:40px}
.prose>*+*{margin-top:1.05em}
.prose h2{font-size:clamp(1.6rem,2.6vw,2.1rem);color:var(--ink);margin-top:1.9em;line-height:1.1}
.prose h3{font-size:1.35rem;color:var(--ink);margin-top:1.6em;line-height:1.15;letter-spacing:-.015em}
.prose a{color:var(--teal);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.prose a:hover{color:var(--ink)}
.prose strong{color:var(--ink)}
.prose ul,.prose ol{padding-left:1.3em}
.prose li+li{margin-top:.45em}
.prose li::marker{color:var(--teal)}
.prose blockquote{border-left:3px solid var(--teal);padding:.2em 0 .2em 1.1em;font-style:italic;color:var(--ink)}
.prose img,.prose video{max-width:100%;height:auto;border-radius:14px;box-shadow:var(--sh)}
.prose video{display:block;background:#f3f1ec}
/* migrated post images (convert_content.py): small inline GIFs, floats, captions, embeds */
.prose img.sm{border-radius:4px;box-shadow:none;display:inline-block;vertical-align:middle;margin:.15em .35em .15em 0}
.prose img.al-r{float:right;margin:.35em 0 1em 1.6em;max-width:42%}
.prose img.al-l{float:left;margin:.35em 1.6em 1em 0;max-width:42%}
.prose h2,.prose h3,.prose figure,.prose .e-embed{clear:both}
.prose pre{overflow-x:auto}
.prose::after{content:"";display:block;clear:both}
.prose figure{margin:1.8em 0;text-align:center}
.prose figure img{display:block;margin:0 auto}
.prose figcaption{font-family:var(--f-mono);font-size:.78rem;letter-spacing:.02em;color:var(--mute);margin-top:.8em}
.prose .e-embed{position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;box-shadow:var(--sh);background:#14171C;margin:1.8em 0}
.prose .e-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
@media(max-width:640px){.prose img.al-r,.prose img.al-l{float:none;display:block;margin:1.2em auto;max-width:100%}}
.prose code{font-family:var(--f-mono);font-size:.86em;background:var(--bg2);padding:.12em .4em;border-radius:6px}
.prose pre{background:#14171C!important;color:#E6E9EE;border-radius:16px;padding:22px 24px;overflow-x:auto;font-size:.86rem;line-height:1.6;box-shadow:var(--sh)}
.prose pre code{background:none;padding:0;font-size:inherit;color:inherit}
.prose hr{border:0;border-top:1px solid var(--line);margin:2.2em 0}
.e-archive{display:block;background:var(--card);border-radius:12px;padding:12px 16px;color:var(--mute);box-shadow:var(--sh-chip)}

/* video */
.e-video{display:grid;grid-template-columns:minmax(260px,380px) 1fr;gap:48px;align-items:start;padding-bottom:40px}
.player{position:relative;border-radius:22px;overflow:hidden;background:#14171C;box-shadow:var(--sh)}
.player.tall{aspect-ratio:9/16}
.player.wide{aspect-ratio:16/9;grid-column:1/-1}
.player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.e-side .prose{padding-bottom:20px}
.transcript{background:var(--card);border-radius:16px;box-shadow:var(--sh-chip);padding:0 20px}
.transcript summary{cursor:pointer;list-style:none;font-weight:600;padding:16px 0;display:flex;justify-content:space-between}
.transcript summary::after{content:"+";font:500 1.3rem var(--f-mono);color:var(--teal);transition:transform .35s var(--ease)}
.transcript[open] summary::after{transform:rotate(45deg)}
.transcript .ans{color:var(--ink2);line-height:1.7;padding-bottom:18px}
.transcript .ans p+p{margin-top:.9em}

/* keep going */
.e-more{padding:60px 28px 30px;border-top:1px solid var(--line)}
.e-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.e-grid .tile{min-height:220px}
.e-icard{background:var(--ic);color:#fff}
.e-icard .kind{color:rgba(255,255,255,.75)}
.e-icard h3{font-size:1.6rem}
.e-icard .meta{color:rgba(255,255,255,.85);font-family:var(--f-body);font-size:.9rem}
.e-icard .go{margin-top:auto;padding-top:18px;font-weight:600;display:flex;gap:.4em}
.e-cta{padding:30px 28px 110px}
.e-ctabox{display:flex;justify-content:space-between;align-items:center;gap:30px;flex-wrap:wrap;background:var(--ink);color:#fff;border-radius:26px;padding:44px 48px;box-shadow:var(--sh)}
.e-ctabox h2{font-size:clamp(1.8rem,3vw,2.6rem);margin-top:10px}
.e-ctabox .lede{color:#AEB7C2;margin-top:10px}
.e-ctabox .eyebrow{color:var(--teal-lt)}

/* resources hub */
.rh-head h1{max-width:15em}
.rh-head .eyebrow{position:relative}
.rh-stats{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px;position:relative}
.rh-stats span{background:var(--card);box-shadow:var(--sh-chip);border-radius:10px;padding:8px 12px;color:var(--mute)}
.rh-stats b{color:var(--ink);font-weight:500}
.rh-feat{padding:20px 28px 60px}
.rh-frow{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:auto auto;gap:16px}
.rh-frow .tile{min-height:200px}
.rh-frow .t-video{grid-row:span 2;grid-column:auto;min-height:420px}
.rh-frow .t-news{grid-column:span 2}
.rh-lib{padding:30px 28px 40px;scroll-margin-top:72px}   /* author filter lands here, under the sticky menu */
.rh-bar{position:sticky;top:76px;z-index:5;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:20px;padding:16px 18px;box-shadow:var(--sh-chip);display:grid;gap:12px;margin-bottom:26px}
.rh-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.rh-row .lbl{color:var(--mute);width:72px}
.pills{display:flex;gap:8px;flex-wrap:wrap}
.pill{display:inline-flex;align-items:center;gap:7px;font-weight:500;font-size:.88rem;padding:7px 13px;border-radius:999px;background:var(--card);box-shadow:0 1px 2px rgba(30,40,55,.08);transition:background .25s,color .25s,transform .25s var(--ease)}
.pill i{font-style:normal;font-size:.75rem;opacity:.7}
.pill:hover{transform:translateY(-1px)}
.pill.on{background:var(--ink);color:#fff}
.pill-series{border:1px dashed rgba(232,163,23,.7);font-family:var(--f-mono);font-size:.78rem;letter-spacing:.02em}
.pill-series.on{background:var(--mod);color:var(--ink);border-color:var(--mod)}
.pill .dot{width:10px;height:10px;border-radius:50%}
.ip-mod .dot{background:var(--mod)}.ip-res .dot{background:var(--res)}.ip-bld .dot{background:var(--bld)}.ip-rch .dot{background:var(--rch)}
.ip-mod.on{background:var(--mod);color:var(--ink)}.ip-res.on{background:var(--res)}.ip-bld.on{background:var(--bld)}.ip-rch.on{background:var(--rch)}
.pill.on .dot{background:#fff}
.rh-search{margin-left:auto;flex:1;min-width:200px;max-width:320px}
.rh-search input{width:100%;font:inherit;font-size:.92rem;padding:9px 14px;border-radius:999px;border:1px solid var(--line);background:var(--white)}
.rh-search input:focus{outline:2px solid var(--teal);outline-offset:1px}
.rh-count{color:var(--mute)}
.rh-count b{color:var(--ink);font-weight:500}
.rh-grid{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.rcard{display:flex;flex-direction:column;height:100%;background:var(--card);border-radius:18px;padding:20px;box-shadow:var(--sh);border-top:4px solid var(--ic);transition:transform .4s var(--ease),box-shadow .4s var(--ease)}
.rcard:hover{transform:translateY(-6px) scale(1.015);box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 36px 64px -26px rgba(30,40,55,.5)}
.rc-top{display:flex;justify-content:space-between;gap:10px;color:var(--mute)}
.rc-kind{padding:2px 7px;border-radius:6px;background:var(--bg2)}
.rc-kind.k-video{background:var(--cta);color:#fff}
.rc-kind.k-newsletter{background:#FFF1D6;color:var(--mod-tx)}
.rc-int{display:inline-flex;align-items:center;gap:6px;color:var(--ic-tx)}
.rc-int i{width:8px;height:8px;border-radius:50%;background:var(--ic)}
.rcard h3{font-size:1.2rem;line-height:1.15;letter-spacing:-.015em;margin:16px 0 8px}
.rcard p{font-size:.92rem;color:var(--ink2);line-height:1.5;margin-bottom:14px}
.rc-meta{margin-top:auto;color:var(--mute);font-size:.7rem}
.rh-moreb{display:flex;justify-content:center;margin-top:30px}
.rh-empty{text-align:center;color:var(--mute);padding:40px 0}
.rh-empty a{color:var(--teal);text-decoration:underline}

@media (max-width:980px){
  .e-grid{grid-template-columns:1fr 1fr}
  .rh-grid{grid-template-columns:1fr 1fr}
  .rh-frow{grid-template-columns:1fr 1fr}.rh-frow .t-video{grid-column:span 2;grid-row:auto;min-height:320px}
  .e-video{grid-template-columns:1fr}.player.tall{max-width:360px;margin:0 auto;width:100%}
}
@media (max-width:640px){
  .e-head{padding:96px 0 36px}
  .e-grid,.rh-grid,.rh-frow{grid-template-columns:1fr}
  .rh-frow .t-video,.rh-frow .t-news{grid-column:auto}
  .rh-bar{position:static}
  .rh-row .lbl{width:100%}
  .rh-search{margin-left:0;max-width:none}
  .e-ctabox{padding:32px 26px}
}
/* "Art+Logic today" note at the end of every article: links to its intent + Expertise area */
.e-today{clear:both;margin-top:2.4em;padding:18px 20px;border-radius:16px;background:var(--card);box-shadow:var(--sh-chip);border-left:4px solid var(--ic,var(--teal))}
.e-today .mono{display:block;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--teal);margin-bottom:4px}
.e-today p{margin:0;font-size:1rem;color:var(--ink2)}
.e-xp i{background:var(--teal);box-shadow:0 0 0 3px rgba(0,122,124,.18)}
/* Full-text search hits (Pagefind): the matching words are highlighted in the card excerpt */
.rcard p.rc-hit mark{background:color-mix(in srgb,var(--ic) 22%,transparent);color:var(--ink);border-radius:3px;padding:0 2px}
.rh-archlink{margin-top:18px;text-align:center;font-size:.95rem;color:var(--mute)}
.rh-archlink a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}
/* /resources/archive/: every piece as a plain link, by year (reuses .pill + .rc-kind) */
.ra-years{margin-top:22px}
.ra-years .pill{font-family:var(--f-mono);font-size:.8rem}
.ra-n{font-size:.68rem;color:var(--mute);margin-left:2px}
.ra-list{padding-bottom:64px}
.ra-year{scroll-margin-top:96px;margin-top:38px}
.ra-year h2{font-size:clamp(1.8rem,3vw,2.4rem);display:flex;align-items:baseline;gap:12px;border-bottom:1px solid var(--line);padding-bottom:10px}
.ra-year h2 .mono{font-size:.8rem;font-weight:500;color:var(--mute);letter-spacing:.02em}
.ra-year ul{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:2px}
.ra-year li{display:grid;grid-template-columns:96px 1fr auto;gap:14px;align-items:baseline;padding:9px 10px;border-radius:10px;transition:background .25s}
.ra-year li:hover{background:var(--card)}
.ra-year li .rc-kind{font-size:.72rem;justify-self:start}
.ra-year li a{color:var(--ink);font-weight:500;line-height:1.35}
.ra-year li a:hover{color:var(--teal)}
.ra-meta{font-size:.74rem;color:var(--mute);white-space:nowrap;display:inline-flex;gap:6px;align-items:center}
.ra-int{display:inline-flex;align-items:center;gap:5px;color:var(--ic-tx)}
.ra-int i{width:7px;height:7px;border-radius:50%;background:var(--ic)}
@media(max-width:760px){.ra-year li{grid-template-columns:1fr;gap:4px}.ra-meta{white-space:normal}}
/* Resources card thumbnails (tools/make_thumbs.py): featured photo, else the intent-colored title card */
.rcard.has-th{padding:0;overflow:hidden;border-top:0}
.rcard.has-th>*:not(.rc-thumb){margin-left:20px;margin-right:20px}
.rcard.has-th .rc-top{margin-top:16px}
.rcard.has-th>:last-child{margin-bottom:20px}
.rc-thumb{display:block;aspect-ratio:1200/630;overflow:hidden;background:var(--bg2);border-bottom:4px solid var(--ic)}
.rc-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s var(--ease)}
.rcard:hover .rc-thumb img{transform:scale(1.04)}
@media (prefers-reduced-motion:reduce){.rc-thumb img,.rcard:hover .rc-thumb img{transition:none;transform:none}}
/* Tables in articles (comparison grids, data tables in old posts) */
.prose table{width:100%;border-collapse:collapse;font-size:.98rem;background:var(--card);border-radius:14px;overflow:hidden;box-shadow:var(--sh-chip)}
@media(max-width:640px){.prose table{display:block;overflow-x:auto}}
/* Two-column tables (label + explanation) fit the phone screen instead of scrolling sideways (Nov 13) */
@media(max-width:640px){
  .prose table:not(:has(th:nth-child(3),td:nth-child(3))){display:table;table-layout:fixed;font-size:.92rem}
  .prose table:not(:has(th:nth-child(3),td:nth-child(3))) :is(th,td){padding:10px 12px;overflow-wrap:break-word;hyphens:auto}
  .prose table:not(:has(th:nth-child(3),td:nth-child(3))) :is(th,td):first-child{width:38%;white-space:normal}
}
.prose thead th{font-family:var(--f-mono);font-size:.74rem;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--mute);text-align:left;background:var(--bg2)}
.prose th,.prose td{padding:12px 16px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
.prose tbody tr:last-child td{border-bottom:0}
.prose td:first-child{white-space:nowrap;color:var(--ink)}
/* note left where an old post's image is gone for good */
.prose .e-gone{font-family:var(--f-mono);font-size:.78rem;color:var(--mute);border:1px dashed var(--line);border-radius:10px;padding:10px 14px}

/* Author filter (Nov 13): byline links on articles, clickable names on Resources cards, "by Name ×" chip */
.e-by a.e-author{color:inherit;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px;transition:color .2s,text-decoration-color .2s}
.e-by a.e-author:hover{color:var(--ink);text-decoration-color:currentColor}
.rc-by{text-decoration:underline dotted;text-underline-offset:2px;cursor:pointer;transition:color .2s}
.rc-by:hover{color:var(--ink);text-decoration-style:solid}
.rh-status{justify-content:space-between}
.rh-who{display:inline-flex;align-items:center;gap:6px;color:var(--mute);margin:0}
.rh-who[hidden]{display:none}
.rh-who b{color:#fff;background:var(--ink);font-weight:500;padding:4px 4px 4px 11px;border-radius:999px 0 0 999px}
.rh-clear{background:var(--ink);color:#fff;border:0;border-radius:0 999px 999px 0;padding:4px 11px 4px 6px;margin-left:-6px;font:inherit;cursor:pointer}
.rh-clear:hover{background:var(--cta)}
