/* Boulder Bubble — one stylesheet, no framework.
   Type: STIX Two Text (italic display, as on the original site) + Inter (text and interface). */

@font-face { font-family: "STIX Two Text"; src: url("/assets/fonts/stix-two-text-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "STIX Two Text"; src: url("/assets/fonts/stix-two-text-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-alt: #efeeec;
  --bg-soft: #f6f6f5;
  --ink: #111111;
  --heading: #222222;
  --text: #4d4d4d;
  --muted: #6e6e6e;
  --line: #e2e1de;
  --line-strong: #111111;
  --chip: #ffffff;
  --focus: #1a5fd0;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px -12px rgb(0 0 0 / .18);

  --serif: "STIX Two Text", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6.5rem;
  --wrap: 82rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: .5rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #121212;
  --bg-alt: #1b1b1a;
  --bg-soft: #1a1a1a;
  --ink: #f4f4f2;
  --heading: #f0f0ee;
  --text: #c9c9c6;
  --muted: #9a9a96;
  --line: #2c2c2a;
  --line-strong: #e8e8e6;
  --chip: #1a1a1a;
  --focus: #7fb0ff;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -12px rgb(0 0 0 / .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--sans); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .3s var(--ease), color .3s var(--ease); }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--heading); margin: 0; font-weight: 400; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[role="list"], .chips, .social, .share, .tags, .topics__list, .trending, .articles { list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 99px; text-decoration: none; }
.skip:focus { top: 1rem; }
::selection { background: #111; color: #fff; }
[data-theme="dark"] ::selection { background: #fff; color: #111; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 46rem; }
.wrap--mid { --wrap: 62rem; }
.center { text-align: center; }
.label { font: 500 .75rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label--center { text-align: center; }

.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

/* ---------- buttons ---------- */
.pill-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .55rem 1.35rem; border: 1px solid var(--line-strong); border-radius: 99px; background: transparent; color: var(--ink); font: 500 .9375rem/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease); }
.pill-btn:hover { background: var(--ink); color: var(--bg); }
.pill-btn:active { transform: scale(.97); }
.pill-btn--solid { background: var(--ink); color: var(--bg); }
.pill-btn--solid:hover { background: transparent; color: var(--ink); }
.pill-btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ico { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ico--fill { fill: currentColor; stroke: none; }
.ico .fill { fill: currentColor; stroke: none; }

/* "Read more ○" — the original's link with a ring */
.read-more { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; color: var(--ink); font: 500 .9375rem/1 var(--sans); text-decoration: none; }
.read-more i { position: relative; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform .35s var(--ease-out), background-color .25s; }
.read-more i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 1.15rem; height: 1px; background: currentColor; transform: scaleX(.78); transition: transform .35s var(--ease-out); }
.read-more:hover i { transform: translateX(.3rem); background: var(--ink); }
.read-more:hover i::after { background: var(--bg); transform: none; }

/* ---------- header ---------- */
.masthead { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background-color .3s; }
.masthead.is-scrolled { border-bottom-color: var(--line); }
.masthead__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s4); min-height: 4.75rem; }
.menu-trigger { justify-self: start; display: inline-flex; align-items: center; gap: .7rem; min-height: 2.75rem; padding: 0; border: 0; background: none; font: italic 400 1.375rem/1 var(--serif); color: var(--ink); }
.menu-trigger__lines { display: grid; gap: 5px; width: 1.4rem; }
.menu-trigger__lines i { display: block; height: 1.5px; background: currentColor; transition: transform .3s var(--ease-out); }
.menu-trigger__lines i:last-child { width: 65%; }
.menu-trigger:hover .menu-trigger__lines i:last-child { transform: scaleX(1.55); transform-origin: left; }
.masthead__date { grid-column: 2; grid-row: 1; justify-self: center; font: 500 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.masthead__logo { grid-column: 2; grid-row: 1; justify-self: center; opacity: 0; transform: translateY(.4rem) scale(.96); pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--ease-out); }
.masthead__logo img { width: auto; height: 2.6rem; }
.is-home .masthead:not(.is-scrolled) .masthead__logo { visibility: hidden; }
.masthead.is-scrolled .masthead__date, body:not(.is-home) .masthead__date { opacity: 0; transform: translateY(-.4rem); pointer-events: none; }
.masthead.is-scrolled .masthead__logo, body:not(.is-home) .masthead__logo { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.masthead__tools { justify-self: end; display: flex; align-items: center; gap: var(--s2); }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
@media (max-width: 40rem) {
  .masthead__bar { min-height: 4rem; gap: var(--s2); }
  .menu-trigger span:last-child { font-size: 1.15rem; }
  .masthead__date { display: none; }
  .masthead__logo img { height: 2.1rem; }
  .masthead__tools .pill-btn { display: none; }
  .masthead__tools .icon-btn { width: 2.5rem; height: 2.5rem; }
}

/* ---------- drawer (off-canvas menu) ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: min(28rem, 100%) 1fr; }
.drawer__panel { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--s6); padding: 5.5rem var(--s6) var(--s6); background: #111; color: rgb(255 255 255 / .8); overflow-y: auto; transform: translateX(-100%); transition: transform .5s var(--ease-out); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__scrim { background: rgb(0 0 0 / .45); opacity: 0; transition: opacity .4s var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__close { position: absolute; top: 1rem; right: 1rem; color: #fff; border-color: rgb(255 255 255 / .25); }
.drawer__nav ul { list-style: none; display: grid; gap: .35rem; }
.drawer__nav a { display: inline-block; padding: .2rem 0; font: italic 400 clamp(2rem, 6vw, 2.6rem)/1.15 var(--serif); color: rgb(255 255 255 / .85); text-decoration: none; opacity: 0; transform: translateX(-1rem); transition: color .2s, opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(.08s + var(--i) * .05s); }
.drawer.is-open .drawer__nav a { opacity: 1; transform: none; }
.drawer__nav a:hover, .drawer__nav a[aria-current] { color: rgb(255 255 255 / .5); }
.drawer__topics .label { color: rgb(255 255 255 / .5); margin-bottom: var(--s3); }
.drawer__topics ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.drawer__topics a { display: inline-block; padding: .45rem .9rem; border: 1px solid rgb(255 255 255 / .2); border-radius: 99px; font-size: .875rem; color: #fff; text-decoration: none; }
.drawer__topics a:hover { background: #fff; color: #111; }
.social { display: flex; gap: var(--s2); }
.social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: inherit; transition: background-color .2s, color .2s; }
.social a:hover { background: var(--ink); color: var(--bg); }
.social--drawer { margin-top: auto; color: #fff; }
.social--drawer a:hover { background: #fff; color: #111; }
@media (max-width: 40rem) { .drawer { grid-template-columns: 100%; } .drawer__scrim { display: none; } }

/* ---------- search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 70; background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(8px); padding-top: 18vh; opacity: 0; transition: opacity .3s var(--ease); }
.search-overlay.is-open { opacity: 1; }
.search-overlay__close { position: absolute; top: 1rem; right: 1rem; }
.search-overlay input { width: 100%; padding: .4rem 0 .8rem; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: italic 400 clamp(2rem, 6vw, 3.75rem)/1.1 var(--serif); outline: none; }
.search-overlay input::placeholder { color: var(--muted); }
.search-overlay__results { list-style: none; margin-top: var(--s5); display: grid; gap: .25rem; }
.search-overlay__results a { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--heading); font-size: 1.0625rem; }
.search-overlay__results a:hover { color: var(--muted); }
.search-overlay__results small { color: var(--muted); white-space: nowrap; }

/* ---------- home hero ---------- */
.hero { display: grid; justify-items: center; gap: var(--s3); padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.hero__logo { margin: 0; }
.hero__logo img { width: clamp(15rem, 44vw, 34rem); height: auto; }
.hero__tagline { font: 500 .75rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s5); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section__title { font: 400 clamp(2.1rem, 4.6vw, 3.4rem)/1.05 var(--sans); letter-spacing: -.025em; color: var(--heading); }
.section__title--center { text-align: center; margin-bottom: var(--s6); }
.section__sub { flex-basis: 100%; order: 3; color: var(--muted); font-size: .9375rem; letter-spacing: .02em; }
.section__more { font-size: .875rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: .1rem; }
.section__more:hover { color: var(--ink); border-color: var(--ink); }
.lede-title { text-align: center; font: italic 400 clamp(1.6rem, 3.4vw, 2rem)/1.3 var(--serif); color: var(--text); margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.rule { border: 0; border-top: 1px solid var(--line-strong); margin-block: 0; }

/* ---------- chips / meta ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; min-height: 1.6rem; padding: .15rem .7rem; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--chip); color: var(--ink); font: 500 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background-color .2s, color .2s; }
.chip:hover { background: var(--ink); color: var(--bg); }
.meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .8125rem; color: var(--muted); }
.meta span::before { content: ""; display: inline-block; width: 1px; height: .7em; background: var(--line); margin-right: .9rem; vertical-align: -.05em; }

/* ---------- cards ---------- */
.card { position: relative; display: grid; gap: var(--s4); align-content: start; }
.card__media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: grid; gap: var(--s3); align-content: start; }
.card__title { font: 400 1.375rem/1.25 var(--sans); letter-spacing: -.012em; color: var(--heading); }
.card__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-out); }
.card__title a:hover { background-size: 100% 1px; }
.card__excerpt { color: var(--text); font-size: 1rem; }
.card__note { font: italic 400 1.0625rem/1.45 var(--serif); color: var(--heading); }
.card__note span { font: 400 .8125rem var(--sans); color: var(--muted); }
.card--text { align-content: center; justify-items: center; text-align: center; padding-block: var(--s6); }
.card--text .card__title { font: italic 400 clamp(1.75rem, 3vw, 2.4rem)/1.2 var(--sans); letter-spacing: -.02em; }
.card--text .card__body { justify-items: center; gap: var(--s5); }
.card--row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.25rem, 4vw, 3.5rem); }
.card--row .card__title { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.card--row .card__media { aspect-ratio: 3 / 2; }
.card--mini { grid-template-columns: 4.5rem 1fr; align-items: center; }
.card--mini .card__media { aspect-ratio: 1; }
.card--mini .card__title { font-size: 1rem; }
@media (max-width: 44rem) { .card--row { grid-template-columns: 1fr; } }

.card--cover { display: grid; min-height: clamp(26rem, 60vw, 42rem); color: #fff; isolation: isolate; }
.card--cover .card__media { position: absolute; inset: 0; z-index: -1; border-radius: 0; aspect-ratio: auto; }
.card--cover .card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .62) 0%, rgb(0 0 0 / .35) 45%, rgb(0 0 0 / 0) 75%); }
.card--cover .card__body { align-self: center; padding-block: clamp(3rem, 8vw, 5rem); width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; max-width: none; }
.card--cover .card__body > * { max-width: 30rem; }
.card--cover .card__title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.03em; }
.card--cover .card__excerpt { color: rgb(255 255 255 / .88); font-size: 1.0625rem; }
.card--cover .chip { background: transparent; border-color: rgb(255 255 255 / .8); color: #fff; }
.card--cover .read-more { color: #fff; }
.card--cover .read-more i { border-color: #fff; }
.card--cover .read-more:hover i { background: #fff; }
.card--cover .read-more:hover i::after { background: #111; }
.card--cover:hover .card__media img { transform: scale(1.025); }

.grid { display: grid; gap: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 3vw, 2.5rem); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); }

/* ---------- Richard's desk ---------- */
.desk__top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.desk__top .card--stack { text-align: center; justify-items: center; }
.desk__top .card--stack .card__body { justify-items: center; }
.desk__top .card--stack .card__title { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.desk__row { padding-block: clamp(2.5rem, 6vw, 5rem); }
.desk__trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.desk__trio .card--stack { text-align: center; justify-items: center; }
.desk__trio .card__body { justify-items: center; }
.inbox { display: grid; gap: var(--s3); justify-items: center; text-align: center; padding: var(--s6) var(--s5); }
.inbox__title { font: 400 clamp(1.6rem, 2.4vw, 2rem)/1.15 var(--sans); letter-spacing: -.02em; }
.desk__linkedin { margin-top: clamp(3rem, 7vw, 5.5rem); }
.desk__linkedin > .label { margin-bottom: var(--s4); }
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); border-top: 1px solid var(--line); }
.article-link a { display: grid; gap: .35rem; height: 100%; padding: var(--s5) var(--s4) var(--s5) 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.article-link__date { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.article-link__title { font: italic 400 1.3125rem/1.25 var(--serif); color: var(--heading); }
.article-link__excerpt { font-size: .9375rem; color: var(--text); }
.article-link a:hover .article-link__title { text-decoration: underline; text-decoration-thickness: 1px; }
@media (max-width: 56rem) { .desk__top, .desk__trio { grid-template-columns: 1fr; } }

.wide-feature { margin-block: clamp(1rem, 3vw, 2rem) 0; }

/* ---------- podcasts, video ---------- */
.podcasts { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.podcasts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 17.5rem)); justify-content: center; gap: var(--s6) var(--s5); }
.podcasts__grid .card__media { aspect-ratio: 1; }
.video { margin: 0; position: relative; }
.video__play { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video__play img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), opacity .3s; }
.video__play:hover img { transform: scale(1.025); opacity: .92; }
.video__icon { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: clamp(4rem, 9vw, 6rem); height: clamp(4rem, 9vw, 6rem); border-radius: 50%; background: rgb(255 255 255 / .92); color: #111; box-shadow: 0 10px 40px rgb(0 0 0 / .35); transition: transform .35s var(--ease-out); }
.video__icon svg { width: 38%; fill: currentColor; margin-left: 8%; }
.video__play:hover .video__icon { transform: scale(1.08); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.video--big { width: min(100%, 60rem); margin-inline: auto; }

/* ---------- picks ---------- */
.picks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.picks__video { grid-column: span 2; }
@media (max-width: 56rem) { .picks__grid { grid-template-columns: 1fr 1fr; } .picks__video { grid-column: 1 / -1; order: -1; } }
@media (max-width: 36rem) { .picks__grid { grid-template-columns: 1fr; } }

/* ---------- book ---------- */
.book { display: grid; grid-template-columns: minmax(10rem, 17rem) minmax(0, 34rem); justify-content: center; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.book__cover { margin: 0; transform: rotate(-2deg); transition: transform .6s var(--ease-out); }
.book__cover:hover { transform: rotate(0) translateY(-.25rem); }
.book__cover img { border-radius: 3px; box-shadow: 0 2px 4px rgb(0 0 0 / .1), 0 24px 50px -18px rgb(0 0 0 / .45); }
.book__text { display: grid; gap: var(--s4); justify-items: start; }
.book__title { font: 400 clamp(2rem, 4vw, 2.75rem)/1.1 var(--serif); }
.book__by { font: italic 400 1.125rem var(--serif); color: var(--muted); margin-top: -.5rem; }
@media (max-width: 40rem) { .book { grid-template-columns: 1fr; justify-items: center; text-align: center; } .book__text { justify-items: center; } .book__cover { width: 12rem; } }

/* ---------- topics ---------- */
.topics__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.topics__list--left { justify-content: flex-start; margin-block: var(--s4) var(--s6); }
.topic { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1.25rem; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--ink); font-size: .9375rem; text-decoration: none; transition: background-color .2s, color .2s; }
.topic:hover, .topic.is-on { background: var(--ink); color: var(--bg); }

/* ---------- footer ---------- */
.footer { --f-ink: #f4f3ef; --f-muted: rgb(244 243 239 / .62); --f-line: rgb(244 243 239 / .14);
  position: relative; margin-top: clamp(3rem, 8vw, 6rem); background: #0f0f0e; color: var(--f-muted); overflow: hidden; isolation: isolate; }
.footer::before { content: ""; position: absolute; inset: -40% -10% auto; height: 80%; z-index: -1; background: radial-gradient(60% 60% at 70% 30%, rgb(255 255 255 / .06), transparent 70%); pointer-events: none; }
[data-theme="dark"] .footer { background: #0a0a0a; border-top: 1px solid var(--line); }
.footer a { color: var(--f-ink); text-decoration: none; }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 6rem); padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.footer__kicker { font: 500 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--f-muted); margin-bottom: var(--s4); }
.footer__title { color: var(--f-ink); font: 400 clamp(2.2rem, 4.6vw, 3.75rem)/1.02 var(--sans); letter-spacing: -.035em; max-width: 14ch; }
.footer__lede { margin-block: var(--s4) var(--s5); max-width: 34ch; font-size: 1.0625rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); align-content: start; padding-top: .4rem; }
.footer__h a { font: inherit !important; color: inherit !important; background: none !important; padding: 0 !important; }
.footer__h a:hover { color: var(--f-ink) !important; }
.footer__h { font: 500 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--f-muted); margin-bottom: var(--s4); }
.footer__cols ul { list-style: none; display: grid; gap: .15rem; }
.footer__cols a { display: inline-block; padding-block: .3rem; font: italic 400 1.1875rem/1.3 var(--serif); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out), opacity .2s; }
.footer__cols a:hover { background-size: 100% 1px; }
.footer__cols a[aria-current] { opacity: .55; }
.footer__mark { padding-block: clamp(1rem, 3vw, 2rem) 0; border-top: 1px solid var(--f-line); }
.footer__mark { overflow: hidden; }
.footer__mark img { width: 100%; height: auto; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .footer__mark img { animation: mark-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes mark-rise { from { transform: translateY(35%); } to { transform: none; } }
  }
}
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: clamp(1.25rem, 3vw, 2rem) clamp(2rem, 4vw, 2.5rem); font-size: .875rem; }
.footer__legal a:hover { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 52rem) {
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) { .footer__legal { padding-bottom: 5.5rem; } }
@media (max-width: 30rem) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
}

/* newsletter sign-up: our own form, sent to Beehiiv's magic link */
.nl { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; width: min(100%, 28rem); }
.nl__email { flex: 1 1 12rem; min-width: 0; min-height: 3rem; padding: 0 1.15rem; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--bg); color: var(--ink); font: 400 1rem/1 var(--sans); }
.nl__email::placeholder { color: var(--muted); }
.nl__email:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nl__btn { flex: none; min-height: 3rem; padding: 0 1.4rem; border: 1px solid var(--ink); border-radius: 99px; background: var(--ink); color: var(--bg); font: 500 .9375rem/1 var(--sans); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.nl__btn:hover { background: transparent; color: var(--ink); }
.nl__btn:disabled { opacity: .6; cursor: progress; }
.nl__msg { flex-basis: 100%; margin: 0; font-size: .875rem; }
.nl__msg:empty { display: none; }
.nl.is-done .nl__email, .nl.is-done .nl__btn { display: none; }
.nl--dark .nl__email { border-color: rgb(244 243 239 / .28); background: rgb(244 243 239 / .06); color: #f4f3ef; }
.nl--dark .nl__email::placeholder { color: rgb(244 243 239 / .55); }
.nl--dark .nl__email:focus-visible { outline-color: #f4f3ef; }
.nl--dark .nl__btn { border-color: #f4f3ef; background: #f4f3ef; color: #111; }
.nl--dark .nl__btn:hover { background: transparent; color: #f4f3ef; }
.nl--dark .nl__msg { color: #f4f3ef; }
.inbox .nl, .club .nl { margin-inline: auto; justify-content: center; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 90; max-width: calc(100% - 2rem); margin: 0; padding: .9rem 1.3rem; border-radius: .75rem; background: var(--ink); color: var(--bg); font-size: .9375rem; transform: translateX(-50%); box-shadow: 0 16px 40px -16px rgb(0 0 0 / .5); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.toast.is-gone { opacity: 0; transform: translate(-50%, 1rem); pointer-events: none; }

/* "Join the club" pop-up (the old site's Subscribe pop-up) */
.join { width: min(100% - 2rem, 52rem); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 1rem; background: #141413; color: rgb(244 243 239 / .7); overflow: hidden; }
.join[open] { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); animation: join-in .45s var(--ease-out); }
.join::backdrop { background: rgb(10 10 10 / .55); backdrop-filter: blur(4px); animation: join-fade .3s var(--ease); }
.join__mark { display: grid; place-items: center; padding: 2.5rem; background: #f4f3ef; }
.join__mark img { width: min(100%, 15rem); height: auto; }
.join__body { display: grid; align-content: center; gap: 1rem; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem); }
.join__kicker { font: 500 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.join__title { color: #f4f3ef; font: 400 clamp(1.7rem, 3.4vw, 2.4rem)/1.08 var(--sans); letter-spacing: -.03em; max-width: 17ch; margin-bottom: .5rem; text-wrap: balance; }
.join__x { position: absolute; top: .75rem; right: .75rem; margin: 0; }
.join__close { color: #f4f3ef; border-color: rgb(244 243 239 / .25); }
.join__close:hover { background: rgb(244 243 239 / .1); }
@keyframes join-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes join-fade { from { opacity: 0; } }
@media (max-width: 40rem) { .join[open] { grid-template-columns: 1fr; } .join__mark { display: none; } }

/* ---------- The Optimism Company products ---------- */
.assist { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 45; display: grid; justify-items: end; gap: .5rem; }
.assist__launch { min-height: 2.75rem; padding: .5rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--bg); color: var(--ink); font: 500 .875rem/1 var(--sans);
  box-shadow: 0 6px 18px -10px rgb(0 0 0 / .35); transition: background-color .2s, color .2s; }
.assist__launch:hover, .assist__launch[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.assist__panel { width: min(21rem, calc(100vw - 2rem)); padding: .5rem; border: 1px solid var(--line); border-radius: .875rem; background: var(--bg); color: var(--text);
  box-shadow: 0 18px 44px -18px rgb(0 0 0 / .35); transform-origin: 100% 100%; opacity: 0; transform: translateY(.4rem); transition: opacity .2s var(--ease), transform .3s var(--ease-out); }
.assist.is-open .assist__panel { opacity: 1; transform: none; }
.assist__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .25rem .25rem .25rem .6rem; }
.assist__title { font: 600 .875rem/1.3 var(--sans); color: var(--heading); }
.assist__close { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.assist__close:hover { color: var(--ink); background: var(--bg-soft); }
.assist__close svg { width: .95rem; height: .95rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.assist__list { list-style: none; display: grid; }
.assist__item { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name go" "line go"; align-items: center; column-gap: .75rem; padding: .65rem .6rem; border-radius: .5rem; text-decoration: none; color: var(--ink); }
.assist__item:hover { background: var(--bg-soft); }
.assist__name { grid-area: name; font: 400 1.0625rem/1.25 var(--serif); color: var(--heading); }
.assist__line { grid-area: line; font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.assist__go { grid-area: go; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); transition: transform .3s var(--ease-out), color .2s; }
.assist__item:hover .assist__go { color: var(--ink); transform: translate(2px, -2px); }
.assist__foot { margin-top: .25rem; padding: .6rem .6rem .35rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.assist__foot a { color: var(--ink); }
@media (max-width: 40rem) {
  .assist__panel { width: calc(100vw - 2rem); }
}

/* ---------- page heads, archives ---------- */
.page-head { display: grid; justify-items: center; gap: var(--s4); text-align: center; padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); }
.page-head__title { font: 400 clamp(2.5rem, 6.5vw, 4.75rem)/1.02 var(--sans); letter-spacing: -.035em; max-width: 18ch; }
.page-head__intro { max-width: 38rem; font-size: 1.125rem; color: var(--text); }
.page-head__avatar { width: 7.5rem; height: 7.5rem; border-radius: 50%; object-fit: cover; }
.page-head__avatar--initial { display: grid; place-items: center; background: var(--ink); color: var(--bg); font: italic 400 3.5rem/1 var(--serif); }
.list { display: grid; gap: 0; }
.list .card { padding-block: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line); }
.list .card--row { grid-template-columns: minmax(0, 15rem) 1fr; }
.list .card--row .card__title { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.list .card--row .card__media { aspect-ratio: 4 / 3; }
@media (max-width: 36rem) { .list .card--row { grid-template-columns: 7rem 1fr; align-items: start; gap: var(--s4); } .list .card--row .card__excerpt { display: none; } .list .card--row .chips { display: none; } }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.sidebar { position: sticky; top: 6.5rem; }
.sidebar .label { margin-bottom: var(--s3); }
.trending { counter-reset: t; display: grid; }
.trending a { display: grid; grid-template-columns: 1fr 4.5rem; gap: var(--s3); align-items: center; padding-block: var(--s3); border-bottom: 1px solid var(--line); text-decoration: none; font-size: .9375rem; line-height: 1.35; color: var(--heading); }
.trending img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 4px; }
.trending a:hover span { text-decoration: underline; }
@media (max-width: 60rem) { .with-sidebar { grid-template-columns: 1fr; } .sidebar { position: static; } }
.empty { padding: var(--s7) 0; text-align: center; color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; padding-block: var(--s7) 0; }
.pager ol { list-style: none; display: flex; gap: .35rem; }
.pager a, .pager li[aria-hidden] { display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); font-size: .9375rem; }
.pager li[aria-hidden] { border-color: transparent; }
.pager a:hover { border-color: var(--line-strong); }
.pager a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.search-page { display: flex; gap: .5rem; width: min(100%, 34rem); }
.search-page input { flex: 1; min-width: 0; min-height: 2.9rem; padding: .5rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--bg); color: var(--ink); font: inherit; }

/* ---------- article ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8125rem; color: var(--muted); margin-bottom: var(--s5); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.article__head { padding-top: clamp(1.5rem, 4vw, 3rem); }
.article__lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-bottom: clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line-strong); }
.article__lead--noimg { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.article__image { margin: 0; overflow: hidden; border-radius: var(--radius); }
.article__image img { width: 100%; }
.article__titles { display: grid; gap: var(--s5); }
.article__title { font: 400 clamp(2.1rem, 4.6vw, 3.6rem)/1.06 var(--sans); letter-spacing: -.03em; }
.article__dek { font: italic 400 clamp(1.15rem, 1.8vw, 1.35rem)/1.5 var(--serif); color: var(--text); }
.article__layout { display: grid; grid-template-columns: 12rem minmax(0, 42rem); justify-content: center; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(2rem, 5vw, 3.5rem); }
.article__meta { position: sticky; top: 6.5rem; align-self: start; display: grid; gap: var(--s5); }
.article__meta dl { margin: 0; display: grid; gap: var(--s4); }
.article__meta dt { font: italic 400 1rem var(--serif); color: var(--muted); }
.article__meta dd { margin: 0; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.article__meta dd a { text-decoration: none; }
.share { display: flex; gap: .35rem; }
.share a, .share button { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); }
.share a:hover, .share button:hover { border-color: var(--line-strong); }
.share .is-copied { background: var(--ink); color: var(--bg); }
@media (max-width: 56rem) {
  .article__lead { grid-template-columns: minmax(0, 1fr); }
  .article__layout { grid-template-columns: minmax(0, 1fr); }
  .article__meta { position: static; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
  .article__meta dl { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); }
}
@media (max-width: 34rem) {
  .article__meta { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
}
.prose { font-size: 1.1875rem; line-height: 1.75; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.prose pre, .prose table { max-width: 100%; overflow-x: auto; }
.prose > * + * { margin-top: 1.25em; }
.prose h2, .prose h3, .prose h4 { color: var(--heading); margin-top: 2em; letter-spacing: -.015em; }
.prose h2 { font-size: 1.85rem; }
.prose h3 { font-size: 1.45rem; }
.prose h4 { font-size: 1.2rem; }
.prose a { color: var(--ink); text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong, .prose b { color: var(--heading); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 2em 0; padding-left: 1.25em; border-left: 2px solid var(--line-strong); font: italic 400 1.45rem/1.45 var(--serif); color: var(--heading); }
.prose img { border-radius: var(--radius); margin-inline: auto; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: .875rem; color: var(--muted); margin-top: .6rem; text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose > p:first-child::first-letter { float: left; font: 400 4.1em/.82 var(--serif); margin: .08em .1em 0 0; color: var(--heading); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: 2.5em !important; font-size: .9375rem; }
.tags a { color: var(--muted); text-decoration: none; }
.tags a:hover { color: var(--ink); }
.article__after { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.club { display: grid; justify-items: center; gap: var(--s4); text-align: center; padding: clamp(2rem, 5vw, 3.5rem) var(--s5); background: var(--bg-alt); border-radius: var(--radius); }
.club__title { font: 400 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--sans); letter-spacing: -.02em; max-width: 22ch; }
.byline { display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--s5); align-items: center; width: min(100%, 42rem); margin-inline: auto; }
.byline img, .byline__initial { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; }
.byline__initial { display: grid; place-items: center; background: var(--ink); color: var(--bg); font: italic 400 2rem/1 var(--serif); }
.byline__name { font: italic 400 1.4rem/1.2 var(--serif); color: var(--heading); margin-bottom: .25rem; }
.byline__name a { text-decoration: none; }
.byline p { font-size: .9688rem; }
.pager-posts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); padding-block: var(--s5); border-block: 1px solid var(--line-strong); }
.pager-posts__item { display: grid; gap: .4rem; text-decoration: none; }
.pager-posts__item--next { text-align: right; }
.pager-posts__title { font: italic 400 1.25rem/1.3 var(--serif); color: var(--heading); }
.pager-posts__item:hover .pager-posts__title { text-decoration: underline; text-decoration-thickness: 1px; }
.related .section__title { margin-bottom: var(--s6); }
@media (max-width: 40rem) { .pager-posts { grid-template-columns: 1fr; } .pager-posts__item--next { text-align: left; } }

/* ---------- about / app pages ---------- */
.about { display: grid; gap: clamp(2.5rem, 6vw, 4rem); padding-bottom: var(--s7); }
.about__block { display: grid; gap: var(--s4); }
.about__block p { font: 400 clamp(1.15rem, 1.9vw, 1.35rem)/1.65 var(--sans); color: var(--text); }
.about__block .about__mission { font: italic 400 clamp(1.6rem, 3.2vw, 2.3rem)/1.3 var(--serif); color: var(--heading); }
.about__more { text-align: center; }
.tools { display: grid; gap: var(--s5); margin: 0; }
.tools div { display: grid; gap: .4rem; padding-top: var(--s4); border-top: 1px solid var(--line); }
.tools dt { font: 500 clamp(1.25rem, 2vw, 1.5rem)/1.2 var(--sans); letter-spacing: -.01em; }
.tools dt a { color: var(--heading); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.tools dt a:hover { border-color: var(--ink); }
.tools dd { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.15rem); line-height: 1.65; color: var(--text); }
.tools__how { margin-top: var(--s3); font: 500 clamp(1.25rem, 2vw, 1.5rem)/1.2 var(--sans); color: var(--heading); }
.app-launch { display: grid; justify-items: center; gap: var(--s5); text-align: center; max-width: 36rem; margin-inline: auto; padding: clamp(2rem, 6vw, 4rem); border: 1px solid var(--line); border-radius: 1rem; }
.app-launch img { width: 6rem; height: 6rem; border-radius: 50%; }
.app-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.app-frame iframe { display: block; width: 100%; height: 80vh; border: 0; }

/* ---------- curator ---------- */
.signin { display: grid; gap: var(--s3); max-width: 24rem; padding-bottom: var(--s8); }
.signin input { min-height: 2.9rem; padding: .5rem 1rem; border: 1px solid var(--line-strong); border-radius: .5rem; background: var(--bg); color: var(--ink); font: inherit; }
.signin__error { color: #b3261e; }
[data-theme="dark"] .signin__error { color: #ff8a80; }
.curate__group { margin-bottom: var(--s7); }
.curate__group > .label { margin-bottom: var(--s4); }
.curate__card { position: relative; display: grid; gap: .6rem; align-content: start; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius); }
.curate__card.is-picked { border-color: #c9a227; box-shadow: 0 0 0 1px #c9a227; }
.curate__card img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.curate__card h3 { font-size: 1rem; line-height: 1.35; }
.curate__card h3 a { text-decoration: none; }
.curate__star { position: absolute; top: .6rem; right: .6rem; z-index: 1; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / .94); color: #bbb; font-size: 1.25rem; box-shadow: 0 1px 6px rgb(0 0 0 / .18); }
.curate__star[aria-pressed="true"] { color: #c9a227; }
.curate__note { display: flex; gap: .35rem; }
.curate__note input { flex: 1; min-width: 0; min-height: 2.5rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--bg); color: var(--ink); font-size: .875rem; }
.curate__note .icon-btn { width: 2.5rem; height: 2.5rem; border-radius: .4rem; }

/* ================= widgets ================= */

/* filter bar shared by news and stories */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem; margin-bottom: var(--s5); background: var(--bg-soft); border: 1px solid var(--line); border-radius: .75rem; }
.filterbar__chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.filterbar__chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.25rem; padding: .3rem .8rem; border: 1px solid transparent; border-radius: 6px; background: var(--bg); color: var(--ink); font: 600 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; transition: background-color .2s, color .2s, border-color .2s; }
.filterbar__chip::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--dot, currentColor); }
.filterbar__chip--all::before { display: none; }
.filterbar__chip:hover { border-color: var(--line-strong); }
.filterbar__chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filterbar__search { position: relative; flex: 0 1 15rem; }
.filterbar__search input { width: 100%; min-height: 2.5rem; padding: .4rem .8rem .4rem 2.1rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); font-size: .875rem; }
.filterbar__search svg { position: absolute; left: .7rem; top: 50%; translate: 0 -50%; width: .95rem; height: .95rem; fill: none; stroke: var(--muted); stroke-width: 2; }
@media (max-width: 40rem) {
  .filterbar__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -.7rem; padding-inline: .7rem; width: calc(100% + 1.4rem); }
  .filterbar__chips::-webkit-scrollbar { display: none; }
  .filterbar__chip { flex: none; }
  .filterbar__search { flex-basis: 100%; }
}

/* political news list */
.news__list { list-style: none; display: grid; }
.news__item { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--s4); align-items: center; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.news__item--noimg { grid-template-columns: minmax(0, 1fr); }
.news__thumb { width: 3.5rem; height: 3.5rem; border-radius: 5px; object-fit: cover; background: var(--bg-soft); }
.news__top { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: .35rem; }
.news__source { display: inline-block; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .0); padding: .3rem .5rem .25rem; border-radius: 3px; background: var(--c, #222); color: #fff; font: 700 .7188rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
[data-theme="dark"] .news__source { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28); }
[data-theme="dark"] .filterbar__chip::before { box-shadow: 0 0 0 1px rgb(255 255 255 / .35); }
.news__time { font-size: .8125rem; color: var(--muted); }
.news__star { font-size: .75rem; color: #a37b00; }
.news__title { font: italic 400 1.1875rem/1.35 var(--serif); color: var(--heading); }
.news__title a { text-decoration: none; }
.news__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.widget__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s5); }
.widget__count { font-size: .8125rem; color: var(--muted); }
.mini-pager { display: flex; gap: .35rem; margin-inline: auto; }
.mini-pager button { min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); font-size: .875rem; }
.mini-pager button:hover:not(:disabled) { border-color: var(--line-strong); }
.mini-pager button[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mini-pager button:disabled { opacity: .35; cursor: default; }
.widget__empty { padding: var(--s7) 0; text-align: center; color: var(--muted); }

/* story/course cards */
.cards__grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 64rem) { .cards__grid { --cols: 3 !important; } }
@media (max-width: 48rem) { .cards__grid { --cols: 2 !important; } }
@media (max-width: 30rem) { .cards__grid { --cols: 1 !important; } }
.story { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); text-decoration: none; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }
.story:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.story__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c, #333); }
.story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.story:hover .story__media img { transform: scale(1.05); }
.story__media--blank { display: grid; place-items: center; padding: 1rem; color: #fff; font: italic 400 1.4rem/1.2 var(--serif); text-align: center; background: linear-gradient(135deg, var(--c, #333), color-mix(in srgb, var(--c, #333) 55%, #000)); }
.story__body { display: grid; align-content: start; gap: .45rem; padding: .9rem 1rem 1.15rem; text-align: center; }
.story__source { display: flex; align-items: center; justify-content: center; gap: .45rem; font: 600 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.story__source img { width: 1.35rem; height: 1.35rem; border-radius: 50%; object-fit: cover; }
.story__time { font-size: .75rem; color: var(--muted); }
.story__title { font: italic 400 1.0625rem/1.38 var(--serif); color: var(--heading); }
.story__desc { display: none; }
/* lead layout: newest story large, the rest beside it */
@media (min-width: 64.01rem) {
  .cards__grid--lead { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards__grid--lead > .story:first-child { grid-column: span 2; grid-row: span 2; grid-template-rows: 1fr auto; }
  .cards__grid--lead > .story:first-child .story__media { aspect-ratio: auto; min-height: 18rem; }
  .cards__grid--lead > .story:first-child .story__body { text-align: left; padding: 1.25rem 1.5rem 1.5rem; gap: .6rem; }
  .cards__grid--lead > .story:first-child .story__source { justify-content: flex-start; }
  .cards__grid--lead > .story:first-child .story__title { font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.2; }
  .cards__grid--lead > .story:first-child .story__desc { display: block; font-size: .9688rem; color: var(--text); }
}
@media (min-width: 48.01rem) and (max-width: 64rem) {
  .cards__grid--lead > .story:first-child { grid-column: 1 / -1; grid-template-columns: 1.2fr 1fr; grid-template-rows: none; }
  .cards__grid--lead > .story:first-child .story__media { aspect-ratio: auto; min-height: 16rem; }
  .cards__grid--lead > .story:first-child .story__body { text-align: left; align-content: center; padding: 1.5rem; }
  .cards__grid--lead > .story:first-child .story__source { justify-content: flex-start; }
  .cards__grid--lead > .story:first-child .story__title { font-size: 1.5rem; }
  .cards__grid--lead > .story:first-child .story__desc { display: block; }
}

/* LinkedIn feed */
.li__tabs { display: flex; justify-content: center; gap: .4rem; margin-bottom: var(--s5); }
.li__tabs button { min-height: 2.5rem; padding: .3rem 1.1rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); font: 600 .8125rem/1 var(--sans); }
.li__tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.li__stage { position: relative; }
.li__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1rem) / 4); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: .5rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.li__track::-webkit-scrollbar { display: none; }
@media (max-width: 64rem) { .li__track { grid-auto-columns: calc((100% - 2 * 1rem) / 3); } }
@media (max-width: 48rem) { .li__track { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (max-width: 34rem) { .li__track { grid-auto-columns: 86%; } }
.li__col { display: grid; grid-template-rows: auto auto; gap: 1rem; scroll-snap-align: start; }
.li-post { display: flex; flex-direction: column; gap: .7rem; min-height: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--bg); font-size: .875rem; line-height: 1.5; color: var(--text); transition: border-color .25s, box-shadow .35s var(--ease-out); }
.li-post:hover { border-color: #0a66c2; box-shadow: 0 0 0 1px #0a66c2; }
.li-post__head { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: .6rem; align-items: center; }
.li-post__avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: #0a66c2; color: #fff; font: italic 400 1.15rem var(--serif); overflow: hidden; }
.li-post__avatar img { width: 100%; height: 100%; object-fit: cover; }
.li-post__name { font-weight: 600; color: var(--heading); font-size: .875rem; line-height: 1.2; }
.li-post__time { font-size: .75rem; color: var(--muted); }
.li-post__in { width: 1.35rem; height: 1.35rem; color: #0a66c2; }
.li-post__text a { color: #0a66c2; text-decoration: none; overflow-wrap: anywhere; }
.li-post__text a:hover { text-decoration: underline; }
.li-post__repost { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.li-post__text { color: var(--heading); white-space: pre-line; overflow-wrap: anywhere; }
.li-post__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.li-post__quote { display: grid; gap: .4rem; padding: .7rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--bg-soft); font-size: .8125rem; }
.li-post__quote-head { display: flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--heading); }
.li-post__quote-head img { width: 1.6rem; height: 1.6rem; border-radius: 50%; object-fit: cover; }
.li-post__quote p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.li-post__img { border-radius: .4rem; max-height: 14rem; width: 100%; object-fit: cover; }
.li-post__link-title { font-weight: 600; color: var(--heading); }
.li-post__more { align-self: flex-start; padding: 0; border: 0; background: none; color: #0a66c2; font-size: .8125rem; font-weight: 600; }
.li-post__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.li-post__foot a { color: #0a66c2; font-weight: 600; text-decoration: none; }
.li-post__foot a:hover { text-decoration: underline; }
.li__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg); color: var(--ink); translate: 0 -50%; transition: opacity .2s, background-color .2s, color .2s; }
.li__arrow:hover { background: var(--ink); color: var(--bg); }
.li__arrow:disabled { opacity: 0; pointer-events: none; }
.li__arrow--prev { left: -1.4rem; }
.li__arrow--next { right: -1.4rem; }
@media (max-width: 48rem) { .li__arrow { display: none; } }

/* skeletons */
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--bg-soft) 0%, var(--line) 50%, var(--bg-soft) 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; opacity: .6; }
.skeleton--list { height: 34rem; }
.skeleton--grid { height: 22rem; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Bento slider ---------- */
.section--bento { padding-block: clamp(2rem, 5vw, 3.5rem); }
.bento__bar { margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.bento__title { margin-bottom: clamp(1rem, 2vw, 1.4rem); }
.bento__controls { display: flex; align-items: center; gap: var(--s4); }
.bento__viewport { display: grid; }
.bento__slide { grid-area: 1 / 1; }

/* tabs: one row of place names, a pill slides to the chosen one */
.bento__tabs { position: relative; isolation: isolate; display: flex; flex: 1; min-width: 0; gap: .15rem; padding: .25rem; border: 1px solid var(--line); border-radius: 99px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.bento__tabs::-webkit-scrollbar { display: none; }
.bento__tab { flex: none; min-height: 2.5rem; padding: 0 1.05rem; border: 0; border-radius: 99px; background: none; color: var(--muted); font: 500 .9375rem/1 var(--sans); white-space: nowrap; cursor: pointer; transition: color .35s var(--ease); }
.bento__tab:hover { color: var(--ink); }
.bento__tab[aria-selected="true"] { color: var(--bg); }
.bento__tab:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.bento__ink { position: absolute; z-index: -1; top: .25rem; bottom: .25rem; left: 0; width: 0; border-radius: 99px; background: var(--ink); transition: transform .55s var(--ease-out), width .55s var(--ease-out); }
.bento__arrows { display: flex; flex: none; gap: .5rem; }
.bento__arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.bento__arrow svg { stroke-width: 1.8; }

.bento__grid { display: grid; gap: clamp(.5rem, 1vw, .8rem); grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, clamp(9rem, 15vw, 14.5rem)); grid-template-areas: "hero hero quote tall" "hero hero fact tall" "photo accent wide wide"; }
.tile { position: relative; display: grid; align-content: end; overflow: hidden; margin: 0; padding: clamp(1rem, 2vw, 1.6rem); border-radius: .9rem; background: var(--accent, #555); color: #fff; isolation: isolate; }
.tile > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease-out); }
.bento__slide.is-active .tile > img { transform: scale(1); }
.tile:hover > img { transform: scale(1.04); }
.tile__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / 0) 35%, rgb(0 0 0 / .62) 100%); }
.tile figcaption, .tile p { font-size: clamp(.875rem, 1.1vw, 1rem); line-height: 1.4; }
.tile--hero { grid-area: hero; align-content: end; }
.tile--hero .tile__shade { background: linear-gradient(180deg, rgb(0 0 0 / .05) 30%, rgb(0 0 0 / .7) 100%); }
.tile__title { color: #fff; font: 600 clamp(2rem, 4.4vw, 3.6rem)/1 var(--sans); letter-spacing: -.035em; margin-bottom: .6rem; }
.tile--hero p { max-width: 34ch; font-size: clamp(1rem, 1.35vw, 1.2rem); color: rgb(255 255 255 / .92); }
.tile--quote { grid-area: quote; align-content: center; background: var(--bg-alt); color: var(--heading); }
.tile--quote p { font: italic 400 clamp(1.15rem, 1.9vw, 1.6rem)/1.2 var(--serif); }
.tile--tall { grid-area: tall; }
.tile--fact { grid-area: fact; align-content: start; gap: .4rem; background: #111; }
[data-theme="dark"] .tile--fact { background: #262626; }
.tile__badge { display: block; width: clamp(2.2rem, 3.4vw, 3rem); height: clamp(2.2rem, 3.4vw, 3rem); margin-bottom: .2rem; border-radius: 50%; overflow: hidden; background: #fff; }
.tile__badge img { width: 100%; height: 100%; object-fit: cover; }
.tile__kicker { font: 600 .75rem/1.2 var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.tile--fact p:last-child { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; color: rgb(255 255 255 / .9); }
.tile--photo:not(.tile--tall):not(.tile--wide) { grid-area: photo; }
.tile--wide { grid-area: wide; }
.tile--accent { grid-area: accent; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent)); }
.tile__name { font: 600 clamp(1.15rem, 1.8vw, 1.6rem)/1.1 var(--sans) !important; letter-spacing: -.02em; margin-bottom: .25rem; color: #fff; }
.tile figcaption { font-weight: 600; text-shadow: 0 1px 8px rgb(0 0 0 / .35); }

.bento__grid--index { grid-template-rows: repeat(2, clamp(10rem, 17vw, 16rem)); grid-template-areas: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bento__grid--index .tile:first-child { grid-row: span 2; }
.tile--jump { border: 0; padding: clamp(1rem, 2vw, 1.5rem); text-align: left; font: inherit; align-content: end; gap: .3rem; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 65%, #fff), var(--accent)); }
.tile--jump .tile__shade { background: linear-gradient(180deg, rgb(0 0 0 / 0) 25%, color-mix(in srgb, var(--accent) 80%, #000) 100%); opacity: .9; }
.tile--jump .tile__line { font-size: .875rem; color: rgb(255 255 255 / .85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile--jump:hover > img { transform: scale(1.06); }
.tile--jump::after { content: "→"; position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: rgb(255 255 255 / .9); color: #111; font-size: 1rem; transform: scale(.6); opacity: 0; transition: transform .4s var(--ease-out), opacity .3s; }
.tile--jump:hover::after, .tile--jump:focus-visible::after { transform: none; opacity: 1; }

/* switching, everywhere: tiles settle in a short cascade from the direction of travel */
.bento__slide .tile { opacity: 0; transform: translateX(calc(var(--dir, 1) * 18px)) scale(.985); }
.bento__slide.is-active .tile { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .75s var(--ease-out); transition-delay: calc(var(--n, 0) * 40ms); }
.bento__slide.is-leaving .tile { opacity: 0; transform: translateX(calc(var(--dir, 1) * -14px)) scale(.99); transition: opacity .28s var(--ease), transform .28s var(--ease); transition-delay: calc(var(--n, 0) * 15ms); }
.bento__grid > :nth-child(1) { --n: 0; } .bento__grid > :nth-child(2) { --n: 1; } .bento__grid > :nth-child(3) { --n: 2; } .bento__grid > :nth-child(4) { --n: 3; }
.bento__grid > :nth-child(5) { --n: 4; } .bento__grid > :nth-child(6) { --n: 5; } .bento__grid > :nth-child(7) { --n: 6; }

/* switching, where the browser can morph: each tile glides to its new place and size */
.bento.is-morphing .bento__slide .tile { opacity: 1; transform: none; transition: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
::view-transition-old(*) { animation: bb-tile-out .32s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(*) { animation: bb-tile-in .6s cubic-bezier(.16, 1, .3, 1) both; }
::view-transition-image-pair(*) { isolation: auto; }
::view-transition-new(bento-t1) { animation-delay: 40ms; } ::view-transition-new(bento-t2) { animation-delay: 80ms; }
::view-transition-new(bento-t3) { animation-delay: 120ms; } ::view-transition-new(bento-t4) { animation-delay: 160ms; }
::view-transition-new(bento-t5) { animation-delay: 200ms; } ::view-transition-new(bento-t6) { animation-delay: 240ms; }
@keyframes bb-tile-out { to { opacity: 0; } }
@keyframes bb-tile-in { from { opacity: 0; transform: scale(1.04); } }

@media (max-width: 60rem) {
  .bento__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: clamp(9rem, 32vw, 13rem); grid-template-areas: "hero hero" "hero hero" "quote tall" "fact tall" "photo accent" "wide wide"; }
  .bento__grid--index { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: clamp(8rem, 30vw, 12rem); }
  .bento__grid--index .tile:first-child { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 48rem) {
  .bento__arrows { display: none; }
  .bento__tabs { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); border: 0; border-radius: 0; -webkit-mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); }
  .bento__ink { top: 0; bottom: 0; }
  .bento__tab { padding-inline: .95rem; }
}

/* ---------- touch screens: comfortable tap targets ---------- */
@media (pointer: coarse) {
  .chip { min-height: 2.25rem; padding-inline: .9rem; }
  .footer__cols a { display: inline-block; padding-block: .45rem; }
  .section__more { display: inline-block; padding-block: .6rem; }
}

/* ---------- scroll reveal (subtle, once) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .9s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .bento__slide .tile { opacity: 1; transform: none; }
  }

@media print {
  .masthead, .footer, .assist, .article__meta .share, .club, .pager-posts, .related { display: none !important; }
  body { font-size: 12pt; color: #000; }
}
.bento__slide:focus { outline: none; }
