:root { --bg: #0b1220; --bg-2: #111a2e; --panel: #152038; --line: #24314d; --ink: #f2f5fb; --muted: #a7b2c8; --blue: #2f7cf6; --blue-soft: #8fb6ff; --lime: #a3e635; --display: "Outfit", "Segoe UI", Helvetica, Arial, sans-serif; --body: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace; color-scheme: dark; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.7; margin: 0; }
.wrap { max-width: 1060px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.badge { position: relative; width: 44px; height: 44px; border-radius: 11px; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; flex: none; }
.badge i { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.words { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 0.28em; line-height: 1.05; }
.words .name { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.015em; }
.words .des { font-family: var(--display); font-weight: 300; font-size: 1.4rem; color: var(--blue-soft); }
.words .tag { grid-column: 1 / -1; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.head-right { display: flex; align-items: center; gap: 18px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; color: var(--ink); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.nav-link:hover, .nav-link[aria-current] { color: var(--blue-soft); }
.btn { display: inline-block; font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; padding: 14px 26px; border-radius: 999px; border: 1px solid var(--lime); background: var(--lime); color: #0b1220; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(163, 230, 53, 0.3); }
header .btn { padding: 9px 18px; font-size: 0.92rem; white-space: nowrap; }
@media (max-width: 560px) { header .btn { display: none; } }
.eyebrow { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }
.meta { color: var(--muted); font-size: 0.95rem; }

/* Blog list */
.list-head { display: grid; gap: 10px; padding-block: 64px 28px; }
.list-head h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); font-weight: 800; }
.list-head p.lead { color: var(--muted); font-size: 1.1rem; }
.posts { display: grid; gap: 16px; padding-bottom: 80px; }
.card { display: grid; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.card:hover { border-color: var(--blue); transform: translateY(-1px); }
.card h2 { font-size: 1.6rem; font-weight: 700; }
.card p { color: var(--muted); }
.card .read { color: var(--blue-soft); font-weight: 600; font-size: 0.95rem; }

/* Single post */
article { padding-block: 64px 72px; display: grid; gap: 36px; }
.post-head { display: grid; gap: 14px; }
.post-head h1 { font-size: clamp(2.2rem, 5.4vw, 3.2rem); font-weight: 800; }
.post-body { display: grid; gap: 1.1em; font-size: 1.1rem; line-height: 1.75; }
.post-body p { color: #d9e0ee; }
.post-body p.beat { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--ink); line-height: 1.3; }
.post-body a { color: var(--blue-soft); font-weight: 600; }
.bio { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.bio .badge { width: 56px; height: 56px; font-size: 1.3rem; }
.bio div { display: grid; gap: 6px; min-width: 0; }
.bio h2 { font-size: 1.15rem; font-weight: 700; }
.bio p { color: var(--muted); font-size: 0.98rem; }
.cta { display: grid; gap: 14px; justify-items: center; text-align: center; background: linear-gradient(180deg, #13306a, #0f2350); border: 1px solid var(--line); border-radius: 16px; padding: 36px 24px; }
.cta h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 700; }
.cta p { color: #c9d8f5; max-width: 46ch; }
.back { color: var(--blue-soft); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.back:hover { text-decoration: underline; }

.more { display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 32px; }
.more h2 { font-size: 1.5rem; font-weight: 700; }
.more-list { display: grid; gap: 14px; }
.more .card { padding: 22px; }
.more .card h3 { font-size: 1.25rem; font-weight: 700; }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 28px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 0.9rem; }
footer a { color: var(--blue-soft); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .btn:hover, .card:hover { transform: none; } }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share span { color: var(--muted); font-size: 0.95rem; margin-right: 4px; }
.share a { display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; }
.share a:hover { border-color: var(--blue-soft); color: var(--blue-soft); }
.sub { display: grid; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; }
.sub h2 { font-size: 1.4rem; font-weight: 700; }
.sub > p { color: var(--muted); }
.sub-form { display: grid; gap: 12px; }
.sub-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sub-row input { flex: 1 1 220px; min-width: 0; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; }
.sub-row input:focus { border-color: var(--blue-soft); outline: none; }
.sub-note { color: var(--lime); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chart { margin: 0.4em 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 16px; display: grid; gap: 10px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart figcaption { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.posts + .sub { margin-top: 40px; margin-bottom: 64px; }
.chart-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .chart-line { animation: chart-draw 1.4s ease-out both; }
  @keyframes chart-draw { from { stroke-dashoffset: 1; } }
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--lime); color: #0b1220; font-weight: 700; padding: 12px 18px; border-radius: 0 0 10px 0; text-decoration: none; }
.skip-link:focus { left: 0; }
