:root {
  color-scheme: light;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --fg: #20252a;
  --muted: #68727d;
  --soft: #8c959f;
  --border: #e5e8e8;
  --accent: #466b93;
  --accent-soft: #ecf2f7;
  --shadow: 0 12px 36px rgba(34, 49, 62, .06);
  --nav-h: 72px;
  --maxw: 1100px;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080808;
  --surface: #121212;
  --fg: #f4f4f2;
  --muted: #b8b8b5;
  --soft: #92928f;
  --border: #2b2b2b;
  --accent: #c5d5e2;
  --accent-soft: #191919;
  --shadow: 0 12px 36px rgba(0, 0, 0, .34);
}
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    color-scheme: dark;
    --bg: #080808;
    --surface: #121212;
    --fg: #f4f4f2;
    --muted: #b8b8b5;
    --soft: #92928f;
    --border: #2b2b2b;
    --accent: #c5d5e2;
    --accent-soft: #191919;
    --shadow: 0 12px 36px rgba(0, 0, 0, .34);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.7 var(--font); }
button { font: inherit; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fg); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.container { width: min(calc(100% - 56px), var(--maxw)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 8px 14px; background: var(--fg); color: var(--bg); }
.skip-link:focus { top: 8px; }

.topnav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: var(--nav-h); }
.nav { display: flex; flex: 1; min-width: 0; justify-content: flex-end; align-items: center; gap: clamp(14px, 2vw, 28px); margin-left: auto; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--accent); }
.theme-toggle { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--fg); cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
#progress { display: block; width: 100%; height: 2px; margin: 0; appearance: none; border: 0; background: transparent; }
#progress::-webkit-progress-bar { background: transparent; }
#progress::-webkit-progress-value { background: var(--accent); }
#progress::-moz-progress-bar { background: var(--accent); }

.hero { min-height: calc(100vh - var(--nav-h) - 2px); min-height: calc(100svh - var(--nav-h) - 2px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 32%); align-items: center; gap: clamp(44px, 7vw, 108px); padding: 94px 0 88px; }
.hero-copy { max-width: 670px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-line { width: 24px; height: 1px; background: var(--border); }
.post-header { margin-bottom: 30px; }
.post-title { margin: 0; font-size: clamp(2.8rem, 5vw, 4.65rem); font-weight: 300; letter-spacing: -.065em; line-height: 1.07; }
.font-weight-bold { font-weight: 700; }
.desc { margin: 14px 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); letter-spacing: -.01em; }
.bio { max-width: 650px; font-size: 16px; line-height: 1.85; }
.bio p { margin: 0 0 15px; }
.bio p:last-child { margin-bottom: 0; }
.bio strong { font-weight: 700; }
.profile { position: relative; width: 100%; max-width: 310px; justify-self: center; aspect-ratio: 1; border-radius: 50%; background: var(--accent-soft); padding: 7px; box-shadow: var(--shadow); }
.profile img, .profile-initials { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-initials { display: grid; place-items: center; color: var(--accent); background: radial-gradient(circle at 35% 30%, var(--surface), var(--accent-soft)); font-size: clamp(4rem, 7vw, 6rem); font-weight: 300; letter-spacing: -.08em; }
.social { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; }
.social a { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); text-decoration: none; font-size: 13px; font-weight: 600; }
.social a:hover { color: var(--accent); }
.social svg { width: 17px; height: 17px; }

.section { padding: 68px 0 62px; border-top: 1px solid var(--border); }
.section-heading { margin-bottom: 24px; }
.section h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.25rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.2; }
.entry-list { border-top: 1px solid var(--border); }
.entry-row { display: grid; grid-template-columns: 250px minmax(0, 1fr) auto; gap: 26px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--border); }
.entry-date { color: var(--accent); font-size: 13px; font-weight: 700; line-height: 1.6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.no-date .entry-date { color: var(--fg); font-size: 15px; font-weight: 600; white-space: normal; }
.no-date .entry-date a { color: inherit; text-decoration: none; }
.no-date .inline-meta { margin-top: 0; font-size: 14px; }
.entry-main { min-width: 0; }
.news-title { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
.news-title a { color: inherit; text-decoration: none; }
.news-title a:hover { color: var(--accent); }
.inline-meta { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.inline-meta > span { padding: 0 6px; color: var(--soft); }
.education-grade { margin: 8px 0 0; color: var(--fg); font-size: 14px; line-height: 1.7; }
.education-grade > span { margin-right: 6px; color: var(--muted); font-weight: 400; }
.education-grade strong { font-weight: 600; }
.news-body { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.news-body p { margin: 0 0 8px; }
.news-body p:last-child { margin-bottom: 0; }
.news-body ul, .news-body ol { margin: 0 0 8px; padding-left: 19px; }
.news-body strong { color: var(--fg); font-weight: 600; }
.entry-previews { display: flex; gap: 8px; max-width: 288px; }
.entry-previews .preview { width: 136px; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-content { display: flex; flex: 1; flex-direction: column; padding: 25px 26px 24px; }
.card-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.card-head { margin-bottom: 12px; }
.card-date { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.project-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 100px; background: var(--accent-soft); color: var(--fg); font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.project-status::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.status-active { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.project-summary { margin: 0; color: var(--fg); font-size: 15px; line-height: 1.7; }
.project-details { margin-top: 14px; }
.project-details summary { width: fit-content; padding: 4px 0; color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; }
.project-details summary:hover { color: var(--fg); }
.project-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.project-details[open] summary { margin-bottom: 10px; }
.card h3 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.03em; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card .body { position: relative; z-index: 1; color: var(--muted); font-size: 14px; line-height: 1.75; }
.card .body p { margin: 0 0 10px; }
.card .body p:last-child { margin-bottom: 0; }
.card .body strong { color: var(--fg); }
.card .body ul, .card .body ol { padding-left: 19px; }
.card .body img, .news-body img { display: block; max-width: 100%; height: auto; margin: 14px 0 0; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.meta { display: flex; flex-wrap: wrap; gap: 3px 12px; color: var(--muted); font-size: 12px; }
.meta .k { font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding-top: 20px; }
.tag { padding: 3px 9px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font-size: 12px; font-weight: 600; }
.mini-links { position: relative; z-index: 1; margin-top: 16px; color: var(--soft); font-size: 12px; font-weight: 600; }
.mini-link { text-decoration: none; }
.mini-link:hover { text-decoration: underline; }
.card-content .mini-links { margin-top: auto; padding-top: 18px; }

.card-media { position: relative; z-index: 1; display: flex; gap: 10px; min-height: 195px; padding: 14px; overflow-x: auto; background: var(--accent-soft); border-bottom: 1px solid var(--border); }
.card-media .preview { width: 100%; min-width: 0; }
.card-media .preview + .preview { min-width: 45%; }
.card-content > .card-media { flex-shrink: 0; margin: 4px 0 18px; border: 1px solid var(--border); border-radius: 10px; }
.preview { min-width: 0; }
.preview a { display: flex; flex-direction: column; overflow: hidden; height: 100%; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--fg); text-decoration: none; }
.preview a:hover { border-color: var(--accent); }
.preview img, .preview iframe { display: block; width: 100%; height: 155px; border: 0; object-fit: contain; background: #f3f5f6; }
.preview iframe { pointer-events: none; }
.file-fallback { display: grid; place-items: center; width: 100%; height: 155px; background: var(--accent-soft); color: var(--accent); font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.preview-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 11px; border-top: 1px solid var(--border); font-size: 11px; font-weight: 600; line-height: 1.35; }
.preview-caption span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-caption span:last-child { flex: none; color: var(--accent); font-size: 10px; letter-spacing: .07em; }
.entry-previews .preview img, .entry-previews .preview iframe { height: 96px; }
.entry-previews .preview-caption { padding: 6px 8px; font-size: 10px; }
.empty-note { padding: 18px 20px; border: 1px dashed var(--border); border-radius: 9px; color: var(--muted); font-size: 14px; }

footer { margin-top: 25px; border-top: 1px solid var(--border); color: var(--soft); font-size: 12px; }
.footer-inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; padding: 28px 0; text-align: center; }
@media (max-width: 850px) {
  .nav-inner { gap: 16px; }
  .nav { gap: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr) 230px; gap: 32px; }
  .entry-row { grid-template-columns: 1fr; gap: 10px; }
  .entry-previews { grid-column: 1; }
}
@media (max-width: 650px) {
  :root { --nav-h: 64px; }
  .container { width: min(calc(100% - 36px), var(--maxw)); }
  .nav-inner { gap: 12px; }
  .nav { gap: 14px; }
  .nav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 68px 0 74px; }
  .hero-copy { order: 1; }
  .profile { order: 0; justify-self: start; width: 152px; }
  .post-title { font-size: clamp(2.65rem, 12vw, 4rem); }
  .eyebrow { margin-bottom: 14px; }
  .post-header { margin-bottom: 24px; }
  .bio { font-size: 15px; }
  .section { padding: 52px 0 49px; }
  .section-heading { margin-bottom: 18px; }
  .entry-row { grid-template-columns: 1fr; gap: 5px; padding: 21px 0 23px; }
  .entry-date { font-size: 12px; }
  .entry-previews { grid-column: 1; margin-top: 10px; }
  .project-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: center; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}

/* Journal: compact home teaser and editorial article pages. */
.journal-home { padding-top: 74px; }
.journal-home-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.journal-home-heading .eyebrow { margin-bottom: 11px; }
.journal-home h2 { max-width: 680px; font-size: clamp(2.15rem, 4vw, 3.35rem); font-weight: 500; letter-spacing: -.055em; }
.journal-all { flex: none; padding-bottom: 4px; color: var(--fg); font-size: 13px; font-weight: 700; text-decoration: none; }
.journal-all span { margin-left: 8px; color: var(--accent); }
.journal-all:hover { color: var(--accent); }
.journal-home-intro { max-width: 540px; margin: 15px 0 28px; color: var(--muted); font-size: 15px; }
.journal-home-grid, .journal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.journal-home-grid .journal-card:only-child { grid-column: 1 / -1; }
.journal-card { min-width: 0; border: 1px solid var(--border); border-radius: 13px; overflow: hidden; background: var(--surface); transition: border-color .2s, transform .2s, box-shadow .2s; }
.journal-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.journal-card-link { display: flex; flex-direction: column; height: 100%; color: var(--fg); text-decoration: none; }
.journal-card-link:hover { color: var(--fg); }
.journal-card-media { position: relative; height: 225px; overflow: hidden; background: var(--accent-soft); }
.journal-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.journal-art { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 66% 44%, rgba(124, 165, 200, .43), transparent 27%), radial-gradient(circle at 48% 62%, rgba(107, 143, 171, .24), transparent 37%), linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.journal-art::after { content: ""; position: absolute; width: 38%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-25deg); border: 1px solid var(--accent); border-radius: 50%; opacity: .44; box-shadow: 0 0 0 22px rgba(128, 164, 188, .08), 0 0 0 65px rgba(128, 164, 188, .05); }
[data-theme="dark"] .journal-art { background: radial-gradient(circle at 62% 40%, #303030, transparent 30%), linear-gradient(135deg, #1a1a1a, #101010); }
[data-theme="dark"] .journal-art::after { border-color: #777; box-shadow: 0 0 0 22px rgba(255, 255, 255, .025), 0 0 0 65px rgba(255, 255, 255, .015); }
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .journal-art { background: radial-gradient(circle at 62% 40%, #303030, transparent 30%), linear-gradient(135deg, #1a1a1a, #101010); }
  [data-theme="auto"] .journal-art::after { border-color: #777; box-shadow: 0 0 0 22px rgba(255, 255, 255, .025), 0 0 0 65px rgba(255, 255, 255, .015); }
}
.journal-card-copy { position: relative; flex: 1; padding: 23px 26px 49px; }
.journal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.journal-meta span { color: var(--accent); }
.journal-card h3 { max-width: 620px; margin: 15px 0 8px; font-size: clamp(1.35rem, 2.3vw, 1.8rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.25; }
.journal-card p { max-width: 580px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.journal-arrow { position: absolute; right: 26px; bottom: 18px; color: var(--accent); font-size: 20px; line-height: 1; }
.journal-home .journal-card-media { display: none; }
.journal-home .journal-card-copy { min-height: 190px; }
.journal-empty { grid-column: 1 / -1; margin: 0; padding: 25px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); }

.blog-main { min-height: calc(100svh - 170px); }
.blog-hero { max-width: 850px; padding: 98px 0 78px; }
.blog-hero .eyebrow { margin-bottom: 20px; }
.blog-hero h1 { margin: 0; font-size: clamp(3.3rem, 7vw, 6.6rem); font-weight: 500; letter-spacing: -.075em; line-height: 1.03; }
.blog-hero > p:last-child { max-width: 550px; margin: 25px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.blog-list { padding: 0 0 100px; }
.journal-grid { border-top: 1px solid var(--border); padding-top: 22px; }
.journal-grid .journal-card:first-child { grid-column: 1 / -1; }
.journal-grid .journal-card:first-child .journal-card-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.journal-grid .journal-card:first-child .journal-card-media { height: 340px; }
.journal-grid .journal-card:first-child .journal-card-copy { display: flex; flex-direction: column; justify-content: center; padding: 35px 42px; }
.journal-grid .journal-card:first-child h3 { font-size: clamp(2rem, 3.5vw, 3.1rem); }
.journal-grid .journal-card:first-child .journal-arrow { right: 36px; bottom: 26px; }

.blog-body { --article-link: #20252a; }
[data-theme="dark"] .blog-body { --article-link: #f4f4f2; }
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .blog-body { --article-link: #f4f4f2; }
}
.article-page { padding: 38px 0 100px; }
.article-header { position: relative; padding: 100px 0 0; }
.article-back { position: absolute; top: 0; left: 0; display: inline-block; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.article-back:hover { color: var(--fg); }
.article-topline { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 43px; color: var(--muted); font-size: 16px; }
.article-topline time { color: var(--fg); }
.article-header h1 { max-width: 1100px; margin: 0 auto; font-size: clamp(3.5rem, 5.6vw, 5.7rem); font-weight: 400; letter-spacing: -.058em; line-height: 1.07; text-align: center; text-wrap: balance; }
.article-tools { display: flex; align-items: center; justify-content: space-between; width: min(100%, 930px); margin: clamp(90px, 7vw, 125px) auto 0; padding: 21px 0 0; border-top: 1px solid var(--border); }
.article-read-time { color: var(--muted); font-size: 14px; }
.article-share { display: inline-flex; align-items: center; gap: 10px; padding: 3px 0; border: 0; background: transparent; color: var(--fg); font-size: 14px; font-weight: 500; cursor: pointer; }
.article-share:hover { color: var(--muted); }
.article-share svg { flex: none; }
.article-cover { position: relative; display: grid; place-items: center; width: 100%; max-height: 620px; margin: 0; overflow: hidden; background: var(--surface); }
.article-cover img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.article-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(930px, calc(100vw - 500px))) minmax(0, 1fr); gap: 30px; width: calc(100vw - 88px); margin-left: calc(50% - 50vw + 44px); padding-top: 94px; }
.article-reading-layout.no-outline { display: block; }
.article-reading-layout.no-outline .article-body { margin-inline: auto; }
.article-sidebar { align-self: start; position: sticky; top: calc(var(--nav-h) + 36px); }
.article-sidebar nav { padding-top: 0; }
.article-sidebar p { margin: 0 0 19px; color: var(--fg); font-size: 13px; font-weight: 700; }
.article-sidebar ol { margin: 0; padding: 0; list-style: none; }
.article-sidebar li { margin: 0 0 13px; font-size: 13px; line-height: 1.45; }
.article-sidebar li.level-3 { padding-left: 12px; }
.article-sidebar a { color: var(--muted); text-decoration: none; }
.article-sidebar a:hover { color: var(--fg); }
.article-body { grid-column: 2; max-width: 930px; color: var(--fg); font-size: 19px; line-height: 1.72; }
.article-body a { color: var(--article-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.35em; }
.article-body h2 { margin: 2.2em 0 .65em; font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -.05em; line-height: 1.2; scroll-margin-top: calc(var(--nav-h) + 30px); }
.article-body h3 { margin: 1.85em 0 .6em; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; scroll-margin-top: calc(var(--nav-h) + 30px); }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.5em; }
.article-body li { margin-bottom: .45em; }
.article-body strong { font-weight: 700; }
.article-body img { display: block; max-width: 100%; height: auto; margin: 30px auto; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.article-body blockquote { margin: 1.8em 0; padding: .2em 0 .2em 24px; border-left: 2px solid var(--accent); color: var(--muted); font-size: 1.15em; }
.article-body pre { max-width: 100%; padding: 20px 22px; overflow-x: auto; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); font-size: 13px; line-height: 1.6; }
.article-body :not(pre) > code { padding: .1em .3em; border-radius: 4px; background: var(--accent-soft); font-size: .88em; }
.article-body hr { height: 1px; margin: 2.5em 0; border: 0; background: var(--border); }
.article-attachments { max-width: 930px; margin: 65px auto 0; }
.article-attachments h2 { margin: 0 0 16px; font-size: 1.25rem; font-weight: 600; letter-spacing: -.03em; }
.article-attachments > div { display: flex; flex-wrap: wrap; gap: 12px; }
.article-attachments .preview { width: min(230px, 100%); }
.article-author { display: flex; flex-direction: column; gap: 4px; max-width: 930px; margin: 75px auto 0; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.article-author span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.article-author strong { font-size: 18px; font-weight: 600; }
.article-bottom { max-width: 930px; margin: 28px auto 0; font-size: 13px; font-weight: 700; }
.article-bottom a { color: var(--fg); text-decoration: none; }
.article-bottom a:hover { color: var(--accent); }
.article-next { margin: 110px 0 0; padding-top: 30px; border-top: 1px solid var(--border); }
.article-next-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.article-next-heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.04em; }
.article-next-heading a { color: var(--fg); font-size: 13px; font-weight: 700; text-decoration: none; }
.article-next-heading a:hover { color: var(--accent); }
.article-next-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 30px; padding: 25px 0 32px; border-top: 1px solid var(--border); color: var(--fg); text-decoration: none; }
.article-next-link:hover { color: var(--muted); }
.article-next-meta { grid-column: 1 / -1; color: var(--muted); font-size: 12px; font-weight: 600; }
.article-next-meta span { margin: 0 8px; }
.article-next-link strong { max-width: 800px; font-size: clamp(1.7rem, 3vw, 2.7rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.18; }
.article-next-arrow { align-self: end; font-size: 23px; }

@media (max-width: 1050px) {
  .article-reading-layout { display: block; width: 100%; margin-left: 0; padding-top: 65px; }
  .article-body { max-width: 100%; }
  .article-sidebar { position: static; }
  .article-sidebar nav { padding: 17px 0 18px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .article-sidebar ol { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; border: 0; }
  .article-sidebar li { margin: 0; }
  .article-sidebar li.level-3 { padding-left: 0; }
  .article-attachments, .article-author, .article-bottom { margin-left: 0; }
}

@media (max-width: 650px) {
  .journal-home { padding-top: 52px; }
  .journal-home-heading { flex-direction: column; align-items: start; gap: 8px; }
  .journal-all { padding-top: 0; white-space: nowrap; font-size: 12px; }
  .journal-home-intro { margin-top: 12px; }
  .journal-home-grid, .journal-grid { grid-template-columns: 1fr; }
  .journal-home-grid .journal-card:only-child { grid-column: auto; }
  .blog-hero { padding: 68px 0 53px; }
  .blog-hero > p:last-child { font-size: 16px; }
  .blog-list { padding-bottom: 70px; }
  .journal-grid .journal-card:first-child { grid-column: auto; }
  .journal-grid .journal-card:first-child .journal-card-link { display: flex; }
  .journal-grid .journal-card:first-child .journal-card-media { height: 220px; }
  .journal-grid .journal-card:first-child .journal-card-copy { display: block; padding: 23px 26px 49px; }
  .journal-grid .journal-card:first-child h3 { font-size: 1.8rem; }
  .article-page { padding: 24px 0 65px; }
  .article-header { padding-top: 112px; }
  .article-topline { gap: 5px 17px; margin-bottom: 28px; font-size: 13px; }
  .article-header h1 { font-size: clamp(3rem, 10.5vw, 5.5rem); }
  .article-tools { margin-top: 70px; }
  .article-reading-layout { padding-top: 58px; }
  .article-body { font-size: 17px; }
  .article-next { margin-top: 75px; }
}


/* Selectable baseline / steered response comparisons. */
.article-body .answer-comparison { margin: 1.6em 0 1.4em; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.article-body .answer-context { padding: 14px 22px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .025em; }
.article-body .answer-prompt { padding: 21px 24px 23px; border-bottom: 1px solid var(--border); }
.article-body .answer-prompt > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.article-body .answer-prompt > p { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.article-body .answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-body .answer-panel { min-width: 0; padding: 23px 24px 26px; }
.article-body .answer-panel--steered { border-left: 1px solid var(--border); background: var(--accent-soft); }
.article-body .answer-label { display: flex; align-items: center; gap: 8px; margin: 0 0 17px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .025em; }
.article-body .answer-panel--steered .answer-label { color: var(--accent); }
.article-body .answer-indicator { flex: 0 0 7px; height: 7px; border-radius: 50%; background: currentColor; }
.article-body .answer-panel blockquote { margin: 0; padding: 0; border: 0; color: var(--fg); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.article-body .answer-panel blockquote p { margin: 0 0 1em; }
.article-body .answer-panel blockquote p:last-child { margin-bottom: 0; }
.article-body .answer-panel--steered strong { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 680px) {
  .article-body .answer-grid { grid-template-columns: minmax(0, 1fr); }
  .article-body .answer-panel--steered { border-left: 0; border-top: 1px solid var(--border); }
  .article-body .answer-context { padding: 13px 18px; }
  .article-body .answer-prompt { padding: 18px; }
  .article-body .answer-panel { padding: 20px 18px 23px; }
  .article-body .answer-prompt > p { font-size: 19px; }
}
