:root {
  color-scheme: light;
  --page: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6b6b73;
  --subtle: #85858e;
  --accent: #0672df;
  --accent-soft: #e8f2ff;
  --line: #141d3910;
  --card: #ffffffdc;
  --code: #eef0f5;
  --button: #0075ed;
  --glass: #ffffff7a;
  --glass-solid: #f6f8fc;
  --glass-border: #ffffffc9;
  --glass-shadow: 0 8px 32px #2531530a, 0 1px 4px #1b294806;
  --error: #c03131;
  --font-code: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  font-size: 16px;
  font-synthesis: none;
  background: var(--page);
  color: var(--text);
}
:root[data-theme=dark] {
  color-scheme: dark;
  --page: #080b12;
  --text: #f5f5f7;
  --muted: #a5adbc;
  --subtle: #8d97a9;
  --accent: #6ab5ff;
  --accent-soft: #183457;
  --line: #e1eaff14;
  --card: #171c28e8;
  --code: #1c2433;
  --button: #1687f8;
  --glass: #252d3d80;
  --glass-solid: #1e2635;
  --glass-border: #e6efff1f;
  --glass-shadow: 0 12px 36px #0000002b, 0 1px 4px #00000024;
  --error: #ffada7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; line-height: 1.6; isolation: isolate; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 78% 5%, #aed5ff32, transparent 43%), radial-gradient(ellipse at 18% 35%, #d9d4ff20, transparent 45%);
}
html[data-theme=dark] body::before { background: radial-gradient(ellipse at 80% 5%, #123b7055, transparent 47%), radial-gradient(ellipse at 12% 35%, #34215128, transparent 42%); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.04em; line-height: 1.12; }
h1 { font-size: clamp(48px, 5.7vw, 78px); }
h2 { font-size: 37px; }
em { font-style: normal; color: var(--accent); }
code, kbd { font-family: var(--font-code); }
[hidden] { display: none !important; }
.wrap { width: calc(100% - 112px); max-width: 1180px; margin-inline: auto; }
.glass, .glass-control {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--glass-shadow), inset 0 1px 0 #ffffff70, inset 0 -1px 0 #ffffff16;
}
html[data-theme=dark] .glass, html[data-theme=dark] .glass-control { box-shadow: var(--glass-shadow), inset 0 1px 0 #ffffff12, inset 0 -1px 0 #ffffff04; }
.site-header { position: sticky; top: 18px; z-index: 30; padding-inline: 32px; margin-top: 18px; }
.header-inner { max-width: 1244px; margin: auto; height: 72px; border-radius: 25px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; display: grid; place-content: center; background: linear-gradient(145deg, #1288ff, #5551ee); color: white; border-radius: 12px; font-size: 29px; font-weight: 700; line-height: 1; letter-spacing: -3px; box-shadow: 0 3px 10px #287df329, inset 0 1px 0 #ffffff5e; position: relative; padding-right: 7px; }
.brand-mark>span { position: absolute; right: 8px; bottom: 6px; }
.brand-name { font-size: 14px; letter-spacing: -.3px; font-weight: 650; line-height: 1.4; }
.brand-name>span { display: block; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: .1px; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.header-actions form { margin: 0; display: flex; }
.nav-library, .logout { font-size: 12px; font-weight: 500; color: var(--muted); }
.logout svg { display: none; }
.nav-library:hover, .logout:hover { color: var(--accent); }
.private-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.private-label svg { width: 13px; height: 13px; }
.portfolio-link { min-height: 36px; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 550; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--line); background: #ffffff50; transition: background .2s, color .2s; }
html[data-theme=dark] .portfolio-link { background: #ffffff08; }
.portfolio-link:hover { background: var(--accent-soft); color: var(--accent); }
.portfolio-link svg { width: 13px; height: 13px; }
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; padding: 0; }
.theme-toggle:hover { color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
html[data-theme=dark] .theme-toggle .sun { display: block; }
html[data-theme=dark] .theme-toggle .moon { display: none; }
.text-button { display: inline-flex; align-items: center; gap: 7px; background: transparent; padding: 0; font-size: 12px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 600; letter-spacing: 1.4px; line-height: 1.6; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4795f6; box-shadow: 0 0 0 4px #4795f610; flex-shrink: 0; }
.little-line { display: inline-block; width: 22px; height: 2px; background: var(--accent); border-radius: 1px; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 30px; padding-block: 81px 89px; }
.hero .eyebrow { color: var(--muted); }
.hero h1 { margin: 23px 0 22px; line-height: 1.06; letter-spacing: -.055em; }
.hero h1 em, .login-intro h1 em { background: linear-gradient(105deg, #0073e8 5%, #4771f1 50%, #9b58da); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme=dark] .hero h1 em, html[data-theme=dark] .login-intro h1 em { background-image: linear-gradient(105deg, #62b9ff 10%, #97a3ff 55%, #d499ed); }
.intro-copy { font-size: 17px; color: var(--muted); line-height: 1.7; letter-spacing: -.25px; }
.hero-link { display: inline-flex; gap: 27px; align-items: center; background: var(--button); color: white; border: 1px solid #ffffff24; border-radius: 25px; padding: 11px 19px 11px 23px; font-size: 13px; font-weight: 550; margin-top: 29px; box-shadow: 0 4px 14px #0075ed24, inset 0 1px 0 #ffffff30; transition: transform .2s, background .2s; }
.hero-link:hover { transform: translateY(-2px); filter: brightness(1.06); }
.hero-link span { font-size: 18px; font-weight: 400; }
.library-note { position: relative; min-height: 350px; display: flex; align-items: center; flex-direction: column; justify-content: center; }
.library-note::before { content: ''; position: absolute; width: 370px; height: 300px; border-radius: 50%; background: radial-gradient(ellipse, #a8caff55, #c2ccff20 45%, transparent 70%); filter: blur(18px); }
.glass-stack { position: relative; width: 280px; height: 260px; margin-top: 10px; }
.stack-sheet { position: absolute; width: 190px; height: 190px; border-radius: 45px; border: 1px solid #ffffffbf; backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 16px 36px #4274b31c, inset 0 2px 2px #ffffffa6, inset 0 -1px 1px #ffffff33; }
.sheet-back { top: 6px; left: 56px; transform: rotate(13deg); background: linear-gradient(145deg, #d1e0ff85, #a7c3ff45); }
.sheet-middle { top: 35px; left: 37px; transform: rotate(-12deg); background: linear-gradient(145deg, #ffffff70, #b2d1ff40); }
.sheet-front { top: 58px; left: 55px; display: grid; place-items: center; background: linear-gradient(135deg, #ffffffbd, #e5efff60 55%, #c2d8ff50); transform: rotate(2deg); }
.sheet-front svg { width: 76px; height: 76px; stroke-width: 1.15; color: #247de5; filter: drop-shadow(0 2px 2px #ffffff80); }
.floating-chip { position: absolute; z-index: 2; border-radius: 19px; padding: 8px 14px; font-size: 11px; font-weight: 550; letter-spacing: -.1px; }
.chip-code { left: -12px; top: 68px; font: 13px var(--font-code); transform: rotate(-7deg); }
.chip-sync { right: -41px; bottom: 49px; display: flex; align-items: center; gap: 6px; transform: rotate(5deg); }
.chip-sync svg { width: 14px; height: 14px; color: #31a47c; }
.note-caption { position: relative; z-index: 1; color: var(--muted); font-size: 12px; margin-top: 35px; }
.note-caption>span { color: var(--text); font-weight: 600; }
html[data-theme=dark] .library-note::before { background: radial-gradient(ellipse, #215b9d70, #56429920 45%, transparent 72%); }
html[data-theme=dark] .stack-sheet { border-color: #b5d2ff38; box-shadow: 0 25px 45px #00000035, inset 0 1px 1px #e0efff40; }
html[data-theme=dark] .sheet-back { background: linear-gradient(145deg, #344d8290, #184d7e55); }
html[data-theme=dark] .sheet-middle { background: linear-gradient(145deg, #6689b755, #304b7e44); }
html[data-theme=dark] .sheet-front { background: linear-gradient(135deg, #7991b244, #1d386f5c 55%, #316b9a30); }
html[data-theme=dark] .sheet-front svg { color: #9bccff; filter: drop-shadow(0 3px 8px #9fcfff20); }
.collection { padding-block: 20px 64px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 29px; }
.section-heading h2 { font-size: 34px; font-weight: 650; line-height: 1.17; }
.section-heading h2 span { color: var(--muted); }
.section-heading>p { font-size: 12px; font-weight: 550; text-align: right; padding-bottom: 3px; }
.section-heading>p>span { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 4px; }
.collection-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.filters { display: inline-flex; align-items: center; gap: 3px; border-radius: 23px; padding: 5px; }
.filter { background: transparent; border: 1px solid transparent; border-radius: 18px; padding: 8px 13px; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 550; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.filter>span { font-size: 9px; opacity: .8; }
.filter.active { background: #ffffffeb; border-color: #ffffff; color: var(--text); box-shadow: 0 2px 7px #1a2b4c12, inset 0 1px 0 #fff; }
.filter:hover:not(.active) { background: #ffffff40; color: var(--text); }
html[data-theme=dark] .filter.active { background: #6a7a9642; border-color: #dbe9ff20; box-shadow: 0 2px 6px #00000020, inset 0 1px 0 #ffffff12; }
html[data-theme=dark] .filter:hover:not(.active) { background: #ffffff08; }
.search-field { display: flex; align-items: center; gap: 10px; border-radius: 23px; padding: 11px 16px; color: var(--muted); width: 273px; min-width: 220px; }
.search-field svg { width: 15px; height: 15px; }
.search-field input { width: 100%; min-width: 0; border: 0; background: transparent; outline: 0; font-size: 12px; color: var(--text); }
.search-field input:focus-visible { outline: none; }
.search-field input::placeholder { color: var(--muted); }
.search-field:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.search-field kbd { font-size: 10px; background: #808caa0c; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.results-line { display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 10px; color: var(--subtle); padding-block: 21px 17px; }
.results-line>span { font-size: 8px; font-weight: 500; letter-spacing: 1px; }
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.skill-card { min-width: 0; border-radius: 23px; background: var(--card); border: 1px solid #ffffffb3; display: flex; flex-direction: column; box-shadow: 0 4px 16px #27334b04; transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.skill-card:hover { transform: translateY(-4px); box-shadow: 0 14px 35px #273e6410; border-color: #a1c9ff90; }
html[data-theme=dark] .skill-card { border-color: #ffffff0b; }
html[data-theme=dark] .skill-card:hover { border-color: #83b4ef50; box-shadow: 0 14px 35px #00000030; }
.card-link { padding: 24px 24px 0; display: flex; flex-direction: column; flex: 1; border-radius: 23px; }
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 21px; }
.skill-icon { width: 37px; height: 37px; border-radius: 12px; display: grid; place-items: center; background: #e7f1ff; color: #2683ef; }
.skill-icon svg { width: 18px; height: 18px; }
.icon-backend { color: #8862d9; background: #f0eafd; }
.icon-macos { color: #328b85; background: #e4f3f0; }
html[data-theme=dark] .skill-icon { background: #1e3552; color: #7ab7ff; }
html[data-theme=dark] .icon-backend { background: #322842; color: #bda0f3; }
html[data-theme=dark] .icon-macos { background: #1d3839; color: #80c6b9; }
.category { font-size: 10px; color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.card-arrow { margin-left: auto; color: var(--subtle); display: grid; place-items: center; }
.card-arrow svg { width: 16px; height: 16px; }
.skill-card:hover .card-arrow { color: var(--accent); }
.skill-card h3 { font-size: 20px; font-weight: 650; line-height: 1.25; letter-spacing: -.55px; margin-bottom: 11px; }
.skill-card .card-link>p { font-size: 12px; line-height: 1.8; color: var(--muted); flex: 1; }
.card-bottom { display: flex; align-items: center; padding-block: 22px 17px; }
.card-bottom code { font-size: 9px; color: var(--subtle); overflow-wrap: anywhere; }
.card-meta { margin-inline: 24px; padding-block: 13px 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 9px; color: var(--subtle); }
.collection-note { margin-top: 25px; border: 1px solid var(--line); border-radius: 21px; padding: 22px 25px; display: flex; align-items: center; gap: 17px; background: #d9e5fa20; }
.note-icon { width: 41px; height: 41px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.note-icon svg { width: 20px; height: 20px; }
.collection-note h3 { font-size: 14px; font-weight: 600; letter-spacing: -.3px; margin-bottom: 5px; }
.collection-note p { font-size: 11px; line-height: 1.8; color: var(--muted); }
.note-check { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--muted); margin-left: auto; flex-shrink: 0; }
.note-check svg { width: 13px; height: 13px; }
.empty-state { text-align: center; padding: 65px 25px; border: 1px dashed var(--line); border-radius: 23px; }
.empty-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 20px; }
.empty-state h3 { font-size: 26px; }
.empty-state p { font-size: 13px; color: var(--muted); margin: 12px 0 22px; }
.empty-state button { color: var(--accent); }
.footer { padding-block: 25px 29px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { font-size: 11px; font-weight: 600; letter-spacing: -.2px; }
.footer-brand>span { color: var(--muted); font-weight: 400; }
.footer p, .footer>a:last-child { font-size: 10px; color: var(--muted); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 10px 20px; background: var(--card); border: 1px solid var(--accent); border-radius: 15px; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Reading stays on a quiet surface; glass is reserved for navigation. */
.reading-layout { max-width: 1180px; display: grid; grid-template-columns: 186px minmax(0, 1fr) 145px; align-items: start; gap: 29px; padding-block: 46px 60px; }
.reading-sidebar, .on-this-page { position: sticky; top: 120px; max-height: calc(100vh - 145px); overflow-y: auto; scrollbar-width: thin; }
.back-link { display: inline-flex; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); padding: 0 0 22px 8px; }
.back-link svg { width: 14px; height: 14px; }
.desktop-navigation { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 19px; padding: 14px 7px 8px; backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); box-shadow: var(--glass-shadow); }
.desktop-navigation>.eyebrow { font-size: 8px; letter-spacing: 1px; padding: 0 10px 11px; color: var(--subtle); }
.desktop-navigation>a, .mobile-navigation nav>a { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 11px; margin-block: 2px; border-radius: 12px; font-size: 11px; line-height: 1.6; }
.desktop-navigation>a>span:last-child, .mobile-navigation nav>a>span:last-child { opacity: 0; font-size: 10px; }
.desktop-navigation>a:hover, .mobile-navigation nav>a:hover { background: #808cab0a; }
.desktop-navigation>a.selected, .mobile-navigation nav>a.selected { background: var(--button); color: white; box-shadow: 0 2px 7px #0075ed20; }
.desktop-navigation>a.selected>span:last-child { opacity: .85; }
.sidebar-note { padding: 24px 9px 0; }
.sidebar-note .little-line { height: 2px; width: 15px; background: var(--subtle); }
.sidebar-note p { color: var(--subtle); font-size: 10px; line-height: 1.8; margin-top: 9px; }
.mobile-navigation { display: none; }
.reading-content { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 25px; padding: 28px 32px 30px; }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 9px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb>span:not(:last-child) { color: var(--subtle); }
.reading-heading>.category { color: var(--accent); font-size: 9px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.reading-heading h1 { font-size: 35px; letter-spacing: -1.4px; line-height: 1.14; margin-bottom: 17px; }
.reading-heading>p { font-size: 12px; color: var(--muted); line-height: 1.85; }
.reading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-block: 21px 23px; margin-bottom: 26px; border-bottom: 1px solid var(--line); font-size: 9px; color: var(--muted); }
.reading-actions>a, .reading-actions button { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; }
.reading-actions>a { margin-left: auto; }
.reading-actions svg { width: 12px; height: 12px; }
.reading-actions>a:hover, .reading-actions button:hover { color: var(--accent); }
.markdown { font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; letter-spacing: -.1px; }
.markdown>h1:first-child { display: none; }
.markdown h1 { font-size: 30px; margin-block: 32px 20px; }
.markdown h2 { font-size: 23px; letter-spacing: -.7px; margin-block: 34px 16px; scroll-margin-top: 125px; font-weight: 650; }
.markdown h3 { font-size: 16px; line-height: 1.5; margin-block: 25px 11px; scroll-margin-top: 125px; font-weight: 600; letter-spacing: -.3px; }
.markdown h4 { font-size: 14px; margin-block: 20px 10px; }
.markdown p { margin-block: 14px; }
.markdown ul, .markdown ol { margin-block: 14px; padding-left: 19px; }
.markdown li { padding-left: 3px; margin-block: 9px; }
.markdown li::marker { color: var(--subtle); }
.markdown strong { font-weight: 650; }
.markdown em { font-style: italic; color: inherit; }
.markdown a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.markdown a:hover { text-decoration-color: var(--accent); }
.markdown code { font-size: .83em; background: var(--code); color: var(--accent); border-radius: 5px; padding: 3px 5px; overflow-wrap: anywhere; }
.markdown pre { position: relative; background: var(--code); border: 1px solid var(--line); border-radius: 13px; padding: 25px 19px; margin-block: 22px; overflow-x: auto; line-height: 1.7; font-size: 12px; white-space: pre; }
.markdown pre code { background: none; color: var(--text); padding: 0; font-size: inherit; overflow-wrap: normal; }
.markdown table { display: block; width: 100%; border-collapse: collapse; overflow-x: auto; font-size: 12px; margin-block: 23px; }
.markdown th, .markdown td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.markdown th { background: var(--code); font-weight: 600; }
.markdown blockquote { background: var(--code); color: var(--muted); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; margin: 23px 0; padding: 1px 17px; }
.markdown hr { border: 0; border-top: 1px solid var(--line); margin-block: 28px; }
.code-copy { position: absolute; top: 7px; right: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; font-size: 9px; color: var(--muted); }
.reference-section { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.reference-section>.eyebrow { color: var(--subtle); font-size: 8px; letter-spacing: 1px; }
.reference-section h2 { font-size: 23px; letter-spacing: -.6px; margin-block: 11px 19px; }
.reference-section>a { display: flex; align-items: center; gap: 12px; background: var(--code); border: 1px solid var(--line); border-radius: 12px; padding: 15px; margin-top: 10px; font-size: 12px; }
.reference-section>a:hover { color: var(--accent); border-color: var(--accent); }
.reference-section>a>span { flex: 1; }
.reference-section small { display: block; color: var(--muted); font: 9px var(--font-code); margin-top: 5px; overflow-wrap: anywhere; }
.reference-section svg { width: 16px; height: 16px; }
.reading-end { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 35px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 9px; color: var(--muted); }
.reading-end>a { margin-left: auto; color: var(--accent); }
.reading-end .little-line { width: 15px; }
.on-this-page { padding-top: 16px; }
.on-this-page>.eyebrow { font-size: 8px; letter-spacing: 1px; color: var(--subtle); margin-bottom: 15px; }
.on-this-page nav a { display: block; padding: 7px 0 7px 12px; font-size: 10px; line-height: 1.7; color: var(--muted); border-left: 1px solid var(--line); }
.on-this-page nav a.toc-depth-3 { padding-left: 20px; font-size: 9px; }
.on-this-page nav a:hover, .on-this-page nav a.active { color: var(--accent); border-left-color: var(--accent); }
.toc-top { display: block; color: var(--muted); font-size: 9px; margin-top: 22px; }
/* Sign-in */
.login-main { display: grid; grid-template-columns: 1.15fr 1fr; gap: 90px; align-items: center; max-width: 1050px; padding-block: 90px 110px; min-height: calc(100vh - 180px); }
.login-intro>.eyebrow { color: var(--muted); font-size: 9px; }
.login-intro h1 { margin-block: 22px; font-size: 64px; letter-spacing: -.055em; line-height: 1.06; }
.login-intro>.intro-copy { font-size: 16px; }
.login-note { display: flex; align-items: center; gap: 10px; color: var(--subtle); font-size: 11px; margin-top: 38px; }
.login-note svg { width: 17px; height: 17px; }
.login-card { padding: 35px; border-radius: 29px; }
.lock-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; color: var(--accent); margin-bottom: 25px; }
.lock-mark svg { width: 23px; height: 23px; }
.login-card h2 { font-size: 28px; letter-spacing: -.9px; margin-bottom: 11px; }
.login-card>p { color: var(--muted); font-size: 13px; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 49px; background: var(--button); color: white; border: 1px solid #ffffff33; border-radius: 15px; padding: 12px 17px; font-size: 12px; font-weight: 550; box-shadow: 0 4px 12px #0075ed20, inset 0 1px 0 #ffffff30; transition: transform .2s, filter .2s; }
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.07); }
.github-button { margin-top: 27px; }
.github-button svg:first-child { width: 18px; height: 18px; margin-right: auto; }
.github-button svg:last-child { width: 14px; height: 14px; margin-left: auto; }
.login-footnote { border-top: 1px solid var(--line); padding-top: 23px; margin-top: 26px; color: var(--muted); font-size: 10px; line-height: 1.9; display: flex; align-items: flex-start; gap: 9px; }
.login-footnote svg { width: 14px; height: 14px; margin-top: 3px; color: #31a47d; }
.login-footnote strong { font-weight: 550; color: var(--text); }
.form-error { color: var(--error) !important; border: 1px solid currentColor; border-radius: 12px; padding: 12px; margin-top: 18px; font-size: 12px !important; line-height: 1.7; }
.simple-page { min-height: 67vh; padding-block: 100px 130px; }
.simple-page>.eyebrow { color: var(--muted); }
.simple-page h1 { margin-block: 25px; font-size: 54px; }
.simple-page>p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.9; max-width: 520px; }
@media (min-width: 1600px) { .hero { padding-block: 95px 100px; } }
@media (max-width: 1150px) {
  .wrap { width: calc(100% - 72px); }
  .hero { gap: 20px; padding-block: 65px 75px; }
  .hero h1 { font-size: 66px; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reading-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 25px; max-width: 1000px; }
  .on-this-page { display: none; }
  .login-main { gap: 50px; }
  .login-intro h1 { font-size: 58px; }
}
@media (max-width: 800px) {
  .site-header { padding-inline: 22px; top: 12px; margin-top: 12px; }
  .header-inner { height: 66px; border-radius: 23px; padding-inline: 15px; }
  .header-actions { gap: 15px; }
  .hero { grid-template-columns: 1.1fr 1fr; padding-block: 62px; gap: 0; }
  .hero h1 { font-size: 56px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .intro-copy { font-size: 15px; }
  .glass-stack { transform: scale(.79); transform-origin: center; width: 230px; margin-left: -10px; }
  .library-note { min-height: 290px; }
  .library-note::before { width: 280px; height: 250px; }
  .note-caption { font-size: 10px; margin-top: 0; }
  .section-heading h2 { font-size: 29px; }
  .collection-tools { flex-direction: column; align-items: stretch; gap: 15px; }
  .filters { align-self: flex-start; }
  .search-field { width: 100%; }
  .reading-layout { grid-template-columns: 155px minmax(0, 1fr); gap: 20px; }
  .reading-content { padding: 24px; }
  .reading-heading h1 { font-size: 29px; }
  .reading-actions { gap: 12px; }
  .reading-actions>a { margin-left: 0; }
  .markdown { font-size: 13px; }
  .login-main { gap: 30px; padding-block: 70px 85px; }
  .login-intro h1 { font-size: 48px; }
  .login-intro>.intro-copy { font-size: 14px; }
  .login-card { padding: 27px; }
  .login-card h2 { font-size: 25px; }
  .private-label { display: none; }
  .footer p { font-size: 9px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-inline: 12px; top: 10px; margin-top: 10px; }
  .header-inner { height: 64px; padding-inline: 12px; border-radius: 22px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 33px; height: 33px; font-size: 25px; border-radius: 11px; padding-right: 6px; }
  .brand-mark>span { right: 7px; bottom: 5px; }
  .brand-name { font-size: 12px; }
  .brand-name>span { font-size: 8px; }
  .header-actions { gap: 10px; }
  .nav-library { display: none; }
  .logout { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; min-height: 35px; }
  .logout-label { display: none; }
  .logout svg { display: block; width: 16px; height: 16px; }
  .portfolio-link { font-size: 10px; padding: 7px 10px; gap: 4px; min-height: 33px; }
  .portfolio-link svg { width: 11px; height: 11px; }
  .theme-toggle { width: 35px; height: 35px; }
  .theme-toggle svg { width: 16px; height: 16px; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-block: 46px 34px; }
  .hero .eyebrow { justify-content: center; font-size: 8px; }
  .hero h1 { font-size: clamp(55px, 13.8vw, 72px); margin-block: 20px; }
  .intro-copy { font-size: 15px; line-height: 1.75; }
  .hero-link { margin-top: 24px; padding: 10px 19px 10px 22px; font-size: 12px; gap: 22px; }
  .library-note { min-height: 270px; margin-top: 14px; }
  .glass-stack { transform: scale(.82); width: 280px; height: 255px; margin: -4px 0 -20px; }
  .library-note::before { width: 290px; height: 260px; }
  .note-caption { margin-top: 3px; font-size: 10px; }
  .collection { padding-block: 20px 40px; }
  .section-heading { margin-bottom: 25px; }
  .section-heading h2 { font-size: 28px; letter-spacing: -1px; }
  .section-heading>p { display: none; }
  .collection-tools { gap: 13px; }
  .filters { width: 100%; gap: 2px; justify-content: space-between; padding: 5px; }
  .filter { gap: 5px; padding: 8px 9px; font-size: 10px; }
  .filter>span { font-size: 8px; }
  .search-field { padding: 10px 15px; }
  .search-field input { font-size: 16px; }
  .search-field kbd { display: none; }
  .results-line { padding-block: 18px 14px; }
  .results-line>span { font-size: 7px; }
  .skill-grid { grid-template-columns: 1fr; gap: 14px; }
  .skill-card { border-radius: 22px; }
  .card-link { padding: 23px 23px 0; }
  .card-top { margin-bottom: 18px; }
  .skill-card h3 { font-size: 22px; }
  .skill-card .card-link>p { font-size: 13px; }
  .card-meta { font-size: 10px; margin-inline: 23px; }
  .card-bottom code { font-size: 10px; }
  .collection-note { padding: 20px; gap: 13px; align-items: flex-start; }
  .note-icon { width: 34px; height: 34px; border-radius: 11px; }
  .note-icon svg { width: 17px; height: 17px; }
  .collection-note h3 { font-size: 13px; margin-top: 2px; }
  .collection-note p { font-size: 11px; }
  .note-check { display: none; }
  .footer { gap: 12px; padding-block: 22px; }
  .footer-brand { font-size: 10px; }
  .footer p { max-width: 120px; font-size: 8px; line-height: 1.7; text-align: center; }
  .footer>a:last-child { font-size: 8px; }
  .reading-layout { display: block; padding-block: 27px 40px; }
  .reading-sidebar { position: static; max-height: none; overflow: visible; margin-bottom: 20px; }
  .back-link { font-size: 11px; padding: 0 0 14px 3px; }
  .desktop-navigation, .sidebar-note { display: none; }
  .mobile-navigation { display: block; }
  .mobile-navigation>summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; list-style: none; cursor: pointer; font-size: 12px; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 15px; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: var(--glass-shadow); }
  .mobile-navigation>summary::-webkit-details-marker { display: none; }
  .mobile-navigation nav { padding: 7px; margin-top: 7px; background: var(--glass-solid); border: 1px solid var(--line); border-radius: 15px; }
  .mobile-navigation nav>a { font-size: 12px; padding-block: 11px; }
  .reading-content { border-radius: 22px; padding: 22px 20px; }
  .breadcrumb { font-size: 9px; margin-bottom: 23px; }
  .reading-heading h1 { font-size: 32px; }
  .reading-heading>p { font-size: 12px; }
  .reading-actions { font-size: 9px; gap: 12px; padding-block: 20px; margin-bottom: 22px; }
  .reading-actions>a, .reading-actions button { font-size: 9px; }
  .markdown { font-size: 14px; line-height: 1.9; }
  .markdown h2 { font-size: 23px; margin-top: 30px; }
  .markdown h3 { font-size: 16px; }
  .markdown pre { padding: 34px 13px 18px; font-size: 11px; margin-inline: -4px; }
  .markdown table { font-size: 11px; }
  .markdown th, .markdown td { padding: 10px; }
  .reading-end { font-size: 8px; gap: 8px; }
  .reading-end>a { margin-left: 0; width: 100%; }
  .login-main { display: block; padding-block: 55px 60px; max-width: 440px; min-height: 0; }
  .login-intro { text-align: center; }
  .login-intro>.eyebrow { justify-content: center; font-size: 8px; }
  .login-intro h1 { font-size: 55px; margin-block: 22px; }
  .login-intro>.intro-copy { font-size: 14px; }
  .login-note { display: none; }
  .login-card { padding: 28px; margin-top: 35px; border-radius: 26px; }
  .login-card h2 { font-size: 27px; }
  .login-card>p { font-size: 13px; }
  .simple-page { padding-block: 65px 100px; }
  .simple-page h1 { font-size: 41px; }
  .desktop-only { display: none; }
}
@media (max-width: 360px) {
  .brand-name>span { display: none; }
  .brand-name { font-size: 11px; }
  .header-actions { gap: 7px; }
  .portfolio-link { padding-inline: 9px; }
  .filter { padding-inline: 7px; font-size: 9px; }
  .reading-content { padding-inline: 17px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-control, .desktop-navigation, .mobile-navigation>summary, .stack-sheet { background: var(--glass-solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass-control, .desktop-navigation, .mobile-navigation>summary, .stack-sheet { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--glass-solid); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .skill-card:hover, .hero-link:hover, .primary-button:hover { transform: none; }
}
@media (forced-colors: active) {
  .glass, .glass-control, .stack-sheet, .skill-card, .desktop-navigation, .mobile-navigation>summary { background: Canvas; border: 1px solid CanvasText; box-shadow: none; backdrop-filter: none; }
  .hero h1 em, .login-intro h1 em { background: none; color: LinkText; }
  .primary-button, .hero-link, .filter.active { border: 1px solid ButtonText; }
}
