:root {
  color-scheme: dark;
  --bg: #0a1224;
  --surface: #101a30;
  --surface-2: #17233d;
  --ink: #f1f5f9;
  --muted: #cbd5e1;
  --body-copy: #cbd5e1;
  --line: #22304e;
  --blue: #3b82f6;
  --blue-soft: #bfdbfe;
  --blue-dark: #93c5fd;
  --hero-wash: rgba(59,130,246,.18);
  --pill-bg: rgba(59,130,246,.16);
  --callout-bg: #172b4d;
  --card-shadow: rgba(0,0,0,.15);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --surface: #f6f9fc;
  --surface-2: #eef2f9;
  --ink: #0a1224;
  --muted: #475569;
  --body-copy: #344861;
  --line: #dde5f0;
  --blue: #2563eb;
  --blue-soft: #1d4ed8;
  --blue-dark: #1748b5;
  --hero-wash: rgba(37,99,235,.1);
  --pill-bg: #e7f0ff;
  --callout-bg: #eaf3ff;
  --card-shadow: rgba(24,57,100,.05);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.75 'Athiti', system-ui, sans-serif; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 3px; }
.container { width: min(1120px, calc(100% - 40px)); margin: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 21px; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 16px; font-weight: 600; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--blue-soft); }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.hero { padding: 74px 0 64px; background: radial-gradient(circle at 80% 10%, var(--hero-wash) 0, transparent 42%), var(--bg); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--blue-soft); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 830px; font-size: clamp(38px, 5vw, 64px); line-height: 1.16; margin: 14px 0 20px; letter-spacing: -.025em; }
.lead { max-width: 740px; color: var(--muted); font-size: 22px; line-height: 1.6; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 15px; }
.content { padding: 56px 0 90px; }
.article-card { display: grid; grid-template-columns: 1fr 270px; gap: 24px; align-items: center; padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 50px var(--card-shadow); }
.article-card h2 { font-size: clamp(27px, 3vw, 36px); line-height: 1.3; margin: 10px 0 12px; }
.article-card h2 a { color: var(--ink); text-decoration: none; }
.article-card h2 a:hover { color: var(--blue); }
.article-card p { color: var(--muted); max-width: 650px; }
.article-card .art { display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 20px; background: #e7f1fc; }
.article-card .art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 99px; color: var(--blue-soft); background: var(--pill-bg); font-size: 14px; font-weight: 700; }
.read-more { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; }
.breadcrumb { padding: 24px 0 0; font-size: 15px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 250px; gap: 66px; align-items: start; }
.article-body { padding-top: 4px; }
.article-body h2 { font-size: 31px; line-height: 1.3; margin: 44px 0 16px; scroll-margin-top: 24px; }
.article-body h3 { font-size: 23px; margin: 28px 0 10px; }
.article-body p, .article-body ul, .article-body ol { color: var(--body-copy); }
.article-body li { margin: 8px 0; }
.article-body strong { color: var(--ink); }
.cover-figure { margin: 40px auto 16px; }
.cover-figure img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); }
.article-figure { margin: 30px 0 38px; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.tool-section { margin-top: 54px; padding-top: 4px; border-top: 1px solid var(--line); }
.tool-section h3 { color: var(--ink); }
.cover-figure figcaption, .article-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.callout { background: var(--callout-bg); border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 28px 0; }
.callout p { margin: 0; }
.toc { position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; font-size: 16px; }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--blue); }
.article-cta { margin-top: 46px; padding: 26px; border-radius: 18px; background: var(--callout-bg); }
.article-cta p { margin-bottom: 8px; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; color: var(--muted); font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; gap: 8px; }
  .header-actions { width: 100%; flex-wrap: wrap; gap: 12px; }
  .site-nav { order: 2; width: 100%; gap: 14px; flex-wrap: wrap; font-size: 14px; }
  .hero { padding: 50px 0; }
  .article-card { grid-template-columns: 1fr; padding: 24px; }
  .article-card .art { grid-row: 1; }
  .article-layout { display: block; }
  .toc { position: static; margin: 32px 0; }
}
