:root { color-scheme: light dark; --bg: #fdfdfd; --surface: #fff; --surface-soft: #f6f6f8; --text: #171719; --muted: #6d6d74; --line: #e4e4e7; --accent: #bd16c4; --accent-strong: #97109d; --overlay: rgb(20 20 24 / 42%); --shadow: 0 24px 70px rgb(20 20 24 / 24%); --header-h: 76px; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-synthesis: none; }
:root[data-theme="dark"] { --bg: #121214; --surface: #1a1a1d; --surface-soft: #232327; --text: #f4f4f5; --muted: #aaaab2; --line: #333338; --accent: #ed72ee; --accent-strong: #f3a2f2; --overlay: rgb(0 0 0 / 64%); --shadow: 0 24px 80px rgb(0 0 0 / 48%); }
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); color: var(--text); scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); font-size: 18px; line-height: 1.65; text-rendering: optimizeLegibility; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .07em; }
button, input { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 12px; border-radius: 6px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.site-header { position: sticky; z-index: 20; top: 0; min-height: var(--header-h); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: flex-end; width: min(1120px, calc(100% - 40px)); min-height: var(--header-h); margin-inline: auto; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 20px; line-height: 1; text-decoration: underline; text-decoration-color: currentColor; }
.nav-link[aria-current="page"] { color: var(--accent-strong); font-weight: 650; text-decoration-thickness: 2px; }
.header-tools { display: flex; align-items: center; gap: 4px; margin-left: 22px; }
.shortcut { display: inline-flex; align-items: center; gap: 3px; margin-right: 2px; color: var(--muted); font-size: 14px; line-height: 1; }
.shortcut kbd { min-width: 20px; padding: 3px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-soft); color: var(--text); font: inherit; text-align: center; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.icon-button:hover { background: var(--surface-soft); }
.icon-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.theme-sun, :root[data-theme="dark"] .theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
main { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.hero { padding: clamp(72px, 12vw, 150px) 0 clamp(70px, 11vw, 130px); }
.eyebrow { margin: 0 0 12px; color: var(--accent-strong); font-size: 14px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { overflow-wrap: anywhere; }
h1 { max-width: 19ch; margin: 0; font-size: clamp(52px, 9vw, 104px); font-weight: 400; letter-spacing: -.065em; line-height: .98; }
h1 strong { font-weight: 780; }
.lede { max-width: 770px; margin: 36px 0 0; color: var(--muted); font-size: clamp(22px, 3vw, 34px); line-height: 1.45; }
.section-rule { border-top: 1px solid var(--line); }
.latest { padding: 48px 0 96px; }
.section-heading { margin: 0 0 26px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; line-height: 1.15; }
.post-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); text-decoration: none; }
.post-link:last-child { border-bottom: 1px solid var(--line); }
.post-link:hover .post-title { color: var(--accent-strong); text-decoration: underline; }
.post-kicker { display: block; margin-bottom: 5px; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.post-title { display: block; font-size: clamp(22px, 3vw, 31px); font-weight: 620; letter-spacing: -.025em; line-height: 1.25; }
.post-arrow { color: var(--muted); font-size: 34px; transition: transform 160ms ease, color 160ms ease; }
.post-link:hover .post-arrow { color: var(--accent-strong); transform: translateX(5px); }
.page-heading { padding: clamp(68px, 10vw, 118px) 0 52px; }
.page-heading h1 { font-size: clamp(50px, 8vw, 86px); font-weight: 760; }
.page-intro { max-width: 620px; margin: 24px 0 0; color: var(--muted); font-size: 22px; }
.posts-list { padding-bottom: 100px; }
.article { width: min(780px, 100%); padding: clamp(64px, 10vw, 116px) 0 120px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 46px; color: var(--muted); font-size: 16px; }
.back-link:hover { color: var(--text); }
.article h1 { max-width: 17ch; font-size: clamp(43px, 7vw, 76px); font-weight: 730; line-height: 1.02; }
.article-body { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); font-size: 22px; }
.article-body p { margin: 0; }
.search-is-open { overflow: hidden; }
.search-dialog { width: min(860px, calc(100vw - 32px)); max-width: none; max-height: min(720px, calc(100dvh - 40px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.search-dialog::backdrop { background: var(--overlay); backdrop-filter: blur(3px); }
.search-shell { display: grid; grid-template-rows: auto minmax(120px, 1fr) auto; max-height: min(720px, calc(100dvh - 40px)); }
.search-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; min-height: 88px; padding: 0 20px 0 26px; border-bottom: 1px solid var(--line); }
.search-bar > svg { width: 25px; height: 25px; margin-right: 14px; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-width: 1.8; }
.search-input { width: 100%; min-width: 0; padding: 20px 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: clamp(21px, 4vw, 30px); }
.search-input::placeholder { color: var(--muted); opacity: .8; }
.search-input::-webkit-search-cancel-button { display: none; appearance: none; }
.search-close { border-radius: 8px; }
.search-close svg { width: 20px; height: 20px; }
.search-results { min-height: clamp(100px, 30dvh, 190px); overflow-y: auto; padding: 14px 0 18px; overscroll-behavior: contain; }
.search-group-title { margin: 0; padding: 16px 28px 8px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.search-result { display: block; min-height: 54px; margin: 0 10px; padding: 13px 18px; border-left: 3px solid transparent; border-radius: 7px; font-size: 19px; line-height: 1.45; text-decoration: none; }
.search-result:hover, .search-result.is-active { border-left-color: var(--accent); background: var(--surface-soft); }
.search-empty { margin: 0; padding: 52px 28px; color: var(--muted); font-size: 18px; text-align: center; }
.search-footer { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; min-height: 58px; padding: 10px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.search-hint { display: inline-flex; gap: 6px; align-items: center; }
.search-hint kbd { min-width: 26px; padding: 3px 7px; border-radius: 5px; background: var(--surface-soft); color: var(--text); font: inherit; text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --bg: #121214; --surface: #1a1a1d; --surface-soft: #232327; --text: #f4f4f5; --muted: #aaaab2; --line: #333338; --accent: #ed72ee; --accent-strong: #f3a2f2; --overlay: rgb(0 0 0 / 64%); } }
@media (max-width: 600px) { :root { --header-h: 64px; } body { font-size: 17px; } .header-inner, main { width: min(100% - 28px, 1120px); } .primary-nav { gap: 18px; } .nav-link { font-size: 17px; } .header-tools { margin-left: 8px; } .shortcut { display: none; } .hero { padding-top: 70px; } .post-link { gap: 14px; } .search-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 11px; } .search-shell { max-height: calc(100dvh - 16px); } .search-bar { min-height: 72px; padding: 0 10px 0 17px; } .search-bar > svg { margin-right: 10px; } .search-group-title { padding-inline: 18px; } .search-result { margin-inline: 6px; padding-inline: 13px; font-size: 17px; } .search-footer { gap: 10px; padding-inline: 14px; } }
@media (max-width: 370px) { .primary-nav { gap: 12px; } .header-tools { gap: 0; margin-left: 3px; } .nav-link { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media (forced-colors: active) { .nav-link[aria-current="page"] { border-bottom: 2px solid currentColor; } .search-result:hover, .search-result.is-active { border: 2px solid Highlight; } }
