@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500&family=Geist+Mono:wght@300;400&display=swap');

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

/* ── colour tokens ── */
:root {
  --bg:           #242c38;
  --text:         #c9d1d9;
  --text-strong:  #e6edf3;
  --text-muted:   #8b949e;
  --text-faint:   #506070;
  --border:       #2e3a48;
  --border-soft:  #364050;
  --accent:       #00ff88;
  --accent-dim:   #00cc6a;
  --scan-color:   rgba(0, 255, 136, .55);
  --grid-color:   rgba(0, 255, 136, .022);
  --badge-green-text:   #00ff88;
  --badge-green-border: rgba(0,255,136,.3);
  --badge-green-bg:     rgba(0,255,136,.07);
  --badge-blue-text:    #58a6ff;
  --badge-blue-border:  rgba(88,166,255,.3);
  --badge-blue-bg:      rgba(88,166,255,.07);
  --badge-orange-text:  #e3b341;
  --badge-orange-border:rgba(227,179,65,.3);
  --badge-orange-bg:    rgba(227,179,65,.07);
  --badge-red-text:     #f85149;
  --badge-red-border:   rgba(248,81,73,.3);
  --badge-red-bg:       rgba(248,81,73,.07);
  --code-bg:      #1a2030;
  --pre-bg:       #161e2a;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:           #f0f4f8;
    --text:         #2d3748;
    --text-strong:  #1a202c;
    --text-muted:   #718096;
    --text-faint:   #a0aec0;
    --border:       #dde3ea;
    --border-soft:  #cbd5e0;
    --accent:       #00873f;
    --accent-dim:   #00873f;
    --scan-color:   rgba(0, 135, 63, .7);
    --grid-color:   rgba(0, 150, 80, .04);
    --badge-green-text:   #00873f;
    --badge-green-border: rgba(0,135,63,.3);
    --badge-green-bg:     rgba(0,135,63,.07);
    --badge-blue-text:    #1a65c4;
    --badge-blue-border:  rgba(26,101,196,.3);
    --badge-blue-bg:      rgba(26,101,196,.07);
    --badge-orange-text:  #b45309;
    --badge-orange-border:rgba(180,83,9,.3);
    --badge-orange-bg:    rgba(180,83,9,.07);
    --badge-red-text:     #c0392b;
    --badge-red-border:   rgba(192,57,43,.3);
    --badge-red-bg:       rgba(192,57,43,.07);
    --code-bg:      #e8edf3;
    --pre-bg:       #e2e8f0;
  }
}

/* ── base ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page {
  padding: 80px 48px 100px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/*.wrap { max-width: 520px; position: relative; }
*/
.wrap { max-width: 520px; position: relative; margin: 0 auto; }
/* ── grid + scan ── */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.scan {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--scan-color), transparent);
  animation: scan 6s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes scan {
  0%   { top: 0;    opacity: 1; }
  95%  { opacity: .5; }
  100% { top: 100vh; opacity: 0; }
}

/* ── header ── */
.head {
  margin-bottom: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.av {
  width: 48px; height: 48px; border-radius: 6px;
  flex-shrink: 0; margin-top: 2px;
  border: 1px solid var(--border-soft);
  filter: grayscale(10%);
}
.nm {
  font-size: 20px; font-weight: 500;
  color: var(--text-strong); letter-spacing: -0.3px; margin-bottom: 5px;
}
.handle {
  font-size: 13px; font-family: 'Geist Mono', monospace; font-weight: 300;
  color: var(--text-muted); margin-bottom: 10px;
}

.head-simple { margin-bottom: 48px; }
.back {
  display: inline-block; margin-bottom: 16px;
  font-size: 12px; font-family: 'Geist Mono', monospace;
  color: var(--text-muted); text-decoration: none;
  transition: color .15s;
}
.back:hover { color: var(--text-strong); }
.head-simple .nm {
  font-size: 17px; font-weight: 400;
  color: var(--text-muted); letter-spacing: 0;
}

/* ── badges ── */
.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge {
  font-size: 11px; font-family: 'Geist Mono', monospace; font-weight: 300;
  padding: 2px 8px; border-radius: 20px; border: 1px solid;
}
.b-green  { color: var(--badge-green-text);  border-color: var(--badge-green-border);  background: var(--badge-green-bg); }
.b-blue   { color: var(--badge-blue-text);   border-color: var(--badge-blue-border);   background: var(--badge-blue-bg); }
.b-orange { color: var(--badge-orange-text); border-color: var(--badge-orange-border); background: var(--badge-orange-bg); }
.b-red    { color: var(--badge-red-text);    border-color: var(--badge-red-border);    background: var(--badge-red-bg); }

/* ── bio ── */
.bio { font-size: 14px; color: var(--text-muted); margin-bottom: 48px; line-height: 1.75; }

/* ── section ── */
.sec { margin-bottom: 44px; }
.sl {
  font-size: 11px; font-family: 'Geist Mono', monospace; font-weight: 300;
  color: var(--accent-dim); letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.sl::after { content: ''; flex: 1; height: 1px; background: color-mix(in srgb, var(--accent) 15%, transparent); }

/* ── post list ── */
.pl { list-style: none; }
.pl li {
  padding: 11px 0; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.pl li:first-child { border-top: 1px solid var(--border); }
.pl a {
  text-decoration: none; color: var(--text); font-size: 14px; font-weight: 400;
  transition: color .15s; display: flex; align-items: center; gap: 8px;
}
.pl a:hover { color: var(--accent); }
.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot-green  { background: var(--badge-green-text); }
.dot-blue   { background: var(--badge-blue-text); }
.dot-orange { background: var(--badge-orange-text); }
.st {
  font-size: 11px; font-family: 'Geist Mono', monospace;
  color: var(--text-faint); text-align: right; line-height: 1.6; flex-shrink: 0;
}
.empty { font-size: 13px; color: var(--text-faint); }

.more {
  display: inline-block; margin-top: 16px;
  font-size: 12px; font-family: 'Geist Mono', monospace;
  color: var(--text-muted); text-decoration: none;
  border-bottom: 1px solid var(--border); padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.more:hover { color: var(--text-strong); border-color: var(--text-muted); }

/* ── contact ── */
.cl { display: flex; flex-wrap: wrap; }
.cl a {
  font-size: 13px; font-family: 'Geist Mono', monospace; font-weight: 300;
  color: var(--text-muted); text-decoration: none;
  margin-right: 20px; margin-bottom: 4px;
  transition: color .15s;
}
.cl a:hover { color: var(--text-strong); }

/* ── article ── */
.post { margin-bottom: 56px; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.post-date { font-size: 12px; font-family: 'Geist Mono', monospace; color: var(--text-faint); }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-title {
  font-size: 22px; font-weight: 500; color: var(--text-strong);
  letter-spacing: -0.4px; line-height: 1.3; margin-bottom: 36px;
}
.post-body { color: var(--text); line-height: 1.85; }

.post-body h2 { font-size: 17px; font-weight: 500; color: var(--text-strong); margin: 2em 0 0.6em; }
.post-body h3 { font-size: 15px; font-weight: 500; color: var(--text-strong); margin: 1.6em 0 0.5em; }
.post-body p  { margin-bottom: 1em; }
.post-body a  { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); transition: border-color .15s; }
.post-body a:hover { border-color: var(--accent); }
.post-body ul, .post-body ol { padding-left: 1.4em; margin-bottom: 1em; }
.post-body li { margin-bottom: 0.3em; }
.post-body blockquote {
  border-left: 2px solid var(--border-soft); padding-left: 16px;
  color: var(--text-muted); margin: 1.5em 0;
}
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
.post-body img { max-width: 100%; border-radius: 4px; margin: 1em 0; }
.post-body pre {
  background: var(--pre-bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 16px; overflow-x: auto;
  margin: 1.2em 0; font-size: 13px; line-height: 1.6;
}
.post-body code {
  font-family: 'Geist Mono', monospace; font-size: 13px;
  background: var(--code-bg); padding: 1px 5px; border-radius: 3px;
  color: var(--badge-green-text);
}
.post-body pre code { background: none; padding: 0; color: var(--text); }

/* ── post nav ── */
.post-nav {
  display: flex; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  margin-bottom: 48px; gap: 16px;
}
.post-nav a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color .15s; }
.post-nav a:hover { color: var(--text-strong); }
.nav-next { text-align: right; }

/* ── footer ── */
.ft {
  margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 11px; font-family: 'Geist Mono', monospace; color: var(--text-faint);
  display: flex; justify-content: space-between; align-items: center;
}
.status { display: flex; align-items: center; gap: 6px; }
.sdot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ── responsive ── */
@media (max-width: 600px) {
  .page { padding: 48px 24px 72px; }
}
