:root {
  color-scheme: light;
  --bg: #fffdf8; --surface: #fff; --subtle: #f6f4ee; --line: #dedbd3;
  --ink: #111113; --muted: #54565c; --muted-strong: #35363a;
  --accent: #1745aa; --accent-hover: #102e73; --accent-ink: #fff; --accent-bg: #eef2fb;
  --red: #9e192a; --header: #0a0a0b; --overlay: #0008;
  --sans: 'Aptos', 'Helvetica Neue', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --spring: cubic-bezier(.22, 1, .36, 1); --header-height: 4.25rem;
  --page-width: 76rem; --page-gutter: clamp(1.1rem, 3.4vw, 3.25rem);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101011; --surface: #19191b; --subtle: #212124; --line: #39393d;
  --ink: #fffdf8; --muted: #b9b8b5; --muted-strong: #dfded9;
  --accent: #a9c2ff; --accent-hover: #d1dfff; --accent-ink: #111113; --accent-bg: #182742;
  --red: #f17166; --overlay: #000b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #101011; --surface: #19191b; --subtle: #212124; --line: #39393d;
    --ink: #fffdf8; --muted: #b9b8b5; --muted-strong: #dfded9;
    --accent: #a9c2ff; --accent-hover: #d1dfff; --accent-ink: #111113; --accent-bg: #182742;
    --red: #f17166; --overlay: #000b;
  }
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 150ms ease-out both fade-out; }
::view-transition-new(root) { animation: 280ms var(--spring) both fade-in; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes rise { from { opacity: .68; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes masthead-parallax { from { transform: none; } to { transform: translateY(12%); } }
@keyframes explore-reveal { from { opacity: .82; transform: translateY(12px); } to { opacity: 1; transform: none; } }

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 1rem); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 1rem; }
img, video { display: block; width: 100%; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; z-index: 15; top: .75rem; left: .75rem; background: var(--surface); padding: .75rem 1rem; }
.icon { flex: none; width: 1.18rem; height: 1.18rem; }
.entrance { animation: rise .45s var(--spring) backwards; }
.entrance + .entrance { animation-delay: 45ms; }
.motion .reveal { transition: opacity .55s var(--spring), transform .65s var(--spring); }
.motion .reveal:not(.is-visible) { opacity: .76; transform: translateY(8px); }
.motion .reveal:nth-child(3n + 2) { transition-delay: 45ms; }
.motion .reveal:nth-child(3n + 3) { transition-delay: 90ms; }

.topbar { position: sticky; top: 0; z-index: 8; color: #fffdf8; background: var(--header); border-bottom: 1px solid #353539; }
.topbar-inner { max-width: var(--page-width); min-height: var(--header-height); margin-inline: auto; padding-inline: var(--page-gutter); display: flex; align-items: center; gap: 1rem; }
.header-controls { display: flex; align-items: center; justify-content: flex-end; gap: .9rem; margin-inline-start: auto; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .55rem; text-decoration: none; color: #fffdf8; font: 700 1.42rem var(--serif); letter-spacing: -.045em; }
.brand:hover { color: #fff; }
.brand-mark { width: 2.5rem; height: 2.5rem; transition: transform .35s var(--spring); }
.top-links, .top-actions { display: flex; align-items: center; gap: .35rem; }
.top-links a { color: #f0eee9; font-size: .95rem; font-weight: 700; padding: .55rem .85rem; border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap; transition: border-color .2s; }
.top-links a:hover, .top-links a[aria-current] { color: #fff; border-color: #88aaff; }
.top-links a[href="/news"]:hover, .top-links a[href="/news"][aria-current] { border-color: #e94d41; }
.topbar :focus-visible { outline-color: #a9c2ff; }
.top-actions { justify-content: flex-end; gap: .6rem; }
.button, .icon-button, .search-trigger { display: inline-flex; align-items: center; justify-content: center; gap: .42rem; min-height: 2.55rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: .62rem; color: var(--ink); background: var(--surface); font-size: .9rem; font-weight: 620; text-decoration: none; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--spring); }
.button:hover, .icon-button:hover, .search-trigger:hover { border-color: var(--accent); color: var(--accent); }
.button:active, .icon-button:active, .search-trigger:active { transform: scale(.96); }
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.icon-button { flex: none; width: 2.55rem; padding: 0; }
.search-trigger { min-width: 12.9rem; justify-content: start; background: var(--subtle); color: var(--muted); }
.search-trigger kbd { margin-left: auto; line-height: 1.35; padding: 0 .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: .22rem; color: var(--muted); }
.top-actions :is(.button, .icon-button, .search-trigger, kbd) { border-color: #414146; background: #1a1a1d; color: #fffdf8; }
.top-actions :is(.button, .icon-button, .search-trigger):hover { border-color: #a9c2ff; }

.shell { max-width: var(--page-width); min-height: calc(100dvh - var(--header-height)); margin-inline: auto; padding: 2.2rem var(--page-gutter) 1.2rem; display: flex; flex-direction: column; }
.main { flex: 1; min-width: 0; margin-bottom: 2.4rem; }
.main:focus { outline: none; }
.blog-intro, .news-intro { border-bottom: 1px solid var(--line); padding: .65rem 0 1.5rem; margin-bottom: 1.7rem; }
.explore-title { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--subtle); border-block: 1px solid var(--line); margin-bottom: clamp(1.65rem, 3.4vw, 2.7rem); }
.explore-title-copy { align-self: center; padding: clamp(1.45rem, 4.2vw, 3.8rem); }
.explore-title h1 { max-width: 11ch; font: 400 clamp(2.35rem, 5.5vw, 5.15rem)/1.01 var(--serif); letter-spacing: -.055em; }
.explore-title-art { position: relative; overflow: hidden; min-height: clamp(17rem, 43vh, 31rem); background: var(--surface); }
.explore-title-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .main:has(.explore-title) { timeline-scope: --explore-hero; }
    .explore-title { view-timeline: --explore-hero block; view-timeline-inset: var(--header-height) 0; }
    .explore-title-art img {
      inset: -15% 0;
      height: 130%;
      animation: masthead-parallax linear both;
      animation-timeline: --explore-hero;
      animation-range: exit 0% exit 65%;
    }
    .explore-grid {
      animation: explore-reveal linear both;
      animation-timeline: --explore-hero;
      animation-range: exit 0% exit 28%;
    }
  }
}
.news-intro h1 { font: 400 clamp(2.45rem, 5.4vw, 4rem)/1.05 var(--serif); letter-spacing: -.05em; }
.blog-intro h1 { font: 700 clamp(3rem, 7vw, 4.65rem)/1 var(--sans); letter-spacing: -.065em; }
.blog-intro { padding-top: clamp(1rem, 4vw, 3rem); }
:is(.explore-title, .blog-intro, .news-intro, .page-heading) p { margin-top: .7rem; max-width: 41rem; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.13rem); }
.explore-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr); gap: clamp(1rem, 3vw, 2.6rem); }
:is(.explore-feature, .explore-news) .section-head { border-bottom: 1px solid var(--line); padding-bottom: .65rem; }
:is(.explore-feature, .explore-news) h2 { font-family: var(--serif); font-weight: 400; }
.explore-story > a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.explore-story h3, .news-feature h2 { font: 700 clamp(1.45rem, 3vw, 2.25rem)/1.1 var(--serif); letter-spacing: -.045em; }
.explore-story p, .news-feature p, .news-brief p, .blog-entry p { color: var(--muted); margin-top: .6rem; }
.article-link-list { list-style: none; margin: .9rem 0 0; padding: 0; }
.article-link-list li { display: flex; align-items: baseline; gap: .25rem .7rem; flex-wrap: wrap; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.article-link-list span { color: var(--muted); font-size: .85rem; }
.cover { overflow: hidden; background: var(--subtle); }
.cover img { height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .55s var(--spring); }
.cover-placeholder { display: grid; min-height: 100%; height: 100%; place-items: center; font-size: 2rem; color: var(--muted); background: var(--subtle); }
.hero-cover { aspect-ratio: 4 / 3; }
.news-cover { aspect-ratio: 16 / 9; }
.blog-entry-cover { aspect-ratio: 4 / 3; }
.read-label { display: inline-block; margin-top: .7rem; font-size: .95rem; color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.blog-archive { width: min(100%, 54rem); margin-inline: auto; }
.blog-entry + .blog-entry { border-top: 1px solid var(--line); }
.blog-entry-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 11rem); align-items: start; gap: 1.45rem; padding: 1.55rem 0; }
.blog-entry-link:not(:has(.cover)) { grid-template-columns: 1fr; }
.blog-entry h2 { font: 700 clamp(1.45rem, 3.25vw, 2.05rem)/1.12 var(--sans); letter-spacing: -.04em; margin-top: .45rem; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; color: var(--muted); font-size: .87rem; }
.entry-meta span { border-left: 1px solid var(--line); padding-left: .75rem; }
.news-intro { border-top: 4px solid var(--red); }
.news-front { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.1rem, 3vw, 2.3rem); }
.news-feature-text { padding-top: .8rem; }
.news-feature h2 { margin-top: .5rem; }
.news-headlines { align-self: start; border-top: 1px solid var(--line); }
.news-brief { padding: .95rem 0; border-bottom: 1px solid var(--line); }
.news-brief h3 { font: 700 1.24rem/1.15 var(--serif); }
.news-brief .entry-meta { margin-top: .6rem; }
:is(.blog-entry, .explore-story, .news-feature, .news-brief) a { text-decoration: none; color: var(--ink); }
:is(.blog-entry, .explore-story, .news-feature, .news-brief) a:hover :is(h2, h3) { color: var(--accent); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.section-head h2 { font-size: 1.63rem; letter-spacing: -.047em; line-height: 1.15; }
.section-head > a:not(.button) { font-weight: 650; font-size: .92rem; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.05rem; }
.story-card { border: 1px solid var(--line); border-radius: .35rem; background: var(--surface); overflow: hidden; }
.story-card-link { display: block; color: var(--ink); text-decoration: none; height: 100%; }
.story-card-link:hover { color: var(--ink); }
.story-card-link:focus-visible { outline-offset: -4px; }
.story-card .cover { aspect-ratio: 16 / 9; }
.story-card-content { padding: 1rem 1rem 1.15rem; }
.story-meta { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .83rem; line-height: 1.2; min-height: 1.65rem; }
.section-label { font-size: .82rem; font-weight: 700; color: var(--accent); }
.section-label.news { color: var(--red); }
.story-card h3 { margin-top: .5rem; font-size: 1.2rem; line-height: 1.24; font-weight: 725; letter-spacing: -.034em; overflow-wrap: anywhere; }
.story-card p { color: var(--muted); margin-top: .5rem; line-height: 1.43; font-size: .955rem; overflow-wrap: anywhere; }

.page-heading { margin: .5rem 0 1.75rem; }
.page-heading h1, .article-header h1, .form-panel h1 { font-size: clamp(2.45rem, 5vw, 3.8rem); letter-spacing: -.065em; line-height: 1.04; overflow-wrap: anywhere; }
.page-heading > a { display: inline-block; margin-bottom: .9rem; }
.empty, .notice, .panel { padding: 1.2rem; border: 1px solid var(--line); background: var(--surface); border-radius: .75rem; }
.empty p, .panel p { margin-top: .45rem; color: var(--muted); }
.pagination { display: flex; gap: .7rem; margin-top: 1.25rem; flex-wrap: wrap; }
.results-search { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.4rem; }
.results-search input { flex: 1; min-width: 8rem; max-width: 32rem; }
.footer { display: flex; gap: 1rem 2rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: auto; color: var(--muted); font-size: .92rem; }
.footer > span { font-weight: 690; color: var(--ink); }
.footer div { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent); text-decoration: underline; }

.article-layout { display: grid; grid-template-columns: minmax(0, 45rem) minmax(10rem, 12.4rem); gap: clamp(1rem, 3.1vw, 2.7rem); max-width: 60rem; margin-inline: auto; }
.article { min-width: 0; }
.reading-progress { position: absolute; inset: auto 0 -1px; height: 3px; pointer-events: none; background: #a9c2ff; transform: scaleX(var(--reading-progress, 0)); transform-origin: left; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .55rem; color: var(--muted); font-size: .92rem; margin: .3rem 0 1rem; }
.article-header > p { font-size: clamp(1.05rem, 1.65vw, 1.23rem); color: var(--muted); margin-top: .9rem; }
.article-header .entry-meta { margin: 1.5rem 0 .65rem; }
.blog-reading .article-header h1 { font-family: var(--sans); font-weight: 700; }
.news-reading .article-header { border-top: 3px solid var(--red); }
.news-reading .article-header h1 { font-family: var(--serif); font-weight: 700; letter-spacing: -.045em; }
.byline { margin: 1.25rem 0 1.5rem; display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-size: .9rem; color: var(--muted-strong); }
.article-cover { aspect-ratio: 16 / 9; border-radius: .95rem; margin-bottom: 2rem; }
.article-aside { align-self: start; position: sticky; top: calc(var(--header-height) + 1.6rem); max-height: calc(100dvh - var(--header-height) - 2.5rem); overflow-y: auto; padding: 2.1rem .3rem .2rem; }
.article-nav { border-left: 1px solid var(--line); padding: .3rem 0 .3rem .85rem; margin-bottom: 1.5rem; }
.article-nav h2 { font-size: .91rem; font-weight: 730; margin: 0 0 .4rem; }
.article-nav a { display: block; text-decoration: none; font-size: .89rem; color: var(--muted); padding: .22rem 0; overflow-wrap: anywhere; }
.article-nav a:hover { color: var(--accent); text-decoration: underline; }
.article-nav a[aria-current="location"] { color: var(--accent); box-shadow: -2px 0 var(--accent); background: var(--accent-bg); }
[data-reading-outline] a { padding-inline: .42rem; }
.article-nav ul { margin: 0; padding: 0; list-style: none; }
.article-nav ul ul { padding-inline-start: .7rem; }
.mobile-toc, .mobile-related { display: none; }
.prose { font-size: 1.075rem; line-height: 1.72; overflow-wrap: anywhere; }
.prose > * + *, .section-content > * + * { margin-top: .85rem; }
.prose h2, .sources h2, .article-media h2 { font-size: 1.6rem; line-height: 1.22; letter-spacing: -.044em; margin-top: 1.7rem; }
.prose h3 { font-size: 1.24rem; margin-top: 1.5rem; }
.prose img { border-radius: .65rem; height: auto; }
.prose pre { border: 1px solid var(--line); border-radius: .65rem; padding: .9rem; background: var(--subtle); overflow-x: auto; font-size: .9rem; }
.prose :not(pre) > code { background: var(--accent-bg); border-radius: .25rem; padding: .08rem .22rem; }
.prose blockquote { border-left: 3px solid var(--accent); margin-left: 0; padding-left: 1rem; color: var(--muted-strong); }
.prose ul, .prose ol, .sources ul { padding-left: 1.35rem; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { padding: .4rem .55rem; border: 1px solid var(--line); }
.section-actions { margin-block: 1rem; }
.section-actions:not([hidden]) { display: flex; flex-wrap: wrap; gap: .45rem; }
.reading-section { position: relative; border-top: 1px solid var(--line); padding-top: .75rem; }
.reading-section > :is(h2, h3, h4, h5, h6) { margin-top: 0; min-height: 2.75rem; padding-inline-end: 3rem; line-height: 1.25; }
.reading-section .reading-section { margin-inline-start: clamp(.4rem, 1.4vw, 1rem); }
.section-disclosure > summary { position: absolute; inset-block-start: .45rem; inset-inline-end: 0; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; list-style: none; color: var(--accent); border-radius: .35rem; }
.section-disclosure > summary::-webkit-details-marker { display: none; }
.section-disclosure > summary::before { content: ''; width: .5rem; height: .5rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.1rem) rotate(45deg); }
.section-disclosure[open] > summary::before { transform: translateY(.1rem) rotate(225deg); }
.section-disclosure > summary:is(:hover, :focus-visible) { background: var(--accent-bg); }
.section-content { padding-block: .45rem 1rem; }
.reading-preview { position: fixed; z-index: 9; width: min(19rem, calc(100vw - 24px)); max-height: min(14rem, calc(100dvh - 24px)); overflow: auto; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); color: var(--ink); box-shadow: 0 12px 30px #0004; overflow-wrap: anywhere; }
.reading-preview p { color: var(--muted); margin-top: .35rem; font-size: .9rem; }
.information { max-width: 45rem; }
.article-media video { aspect-ratio: 16 / 9; background: #0a0a0b; border-radius: .35rem; margin: .8rem 0; filter: grayscale(1); }
.article-media details, .mobile-toc, .field-details { border: 1px solid var(--line); background: var(--surface); border-radius: .62rem; padding: .7rem .85rem; }
.article-media details p { margin-top: .6rem; }
details summary { font-weight: 640; cursor: pointer; }
.article-tools { display: flex; gap: .7rem 1rem; align-items: center; flex-wrap: wrap; margin-top: 1.6rem; }

.search-dialog { width: min(34rem, calc(100% - 2rem)); max-height: calc(100% - 3rem); border: 1px solid var(--line); border-radius: .6rem; color: var(--ink); background: var(--surface); box-shadow: 0 22px 80px #0004; padding: 1.2rem; }
.search-dialog[open] { animation: rise .3s var(--spring) both; }
.search-dialog::backdrop { background: var(--overlay); backdrop-filter: blur(5px); }
.search-dialog-body label { font-size: 1.25rem; font-weight: 730; }
.search-dialog-row { display: flex; align-items: center; gap: .62rem; margin-top: .75rem; color: var(--muted); }
.search-dialog-row input { flex: 1; min-width: 0; }
.search-dismiss { position: absolute; top: .95rem; right: 1.2rem; border: 1px solid var(--line); border-radius: .4rem; font-size: .85rem; color: var(--muted); background: var(--subtle); }

input, textarea, select { border: 1px solid var(--line); border-radius: .52rem; padding: .58rem .72rem; background: var(--surface); color: var(--ink); min-height: 2.55rem; font-size: 1rem; }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; }
.form-panel { width: min(100%, 30rem); margin: 1.25rem auto 2.8rem; padding: clamp(1rem, 3vw, 1.7rem); border: 1px solid var(--line); background: var(--surface); border-radius: .55rem; }
.form-panel h1 { font-size: clamp(2rem, 4vw, 2.65rem); }
.form-panel p { color: var(--muted); margin: .6rem 0 1.2rem; }
.fields { display: grid; gap: .9rem; justify-items: start; }
.fields > label, .form-columns label { width: 100%; min-width: 0; display: grid; gap: .35rem; color: var(--muted-strong); font-weight: 630; }
.fields label > * { width: 100%; font-weight: 420; }
.form-actions, .inline-form { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.inline-form { margin-top: .8rem; }
.inline-form input { min-width: 0; flex: 1 1 8rem; }
.form-columns { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; width: 100%; }
.field-details { width: 100%; }
.field-details .fields { margin-top: .85rem; }
.editor-form { width: min(100%, 52rem); }
.form-panel .small-note { margin: .9rem 0 0; font-size: .9rem; }
.dashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1rem; }
.item-list { list-style: none; padding: 0; margin: .75rem 0 0; }
.item-list li { display: flex; align-items: center; justify-content: space-between; gap: .65rem; border-top: 1px solid var(--line); padding: .7rem 0; overflow-wrap: anywhere; }
.item-list li span, .item-list li small { color: var(--muted); font-size: .86rem; }
.item-list li small { display: block; }
.notice { margin: 0 0 1rem; background: var(--accent-bg); overflow-wrap: anywhere; }
.new-key code { display: inline-block; margin: .45rem .55rem .25rem 0; }
.text-button { background: none; border: none; padding: .35rem 0; text-decoration: underline; color: var(--accent); }

@media (hover: hover) {
  :is(.explore-story, .blog-entry, .news-feature, .news-brief, .story-card) a:hover :is(h2, h3) { text-decoration: underline; text-underline-offset: .18em; }
  :is(.article-link-list, .section-head, .footer) a:hover { text-decoration-thickness: 2px; }
  :is(details summary, .text-button, .search-dismiss):hover { color: var(--accent-hover); }
  .search-dismiss:hover { border-color: var(--accent); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand:hover .brand-mark { transform: scale(1.06); }
  :is(.button, .icon-button, .search-trigger):hover:not(:active) { transform: translateY(-2px); }
  :is(.explore-story, .blog-entry, .news-feature, .story-card) a:hover img { transform: scale(1.05); }
  .story-card.is-visible:hover { transform: translateY(-2px); }
}

@media (max-width: 58rem) {
  .header-controls { gap: .4rem; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { display: none; }
  .mobile-toc, .mobile-related { display: block; }
  .mobile-toc { margin-bottom: 1.1rem; }
  .mobile-toc .article-nav { margin: .55rem 0 0; }
  .mobile-toc .article-nav h2 { display: none; }
  .mobile-related { margin-top: 1.6rem; }
}
@media (max-width: 56rem) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-trigger { width: 2.55rem; min-width: 0; padding: 0; justify-content: center; }
  .search-trigger :is(span, kbd) { display: none; }
  .explore-story > a { grid-template-columns: 1fr; gap: .85rem; }
  .hero-cover { aspect-ratio: 16 / 9; }
  .section-head { align-items: baseline; flex-wrap: wrap; }
}
@media (max-width: 45rem) {
  :root { --header-height: 6.35rem; --page-gutter: 1rem; }
  .topbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'brand tools' 'tabs tabs'; grid-template-rows: 3.75rem 2.6rem; gap: 0; }
  .header-controls { display: contents; }
  .topbar .brand { grid-area: brand; }
  .top-links { grid-area: tabs; align-self: stretch; justify-content: flex-end; gap: .35rem; border-top: 1px solid #353539; }
  .top-links a { padding: .45rem .58rem; }
  .top-actions { grid-area: tools; gap: .35rem; }
  .shell { padding-block: 1.3rem 1.05rem; }
  .explore-title { grid-template-columns: minmax(0, 1fr); }
  .explore-title h1 { max-width: 15ch; }
  .explore-title-art { min-height: 0; aspect-ratio: 2.35; }
  .explore-grid, .news-front { grid-template-columns: 1fr; }
  .blog-entry-link { grid-template-columns: minmax(0, 1fr) minmax(0, 7rem); gap: .9rem; }
  .story-grid { gap: .8rem; }
  .story-card-content { padding: .75rem .8rem .9rem; }
  .dashboard { grid-template-columns: 1fr; }
}
@media (max-width: 31rem) {
  .story-grid { grid-template-columns: 1fr; }
  .top-actions { gap: .27rem; }
  .search-trigger, .icon-button { width: 2.45rem; min-height: 2.5rem; }
  .account-button { padding-inline: .5rem; font-size: .85rem; }
  .brand { gap: .42rem; font-size: 1.13rem; }
  .brand-mark { width: 2.05rem; height: 2.05rem; }
  .footer { gap: .65rem; flex-direction: column; }
  .form-columns { grid-template-columns: 1fr; }
  .search-dialog-row .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .motion .reveal:not(.is-visible) { opacity: 1; transform: none; }
}
