@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff; --bg-card: #f7f8fa; --bg-card-hover: #f2f4f7;
  --text-primary: #0f1117; --text-secondary: #5a6375; --text-muted: #9ba3b2;
  --border: rgba(0,0,0,0.08); --border-med: rgba(0,0,0,0.12);
  --accent: #2563eb; --accent-subtle: #eff4ff; --accent-muted: #93b4f8;
  --code-bg: #f3f4f6; --code-text: #1e293b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1117; --bg-card: #13161f; --bg-card-hover: #181e2a;
    --text-primary: #e8ecf2; --text-secondary: #7e8ea8; --text-muted: #3d4a5e;
    --border: rgba(255,255,255,0.07); --border-med: rgba(255,255,255,0.12);
    --accent: #5b8df5; --accent-subtle: #111827; --accent-muted: #2d4a8a;
    --code-bg: #0d1018; --code-text: #93b4f8;
  }
}

html { font-size: 16px; }
body { background: var(--bg); color: var(--text-primary); font-family: 'Inter', sans-serif; font-weight: 300; line-height: 1.6; transition: background 0.2s, color 0.2s; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }

/* ── Nav ── */
nav { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 2.5rem; border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: baseline; gap: 2px; }
.logo-main { font-family: 'Instrument Serif', serif; font-size: 20px; color: var(--text-primary); }
.logo-sup { font-family: 'Instrument Serif', serif; font-size: 13px; color: var(--accent); position: relative; top: -5px; margin-left: 1px; }
nav ul { display: flex; gap: 2rem; list-style: none; }
nav ul li a { font-size: 13px; font-weight: 400; color: var(--text-secondary); transition: color 0.15s; }
nav ul li a:hover { color: var(--text-primary); }

/* ── Homepage top ── */
.home-top { display: grid; grid-template-columns: 1fr 2fr; border-bottom: 1px solid var(--border); }
.hero-left { padding: 4rem 2.5rem 3rem; border-right: 1px solid var(--border); }
.hero-label { font-size: 12px; font-weight: 500; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-left h1 { font-family: 'Instrument Serif', serif; font-size: 38px; font-weight: 400; color: var(--text-primary); line-height: 1.2; letter-spacing: 0.01em; word-spacing: 0.05em; margin-bottom: 1.25rem; }
.hero-left h1 em { font-style: italic; color: var(--accent); }
.hero-left p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; font-weight: 300; }

/* ── Live panel ── */
.live-panel { display: flex; flex-direction: column; }
.panel-top { display: grid; grid-template-columns: auto 1fr; border-bottom: 1px solid var(--border); }
.clock-block { padding: 1.1rem 1.5rem; border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; min-width: 130px; }
.clock-time { font-family: 'Instrument Serif', serif; font-size: 28px; color: var(--text-primary); line-height: 1; margin-bottom: 3px; }
.clock-date { font-size: 11px; color: var(--text-muted); }
.status-strip { padding: 0.75rem 1.25rem; display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; align-content: center; }
.status-item { display: flex; align-items: center; gap: 0.4rem; text-decoration: none; padding: 2px 4px; border-radius: 4px; transition: background 0.15s; }
.status-item:hover { background: var(--bg-card-hover); }
.status-item:hover .sname { color: var(--accent); }
.sdot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sdot.op { background: #22c55e; }
.sdot.dg { background: #f59e0b; animation: blink 1.5s ease-in-out infinite; }
.sdot.uk { background: var(--text-muted); }
.sname { font-size: 12px; color: var(--text-secondary); transition: color 0.15s; }
.slabel { font-size: 10px; display: none; }
.slabel.dg { display: inline; color: #f59e0b; }
.slabel.uk { display: inline; color: var(--text-muted); }

/* ── Feed columns ── */
.panel-bottom { display: grid; grid-template-columns: 1fr 1fr; }
.feed-col { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.feed-col:last-child { border-right: none; }
.feed-col-header { padding: 0.6rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.feed-col-label { font-size: 10px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.feed-count { font-size: 10px; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border-med); padding: 1px 6px; border-radius: 10px; }
.feed-list { padding: 0.25rem 1.25rem; flex: 1; }
.feed-item { padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
.feed-item:last-child { border-bottom: none; }
.feed-source { font-size: 10px; color: var(--accent); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.feed-title { font-size: 12px; color: var(--text-secondary); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-title a { color: inherit; text-decoration: none; }
.feed-title a:hover { color: var(--accent); }
.panel-footer { padding: 0.5rem 1.25rem; font-size: 10px; color: var(--text-muted); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 4px; margin-top: auto; }
.udot { width: 5px; height: 5px; background: #22c55e; border-radius: 50%; animation: blink 2.5s ease-in-out infinite; }

/* ── Projects section ── */
.projects-section { padding: 2.5rem 2.5rem 3rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.section-label { font-size: 11px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.view-all { font-size: 12px; color: var(--accent); border: 1px solid var(--accent-muted); padding: 3px 10px; border-radius: 6px; transition: background 0.15s; }
.view-all:hover { background: var(--accent-subtle); }
.project-list { display: flex; flex-direction: column; gap: 1rem; }

/* ── Project cards ── */
.project-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color 0.2s, background 0.2s; cursor: pointer; }
.project-card:hover { border-color: var(--border-med); background: var(--bg-card-hover); }
.project-card.open { border-color: var(--accent-muted); }
.project-card-header { padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.65rem; }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.project-meta-row { display: flex; align-items: center; gap: 0.6rem; }
.project-tag { font-size: 11px; color: var(--accent); background: var(--accent-subtle); padding: 2px 9px; border-radius: 20px; border: 1px solid var(--accent-muted); opacity: 0.9; }
.project-date { font-size: 12px; color: var(--text-muted); }
.meta-dot { font-size: 10px; color: var(--text-muted); }
.project-chevron { font-size: 18px; color: var(--text-muted); transition: transform 0.25s ease, color 0.15s; flex-shrink: 0; }
.project-card.open .project-chevron { transform: rotate(180deg); color: var(--accent); }
.project-title { font-family: 'Instrument Serif', serif; font-size: 21px; font-weight: 400; color: var(--text-primary); line-height: 1.35; letter-spacing: 0.025em; word-spacing: 0.04em; }
.project-card.open .project-title { color: var(--accent); }
.project-synopsis { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; font-weight: 300; letter-spacing: 0.015em; }
.project-expand { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.project-card.open .project-expand { max-height: 2000px; }
.project-expand-inner { border-top: 1px solid var(--border); padding: 1.5rem 1.6rem 1.75rem; }
.project-body { font-size: 14.5px; line-height: 1.85; color: var(--text-secondary); font-weight: 300; letter-spacing: 0.015em; margin-bottom: 1.25rem; }
.project-footer-row { display: flex; align-items: center; justify-content: space-between; }
.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.project-tag-plain { font-size: 11px; color: var(--text-muted); border: 1px solid var(--border-med); padding: 2px 8px; border-radius: 20px; }
.read-full-btn { font-size: 13px; color: var(--accent); border: 1px solid var(--accent-muted); padding: 0.4rem 1rem; border-radius: 6px; background: transparent; transition: background 0.15s; white-space: nowrap; }
.read-full-btn:hover { background: var(--accent-subtle); }

/* ── Single project page ── */
.post-wrapper { max-width: 680px; margin: 0 auto; padding: 3.5rem 2.5rem 5rem; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 2.5rem; transition: color 0.15s; }
.back-link:hover { color: var(--accent); }
.post-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.post-read-time { font-size: 12px; color: var(--text-muted); }
.post-title { font-family: 'Instrument Serif', serif; font-size: 38px; font-weight: 400; color: var(--text-primary); line-height: 1.2; letter-spacing: 0.01em; word-spacing: 0.05em; margin-bottom: 1rem; }
.post-subtitle { font-size: 17px; color: var(--text-secondary); line-height: 1.7; font-weight: 300; margin-bottom: 2.5rem; }
.post-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 2.5rem; }
.post-body { font-size: 15px; line-height: 1.85; color: var(--text-secondary); font-weight: 300; letter-spacing: 0.015em; }
.post-body p { margin-bottom: 1.1rem; }
.post-body p:last-child { margin-bottom: 0; }
.post-body h2 { font-family: 'Instrument Serif', serif; font-size: 24px; font-weight: 400; color: var(--text-primary); margin: 2rem 0 0.75rem; letter-spacing: 0.025em; line-height: 1.35; }
.post-body h3 { font-size: 16px; font-weight: 500; color: var(--text-primary); margin: 1.5rem 0 0.5rem; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body code { font-family: 'Courier New', monospace; font-size: 12.5px; background: var(--code-bg); color: var(--code-text); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border-med); }
.post-body pre { background: var(--code-bg); border: 1px solid var(--border-med); border-radius: 8px; padding: 1.1rem 1.25rem; margin: 1.25rem 0; overflow-x: auto; }
.post-body pre code { background: none; border: none; padding: 0; font-size: 13px; line-height: 1.7; }
.post-body blockquote { border-left: 2px solid var(--accent); margin: 1.25rem 0; padding: 0.2rem 0 0.2rem 1.1rem; color: var(--text-muted); font-style: italic; }
.post-body ul, .post-body ol { margin: 0.75rem 0 1rem 1.5rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.post-footer-label { font-size: 12px; color: var(--text-muted); }
.next-post { text-align: right; }
.next-post p { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.next-post a { font-size: 14px; color: var(--text-primary); transition: color 0.15s; }
.next-post a:hover { color: var(--accent); }

/* ── About / page wrapper ── */
.page-wrapper { max-width: 680px; margin: 0 auto; padding: 3.5rem 2.5rem 5rem; }
.page-wrapper h1 { font-family: 'Instrument Serif', serif; font-size: 38px; font-weight: 400; color: var(--text-primary); line-height: 1.2; letter-spacing: 0.01em; word-spacing: 0.05em; margin-bottom: 0.5rem; }
.page-intro { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 2.5rem; font-weight: 300; border-bottom: 1px solid var(--border); padding-bottom: 2.5rem; }
.page-wrapper h2 { font-family: 'Instrument Serif', serif; font-size: 22px; font-weight: 400; color: var(--text-primary); letter-spacing: 0.02em; margin: 2rem 0 0.75rem; word-spacing: 0.04em; }
.page-wrapper p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; font-weight: 300; margin-bottom: 1rem; letter-spacing: 0.01em; }
.page-wrapper a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ── Stack tags ── */
.stack-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.stack-tag { font-size: 12px; color: var(--accent); background: var(--accent-subtle); border: 1px solid var(--accent-muted); padding: 3px 10px; border-radius: 20px; opacity: 0.9; }

/* ── Contact block ── */
.contact-block { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.contact-link { display: flex; align-items: center; gap: 0.75rem; font-size: 14px; color: var(--text-secondary); text-decoration: none; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); transition: border-color 0.15s, color 0.15s; max-width: 320px; }
.contact-link:hover { border-color: var(--accent-muted); color: var(--accent); text-decoration: none; }
.contact-icon { width: 16px; height: 16px; flex-shrink: 0; }
.contact-label { font-weight: 400; font-size: 13px; }
.contact-value { font-size: 12px; color: var(--text-muted); margin-left: auto; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 1.5rem 2.5rem; display: flex; justify-content: space-between; align-items: center; }
footer p { font-size: 12px; color: var(--text-muted); }
.status { display: flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: blink 2.5s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── Responsive ── */
@media (max-width: 600px) {
  nav { padding: 1rem 1.25rem; }
  .home-top { grid-template-columns: 1fr; }
  .hero-left { border-right: none; border-bottom: 1px solid var(--border); padding: 2.5rem 1.25rem; }
  .projects-section { padding: 2rem 1.25rem; }
  .post-wrapper, .page-wrapper { padding: 2.5rem 1.25rem 4rem; }
  footer { padding: 1.25rem; }
}
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff; --bg-card: #f7f8fa; --bg-card-hover: #f2f4f7;
  --text-primary: #0f1117; --text-secondary: #5a6375; --text-muted: #9ba3b2;
  --border: rgba(0,0,0,0.08); --border-med: rgba(0,0,0,0.12);
  --accent: #2563eb; --accent-subtle: #eff4ff; --accent-muted: #93b4f8;
  --code-bg: #f3f4f6; --code-text: #1e293b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1117; --bg-card: #13161f; --bg-card-hover: #181e2a;
    --text-primary: #e8ecf2; --text-secondary: #7e8ea8; --text-muted: #3d4a5e;
    --border: rgba(255,255,255,0.07); --border-med: rgba(255,255,255,0.12);
    --accent: #5b8df5; --accent-subtle: #111827; --accent-muted: #2d4a8a;
    --code-bg: #0d1018; --code-text: #93b4f8;
  }
}

html { font-size: 16px; }
body { background: var(--bg); color: var(--text-primary); font-family: 'Inter', sans-serif; font-weight: 300; line-height: 1.6; transition: background 0.2s, color 0.2s; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }

/* ── Nav ── */
nav { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 2.5rem; border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: baseline; gap: 2px; }
.logo-main { font-family: 'Instrument Serif', serif; font-size: 20px; color: var(--text-primary); }
.logo-sup { font-family: 'Instrument Serif', serif; font-size: 13px; color: var(--accent); position: relative; top: -5px; margin-left: 1px; }
nav ul { display: flex; gap: 2rem; list-style: none; }
nav ul li a { font-size: 13px; font-weight: 400; color: var(--text-secondary); transition: color 0.15s; }
nav ul li a:hover { color: var(--text-primary); }

/* ── Homepage top ── */
.home-top { display: grid; grid-template-columns: 1fr 2fr; border-bottom: 1px solid var(--border); }
.hero-left { padding: 4rem 2.5rem 3rem; border-right: 1px solid var(--border); }
.hero-label { font-size: 12px; font-weight: 500; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-left h1 { font-family: 'Instrument Serif', serif; font-size: 38px; font-weight: 400; color: var(--text-primary); line-height: 1.2; letter-spacing: 0.01em; word-spacing: 0.05em; margin-bottom: 1.25rem; }
.hero-left h1 em { font-style: italic; color: var(--accent); }
.hero-left p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; font-weight: 300; }

/* ── Live panel ── */
.live-panel { display: flex; flex-direction: column; }
.panel-top { display: grid; grid-template-columns: auto 1fr; border-bottom: 1px solid var(--border); }
.clock-block { padding: 1.1rem 1.5rem; border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; min-width: 130px; }
.clock-time { font-family: 'Instrument Serif', serif; font-size: 28px; color: var(--text-primary); line-height: 1; margin-bottom: 3px; }
.clock-date { font-size: 11px; color: var(--text-muted); }
.status-strip { padding: 0.75rem 1.25rem; display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; align-content: center; }
.status-item { display: flex; align-items: center; gap: 0.4rem; text-decoration: none; padding: 2px 4px; border-radius: 4px; transition: background 0.15s; }
.status-item:hover { background: var(--bg-card-hover); }
.status-item:hover .sname { color: var(--accent); }
.sdot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sdot.op { background: #22c55e; }
.sdot.dg { background: #f59e0b; animation: blink 1.5s ease-in-out infinite; }
.sdot.uk { background: var(--text-muted); }
.sname { font-size: 12px; color: var(--text-secondary); transition: color 0.15s; }
.slabel { font-size: 10px; display: none; }
.slabel.dg { display: inline; color: #f59e0b; }
.slabel.uk { display: inline; color: var(--text-muted); }

/* ── Feed columns ── */
.panel-bottom { display: grid; grid-template-columns: 1fr 1fr; }
.feed-col { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.feed-col:last-child { border-right: none; }
.feed-col-header { padding: 0.6rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.feed-col-label { font-size: 10px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.feed-count { font-size: 10px; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border-med); padding: 1px 6px; border-radius: 10px; }
.feed-list { padding: 0.25rem 1.25rem; flex: 1; }
.feed-item { padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
.feed-item:last-child { border-bottom: none; }
.feed-source { font-size: 10px; color: var(--accent); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.feed-title { font-size: 12px; color: var(--text-secondary); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-title a { color: inherit; text-decoration: none; }
.feed-title a:hover { color: var(--accent); }
.panel-footer { padding: 0.5rem 1.25rem; font-size: 10px; color: var(--text-muted); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 4px; margin-top: auto; }
.udot { width: 5px; height: 5px; background: #22c55e; border-radius: 50%; animation: blink 2.5s ease-in-out infinite; }

/* ── Projects section ── */
.projects-section { padding: 2.5rem 2.5rem 3rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.section-label { font-size: 11px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.view-all { font-size: 12px; color: var(--accent); border: 1px solid var(--accent-muted); padding: 3px 10px; border-radius: 6px; transition: background 0.15s; }
.view-all:hover { background: var(--accent-subtle); }
.project-list { display: flex; flex-direction: column; gap: 1rem; }

/* ── Project cards ── */
.project-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color 0.2s, background 0.2s; cursor: pointer; }
.project-card:hover { border-color: var(--border-med); background: var(--bg-card-hover); }
.project-card.open { border-color: var(--accent-muted); }
.project-card-header { padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.65rem; }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.project-meta-row { display: flex; align-items: center; gap: 0.6rem; }
.project-tag { font-size: 11px; color: var(--accent); background: var(--accent-subtle); padding: 2px 9px; border-radius: 20px; border: 1px solid var(--accent-muted); opacity: 0.9; }
.project-date { font-size: 12px; color: var(--text-muted); }
.meta-dot { font-size: 10px; color: var(--text-muted); }
.project-chevron { font-size: 18px; color: var(--text-muted); transition: transform 0.25s ease, color 0.15s; flex-shrink: 0; }
.project-card.open .project-chevron { transform: rotate(180deg); color: var(--accent); }
.project-title { font-family: 'Instrument Serif', serif; font-size: 21px; font-weight: 400; color: var(--text-primary); line-height: 1.35; letter-spacing: 0.025em; word-spacing: 0.04em; }
.project-card.open .project-title { color: var(--accent); }
.project-synopsis { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; font-weight: 300; letter-spacing: 0.015em; }
.project-expand { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.project-card.open .project-expand { max-height: 2000px; }
.project-expand-inner { border-top: 1px solid var(--border); padding: 1.5rem 1.6rem 1.75rem; }
.project-body { font-size: 14.5px; line-height: 1.85; color: var(--text-secondary); font-weight: 300; letter-spacing: 0.015em; margin-bottom: 1.25rem; }
.project-footer-row { display: flex; align-items: center; justify-content: space-between; }
.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.project-tag-plain { font-size: 11px; color: var(--text-muted); border: 1px solid var(--border-med); padding: 2px 8px; border-radius: 20px; }
.read-full-btn { font-size: 13px; color: var(--accent); border: 1px solid var(--accent-muted); padding: 0.4rem 1rem; border-radius: 6px; background: transparent; transition: background 0.15s; white-space: nowrap; }
.read-full-btn:hover { background: var(--accent-subtle); }

/* ── Single project page ── */
.post-wrapper { max-width: 680px; margin: 0 auto; padding: 3.5rem 2.5rem 5rem; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 2.5rem; transition: color 0.15s; }
.back-link:hover { color: var(--accent); }
.post-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.post-read-time { font-size: 12px; color: var(--text-muted); }
.post-title { font-family: 'Instrument Serif', serif; font-size: 38px; font-weight: 400; color: var(--text-primary); line-height: 1.2; letter-spacing: 0.01em; word-spacing: 0.05em; margin-bottom: 1rem; }
.post-subtitle { font-size: 17px; color: var(--text-secondary); line-height: 1.7; font-weight: 300; margin-bottom: 2.5rem; }
.post-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 2.5rem; }
.post-body { font-size: 15px; line-height: 1.85; color: var(--text-secondary); font-weight: 300; letter-spacing: 0.015em; }
.post-body p { margin-bottom: 1.1rem; }
.post-body p:last-child { margin-bottom: 0; }
.post-body h2 { font-family: 'Instrument Serif', serif; font-size: 24px; font-weight: 400; color: var(--text-primary); margin: 2rem 0 0.75rem; letter-spacing: 0.025em; line-height: 1.35; }
.post-body h3 { font-size: 16px; font-weight: 500; color: var(--text-primary); margin: 1.5rem 0 0.5rem; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body code { font-family: 'Courier New', monospace; font-size: 12.5px; background: var(--code-bg); color: var(--code-text); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border-med); }
.post-body pre { background: var(--code-bg); border: 1px solid var(--border-med); border-radius: 8px; padding: 1.1rem 1.25rem; margin: 1.25rem 0; overflow-x: auto; }
.post-body pre code { background: none; border: none; padding: 0; font-size: 13px; line-height: 1.7; }
.post-body blockquote { border-left: 2px solid var(--accent); margin: 1.25rem 0; padding: 0.2rem 0 0.2rem 1.1rem; color: var(--text-muted); font-style: italic; }
.post-body ul, .post-body ol { margin: 0.75rem 0 1rem 1.5rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.post-footer-label { font-size: 12px; color: var(--text-muted); }
.next-post { text-align: right; }
.next-post p { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.next-post a { font-size: 14px; color: var(--text-primary); transition: color 0.15s; }
.next-post a:hover { color: var(--accent); }

/* ── About / page wrapper ── */
.page-wrapper { max-width: 680px; margin: 0 auto; padding: 3.5rem 2.5rem 5rem; }
.page-wrapper h1 { font-family: 'Instrument Serif', serif; font-size: 38px; font-weight: 400; color: var(--text-primary); line-height: 1.2; letter-spacing: 0.01em; word-spacing: 0.05em; margin-bottom: 0.5rem; }
.page-intro { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 2.5rem; font-weight: 300; border-bottom: 1px solid var(--border); padding-bottom: 2.5rem; }
.page-wrapper h2 { font-family: 'Instrument Serif', serif; font-size: 22px; font-weight: 400; color: var(--text-primary); letter-spacing: 0.02em; margin: 2rem 0 0.75rem; word-spacing: 0.04em; }
.page-wrapper p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; font-weight: 300; margin-bottom: 1rem; letter-spacing: 0.01em; }
.page-wrapper a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ── Stack tags ── */
.stack-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.stack-tag { font-size: 12px; color: var(--accent); background: var(--accent-subtle); border: 1px solid var(--accent-muted); padding: 3px 10px; border-radius: 20px; opacity: 0.9; }

/* ── Contact block ── */
.contact-block { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.contact-link { display: flex; align-items: center; gap: 0.75rem; font-size: 14px; color: var(--text-secondary); text-decoration: none; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); transition: border-color 0.15s, color 0.15s; max-width: 320px; }
.contact-link:hover { border-color: var(--accent-muted); color: var(--accent); text-decoration: none; }
.contact-icon { width: 16px; height: 16px; flex-shrink: 0; }
.contact-label { font-weight: 400; font-size: 13px; }
.contact-value { font-size: 12px; color: var(--text-muted); margin-left: auto; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 1.5rem 2.5rem; display: flex; justify-content: space-between; align-items: center; }
footer p { font-size: 12px; color: var(--text-muted); }
.status { display: flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: blink 2.5s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── Responsive ── */
@media (max-width: 600px) {
  nav { padding: 1rem 1.25rem; }
  .home-top { grid-template-columns: 1fr; }
  .hero-left { border-right: none; border-bottom: 1px solid var(--border); padding: 2.5rem 1.25rem; }
  .projects-section { padding: 2rem 1.25rem; }
  .post-wrapper, .page-wrapper { padding: 2.5rem 1.25rem 4rem; }
  footer { padding: 1.25rem; }
}

/* ── About page stats ── */
.stats-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin: 1rem 0 2.5rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.25rem; }
.stat-label { font-size: 10px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; font-family: 'JetBrains Mono', monospace; }
.stat-value { font-family: 'Instrument Serif', serif; font-size: 28px; color: var(--text-primary); line-height: 1; margin-bottom: 0.3rem; }
.stat-sub { font-size: 11px; color: var(--text-muted); margin-bottom: 0.6rem; }
.stat-live { display: flex; align-items: center; gap: 4px; margin-top: 0.5rem; font-size: 10px; color: var(--text-muted); }
.live-dot { width: 5px; height: 5px; background: #22c55e; border-radius: 50%; animation: blink 2s ease-in-out infinite; }

/* ── Terminal ── */
.terminal { background: #0a0c10; border: 1px solid var(--border-med); border-radius: 10px; overflow: hidden; font-family: 'JetBrains Mono', 'Courier New', monospace; }
.terminal-bar { background: #1a1d26; padding: 0.6rem 1rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--border); }
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #ffbd2e; }
.t-dot.green { background: #28c840; }
.terminal-title { font-size: 12px; color: var(--text-muted); margin: 0 auto; }
.terminal-body { padding: 1.1rem 1.5rem; min-height: 480px; max-height: 580px; overflow-y: auto; font-size: 13px; line-height: 1.7; }
.t-line { margin-bottom: 1px; }
.t-prompt { color: var(--accent); }
.t-output { color: var(--text-secondary); }
.t-dim { color: var(--text-muted); }
.t-green { color: #28c840; }
.t-input-row { display: flex; align-items: center; gap: 0.5rem; padding: 0 1.5rem 1rem; }
.t-input { background: transparent; border: none; outline: none; color: var(--text-primary); font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 13px; flex: 1; caret-color: var(--accent); }
.t-hint { margin-top: 1rem; padding: 0.65rem 1rem; background: var(--bg-card); border-radius: 6px; border: 1px solid var(--border); font-size: 11px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.t-hint span { color: var(--accent); }
.about-body { font-size: 15px; color: var(--text-secondary); line-height: 1.8; font-weight: 300; margin-bottom: 1rem; }
