@property --theme-glow-one { syntax:"<color>"; inherits:true; initial-value:rgba(67,112,255,.10); }
@property --theme-glow-two { syntax:"<color>"; inherits:true; initial-value:rgba(49,205,255,.06); }

:root {
  --bg: #000000;
  --bg-2: #04060c;
  --panel: rgba(10, 22, 50, 0.75);
  --panel-strong: rgba(8, 18, 42, 0.94);
  --line: rgba(120, 180, 255, 0.25);
  --line-strong: rgba(100, 200, 255, 0.65);
  --text: #f8faff;
  --muted: #a8b8d0;
  --muted-2: #788ca8;
  --cyan: #58e8ff;
  --blue: #64b0ff;
  --violet: #b888ff;
  --theme-glow-one: rgba(80, 140, 255, 0.18);
  --theme-glow-two: rgba(70, 220, 255, 0.12);
  --max: 1220px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  position:relative;
  isolation:isolate;
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--sans);
  /* Pure black, with the theme glows kept as faint coloured light rather than a blue wash. */
  background:
    radial-gradient(circle at 75% 8%, var(--theme-glow-one), transparent 32rem),
    radial-gradient(circle at 18% 60%, var(--theme-glow-two), transparent 34rem),
    #000;
  overflow-x: hidden;
  transition:--theme-glow-one 1.2s ease,--theme-glow-two 1.2s ease,--cyan .8s ease,--violet .8s ease;
}
body::selection { color: #001019; background: var(--cyan); }

body[data-page="home"] { --theme-glow-one:rgba(80,130,255,.22); --theme-glow-two:rgba(60,220,255,.14); }
body[data-page="about"] { --theme-glow-one:rgba(70,180,240,.18); --theme-glow-two:rgba(85,160,255,.12); }
body[data-page="writeups"], body[data-page="writeup"] { --theme-glow-one:rgba(70,130,255,.20); --theme-glow-two:rgba(90,210,255,.13); }
body[data-page="files"] { --theme-glow-one:rgba(130,90,255,.22); --theme-glow-two:rgba(80,170,255,.15); }
body[data-page="resources"] { --theme-glow-one:rgba(135,100,255,.20); --theme-glow-two:rgba(85,200,255,.14); }
body[data-page="contact"] { --theme-glow-one:rgba(85,140,255,.18); --theme-glow-two:rgba(180,100,255,.14); }
body[data-section-theme="article"] { --theme-glow-one:rgba(95,110,255,.20); --theme-glow-two:rgba(100,220,255,.13); }
body[data-section-theme="blogs"] { --theme-glow-one:rgba(140,95,255,.22); --theme-glow-two:rgba(80,195,255,.15); }
body[data-section-theme="archive"] { --theme-glow-one:rgba(90,140,255,.20); --theme-glow-two:rgba(90,220,255,.13); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline:2px solid var(--cyan); outline-offset:4px; }
button { font: inherit; }
code, .mono { font-family: var(--mono); }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 14px; transform: translateY(-160%); background: var(--cyan); color: #00111a; font: 700 12px/1 var(--mono); }
.skip-link:focus { transform: translateY(0); }

.space-noise { position: fixed; inset: 0; z-index: -4; pointer-events: none; opacity: .15; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E"); }
.stars { position: fixed; inset: 0; z-index: -3; pointer-events: none; }
.stars-a { opacity: .85; background-image: radial-gradient(circle at 8% 14%, #fff 0 2px, transparent 2.5px), radial-gradient(circle at 23% 8%, #88e0ff 0 2px, transparent 2.8px), radial-gradient(circle at 39% 19%, #fff 0 2px, transparent 2.5px), radial-gradient(circle at 57% 7%, #fff 0 2px, transparent 2.5px), radial-gradient(circle at 72% 23%, #a8e8ff 0 2px, transparent 3px), radial-gradient(circle at 89% 12%, #fff 0 2px, transparent 2.5px), radial-gradient(circle at 13% 67%, #fff 0 2px, transparent 2.5px), radial-gradient(circle at 48% 74%, #88d8ff 0 2px, transparent 2.8px), radial-gradient(circle at 78% 63%, #fff 0 2px, transparent 2.5px), radial-gradient(circle at 94% 81%, #fff 0 2px, transparent 2.5px); background-size: 380px 380px, 500px 500px, 440px 440px, 620px 620px, 550px 550px, 720px 720px, 650px 650px, 460px 460px, 560px 560px, 670px 670px; animation: drift 50s linear infinite; }
.stars-c { position: fixed; inset: 0; z-index: -3; pointer-events: none; opacity: .34; background-image: radial-gradient(circle at 12% 22%, #fff 0 1px, transparent 1.6px), radial-gradient(circle at 31% 71%, #cfe9ff 0 1px, transparent 1.8px), radial-gradient(circle at 54% 38%, #fff 0 1px, transparent 1.6px), radial-gradient(circle at 76% 84%, #9fe0ff 0 1px, transparent 1.9px), radial-gradient(circle at 91% 47%, #fff 0 1px, transparent 1.6px), radial-gradient(circle at 44% 91%, #fff 0 1px, transparent 1.6px); background-size: 900px 900px, 1150px 1150px, 780px 780px, 1320px 1320px, 1020px 1020px, 690px 690px; animation: drift 120s linear infinite; }
.stars-b { opacity: .55; background-image: radial-gradient(circle at 15% 34%, #fff 0 2px, transparent 2.2px), radial-gradient(circle at 37% 52%, #fff 0 2px, transparent 2.2px), radial-gradient(circle at 61% 42%, #90e8ff 0 2px, transparent 2.5px), radial-gradient(circle at 83% 59%, #fff 0 2px, transparent 2.2px); background-size: 200px 200px, 260px 260px, 330px 330px, 280px 280px; animation: driftBack 70s linear infinite; }
.nebula-drift { position:fixed; inset:-28%; z-index:-5; pointer-events:none; opacity:.34; background:radial-gradient(ellipse 39% 35% at 22% 34%,var(--theme-glow-one),transparent 72%),radial-gradient(ellipse 35% 42% at 79% 65%,var(--theme-glow-two),transparent 72%); filter:blur(68px); transform:translate3d(0,0,0); transform-origin:center; will-change:transform; animation:nebulaDrift 58s ease-in-out infinite alternate; }
.falling-stars { position:fixed; inset:0; z-index:-2; width:100%; height:100%; pointer-events:none; opacity:.95; }
@media (max-width:700px) { .falling-stars { opacity:.70; } }
@keyframes nebulaDrift { 0% { transform:translate3d(-1.5%,-1%,0) scale(.97) rotate(-1deg); } 50% { transform:translate3d(1.2%,1.5%,0) scale(1.02) rotate(1deg); } 100% { transform:translate3d(-.7%,2.2%,0) scale(1) rotate(-.5deg); } }
@keyframes drift { to { transform: translate3d(-80px, 40px, 0); } }
@keyframes driftBack { to { transform: translate3d(60px, -30px, 0); } }

.section-shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header { position: sticky; top: 12px; z-index: 100; width: min(calc(100% - 28px), var(--max)); min-height: 66px; margin: 12px auto 0; padding: 0 16px 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; border: 1px solid rgba(115, 181, 255, .17); border-radius: 18px; background: rgba(2, 8, 20, .68); box-shadow: 0 20px 70px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.035); -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%); }
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; font-weight: 720; letter-spacing: -.02em; }
.orbit-mark { position: relative; width: 27px; height: 27px; display: inline-block; border: 1px solid rgba(67,233,255,.7); border-radius: 50%; transform: rotate(-18deg); box-shadow: 0 0 18px rgba(67,233,255,.16); }
.orbit-mark::before { content:""; position:absolute; left:-6px; right:-6px; top:11px; height:5px; border:1px solid var(--blue); border-radius:50%; }
.orbit-mark i { position:absolute; width:5px; height:5px; right:-2px; top:7px; border-radius:50%; background:var(--cyan); box-shadow:0 0 12px var(--cyan); }
.nav { display:flex; justify-self:center; align-items:center; gap:3px; }
.nav a { position:relative; padding:11px 12px; border-radius:10px; color:#899ab2; font-size:13px; transition:.2s ease; }
.nav a::after { content:""; position:absolute; left:12px; right:12px; bottom:3px; height:1px; transform:scaleX(0); background:linear-gradient(90deg,var(--cyan),var(--blue)); box-shadow:0 0 10px var(--blue); transition:transform .2s ease; }
.nav a:hover, .nav a.active { color:#f0f6ff; background:rgba(94,160,255,.065); }
.nav a.active::after { transform:scaleX(1); }
.header-link { justify-self:end; padding:10px 13px; border:1px solid rgba(82,166,255,.27); border-radius:10px; color:#cdeaff; background:rgba(35,94,174,.07); font:12px/1 var(--mono); }
.header-link:hover { border-color:rgba(67,233,255,.58); box-shadow:0 0 24px rgba(67,233,255,.08); }
.header-actions { justify-self:end; display:flex; align-items:center; gap:9px; }
.meow-toggle { min-height:39px; padding:0 10px; display:inline-flex; align-items:center; gap:7px; border:1px solid rgba(173,151,204,.25); border-radius:10px; color:#cbbbdc; background:rgba(65,48,82,.18); cursor:pointer; font:9px/1 var(--mono); letter-spacing:.08em; transition:background .2s ease,border-color .2s ease,transform .2s ease; }
.meow-toggle:hover { transform:translateY(-1px); border-color:rgba(197,174,222,.55); background:rgba(91,68,112,.25); }
.meow-toggle:active { transform:translateY(1px) scale(.98); }
.meow-toggle[aria-pressed="false"] { color:#798298; border-color:rgba(130,140,160,.20); background:rgba(32,35,46,.24); }
.meow-toggle > span:first-child { color:#d0bddf; font-size:14px; }
.site-meow-audio { display:none; }
.cat-click-layer { position:fixed; inset:0; z-index:400; overflow:hidden; pointer-events:none; }
.cat-click-image { position:absolute; transform:translate(-50%,-50%) rotate(var(--cat-rotation,0deg)) scale(.45); opacity:0; border-radius:12px; box-shadow:0 14px 34px rgba(0,0,0,.38),0 0 0 1px rgba(255,255,255,.08); will-change:transform,opacity; animation:catClickPop .82s cubic-bezier(.2,.9,.24,1) forwards; }
@keyframes catClickPop {
  0% { opacity:0; transform:translate(-50%,-50%) rotate(var(--cat-rotation,0deg)) scale(.45); }
  16% { opacity:1; transform:translate(-50%,-50%) rotate(var(--cat-rotation,0deg)) scale(1.05); }
  100% { opacity:0; transform:translate(calc(-50% + var(--cat-drift-x,0px)),calc(-50% + var(--cat-drift-y,0px))) rotate(var(--cat-rotation,0deg)) scale(.94); }
}
@media (prefers-reduced-motion: reduce) {
  .cat-click-image { animation:catClickFade .6s linear forwards; }
  @keyframes catClickFade { from { opacity:1; } to { opacity:0; } }
}

.app-shell { min-height: calc(100dvh - 160px); }
.route-view { min-height: calc(100dvh - 160px); }
.route-enter { animation: routeIn .34s cubic-bezier(.2,.8,.2,1) both; }
@keyframes routeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.hero-page { min-height: min(820px, calc(100dvh - 76px)); display:grid; grid-template-columns:minmax(0, .9fr) minmax(360px, 1.1fr); align-items:center; position:relative; isolation:isolate; overflow:hidden; padding-top:70px; padding-bottom:70px; }
.hero-page::before { content:""; position:absolute; z-index:-1; right:-120px; top:0; width:min(70vw, 780px); height:100%; background:linear-gradient(90deg,rgba(2,7,19,1) 0%,rgba(2,7,19,.58) 23%,rgba(2,7,19,.08) 62%); opacity:.90; -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 28%,#000 100%); mask-image:linear-gradient(90deg,transparent 0%,#000 28%,#000 100%); }
.hero-background-image { position:absolute; z-index:-2; right:-120px; top:0; width:min(70vw,780px); height:100%; object-fit:cover; object-position:center 58%; opacity:.90; -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 28%,#000 100%); mask-image:linear-gradient(90deg,transparent 0%,#000 28%,#000 100%); }
.hero-page::after { content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:linear-gradient(90deg,transparent,rgba(87,174,255,.34),transparent); }
.hero-copy { position:relative; z-index:2; max-width:690px; padding-left:clamp(0px, 2vw, 28px); }
.eyebrow { display:flex; align-items:center; gap:10px; margin-bottom:25px; color:#7fa5ca; font:11px/1 var(--mono); letter-spacing:.18em; }
.eyebrow span { width:36px; height:1px; background:var(--cyan); box-shadow:0 0 12px rgba(67,233,255,.55); }
.hero-copy h1 { margin:0; font-size:clamp(58px, 8vw, 112px); line-height:.82; letter-spacing:-.065em; }
.hero-copy h1 small { display:block; margin-top:28px; color:#f5f8ff; font-size:clamp(24px, 3.4vw, 48px); font-weight:650; line-height:1.04; letter-spacing:-.04em; }
.name-glow { color:transparent; background:linear-gradient(105deg,#e9f7ff 6%,#8bd8ff 35%,#4d8fff 66%,#a67bff 100%); -webkit-background-clip:text; background-clip:text; filter:drop-shadow(0 0 22px rgba(81,153,255,.22)); }
.hero-copy>p { max-width:600px; margin:26px 0 0; color:#a2b0c4; font:14px/1.75 var(--mono); }
.button-row { display:flex; flex-wrap:wrap; gap:12px; margin-top:32px; }
.button { min-height:46px; padding:0 17px; display:inline-flex; align-items:center; justify-content:center; gap:18px; border:1px solid rgba(75,169,255,.48); border-radius:11px; color:#e9f6ff; background:linear-gradient(180deg,rgba(17,50,94,.50),rgba(6,19,43,.58)); box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 0 24px rgba(54,153,255,.07); font:600 13px/1 var(--sans); transition:.2s ease; }
.button.violet { border-color:rgba(162,113,255,.48); }
.button:hover { transform:translateY(-2px); border-color:var(--cyan); box-shadow:0 12px 30px rgba(40,128,255,.14); }
.hero-status { display:flex; align-items:center; gap:10px; margin-top:26px; color:#7790ad; font-size:11px; }
.pulse { width:7px; height:7px; border-radius:50%; background:#4aeac3; box-shadow:0 0 12px #4aeac3; animation:pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity:.35; } }
.hero-art { position:relative; z-index:1; min-height:520px; }
.galaxy-disc { position:absolute; width:340px; aspect-ratio:1; border-radius:50%; right:8%; top:9%; background:radial-gradient(circle,#d9e6ff 0 2%,#9fc8ff 3%,rgba(97,159,255,.42) 10%,rgba(46,86,170,.16) 28%,transparent 52%); filter:blur(.5px); opacity:.38; transform:rotate(-24deg) scaleY(.48); box-shadow:0 0 100px rgba(69,139,255,.16); }
.orbit { position:absolute; border:1px solid rgba(87,170,255,.22); border-radius:50%; transform:rotate(-27deg); }
.orbit-one { width:460px; height:210px; right:-4%; top:26%; }
.orbit-two { width:610px; height:270px; right:-15%; top:20%; }
.planet { position:absolute; width:130px; aspect-ratio:1; right:15%; bottom:9%; border-radius:50%; background:radial-gradient(circle at 35% 28%,#9ad8ff 0 1%,#204f9a 15%,#07142c 52%,#01050d 78%); box-shadow:-20px 0 60px rgba(56,144,255,.23), inset -24px -18px 28px #000; }

.home-projects { padding:92px 0 40px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:28px; }
.section-heading>div { display:flex; gap:16px; align-items:center; }
.section-heading .index, .page-index { color:#4c93d8; font:11px/1 var(--mono); }
.kicker { margin:0; color:#cee5ff; font:700 13px/1 var(--mono); letter-spacing:.16em; }
.section-heading>a { color:#77c6ff; font:11px/1 var(--mono); }
.repo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.repo-grid > *, .writeup-grid > *, .resource-grid > *, .contact-grid > * { min-width:0; }
.repo-card { min-height:305px; padding:24px; display:flex; flex-direction:column; border:1px solid rgba(96,167,255,.26); border-radius:15px; background:linear-gradient(155deg,rgba(10,31,63,.78),rgba(4,14,32,.84)); box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 22px 70px rgba(0,0,0,.16); transition:.24s ease; }
.repo-card:hover { transform:translateY(-4px); border-color:rgba(76,198,255,.62); box-shadow:0 20px 60px rgba(25,110,255,.11); }
.repo-topline { display:flex; justify-content:space-between; align-items:center; }
.repo-icon { display:grid; place-items:center; width:34px; height:34px; border:1px solid rgba(63,230,209,.45); border-radius:8px; color:#5df1d5; font:700 12px/1 var(--mono); background:rgba(14,102,102,.10); }
.public-pill { padding:5px 8px; border:1px solid rgba(131,161,199,.18); border-radius:99px; color:#7f94ad; font:9px/1 var(--mono); }
.repo-card h3 { margin:22px 0 12px; color:#d9ecff; font-size:18px; letter-spacing:-.02em; overflow-wrap:anywhere; }
.repo-card p { margin:0; color:#8da1bb; font:12px/1.65 var(--mono); }
.tag-row { display:flex; flex-wrap:wrap; gap:7px; margin-top:20px; }
.tag-row span { padding:6px 9px; border:1px solid rgba(105,167,255,.18); border-radius:7px; color:#8fb0cf; background:rgba(33,81,140,.08); font:9px/1 var(--mono); }
.repo-foot { margin-top:auto; padding-top:20px; border-top:1px solid rgba(105,167,255,.10); display:flex; justify-content:space-between; gap:16px; color:#60748f; font:9px/1.2 var(--mono); }
.repo-foot strong { color:#65c7ff; font-weight:500; }
.home-links { margin-top:54px; margin-bottom:100px; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; background:rgba(87,160,255,.10); border:1px solid rgba(87,160,255,.12); border-radius:14px; overflow:hidden; }
.home-links a { min-height:142px; padding:25px; display:grid; grid-template-columns:auto 1fr auto; grid-template-rows:auto 1fr; gap:12px 18px; background:rgba(3,12,28,.96); transition:.2s ease; }
.home-links a:hover { background:rgba(8,28,58,.98); }
.home-links span { color:#477fb8; font:10px/1 var(--mono); }
.home-links strong { color:#e4f0ff; }
.home-links em { grid-column:2; color:#74879e; font:11px/1.5 var(--mono); font-style:normal; }
.home-links b { grid-column:3; grid-row:1/3; align-self:center; color:#5fc9ff; font-weight:400; }

.subpage { min-height:calc(100dvh - 130px); padding-top:clamp(70px,9vw,120px); padding-bottom:100px; }
.page-hero { display:grid; grid-template-columns:80px minmax(0,1fr); gap:30px; align-items:start; padding-bottom:65px; border-bottom:1px solid rgba(99,167,255,.13); }
.writeups-hero, .resources-hero, .contact-hero { grid-template-columns:80px minmax(0,1fr) minmax(240px,.42fr); align-items:stretch; }
.page-hero .kicker { margin-bottom:22px; }
.page-hero h1 { margin:0; max-width:900px; font-size:clamp(52px,7.4vw,96px); line-height:.92; letter-spacing:-.065em; }
.page-hero h1 span { color:transparent; background:linear-gradient(90deg,#7ccfff,#6f8fff 65%,#a774ff); -webkit-background-clip:text; background-clip:text; }
.page-lead { max-width:700px; margin:24px 0 0; color:#8397b1; font:12px/1.7 var(--mono); }
.resources-hero-copy { display:flex; flex-direction:column; min-height:0; }
.resources-hero-note { position:relative; max-width:570px; margin-top:auto; padding:25px 0 3px 28px; border-top:1px solid rgba(99,167,255,.16); }
.resources-hero-note::before { content:""; position:absolute; left:0; top:25px; bottom:3px; width:2px; background:linear-gradient(180deg,var(--cyan),rgba(78,157,255,.12)); box-shadow:0 0 18px rgba(67,233,255,.25); }
.resources-note-label { color:#6cb4e4; font:9px/1 var(--mono); letter-spacing:.16em; }
.resources-hero-note blockquote { margin:14px 0 18px; color:#dcefff; font-size:clamp(22px,2.45vw,33px); font-weight:600; line-height:1.15; letter-spacing:-.04em; }
.resources-hero-note blockquote::before { content:"\201C"; color:var(--cyan); font-family:Georgia,serif; font-weight:700; }
.resources-note-footer { display:flex; align-items:center; gap:10px; color:#6388a9; font:9px/1 var(--mono); letter-spacing:.13em; }
.resources-note-footer span { width:28px; height:1px; background:#4f9bce; box-shadow:0 0 10px rgba(67,233,255,.3); }

.section-visual { position:relative; min-height:280px; margin:0; overflow:hidden; border:1px solid rgba(111,185,255,.30); border-radius:18px; background:linear-gradient(145deg,rgba(8,28,57,.9),rgba(2,9,22,.98)); box-shadow:0 24px 70px rgba(0,0,0,.28),0 0 55px rgba(49,134,220,.09); animation:aboutReveal .7s .12s both; }
.section-visual img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:saturate(.72) contrast(1.12) brightness(.72); transform:scale(1.03); }
.writeups-visual img { object-position:center 52%; filter:saturate(.86) contrast(1.18) brightness(.62); }
.resources-visual { min-height:0; aspect-ratio:810 / 1440; align-self:start; }
.resources-visual img { object-position:center; transform:none; }
.contact-visual { min-height:0; aspect-ratio:736 / 981; align-self:start; }
.contact-visual img { object-position:center; filter:saturate(.68) contrast(1.16) brightness(.60); transform:none; }
.section-visual.contact-visual::after { background:linear-gradient(180deg,rgba(2,8,21,.10),rgba(2,8,21,.14) 32%,rgba(2,8,21,.90) 100%),linear-gradient(125deg,rgba(27,100,192,.30),rgba(112,74,210,.26)); }
.section-visual::before { content:""; position:absolute; z-index:1; inset:10px; border:1px solid rgba(146,206,255,.16); border-radius:11px; pointer-events:none; }
.section-visual::after { content:""; position:absolute; z-index:1; inset:0; background:linear-gradient(180deg,rgba(2,8,21,.08),rgba(2,8,21,.10) 32%,rgba(2,8,21,.90) 100%); pointer-events:none; }
.section-visual-grid { position:absolute; z-index:2; inset:0; opacity:.30; background:linear-gradient(90deg,transparent 49.8%,rgba(102,195,255,.26) 50%,transparent 50.2%),linear-gradient(180deg,transparent 49.8%,rgba(102,195,255,.20) 50%,transparent 50.2%),repeating-linear-gradient(180deg,transparent 0 5px,rgba(102,195,255,.05) 6px); pointer-events:none; }
.section-visual figcaption { position:absolute; z-index:3; right:20px; bottom:20px; left:20px; display:grid; gap:7px; }
.section-visual figcaption span { color:#9ac6e9; font:9px/1 var(--mono); letter-spacing:.16em; }
.section-visual figcaption strong { color:#edf8ff; font-size:clamp(21px,2.1vw,30px); line-height:1; letter-spacing:-.04em; }

.about-page { padding-top:clamp(48px,6vw,84px); }
.about-hero { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:clamp(40px,7vw,100px); align-items:center; }
.about-eyebrow { display:flex; align-items:center; gap:20px; margin-bottom:30px; }
.about-eyebrow .kicker { font-size:11px; }
.about-intro h1 { margin:0; font-size:clamp(60px,6.5vw,94px); line-height:.98; letter-spacing:-.065em; }
.about-intro h1 span { color:transparent; background:linear-gradient(110deg,#b8eeff,#71bdff 55%,#8299ff); -webkit-background-clip:text; background-clip:text; }
.about-lead { max-width:48ch; margin:28px 0 0; color:#a3b6cc; font-size:16px; line-height:1.8; }
.about-actions { display:flex; flex-wrap:wrap; align-items:center; gap:22px; margin-top:32px; }
.about-text-link { display:inline-flex; align-items:center; gap:15px; color:#9cb7d2; font:11px/1.5 var(--mono); transition:color .2s ease; }
.about-text-link span { color:var(--cyan); }
.about-text-link:hover { color:#e6f5ff; }
.about-visual { position:relative; min-width:0; margin:0; display:grid; align-content:start; animation:aboutReveal .7s .1s both; }
.about-visual-frame { position:relative; min-height:520px; overflow:hidden; border:1px solid rgba(111,185,255,.3); border-radius:22px; background:linear-gradient(180deg,rgba(2,8,21,.6),rgba(2,8,21,.04) 35%,rgba(2,8,21,.32) 58%,#020a19 100%); box-shadow:0 30px 90px rgba(0,0,0,.3),0 0 70px rgba(49,134,220,.09); }
.about-visual-image { position:absolute; z-index:0; inset:0; width:100%; height:100%; object-fit:cover; filter:saturate(.78) contrast(1.08) brightness(.78); }
.about-visual-frame::before { content:""; position:absolute; z-index:2; inset:12px; border:1px solid rgba(146,206,255,.14); border-radius:12px; pointer-events:none; }
.about-visual-frame::after { content:""; position:absolute; z-index:1; inset:0; background:linear-gradient(180deg,rgba(2,8,21,.04),rgba(2,8,21,.08) 48%,rgba(2,8,21,.48) 100%); pointer-events:none; }
.scanline { position:absolute; z-index:3; inset:0; pointer-events:none; background:repeating-linear-gradient(180deg,transparent 0 4px,rgba(94,190,255,.035) 5px); }
.about-identity { position:absolute; z-index:4; right:20px; bottom:20px; left:20px; margin:0; padding:23px 24px 21px; border:1px solid rgba(111,185,255,.34); border-radius:15px; background:linear-gradient(145deg,rgba(8,29,61,.96),rgba(3,12,29,.98)); box-shadow:0 20px 50px rgba(0,0,0,.32),0 0 36px rgba(49,134,220,.12); }
.about-identity-meta, .about-identity-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 18px; }
.about-location, .about-status, .about-index { font:9px/1.5 var(--mono); letter-spacing:.14em; }
.about-location { color:#9ac6e9; }
.about-status { display:inline-flex; align-items:center; gap:8px; color:#d1e9fa; }
.about-status .pulse { width:5px; height:5px; flex-shrink:0; }
.about-identity strong { display:block; margin:15px 0 9px; color:#f3faff; text-shadow:0 0 22px rgba(67,233,255,.14); font-size:clamp(38px,4.5vw,64px); font-weight:700; line-height:1; letter-spacing:-.05em; text-transform:uppercase; overflow-wrap:anywhere; }
.about-role { color:#a9c3da; font:11px/1.6 var(--mono); }
.about-index { color:#6a9fca; }
.about-details { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:clamp(40px,7vw,100px); margin-top:72px; padding-top:64px; border-top:1px solid var(--line); animation:aboutReveal .7s .18s both; }
.about-story .kicker, .about-focus .kicker, .about-workflow .kicker { color:#73a6cd; font-size:10px; }
.about-story h2, .about-focus h2, .about-workflow h2 { margin:18px 0 24px; font-size:clamp(26px,2.8vw,36px); line-height:1.15; letter-spacing:-.035em; }
.about-story>p:not(.kicker) { max-width:64ch; margin:0 0 20px; color:#9aacbf; font-size:15px; line-height:1.9; }
.about-motto { margin:30px 0 0; padding:4px 0 4px 20px; border-left:2px solid var(--cyan); color:#d8efff; font-size:21px; font-weight:500; line-height:1.5; letter-spacing:-.02em; }
.about-quote { position:relative; margin:22px 0 0; padding:20px 24px 20px 50px; border:1px solid rgba(112,190,255,.18); border-radius:12px; background:linear-gradient(135deg,rgba(20,76,122,.18),rgba(6,20,43,.42)); color:#b9d6eb; font-size:15px; font-style:italic; line-height:1.75; overflow-wrap:anywhere; }
.about-quote::before { content:"\201C"; position:absolute; left:18px; top:13px; color:var(--cyan); font:700 34px/1 Georgia,serif; }
.about-focus { align-self:start; padding:32px; border:1px solid rgba(96,167,255,.2); border-radius:18px; background:radial-gradient(ellipse at 100% 0,rgba(51,141,218,.12),transparent 65%),linear-gradient(145deg,rgba(8,26,52,.85),rgba(3,12,28,.78)); }
.about-focus h2 { font-size:25px; }
.about-focus ol { margin:0 0 25px; padding:0; list-style:none; }
.about-focus li { display:flex; align-items:baseline; gap:18px; padding:17px 0; border-bottom:1px solid rgba(96,167,255,.12); color:#c2d6e9; font-size:14px; line-height:1.5; }
.about-focus li>span { flex-shrink:0; color:#5588b5; font:10px/1 var(--mono); }
.about-workflow { margin-top:72px; }
.about-workflow-heading { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:24px; }
.about-workflow-heading h2 { margin:0; font-size:25px; }
.about-workflow ol { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px; margin:0; padding:0; list-style:none; }
.about-workflow li { padding:24px 0 0; border-top:1px solid rgba(96,167,255,.24); }
.workflow-number { color:#6baad6; font:11px/1 var(--mono); }
.about-workflow h3 { margin:18px 0 10px; color:#e1effa; font-size:20px; letter-spacing:-.025em; }
.about-workflow li p { max-width:28ch; margin:0; color:#8ca2ba; font:12px/1.8 var(--mono); }
@keyframes aboutReveal { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

.filter-bar { display:flex; flex-wrap:wrap; gap:9px; padding:34px 0; border-bottom:1px solid rgba(99,167,255,.10); }
.filter-bar button { min-width:76px; padding:10px 15px; border:1px solid rgba(103,165,237,.20); border-radius:9px; color:#768da7; background:rgba(5,17,38,.52); cursor:pointer; font:700 10px/1 var(--mono); letter-spacing:.08em; transition:.18s ease; }
.filter-bar button:hover { color:#d9efff; border-color:rgba(84,196,255,.40); }
.filter-bar button.active { color:#00111a; border-color:var(--cyan); background:var(--cyan); box-shadow:0 0 22px rgba(67,233,255,.14); }
.entry-collection { padding-top:42px; }
.entry-collection + .entry-collection { margin-top:58px; padding-top:48px; border-top:1px solid rgba(99,167,255,.13); }
.entry-collection-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; }
.entry-collection-heading .kicker { margin:0 0 13px; color:#73a6cd; font-size:10px; }
.entry-collection-heading h2 { margin:0; color:#e6f4ff; font-size:clamp(28px,3.4vw,42px); line-height:1; letter-spacing:-.045em; }
.entry-collection-heading > span { padding-bottom:5px; color:#5f86a6; font:9px/1.4 var(--mono); letter-spacing:.14em; text-align:right; }
.writeups-actions { min-height:54px; margin:18px 0 2px; padding:13px 0; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; border-bottom:1px solid rgba(99,167,255,.10); }
.writeups-actions p { margin:0; color:#7f8ea2; font:10px/1.5 var(--mono); }
.publish-entry-link { display:inline-flex; align-items:center; gap:12px; padding:9px 12px; border:1px solid rgba(168,145,199,.24); border-radius:7px; color:#d4c5e2; background:rgba(75,57,94,.15); font:10px/1 var(--mono); transition:.2s ease; }
.publish-entry-link:hover { border-color:rgba(201,178,226,.55); background:rgba(95,73,118,.24); }
.publish-entry-link span { color:#c6abd9; }
.writeup-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; padding-top:30px; }
.writeup-card { min-height:310px; padding:28px; display:flex; flex-direction:column; border:1px solid rgba(96,167,255,.22); border-radius:16px; background:linear-gradient(150deg,rgba(9,28,60,.34),rgba(4,13,31,.40)); box-shadow:inset 0 1px 0 rgba(255,255,255,.04); transition:.22s ease; }
.writeup-card:hover { transform:translateY(-3px); border-color:rgba(72,205,255,.50); background:linear-gradient(150deg,rgba(16,40,78,.46),rgba(7,18,40,.52)); }
.writeup-meta { display:flex; justify-content:space-between; gap:18px; color:#5fbfff; font:9px/1 var(--mono); letter-spacing:.13em; }
.writeup-meta span:last-child { color:#6e829b; }
.writeup-card h2 { margin:22px 0 12px; font-size:clamp(24px,3vw,35px); letter-spacing:-.04em; }
.writeup-card p { margin:0; color:#a2b5cd; font:12px/1.72 var(--mono); }
.writeup-link { margin-top:auto; padding-top:25px; color:#65c9ff; font:10px/1 var(--mono); letter-spacing:.12em; }
.writeup-link span { margin-left:10px; }
.empty-state { grid-column:1/-1; min-height:300px; display:grid; place-items:center; align-content:center; text-align:center; padding:50px; border:1px dashed rgba(96,167,255,.22); border-radius:16px; background:rgba(5,16,35,.45); }
.empty-state>span { color:var(--cyan); font:700 17px/1 var(--mono); }
.empty-state h2 { margin:16px 0 8px; }
.empty-state p { margin:0; color:#7e92aa; font:11px/1.6 var(--mono); }

.resource-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; padding-top:50px; }
.resource-card { position:relative; min-height:270px; padding:28px; overflow:hidden; border:1px solid rgba(100,171,255,.18); border-radius:15px; background:linear-gradient(160deg,rgba(7,25,54,.74),rgba(4,13,31,.82)); }
.resource-card::after { content:""; position:absolute; width:170px; aspect-ratio:1; right:-80px; bottom:-90px; border-radius:50%; border:1px solid rgba(82,174,255,.13); box-shadow:0 0 70px rgba(53,135,255,.10); pointer-events:none; }
.resource-number { color:#4d8ec9; font:10px/1 var(--mono); }
.resource-card h2 { margin:23px 0 24px; font-size:25px; line-height:1.2; letter-spacing:-.03em; }
.resource-list { list-style:none; margin:0; padding:0; }
.resource-list li { border-top:1px solid rgba(100,171,255,.14); }
.resource-list a { display:flex; align-items:baseline; justify-content:space-between; gap:16px; padding:20px 0; }
.resource-list a>span { min-width:0; }
.resource-list strong { color:#cce7ff; font-size:14px; line-height:1.5; overflow-wrap:anywhere; transition:color .2s ease; }
.resource-list small { display:block; margin-top:8px; color:#879bb4; font:11px/1.7 var(--mono); }
.resource-list b { flex-shrink:0; color:#65c9ff; font-weight:400; }
.resource-list a:hover strong { color:var(--cyan); }

.contact-page { position:relative; }
.contact-page::after { content:""; position:absolute; z-index:-1; left:50%; right:0; bottom:0; height:400px; background:linear-gradient(180deg,transparent,rgba(2,7,19,.38)),radial-gradient(ellipse at 80% 80%,rgba(66,163,255,.16),transparent 68%); opacity:.55; -webkit-mask-image:linear-gradient(180deg,transparent,#000); mask-image:linear-gradient(180deg,transparent,#000); }
.contact-lead { max-width:620px; margin-top:24px; }
.contact-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; padding-top:45px; }
.contact-grid a { min-height:132px; padding:22px; display:grid; grid-template-columns:1fr auto; grid-template-rows:auto 1fr; border:1px solid rgba(96,167,255,.20); border-radius:14px; background:rgba(7,20,44,.72); transition:.2s ease; }
.contact-grid a:hover { transform:translateY(-3px); border-color:rgba(71,203,255,.5); }
.contact-grid span { color:#5e89b1; font:9px/1 var(--mono); letter-spacing:.14em; }
.contact-grid strong { align-self:end; font-size:17px; font-weight:600; overflow-wrap:anywhere; }
.contact-grid b { grid-column:2; grid-row:1/3; align-self:center; color:#62caff; font-weight:400; }
.contact-terminal { width:min(780px,100%); margin:50px auto 0; border:1px solid rgba(96,167,255,.22); border-radius:16px; overflow:hidden; background:rgba(1,6,16,.86); box-shadow:0 30px 100px rgba(0,0,0,.26); }
.terminal-top { min-height:42px; display:flex; align-items:center; gap:8px; padding:0 16px; border-bottom:1px solid rgba(96,167,255,.11); background:rgba(15,31,57,.62); }
.terminal-top span { width:8px; height:8px; border-radius:50%; background:#53667f; }
.terminal-top span:nth-child(2) { background:#4d96db; }
.terminal-top span:nth-child(3) { background:#52d9c0; }
.terminal-top small { margin-left:auto; color:#587b9d; font:9px/1 var(--mono); letter-spacing:.08em; text-transform:uppercase; }
.terminal-body { display:grid; gap:18px; padding:30px; color:#89cfff; font:12px/1.8 var(--mono); }
.terminal-entry { display:grid; gap:7px; }
.terminal-command { width:max-content; max-width:100%; padding:0; border:0; color:#89cfff; background:none; cursor:pointer; font:inherit; text-align:left; }
.terminal-command:hover, .terminal-command:focus-visible { color:var(--cyan); }
.terminal-output { display:block; max-height:0; overflow:hidden; opacity:0; transform:translateY(-5px); color:#d2efff; transition:max-height .28s ease,opacity .22s ease,transform .28s ease; }
.terminal-output::before { content:"|- "; color:#5b9ac4; }
.terminal-entry:hover .terminal-output, .terminal-entry:focus-within .terminal-output, .terminal-entry.is-open .terminal-output { max-height:4rem; opacity:1; transform:none; }
.terminal-character { display:inline-block; min-width:.56ch; opacity:0; transform:translateY(5px); }
.terminal-character.is-shown { opacity:1; transform:none; }

.site-footer { min-height:82px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:20px; border-top:1px solid rgba(96,167,255,.10); color:#5f7187; font:9px/1.3 var(--mono); }
.site-footer .footer-center { justify-self:center; }
.site-footer .mono { justify-self:end; color:#6889a8; }


/* Layout hardening */
.hero-copy, .hero-art, .page-hero > *, .about-hero > *, .about-details > * { min-width:0; }
.page-hero h1, .writeup-card h2, .contact-grid strong { overflow-wrap:anywhere; }
.home-links strong { overflow-wrap:anywhere; }
.route-view > *:first-child { scroll-margin-top:96px; }

@media (max-width: 930px) {
  .site-header { grid-template-columns:auto minmax(0,1fr) auto; }
  .header-link { display:none; }
  .nav { justify-self:end; overflow-x:auto; max-width:100%; scrollbar-width:none; }
  .nav::-webkit-scrollbar { display:none; }
  .nav a { padding:10px 9px; white-space:nowrap; }
  .hero-page { grid-template-columns:1fr; min-height:auto; padding-top:100px; padding-bottom:100px; }
  .hero-page::before { right:-22%; width:92%; opacity:.60; }
  .hero-background-image { right:-22%; width:92%; opacity:.60; }
  .hero-copy { max-width:680px; }
  .hero-art { display:none; }
  .repo-grid { grid-template-columns:1fr; }
  .resource-grid { grid-template-columns:1fr; }
  .repo-card { min-height:250px; }
  .home-links { grid-template-columns:1fr; }
  .page-hero { grid-template-columns:50px 1fr; }
  .about-hero { gap:32px; }
  .about-visual-frame { min-height:440px; }
  .about-identity { right:16px; left:16px; }
  .about-details { gap:36px; grid-template-columns:1fr; }
  .about-workflow ol { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .contact-grid { grid-template-columns:1fr; }
  .writeups-hero, .resources-hero, .contact-hero { grid-template-columns:50px minmax(0,1fr); }
  .writeups-hero .section-visual, .resources-hero .section-visual, .contact-hero .section-visual { grid-column:2; min-height:230px; }
  .resources-hero .section-visual, .contact-hero .section-visual { width:min(100%,390px); justify-self:end; }
}

@media (max-width: 700px) {
  .section-shell { width:min(calc(100% - 26px),var(--max)); }
  .site-header { top:8px; width:calc(100% - 16px); min-height:58px; margin-top:8px; padding:0 10px 0 13px; border-radius:14px; grid-template-columns:auto minmax(0,1fr) auto; }
  .brand span:last-child { display:none; }
  .orbit-mark { width:24px; height:24px; }
  .orbit-mark::before { top:10px; }
  .meow-toggle { min-height:34px; min-width:66px; justify-content:center; padding:0 7px; border-radius:9px; font-size:7px; letter-spacing:.04em; }
  .nav { gap:0; min-width:0; }
  .nav a { padding:10px 7px; font-size:11px; }
  .hero-page { padding-top:78px; padding-bottom:76px; }
  .hero-page::before { width:120%; right:-45%; opacity:.52; }
  .hero-background-image { width:120%; right:-45%; opacity:.52; }
  .hero-copy h1 { font-size:clamp(52px,17vw,80px); }
  .hero-copy h1 small { max-width:410px; margin-top:23px; font-size:clamp(27px,9vw,40px); }
  .hero-copy>p { font-size:12px; }
  .button-row { display:grid; grid-template-columns:1fr 1fr; }
  .button:last-child { grid-column:1/-1; }
  .home-projects { padding-top:66px; }
  .section-heading { align-items:start; }
  .section-heading>div { align-items:start; }
  .section-heading>a { display:none; }
  .home-links { margin-top:40px; margin-bottom:64px; }
  .subpage { padding-top:70px; padding-bottom:76px; }
  .page-hero { grid-template-columns:1fr; gap:18px; padding-bottom:42px; }
  .page-hero h1 { font-size:clamp(48px,15vw,72px); }
  .page-index { order:0; }
  .resources-hero-copy { display:block; }
  .resources-hero-note { margin-top:38px; }
  .writeups-hero, .resources-hero, .contact-hero { grid-template-columns:1fr; }
  .writeups-hero .section-visual, .resources-hero .section-visual, .contact-hero .section-visual { grid-column:1; min-height:220px; }
  .resources-hero .section-visual, .contact-hero .section-visual { width:min(100%,390px); justify-self:center; }
  .entry-collection-heading { display:block; }
  .entry-collection-heading > span { display:block; margin-top:16px; text-align:left; }
  .writeup-grid { grid-template-columns:1fr; }
  .filter-bar { gap:7px; }
  .filter-bar button { min-width:0; flex:1 1 auto; padding:10px 11px; }
  .writeup-card { min-height:285px; padding:22px; }
  .about-page { padding-top:48px; }
  .about-hero { grid-template-columns:1fr; gap:36px; }
  .about-eyebrow { margin-bottom:24px; }
  .about-intro h1 { font-size:clamp(54px,12.5vw,76px); }
  .about-lead { margin-top:24px; font-size:15px; }
  .about-actions { gap:20px; margin-top:26px; }
  .about-visual-frame { min-height:360px; background-position:center 42%; }
  .about-identity { right:12px; bottom:14px; left:12px; padding:20px; }
  .about-identity strong { font-size:clamp(40px,11vw,48px); }
  .about-details { margin-top:44px; padding-top:40px; }
  .about-focus { padding:24px; }
  .about-workflow { margin-top:48px; }
  .site-footer { grid-template-columns:1fr auto; padding:18px 0; }
  .site-footer .footer-center { display:none; }
}

@media (max-width: 470px) {
  .button-row { grid-template-columns:1fr; }
  .button:last-child { grid-column:auto; }
  .home-links a { grid-template-columns:auto 1fr auto; }
  .repo-card h3 { font-size:16px; }
  .terminal-body { padding:22px; font-size:11px; }
  .terminal-top small { font-size:8px; }
  .about-workflow-heading { display:block; }
  .about-workflow-heading h2 { margin-top:16px; }
  .about-workflow ol { grid-template-columns:1fr; gap:24px; }
  .about-workflow li { display:grid; grid-template-columns:30px minmax(0,1fr); column-gap:14px; }
  .workflow-number { grid-row:1/3; padding-top:5px; }
  .about-workflow h3 { margin:0 0 8px; }
  .about-workflow li p { grid-column:2; max-width:none; }
}


@media (max-width: 380px) {
  .site-header { padding-inline:9px; }
  .nav a { padding:9px 5px; font-size:10px; }
  .section-shell { width:calc(100% - 20px); }
  .hero-copy h1 { font-size:50px; }
  .hero-copy h1 small { font-size:29px; }
  .filter-bar button { font-size:9px; padding-inline:8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* Internal Markdown write-up pages */
.back-link { display:inline-flex; margin-bottom:38px; color:#75bfff; font:11px/1 var(--mono); }
.article-header > p:not(.eyebrow) { max-width:720px; margin:22px 0; color:#92a5be; font:13px/1.8 var(--mono); }
.article-header .tag-row { margin-top:20px; }
.markdown-body { max-width:900px; padding:clamp(26px,5vw,54px); border-radius:16px; color:#b1bfd1; font:14px/1.85 var(--mono); }
.markdown-body h2, .markdown-body h3, .markdown-body h4 { color:#f2f7ff; font-family:var(--sans); letter-spacing:-.03em; line-height:1.2; }
.markdown-body h2 { margin:52px 0 18px; font-size:31px; }
.markdown-body h3 { margin:40px 0 15px; font-size:24px; }
.markdown-body h4 { margin:32px 0 12px; font-size:18px; }
.markdown-body p { margin:0 0 18px; }
.markdown-body ul { margin:0 0 22px; padding-left:22px; }
.markdown-body li { margin:8px 0; }
.markdown-body a { color:#64c9ff; text-decoration:underline; text-decoration-color:rgba(100,201,255,.3); text-underline-offset:4px; }
.markdown-body :not(pre) > code { padding:3px 6px; border:1px solid rgba(96,164,242,.15); border-radius:5px; background:rgba(2,10,24,.7); color:#84e8ff; font-size:.9em; }
.markdown-body pre { position:relative; margin:26px 0; padding:42px 18px 18px; overflow:auto; border:1px solid rgba(93,165,250,.16); border-radius:11px; background:#010711; color:#c2d4e9; font:12px/1.65 var(--mono); }
.markdown-body blockquote { margin:26px 0; padding:15px 0 15px 18px; border-left:1px solid var(--cyan); color:#d9f3ff; }
.back-link { display:inline-flex; margin-bottom:34px; color:#69c9ff; font:11px/1 var(--mono); }
.note-page { max-width:980px; }
.note-header>p:not(.kicker) { max-width:760px; color:#879bb4; font:12px/1.72 var(--mono); }
.markdown-body { max-width:820px; margin:52px auto 0; color:#a5b5c8; font:14px/1.8 var(--mono); }
.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5 { margin:46px 0 16px; color:#ecf6ff; font-family:var(--sans); letter-spacing:-.035em; line-height:1.08; }
.markdown-body h2 { font-size:34px; }.markdown-body h3 { font-size:27px; }.markdown-body h4 { font-size:21px; }.markdown-body h5 { font-size:17px; }
.markdown-body p { margin:0 0 18px; }
.markdown-body ul { margin:0 0 22px; padding-left:22px; }
.markdown-body li { margin:7px 0; }
.markdown-body a { color:#66c9ff; text-decoration:underline; text-decoration-color:rgba(102,201,255,.3); text-underline-offset:4px; }
.markdown-body blockquote { margin:28px 0; padding:16px 20px; border-left:1px solid var(--cyan); background:rgba(36,102,160,.06); color:#ccecff; }
.markdown-body code { padding:2px 6px; border:1px solid rgba(104,166,255,.14); border-radius:5px; background:rgba(13,32,62,.72); color:#80ddff; }
.md-code { margin:28px 0; overflow:auto; border:1px solid rgba(100,171,255,.18); border-radius:12px; background:#010712; box-shadow:inset 0 1px 0 rgba(255,255,255,.02); }
.md-code>div { padding:10px 14px; border-bottom:1px solid rgba(100,171,255,.10); color:#567b9f; font:9px/1 var(--mono); text-transform:uppercase; letter-spacing:.1em; }
.md-code code { display:block; min-width:max-content; padding:18px; border:0; background:none; color:#a7d7ee; line-height:1.65; }

/* Editorial Markdown articles */
.note-page.article-page { position:relative; isolation:isolate; width:min(calc(100% - 40px), 1180px); max-width:1180px; padding-top:clamp(42px,6vw,72px); }
.note-page.article-page::before { content:""; position:absolute; z-index:-1; inset:-55px -18vw auto; height:560px; pointer-events:none; background:radial-gradient(52% 64% at 20% 12%,rgba(76,90,212,.15),transparent 70%),radial-gradient(42% 62% at 82% 18%,rgba(52,164,225,.10),transparent 70%); filter:blur(20px); }
.note-page.article-page::after { content:""; position:absolute; z-index:-1; inset:0; pointer-events:none; opacity:.18; background-image:linear-gradient(rgba(139,148,158,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(139,148,158,.08) 1px,transparent 1px); background-size:72px 72px; -webkit-mask-image:linear-gradient(180deg,#000,transparent 58%); mask-image:linear-gradient(180deg,#000,transparent 58%); }
.note-page.blog-post { width:min(calc(100% - 40px), 1180px); max-width:1180px; padding-top:clamp(42px,6vw,72px); }
.note-page.blog-post::before { content:""; position:absolute; z-index:-1; inset:-55px -18vw auto; height:560px; pointer-events:none; background:radial-gradient(52% 64% at 20% 12%,rgba(76,90,212,.15),transparent 70%),radial-gradient(42% 62% at 82% 18%,rgba(52,164,225,.10),transparent 70%); filter:blur(20px); }
.note-page.blog-post::after { content:""; position:absolute; z-index:-1; inset:0; pointer-events:none; opacity:.18; background-image:linear-gradient(rgba(139,148,158,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(139,148,158,.08) 1px,transparent 1px); background-size:72px 72px; -webkit-mask-image:linear-gradient(180deg,#000,transparent 58%); mask-image:linear-gradient(180deg,#000,transparent 58%); }
.github-repository-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:22px; padding:6px 0 24px; border-bottom:1px solid rgba(139,148,158,.26); }
.github-repository-identity { min-width:0; display:flex; align-items:flex-start; gap:15px; }
.github-repository-avatar { flex:none; width:42px; height:42px; display:grid; place-items:center; border:1px solid rgba(139,148,158,.38); border-radius:50%; color:#d0d7de; background:linear-gradient(145deg,#26374a,#101720); font:600 17px/1 var(--sans); }
.github-repository-heading { min-width:0; }
.github-repository-eyebrow { margin:0 0 5px; color:#8b949e; font:11px/1.4 var(--mono); letter-spacing:.08em; text-transform:uppercase; }
.github-repository-heading h1 { margin:0; display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; color:#e6edf3; font:600 clamp(23px,3.4vw,34px)/1.2 var(--sans); letter-spacing:-.025em; overflow-wrap:anywhere; }
.github-repository-heading h1 > span { color:#8b949e; font-weight:400; }
.github-repository-heading h1 > i { color:#6e7681; font-style:normal; font-weight:400; }
.github-repository-summary { max-width:76ch; margin:9px 0 0; color:#8b949e; font:14px/1.55 var(--sans); }
.github-repository-badge { flex:none; margin:4px 0 0 auto; padding:4px 8px; border:1px solid rgba(139,148,158,.32); border-radius:99px; color:#8b949e; font:10px/1 var(--mono); letter-spacing:.06em; }
.github-repository-tabs { display:flex; align-items:center; gap:5px; margin:18px 0 20px; border-bottom:1px solid rgba(139,148,158,.25); overflow-x:auto; }
.github-repository-tabs a { position:relative; flex:none; padding:10px 13px 12px; border-radius:6px 6px 0 0; color:#8b949e; font:13px/1.3 var(--sans); white-space:nowrap; }
.github-repository-tabs a:hover { color:#e6edf3; background:rgba(177,186,196,.06); }
.github-repository-tabs a.active { color:#e6edf3; font-weight:600; }
.github-repository-tabs a.active::after { content:""; position:absolute; right:12px; bottom:-1px; left:12px; height:2px; border-radius:2px; background:#f78166; }
.github-repository-layout { display:grid; grid-template-columns:minmax(0,1fr) 285px; align-items:start; gap:24px; }
.github-repository-main { min-width:0; }
.github-file-panel, .github-readme { overflow:hidden; border:1px solid rgba(139,148,158,.28); border-radius:7px; }
.github-files-toolbar { min-height:56px; padding:10px 14px; display:flex; flex-wrap:wrap; align-items:center; gap:12px; border-bottom:1px solid rgba(139,148,158,.23); background:rgba(22,27,34,.88); color:#8b949e; font:12px/1.4 var(--sans); }
.github-branch-pill { min-height:31px; padding:0 10px; display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(139,148,158,.30); border-radius:6px; color:#e6edf3; background:rgba(33,38,45,.75); font-weight:600; }
.github-branch-pill i { width:8px; height:8px; border-radius:50%; background:#8b949e; box-shadow:0 0 9px rgba(139,148,158,.35); }
.github-files-toolbar > a { margin-left:auto; color:#58a6ff; font-weight:500; }
.github-file-list { background:transparent; }
.github-file-row { min-height:50px; padding:10px 14px; display:grid; grid-template-columns:20px minmax(115px,.75fr) minmax(140px,1.5fr) auto; align-items:center; gap:11px; border-bottom:1px solid rgba(139,148,158,.17); color:#c9d1d9; font:13px/1.4 var(--sans); }
.github-file-row:last-child { border-bottom:0; }
.github-file-row:hover { background:rgba(177,186,196,.055); }
.github-file-icon { position:relative; width:18px; height:20px; color:#8b949e; }
.github-file-icon.folder::before { content:""; position:absolute; left:1px; top:6px; width:15px; height:10px; border:1.5px solid currentColor; border-radius:2px; background:rgba(139,148,158,.10); }
.github-file-icon.folder::after { content:""; position:absolute; left:2px; top:3px; width:7px; height:4px; border:1.5px solid currentColor; border-bottom:0; border-radius:2px 2px 0 0; }
.github-file-icon.markdown::before { content:""; position:absolute; left:3px; top:2px; width:11px; height:15px; border:1.5px solid currentColor; border-radius:2px; }
.github-file-icon.markdown::after { content:"M"; position:absolute; left:5px; top:6px; color:#8b949e; font:600 8px/1 var(--mono); }
.github-file-name { min-width:0; color:#c9d1d9; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.github-file-row:hover .github-file-name { color:#58a6ff; }
.github-file-summary { min-width:0; color:#8b949e; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.github-file-meta { color:#8b949e; font-size:12px; white-space:nowrap; }
.github-readme { margin-top:16px; }
.github-readme-header { min-height:51px; padding:0 16px; display:flex; align-items:center; gap:10px; border-bottom:1px solid rgba(139,148,158,.22); color:#c9d1d9; font:13px/1 var(--sans); }
.github-readme-icon { width:14px; height:17px; border:1.5px solid #8b949e; border-radius:2px; }
.github-readme-header strong { font-weight:600; }
.github-markdown { max-width:none; margin:0; padding:clamp(22px,3.2vw,42px); color:#c9d1d9; font:16px/1.6 var(--sans); }
.github-markdown h1 { margin:0 0 18px; padding-bottom:.32em; border-bottom:1px solid rgba(139,148,158,.28); color:#f0f3f6; font:600 2em/1.25 var(--sans); letter-spacing:-.025em; }
.github-markdown p:has(> img:only-child) { max-width:none; }
.github-markdown img { max-width:100%; height:auto; }
.github-markdown figure { max-width:100%; margin:24px 0; }
.github-markdown p > img { display:block; margin:24px 0; border:1px solid rgba(139,148,158,.24); border-radius:5px; }
.github-markdown figure > img { display:block; margin:0 auto; border:1px solid rgba(139,148,158,.24); border-radius:5px; }
.github-markdown .markdown-image-inline { max-width:min(100%, 44rem); }
.github-markdown pre { margin:16px 0; padding:16px; overflow:auto; border:1px solid rgba(139,148,158,.25); border-radius:6px; background:#161b22; color:#e6edf3; font:13px/1.55 var(--mono); }
.github-markdown pre code { padding:0; border:0; background:none; color:inherit; font:inherit; }
/* Horizontal scrolling belongs on the wrapper. Making the table a block turned it into its own
   scroll container, so its rows sized to content and the striping stopped short of the edge. */
.github-markdown table { max-width:100%; }
.github-markdown .markdown-table-wrap { max-width:100%; overflow-x:auto; }
.github-repository-sidebar { min-width:0; color:#8b949e; }
.github-sidebar-section { padding:0 0 18px; margin:0 0 18px; border-bottom:1px solid rgba(139,148,158,.22); }
.github-sidebar-section h2 { margin:0 0 10px; color:#e6edf3; font:600 16px/1.4 var(--sans); }
.github-sidebar-section p { margin:0 0 10px; color:#8b949e; font:13px/1.55 var(--sans); }
.github-sidebar-stats p { display:flex; justify-content:space-between; gap:12px; }
.github-sidebar-stats strong { color:#c9d1d9; font-weight:500; }
.github-toc { margin:0; border-color:rgba(139,148,158,.22); border-radius:7px; background:rgba(13,17,23,.42); box-shadow:none; }
.github-toc summary { min-height:44px; font-size:12px; }
.github-toc nav { padding:0 16px 16px; }
.github-toc ol { gap:5px; }
.github-toc a { font:12px/1.45 var(--sans); }
.github-toc .toc-level-3 { padding-left:12px; }
.github-toc .toc-level-4 { padding-left:24px; }
.github-toc .toc-level-5, .github-toc .toc-level-6 { padding-left:36px; }
@media (max-width: 900px) { .github-repository-layout { grid-template-columns:minmax(0,1fr); } .github-repository-sidebar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; } .github-toc { grid-column:1/-1; } }
@media (max-width: 640px) { .github-repository { width:min(calc(100% - 24px),1280px); } .github-repository-header { gap:14px; padding-bottom:18px; } .github-repository-identity { gap:10px; } .github-repository-avatar { width:34px; height:34px; font-size:14px; } .github-repository-heading h1 { font-size:22px; } .github-repository-badge { display:none; } .github-repository-tabs { margin-top:12px; } .github-file-row { grid-template-columns:20px minmax(88px,.75fr) minmax(72px,1fr) auto; gap:8px; padding-inline:10px; font-size:12px; } .github-file-summary { font-size:11px; } .github-file-meta { font-size:10px; } .github-repository-sidebar { grid-template-columns:minmax(0,1fr); } .github-markdown { padding:18px; font-size:15px; } }

.github-repository { width:min(calc(100% - 40px), 1180px); max-width:1180px; margin:0 auto; }
.github-path-label { min-width:0; overflow:hidden; color:#c9d1d9; font:12px/1.4 var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.github-file-icon.file::before { content:""; position:absolute; left:3px; top:2px; width:11px; height:15px; border:1.5px solid currentColor; border-radius:2px; }
.github-file-icon.file::after { content:""; position:absolute; left:6px; top:6px; width:6px; height:1.5px; background:currentColor; box-shadow:0 4px 0 currentColor; }
.github-file-list:empty::after { content:"This folder is empty."; display:block; padding:22px 14px; color:#8b949e; font:13px/1.5 var(--sans); }
.github-file-empty { margin:0; padding:22px 14px; color:#8b949e; font:13px/1.5 var(--sans); }
.github-file-footer { margin:0; padding:11px 14px; border-top:1px solid rgba(139,148,158,.17); color:#9aa6b5; background:rgba(14,20,34,.55); font:12px/1.4 var(--sans); }
.github-file-row:focus-visible { outline:2px solid #58a6ff; outline-offset:-2px; }
.github-sidebar-stats p { display:flex; justify-content:space-between; gap:12px; margin:0 0 6px; font:12px/1.5 var(--sans); }
.github-code-panel, .github-media-panel { margin-top:16px; overflow:hidden; border:1px solid rgba(139,148,158,.28); border-radius:7px; background:rgba(11,15,26,.50); }
.github-code-panel pre { max-height:70vh; margin:0; padding:18px; overflow:auto; color:#c9d1d9; background:#0d1117; font:13px/1.6 var(--mono); tab-size:2; }
.github-code-panel pre code { font:inherit; white-space:pre; }
.github-media-panel figure { margin:0; padding:16px; }
.github-media-panel img { display:block; max-width:100%; max-height:74vh; height:auto; margin:auto; object-fit:contain; border:1px solid rgba(139,148,158,.22); border-radius:6px; }
.github-media-panel figcaption { margin-top:10px; color:#8b949e; font:11px/1.5 var(--mono); text-align:center; }
.github-media-note { margin:0; padding:22px 16px; color:#8b949e; font:13px/1.6 var(--sans); }
.note-page.blog-post .article-actions { margin-bottom:30px; }
.note-page.blog-post .github-toc { margin:0 0 18px; }
.note-page.blog-post .github-markdown .markdown-table-wrap { margin:18px 0 26px; border:1px solid rgba(139,148,158,.25); border-radius:8px; overflow:auto; }
/* Prose keeps a comfortable measure; tables, code, and images use the full column. */
.note-page.blog-post .github-markdown > p,
.note-page.blog-post .github-markdown > ul,
.note-page.blog-post .github-markdown > ol,
.note-page.blog-post .github-markdown > blockquote { max-width:76ch; }
.note-page.blog-post .github-markdown table { width:100%; border-collapse:collapse; font:14px/1.6 var(--sans); }
.note-page.blog-post .github-markdown th, .note-page.blog-post .github-markdown td { padding:11px 14px; border-bottom:1px solid rgba(139,148,158,.18); text-align:left; vertical-align:top; }
.note-page.blog-post .github-markdown tbody tr:last-child td { border-bottom:0; }
.note-page.blog-post .github-markdown tbody tr:nth-child(even) { background:rgba(177,186,196,.035); }
.note-page.blog-post .github-markdown td a { font-weight:500; }
/* Prose keeps a comfortable measure; tables, code, and images use the full column. */
.note-page.blog-post .github-markdown > p,
.note-page.blog-post .github-markdown > ul,
.note-page.blog-post .github-markdown > ol,
.note-page.blog-post .github-markdown > blockquote { max-width:76ch; }
@media (max-width: 640px) {
  .github-repository { width:min(calc(100% - 24px), 1180px); }
  .github-file-row { grid-template-columns:18px minmax(0,1fr) auto; }
  .github-file-summary, .github-file-head span:nth-child(3) { display:none; }
  .github-code-panel pre { padding:13px; font-size:11.5px; }
  .github-panel-action { min-height:26px; padding:0 9px; font-size:11px; }
}

/* Colour-coded repository view: the panels sit inside the space theme, so they use nebula
   tints and one accent per file kind rather than flat grey. */
.github-repository-header {
  padding:20px 22px;
  border:1px solid rgba(139,148,158,.26);
  border-bottom:0;
  border-radius:9px 9px 0 0;
  background:
    radial-gradient(120% 180% at 8% 0%, rgba(88,166,255,.16), transparent 62%),
    radial-gradient(100% 160% at 96% 10%, rgba(184,136,255,.14), transparent 60%),
    linear-gradient(180deg, rgba(22,29,48,.46), rgba(13,18,32,.52));
}
.github-repository-avatar {
  border-color:rgba(88,166,255,.45);
  color:#eaf2ff;
  background:linear-gradient(145deg,#2b4a7d,#141d33);
  box-shadow:0 0 0 3px rgba(88,166,255,.10), 0 6px 20px rgba(0,0,0,.4);
}
.github-repository-heading h1 { color:#f2f7ff; }
.github-repository-eyebrow { color:#7fb2ff; }
.github-repository-summary { color:#a9b6c8; }
.github-repository-badge { border-color:rgba(184,136,255,.42); color:#d8bcff; background:rgba(184,136,255,.12); }
.github-repository-tabs {
  margin:0 0 18px;
  padding:0 10px;
  border:1px solid rgba(139,148,158,.26);
  border-top:0;
  border-radius:0 0 9px 9px;
  background:linear-gradient(180deg, rgba(18,24,40,.44), rgba(13,18,32,.50));
}
.github-repository-tabs a { padding:11px 14px 12px; color:#9aa6b5; }
.github-repository-tabs a:hover { color:#eaf2ff; background:rgba(88,166,255,.10); }
.github-repository-tabs a.active { color:#eaf2ff; }
.github-repository-tabs a.active::after {
  background:linear-gradient(90deg,#58a6ff,#b888ff);
  box-shadow:0 0 12px rgba(88,166,255,.55);
}

/* Actions stay in one right-aligned group, so the name and size keep the left edge.
   An auto margin on every link used to split the free space and strand Download mid-panel. */
.github-panel-actions { margin-left:auto; display:inline-flex; flex-wrap:wrap; align-items:center; gap:8px; }
.github-panel-action {
  min-height:28px; padding:0 11px; display:inline-flex; align-items:center; gap:6px;
  border:1px solid rgba(88,166,255,.28); border-radius:6px;
  color:#9fd0ff; background:rgba(88,166,255,.08);
  font:12px/1 var(--sans); text-decoration:none; white-space:nowrap;
  transition:border-color .15s ease, color .15s ease, background .15s ease;
}
.github-panel-action:hover { color:#e2f1ff; border-color:rgba(88,166,255,.6); background:rgba(88,166,255,.18); }
.github-panel-action:focus-visible { outline:2px solid #58a6ff; outline-offset:2px; }

.github-readme-header[data-kind="folder"] { --kind:#f2cc60; --kind-soft:rgba(242,204,96,.14); }
.github-readme-header[data-kind="markdown"] { --kind:#d2a8ff; --kind-soft:rgba(210,168,255,.14); }
.github-readme-header[data-kind="image"] { --kind:#56d4dd; --kind-soft:rgba(86,212,221,.14); }
.github-readme-header[data-kind="code"] { --kind:#7ee787; --kind-soft:rgba(126,231,135,.13); }
.github-readme-header[data-kind="binary"] { --kind:#9aa6b5; --kind-soft:rgba(154,166,181,.12); }
.github-readme-header .github-file-icon { color:var(--kind,#9aa6b5); background:var(--kind-soft,rgba(139,148,158,.10)); }
.github-readme-header .github-file-meta { color:var(--kind,#9aa6b5); }

/* File panel: tinted surface, a spectrum bar on top, and column headings that share the row grid. */
.github-file-panel, .github-readme { border-color:rgba(139,148,158,.30); }
.github-file-panel {
  background:linear-gradient(180deg, rgba(18,25,42,.72), rgba(12,17,29,.76));
  box-shadow:0 18px 46px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.04);
}

/* The README is the page's main content, so it carries the accent bar, border and inner
   highlight that make it read as a panel. The fill stays translucent on purpose: the starfield
   canvas sits at z-index -2, and a near-opaque background hid it completely. */
.github-readme {
  position:relative;
  overflow:hidden;
  border-color:rgba(150,162,186,.34);
  background:
    radial-gradient(78% 70% at 0% 0%, rgba(184,136,255,.10), transparent 62%),
    radial-gradient(66% 64% at 100% 2%, rgba(78,201,176,.08), transparent 58%),
    linear-gradient(180deg, rgba(22,30,50,.30), rgba(13,18,32,.38));
  box-shadow:0 26px 64px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04), 0 0 0 1px rgba(88,166,255,.08);
}
.github-readme::before {
  content:"";
  position:absolute; inset:0 0 auto; height:3px; z-index:2;
  background:linear-gradient(90deg,#b888ff 0%,#58a6ff 40%,#4ec9b0 100%);
  box-shadow:0 0 16px rgba(184,136,255,.45);
}
.github-readme .github-readme-header {
  min-height:58px;
  padding-inline:18px;
  border-bottom:1px solid rgba(150,162,186,.22);
  background:linear-gradient(180deg, rgba(32,42,66,.52), rgba(20,27,46,.46));
  box-shadow:0 1px 0 rgba(88,166,255,.08);
}
.github-readme .github-readme-icon { border-color:rgba(184,136,255,.6); background:rgba(184,136,255,.10); }
.github-readme .github-markdown { padding:clamp(24px,3.4vw,44px); }
.github-files-toolbar { min-height:52px; border-bottom-color:rgba(139,148,158,.20); background:rgba(13,19,33,.55); color:#9aa6b5; }
.github-branch-pill { border-color:rgba(126,231,135,.34); color:#c9f5d2; background:rgba(126,231,135,.10); }
.github-branch-pill i { background:#7ee787; box-shadow:0 0 10px rgba(126,231,135,.8); }
.github-files-toolbar > a { color:#7fb2ff; }
.github-files-toolbar > a:hover { color:#a9d1ff; }

.github-file-head {
  display:grid;
  grid-template-columns:20px minmax(115px,.75fr) minmax(140px,1.5fr) auto;
  align-items:center;
  gap:11px;
  padding:9px 14px;
  border-bottom:1px solid rgba(139,148,158,.22);
  color:#8b98a8;
  background:rgba(13,19,33,.55);
  font:600 9.5px/1 var(--mono);
  letter-spacing:.14em;
  text-transform:uppercase;
}
.github-file-head span:last-child { text-align:right; }
.github-file-row { position:relative; border-bottom-color:rgba(139,148,158,.16); color:#d6e0ea; transition:background .15s ease; }
.github-file-row::before {
  content:"";
  position:absolute; left:0; top:0; bottom:0; width:3px;
  background:transparent;
  transition:background .15s ease;
}
.github-file-row:hover { background:rgba(88,166,255,.08); }
.github-file-row:hover::before { background:#58a6ff; }
.github-file-name { color:#e9eff6; font:13px/1.45 var(--mono); }
.github-file-row:hover .github-file-name { color:#a9d4ff; }
.github-file-summary { color:#93a1b3; font-size:12px; letter-spacing:.02em; }
.github-file-meta { color:#93a1b3; font:12px/1.4 var(--mono); text-align:right; font-variant-numeric:tabular-nums; }

/* One accent per file kind, driving the icon chip and the kind label. */
.github-file-row { --kind:#8fb6dd; --kind-soft:rgba(143,182,221,.13); }
.github-file-row[data-kind="folder"] { --kind:#dcb45f; --kind-soft:rgba(220,180,95,.15); }
.github-file-row .github-file-icon { color:var(--kind,#8fb6dd); background:var(--kind-soft,rgba(143,182,221,.13)); }
.github-file-row .github-file-summary { color:#8b98a8; }

/* Sidebar and README belong to the same colour system. */
.github-repository-sidebar h2 { color:#eaf2ff; font-size:13px; letter-spacing:.02em; }
.github-repository-sidebar section + section { border-top-color:rgba(139,148,158,.18); }
.github-readme-header { border-bottom-color:rgba(139,148,158,.22); color:#e6edf3; background:rgba(12,17,30,.50); }
.note-page.blog-post .github-markdown { color:#d6e0ea; font-size:16px; line-height:1.72; }
.note-page.blog-post .github-markdown a { text-decoration-color:rgba(127,178,255,.45); text-underline-offset:3px; }
.note-page.blog-post .github-markdown a:hover { text-decoration-color:#8fd0ff; }
.note-page.blog-post .github-markdown th {
  color:#dceaff;
  font:600 12px/1.4 var(--mono);
  letter-spacing:.06em;
  text-transform:uppercase;
  border-bottom:1px solid rgba(88,166,255,.35);
  background:linear-gradient(180deg, rgba(88,166,255,.22), rgba(184,136,255,.12));
}
.note-page.blog-post .github-markdown td:first-child { color:#9fd0ff; font:13px/1.6 var(--mono); }
.note-page.blog-post .github-markdown strong { color:#f0f6ff; }
.article-page > .back-link { margin-bottom:34px; color:#bca8d0; }
.article-breadcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 32px; color:#958ba0; font:12px/1.5 var(--mono); }
.article-breadcrumbs a { color:#a89caf; text-decoration:none; text-underline-offset:4px; }
.article-breadcrumbs a:hover { color:#f0e9f4; text-decoration:underline; text-decoration-color:#b9a7ce; }
.article-breadcrumbs span[aria-current="page"] { color:#eee6f1; text-decoration:underline; text-decoration-color:#b9a7ce; text-underline-offset:4px; }
.article-heading .kicker { margin-bottom:16px; color:#a796b8; font-size:10px; }
.article-heading .tag-row { margin-top:20px; }
.article-heading .tag-row span { border-color:rgba(186,168,208,.17); color:#b3a5bf; background:rgba(90,69,105,.10); }
.article-toc { margin:36px 0 46px; border:1px solid rgba(186,168,208,.15); border-radius:5px; background:rgba(24,22,34,.46); }
.article-toc summary { min-height:58px; padding:0 18px; display:flex; align-items:center; gap:13px; color:#d7d0dc; cursor:pointer; font:13px/1.4 var(--mono); list-style:none; }
.article-toc summary::-webkit-details-marker { display:none; }
.toc-menu-icon { color:#a8a0af; font-size:15px; }
.toc-chevron { margin-left:auto; color:#8f8698; font-size:20px; transition:transform .2s ease; }
.article-toc[open] .toc-chevron { transform:rotate(180deg); }
.article-toc nav { padding:0 22px 18px 48px; }
.article-toc ol { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.article-toc li { line-height:1.5; }
.article-toc .toc-level-3 { padding-left:18px; }
.article-toc .toc-level-4 { padding-left:36px; }
.article-toc .toc-level-5, .article-toc .toc-level-6 { padding-left:54px; }
.article-toc a { color:#aaa1b4; font:11px/1.5 var(--mono); text-decoration:none; }
.article-toc a:hover { color:#eee5f2; }
.article-body .markdown-image { margin:34px 0; }
.article-body .markdown-image img { display:block; max-width:100%; height:auto; margin:0 auto; border:1px solid rgba(186,168,208,.16); border-radius:6px; background:#11101a; }
.article-body .markdown-image figcaption { margin-top:10px; color:#898394; font:10px/1.5 var(--mono); text-align:center; }
.article-body .markdown-image-inline { display:inline-block; max-width:min(100%, 48rem); height:auto; vertical-align:middle; border:1px solid rgba(139,148,158,.24); border-radius:5px; }
.article-body .md-code { margin:30px 0; border-color:rgba(186,168,208,.15); border-radius:6px; background:#0b0b13; box-shadow:none; }
.article-body .md-code > div { color:#9689a2; }
.article-body .md-code code { color:#d1c8da; font:13px/1.75 var(--mono); }
.article-body .markdown-table-wrap { width:100%; margin:30px 0; overflow-x:auto; border:1px solid rgba(186,168,208,.15); border-radius:5px; }
.article-body .table-center { text-align:center; }
.article-body .table-right { text-align:right; }
.writeups-actions-links { display:flex; flex-wrap:wrap; gap:9px; }

@media (max-width:700px) {
  .note-page.article-page { width:min(calc(100% - 26px),1180px); padding-top:42px; }
  .note-page.blog-post { width:min(calc(100% - 26px),960px); padding-top:42px; }
  .article-breadcrumbs { gap:7px; margin-bottom:26px; font-size:10px; }
  .article-toc { margin:28px 0 36px; }
  .article-toc summary { min-height:52px; padding-inline:13px; font-size:11px; }
  .article-toc nav { padding-left:38px; }
  .article-body .md-code code { font-size:11px; }
}

/* Beautiful markdown rendering for blog posts */
.note-page.blog-post .article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
}

.note-page.blog-post .article-content h1,
.note-page.blog-post .article-content h2,
.note-page.blog-post .article-content h3,
.note-page.blog-post .article-content h4,
.note-page.blog-post .article-content h5,
.note-page.blog-post .article-content h6 {
  color: #f0f3f6;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.25;
  scroll-margin-top: 100px;
}

.note-page.blog-post .article-content h1 {
  margin: 0 0 24px;
  padding-bottom: .32em;
  border-bottom: 1px solid rgba(139,148,158,.28);
  font-size: 2em;
}

.note-page.blog-post .article-content h2 {
  margin: 48px 0 18px;
  padding-bottom: .32em;
  font-size: 1.5em;
  border-bottom: 1px solid rgba(139,148,158,.22);
}

.note-page.blog-post .article-content h3 {
  margin: 36px 0 16px;
  font-size: 1.25em;
}

.note-page.blog-post .article-content h4 {
  margin: 28px 0 12px;
  font-size: 1.08em;
}

.note-page.blog-post .article-content h5,
.note-page.blog-post .article-content h6 {
  margin: 24px 0 10px;
  font-size: 1em;
}

.note-page.blog-post .article-content p {
  max-width: 78ch;
  margin: 0 0 22px;
  color: #c9d1d9;
  font: 16px/1.7 var(--sans);
}

.note-page.blog-post .article-content a {
  color: #58a6ff;
  text-decoration: underline;
  text-decoration-color: rgba(88,166,255,.3);
  text-underline-offset: 4px;
}

.note-page.blog-post .article-content a:hover {
  color: #7fc6ff;
  text-decoration-color: #58a6ff;
}

.note-page.blog-post .article-content ul,
.note-page.blog-post .article-content ol {
  max-width: 78ch;
  margin: 0 0 24px;
  padding-left: 24px;
}

.note-page.blog-post .article-content li {
  margin: 8px 0;
  padding-left: 4px;
}

.note-page.blog-post .article-content li::marker {
  color: #58a6ff;
}

.note-page.blog-post .article-content blockquote {
  max-width: 78ch;
  margin: 32px 0;
  padding: 16px 20px;
  border-left: 3px solid #58a6ff;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(88,166,255,.12), rgba(88,166,255,.02));
  color: #dfe7f5;
  box-shadow: inset 0 0 40px rgba(88,166,255,.06);
}

.note-page.blog-post .article-content blockquote p:last-child {
  margin-bottom: 0;
}

.note-page.blog-post .article-content pre {
  margin: 20px 0;
  padding: 20px;
  overflow: auto;
  border: 1px solid rgba(139,148,158,.25);
  border-radius: 8px;
  background: #161b22;
  color: #e6edf3;
  font: 13px/1.55 var(--mono);
}

.note-page.blog-post .article-content pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
}

.note-page.blog-post .article-content :not(pre) > code {
  padding: 3px 7px;
  border: 1px solid rgba(139,148,158,.24);
  border-radius: 4px;
  background: rgba(26,23,36,.85);
  color: #d8c7e8;
  font: .88em var(--mono);
  overflow-wrap: anywhere;
}

.note-page.blog-post .article-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  color: #c9d1d9;
  font-size: 14px;
}

.note-page.blog-post .article-content th,
.note-page.blog-post .article-content td {
  min-width: 110px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(139,148,158,.12);
  text-align: left;
}

.note-page.blog-post .article-content th {
  color: #eef7ff;
  background: linear-gradient(180deg, rgba(153,128,177,.12), rgba(153,128,177,.04));
  font-weight: 600;
  letter-spacing: .02em;
}

.note-page.blog-post .article-content tbody tr:hover {
  background: rgba(88,166,255,.04);
}

.note-page.blog-post .article-content .table-center { text-align: center; }
.note-page.blog-post .article-content .table-right { text-align: right; }

.note-page.blog-post .article-content tr:last-child td { border-bottom: 0; }

.note-page.blog-post .article-content hr {
  height: 1px;
  margin: 48px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(139,148,158,.35), transparent);
}

.note-page.blog-post .article-content .markdown-image {
  margin: 36px 0;
}

.note-page.blog-post .article-content .markdown-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(139,148,158,.24);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.note-page.blog-post .article-content .markdown-image figcaption {
  margin-top: 12px;
  color: #8b949e;
  font: 11px/1.5 var(--mono);
  text-align: center;
}

.note-page.blog-post .article-content p:has(> img:only-child) {
  max-width: none;
}

.note-page.blog-post .article-content p > img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px 0;
  border: 1px solid rgba(139,148,158,.24);
  border-radius: 5px;
}

.note-page.blog-post .article-content .markdown-image-inline {
  display: inline-block;
  max-width: min(100%, 48rem);
  height: auto;
  vertical-align: middle;
  border: 1px solid rgba(139,148,158,.24);
  border-radius: 5px;
}

.note-page.blog-post .article-content .markdown-table-wrap {
  width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid rgba(139,148,158,.15);
  border-radius: 5px;
}

.note-page.blog-post .article-content table {
  width: 100%;
  border-collapse: collapse;
  color: #c9d1d9;
  font-size: 14px;
}

.note-page.blog-post .article-content th,
.note-page.blog-post .article-content td {
  min-width: 110px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(139,148,158,.12);
  text-align: left;
}

.note-page.blog-post .article-content th {
  color: #eef6ff;
  background: linear-gradient(180deg, rgba(153,128,177,.12), rgba(153,128,177,.04));
  font-weight: 600;
  letter-spacing: .02em;
}

.note-page.blog-post .article-content tbody tr:hover {
  background: rgba(88,166,255,.04);
}

.note-page.blog-post .article-content .table-center { text-align: center; }
.note-page.blog-post .article-content .table-right { text-align: right; }

.note-page.blog-post .article-content tr:last-child td { border-bottom: 0; }

.note-page.blog-post .article-content hr {
  height: 1px;
  margin: 48px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(139,148,158,.35), transparent);
}

.note-page.blog-post .article-content .markdown-details {
  margin: 28px 0;
  padding: 18px 22px;
  border: 1px solid rgba(139,148,158,.22);
  border-radius: 8px;
  background: rgba(24,22,34,.5);
}

.note-page.blog-post .article-content .markdown-details summary {
  color: #8fd8ff;
  cursor: pointer;
  font: 12px/1.5 var(--mono);
}

.note-page.blog-post .article-content details[open] summary {
  color: #ffffff;
}

.note-page.blog-post .article-content .task-list-item {
  list-style: none;
  margin-left: -24px;
}

.note-page.blog-post .article-content .task-list-item input {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  accent-color: #58a6ff;
  vertical-align: -3px;
}

.note-page.blog-post .article-content .task-list-item label {
  cursor: pointer;
}

.note-page.blog-post .article-content p:has(> img:only-child) {
  max-width: none;
}

.note-page.blog-post .article-content p > img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px 0;
  border: 1px solid rgba(139,148,158,.24);
  border-radius: 6px;
}

.note-page.blog-post .article-content .markdown-image {
  margin: 36px 0;
}

.note-page.blog-post .article-content .markdown-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(139,148,158,.24);
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.note-page.blog-post .article-content .markdown-image figcaption {
  margin-top: 12px;
  color: #8b949e;
  font: 11px/1.5 var(--mono);
  text-align: center;
}

.note-page.blog-post .article-content .markdown-image-inline {
  display: inline-block;
  max-width: min(100%, 48rem);
  height: auto;
  vertical-align: middle;
  border: 1px solid rgba(139,148,158,.24);
  border-radius: 5px;
}

.note-page.blog-post .article-content .markdown-image-inline:hover {
  box-shadow: 0 0 16px rgba(88,166,255,.3);
}

.note-page.blog-post .article-content .markdown-table-wrap {
  width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid rgba(139,148,158,.15);
  border-radius: 6px;
}

.note-page.blog-post .article-content table {
  width: 100%;
  border-collapse: collapse;
  color: #c9d1d9;
  font-size: 14px;
}

.note-page.blog-post .article-content th,
.note-page.blog-post .article-content td {
  min-width: 110px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(139,148,158,.12);
  text-align: left;
}

.note-page.blog-post .article-content th {
  color: #eef6ff;
  background: linear-gradient(180deg, rgba(153,128,177,.12), rgba(153,128,177,.04));
  font-weight: 600;
  letter-spacing: .02em;
}

.note-page.blog-post .article-content tbody tr:hover {
  background: rgba(88,166,255,.04);
}

.note-page.blog-post .article-content .table-center { text-align: center; }
.note-page.blog-post .article-content .table-right { text-align: right; }

.note-page.blog-post .article-content tr:last-child td { border-bottom: 0; }

.note-page.blog-post .article-content hr {
  height: 1px;
  margin: 48px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(139,148,158,.35), transparent);
}

.note-page.blog-post .article-content .markdown-details {
  margin: 28px 0;
  padding: 18px 22px;
  border: 1px solid rgba(139,148,158,.22);
  border-radius: 8px;
  background: rgba(24,22,34,.5);
}

.note-page.blog-post .article-content .markdown-details summary {
  color: #8fd8ff;
  cursor: pointer;
  font: 12px/1.5 var(--mono);
}

.note-page.blog-post .article-content details[open] summary {
  color: #ffffff;
}

.note-page.blog-post .article-content .task-list-item {
  list-style: none;
  margin-left: -24px;
}

.note-page.blog-post .article-content .task-list-item input {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  accent-color: #58a6ff;
  vertical-align: -3px;
}

.note-page.blog-post .article-content .task-list-item label {
  cursor: pointer;
}

.note-page.blog-post .article-content p:has(> img:only-child) {
  max-width: none;
}

.note-page.blog-post .article-content p > img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px 0;
  border: 1px solid rgba(139,148,158,.24);
  border-radius: 6px;
}

/* Blog post single-page readability overrides */
.note-page.blog-post .article-header { margin-bottom: 28px; }
.note-page.blog-post .article-header .article-kicker {
  margin: 0 0 12px;
  color: #8b949e;
  font: 11px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.note-page.blog-post .article-header h1 {
  margin: 0 0 18px;
  color: #f0f3f6;
  font: 600 clamp(30px,4.6vw,48px)/1.15 var(--sans);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.note-page.blog-post .article-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
}

/* Colorful, well-structured TOC */
.note-page.blog-post .article-toc {
  margin: 30px 0 44px;
  border: 1px solid rgba(139,148,158,.28);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(22,27,34,.92), rgba(13,17,23,.94));
  box-shadow: 0 10px 36px rgba(0,0,0,.32);
  overflow: hidden;
}
.note-page.blog-post .article-toc summary {
  min-height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e6edf3;
  cursor: pointer;
  font: 600 13px/1.4 var(--mono);
  letter-spacing: .04em;
  list-style: none;
  background: linear-gradient(90deg, rgba(88,166,255,.16), rgba(185,167,206,.12), transparent);
  border-bottom: 1px solid rgba(139,148,158,.22);
}
.note-page.blog-post .article-toc summary::-webkit-details-marker { display: none; }
.note-page.blog-post .article-toc .toc-menu-icon { color: #58a6ff; font-size: 16px; }
.note-page.blog-post .article-toc .toc-chevron { margin-left: auto; color: #8b949e; font-size: 18px; transition: transform .2s ease; }
.note-page.blog-post .article-toc[open] .toc-chevron { transform: rotate(180deg); }
.note-page.blog-post .article-toc nav { padding: 16px 20px 18px 18px; }
.note-page.blog-post .article-toc ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.note-page.blog-post .article-toc li { line-height: 1.5; border-left: 2px solid transparent; padding-left: 12px; }
.note-page.blog-post .article-toc li[data-depth="2"] { border-left-color: #58a6ff; }
.note-page.blog-post .article-toc li[data-depth="2"] a { color: #d6e9ff; font-weight: 700; font-size: 12.5px; }
.note-page.blog-post .article-toc li[data-depth="3"] { border-left-color: #b888ff; margin-left: 10px; }
.note-page.blog-post .article-toc li[data-depth="3"] a { color: #c9b8f0; font-size: 12px; }
.note-page.blog-post .article-toc li[data-depth="4"] { border-left-color: #4ec9b0; margin-left: 20px; }
.note-page.blog-post .article-toc li[data-depth="4"] a { color: #a9ded2; font-size: 11.5px; }
.note-page.blog-post .article-toc li[data-depth="5"], .note-page.blog-post .article-toc li[data-depth="6"] { border-left-color: rgba(139,148,158,.4); margin-left: 30px; }
.note-page.blog-post .article-toc li[data-depth="5"] a, .note-page.blog-post .article-toc li[data-depth="6"] a { color: #8b949e; font-size: 11px; }
.note-page.blog-post .article-toc a { text-decoration: none; transition: color .15s ease, text-shadow .15s ease; }
.note-page.blog-post .article-toc a:hover { color: #fff; text-shadow: 0 0 10px rgba(88,166,255,.6); }
.note-page.blog-post .article-toc .toc-level-3 { padding-left: 10px; }
.note-page.blog-post .article-toc .toc-level-4 { padding-left: 20px; }
.note-page.blog-post .article-toc .toc-level-5, .note-page.blog-post .article-toc .toc-level-6 { padding-left: 30px; }

/* Emphasized, colorful content sections */
.note-page.blog-post .github-markdown h1 {
  color: #fff;
  font-size: 2em;
  margin: 12px 0 22px;
  padding-bottom: .3em;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #58a6ff, #b888ff, transparent) 1;
}
.note-page.blog-post .github-markdown h2 {
  margin: 54px 0 18px;
  padding: 10px 14px 10px 14px;
  font-size: 1.55em;
  color: #eaf4ff;
  border-left: 4px solid #58a6ff;
  border-bottom: 1px solid rgba(88,166,255,.3);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(88,166,255,.14), rgba(88,166,255,.02) 70%, transparent);
  scroll-margin-top: 120px;
}
.note-page.blog-post .github-markdown h3 {
  margin: 42px 0 14px;
  padding: 8px 12px;
  font-size: 1.28em;
  color: #e6dcfa;
  border-left: 4px solid #b888ff;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(184,136,255,.13), transparent 75%);
  scroll-margin-top: 120px;
}
.note-page.blog-post .github-markdown h4 {
  margin: 34px 0 12px;
  padding: 6px 12px;
  font-size: 1.1em;
  color: #cde9dd;
  border-left: 4px solid #4ec9b0;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(78,201,176,.12), transparent 75%);
  scroll-margin-top: 120px;
}
.note-page.blog-post .github-markdown h5, .note-page.blog-post .github-markdown h6 {
  color: #d0d7de;
  scroll-margin-top: 120px;
}
.note-page.blog-post .github-markdown > h2 + p { font-size: 1.04em; color: #d3dcea; }
.note-page.blog-post .github-markdown hr {
  height: 2px;
  margin: 52px 0;
  border: 0;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(88,166,255,.65), rgba(184,136,255,.6), transparent);
}
.note-page.blog-post .github-markdown blockquote {
  border-left: 4px solid #58a6ff;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, rgba(88,166,255,.13), rgba(88,166,255,.02));
  box-shadow: inset 0 0 40px rgba(88,166,255,.07), 0 4px 20px rgba(0,0,0,.18);
}
.note-page.blog-post .github-markdown a { color: #58a6ff; }
.note-page.blog-post .github-markdown a:hover { color: #8fd0ff; text-shadow: 0 0 10px rgba(88,166,255,.45); }
.note-page.blog-post .github-markdown li::marker { color: #58a6ff; }
.note-page.blog-post .github-markdown :not(pre) > code {
  color: #f4c8ff;
  border-color: rgba(184,136,255,.35);
  background: linear-gradient(180deg, rgba(30,24,44,.82), rgba(13,17,23,.86));
}
.note-page.blog-post .github-markdown pre {
  border-radius: 10px;
  background: rgba(9,12,20,.80);
  box-shadow: 0 10px 32px rgba(0,0,0,.35);
}
.note-page.blog-post .github-markdown table th {
  background: linear-gradient(180deg, rgba(88,166,255,.16), rgba(184,136,255,.08));
}
.note-page.blog-post .github-markdown p > img, .note-page.blog-post .github-markdown .markdown-image img {
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0,0,0,.32);
}

/* Cat-click and meow toggle fixes */
.meow-toggle > span:first-child { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; font-size: 16px; line-height: 1; }
.cat-click-image { max-width: 180px; max-height: 180px; }

@media (max-width: 640px) {
  .note-page.blog-post .article-actions { grid-template-columns: 1fr; }
  .note-page.blog-post .article-toc nav { padding: 14px 14px 16px 12px; }
}
