:root {
  --ink: #0f0f0f;
  --ink2: #3a3a3a;
  --ink3: #888;
  --paper: #faf8f4;
  --paper2: #f2efe9;
  --paper3: #e8e4dc;
  --rule: #d8d3cb;
  --blue: #1a4fff;
  --blue-bg: #eef2ff;
  --green: #0d8a5e;
  --green-bg: #e6f7f1;
  --amber: #b8530a;
  --amber-bg: #fef4ec;
  --purple-bg: #f3f0ff;
  --purple: #7c3aed;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Geist', sans-serif; background: var(--paper); color: var(--ink); min-height: 100vh; }

/* TOP BAR */
.topbar { border-bottom: 1px solid var(--rule); padding: 0 48px; display: flex; align-items: center; justify-content: space-between; height: 54px; background: var(--paper); position: sticky; top: 0; z-index: 100; }
.logo { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: 0.04em; }
.logo span { color: var(--ink3); }
.topnav { display: flex; gap: 28px; list-style: none; }
.topnav a { font-size: 13px; color: var(--ink3); text-decoration: none; font-weight: 400; transition: color .15s; }
.topnav a:hover, .topnav a.active { color: var(--ink); }
.nav-status { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--green); font-family: 'DM Mono', monospace; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* LAYOUT */
.page { max-width: 1280px; margin: 0 auto; padding: 0 48px; display: grid; grid-template-columns: 260px 1fr; gap: 0; }

/* LEFT RAIL */
.rail { border-right: 1px solid var(--rule); padding: 48px 40px 48px 0; position: sticky; top: 54px; height: calc(100vh - 54px); overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.avatar-wrap { margin-bottom: 20px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(140deg, #1a4fff 0%, #0d8a5e 100%); display: flex; align-items: center; justify-content: center; font-family: 'Instrument Serif', serif; font-size: 22px; color: white; letter-spacing: -0.02em; }
.author-name { font-family: 'Instrument Serif', serif; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 6px; margin-top: 14px; }
.author-line { font-size: 13px; color: var(--ink3); line-height: 1.6; margin-bottom: 24px; max-width: 200px; }
.location-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-family: 'DM Mono', monospace; color: var(--ink3); background: var(--paper2); border: 1px solid var(--rule); border-radius: 4px; padding: 5px 9px; margin-bottom: 32px; }
.location-pill svg { width: 11px; height: 11px; stroke: var(--ink3); fill: none; stroke-width: 2; }
.sidenav { list-style: none; margin-bottom: 36px; }
.sidenav li { border-top: 1px solid var(--rule); }
.sidenav li:last-child { border-bottom: 1px solid var(--rule); }
.sidenav a { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 13px; color: var(--ink2); text-decoration: none; font-weight: 400; transition: color .15s; }
.sidenav a:hover, .sidenav a.active { color: var(--ink); }
.sidenav a svg { width: 12px; height: 12px; stroke: var(--ink3); fill: none; stroke-width: 2; opacity: 0; transition: opacity .15s; }
.sidenav a:hover svg, .sidenav a.active svg { opacity: 1; }
.side-section { margin-bottom: 28px; }
.side-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink3); font-family: 'DM Mono', monospace; margin-bottom: 12px; font-weight: 500; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11px; font-family: 'DM Mono', monospace; color: var(--ink2); background: var(--paper2); border: 1px solid var(--rule); border-radius: 3px; padding: 4px 8px; transition: background .15s, border-color .15s; }
.chip:hover { background: var(--paper3); border-color: #c0bab0; }
.now-list { display: flex; flex-direction: column; gap: 11px; }
.now-item { display: flex; flex-direction: column; gap: 2px; }
.now-key { font-size: 11px; font-family: 'DM Mono', monospace; color: var(--blue); font-weight: 500; }
.now-val { font-size: 12px; color: var(--ink3); line-height: 1.4; }

/* MAIN */
.main { padding: 48px 0 80px 56px; }

/* HERO */
.hero { margin-bottom: 64px; padding-bottom: 56px; border-bottom: 1px solid var(--rule); }
.hero-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink3); font-family: 'DM Mono', monospace; margin-bottom: 18px; }
.hero-headline { font-family: 'Instrument Serif', serif; font-size: 62px; line-height: 1.05; letter-spacing: -0.03em; max-width: 780px; margin-bottom: 22px; font-weight: 400; }
.hero-headline em { font-style: italic; color: var(--ink2); }
.hero-sub { font-size: 16px; color: var(--ink3); max-width: 520px; line-height: 1.7; font-weight: 300; }

/* SECTION */
.sec-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.sec-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink3); font-family: 'DM Mono', monospace; font-weight: 500; }
.sec-link { font-size: 12px; color: var(--blue); text-decoration: none; font-weight: 400; }
.sec-link:hover { text-decoration: underline; }

/* POSTS */
.posts { margin-bottom: 64px; padding-bottom: 56px; border-bottom: 1px solid var(--rule); }
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.post { padding: 28px 0; border-bottom: 1px solid var(--rule); cursor: pointer; transition: opacity .15s; text-decoration: none; color: inherit; display: block; }
.post:hover { opacity: .72; }
.post:nth-child(odd) { padding-right: 36px; border-right: 1px solid var(--rule); }
.post:nth-child(even) { padding-left: 36px; }
.post-cat { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; font-family: 'DM Mono', monospace; font-weight: 500; padding: 4px 8px; border-radius: 3px; margin-bottom: 16px; }
.cat-field { color: var(--blue); background: var(--blue-bg); }
.cat-life  { color: var(--green); background: var(--green-bg); }
.cat-ai    { color: var(--purple); background: var(--purple-bg); }
.cat-dev   { color: var(--amber); background: var(--amber-bg); }
.post-title { font-family: 'Instrument Serif', serif; font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 10px; font-weight: 400; color: var(--ink); }
.post-desc { font-size: 13px; color: var(--ink3); line-height: 1.6; margin-bottom: 18px; font-weight: 300; }
.post-meta { display: flex; gap: 16px; font-size: 11px; color: var(--ink3); font-family: 'DM Mono', monospace; }
.posts-empty { padding: 40px 0; color: var(--ink3); font-size: 14px; }

/* JOURNAL */
.journal { margin-bottom: 64px; padding-bottom: 56px; border-bottom: 1px solid var(--rule); }
.journal-entries { display: flex; flex-direction: column; }
.entry { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.entry:first-child { border-top: 1px solid var(--rule); }
.entry-date { font-size: 12px; font-family: 'DM Mono', monospace; color: var(--ink3); padding-top: 2px; font-weight: 400; }
.entry-body { font-size: 14px; color: var(--ink2); line-height: 1.7; font-weight: 300; }

/* QUOTE */
.quote-block { margin-bottom: 64px; }
.big-quote { font-family: 'Instrument Serif', serif; font-size: 36px; line-height: 1.4; letter-spacing: -0.02em; font-weight: 400; font-style: italic; color: var(--ink2); max-width: 640px; padding-left: 24px; border-left: 2px solid var(--ink); }

/* ARTICLE (single post) */
.article-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink3); font-family: 'DM Mono', monospace; margin-bottom: 18px; }
.article-eyebrow a { color: var(--blue); text-decoration: none; }
.article-title { font-family: 'Instrument Serif', serif; font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px; max-width: 800px; font-weight: 400; }
.article-meta { display: flex; gap: 16px; font-size: 12px; color: var(--ink3); font-family: 'DM Mono', monospace; margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.prose { max-width: 740px; font-size: 17px; line-height: 1.8; color: var(--ink2); font-weight: 300; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: 'Instrument Serif', serif; color: var(--ink); margin: 36px 0 14px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 400; }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }
.prose h4 { font-size: 18px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 14px 0 18px 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue); text-decoration: none; border-bottom: 1px solid #c2cfff; }
.prose a:hover { border-bottom-color: var(--blue); }
.prose blockquote { padding: 6px 18px; border-left: 2px solid var(--ink); color: var(--ink2); font-style: italic; margin: 22px 0; }
.prose code { background: var(--paper2); border: 1px solid var(--rule); border-radius: 3px; padding: 1px 5px; font-family: 'DM Mono', monospace; font-size: 14px; }
.prose pre { background: var(--paper2); border: 1px solid var(--rule); border-radius: 6px; padding: 16px; overflow-x: auto; margin: 18px 0; font-family: 'DM Mono', monospace; font-size: 13.5px; line-height: 1.6; }
.prose pre code { background: none; border: none; padding: 0; font-size: 13.5px; }
.prose img { max-width: 100%; border-radius: 8px; margin: 22px 0; }

/* FOOTER */
footer { padding-top: 32px; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink3); font-family: 'DM Mono', monospace; }
footer a { color: var(--ink3); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .topbar, .page { padding-left: 24px; padding-right: 24px; }
  .page { grid-template-columns: 1fr; }
  .rail { position: relative; top: 0; height: auto; border-right: none; border-bottom: 1px solid var(--rule); padding: 32px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .main { padding: 36px 0 60px; }
  .hero-headline { font-size: 42px; }
  .article-title { font-size: 34px; }
  .posts-grid { grid-template-columns: 1fr; }
  .post:nth-child(odd), .post:nth-child(even) { padding-left: 0; padding-right: 0; border-right: none; }
  .topnav { display: none; }
}
@media (max-width: 640px) {
  .topbar, .page { padding-left: 16px; padding-right: 16px; }
  .hero-headline { font-size: 34px; }
  .article-title { font-size: 28px; }
  .big-quote { font-size: 26px; }
  .rail { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; gap: 6px; }
}
