@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,300;1,9..144,400&display=swap');

/* ── TOKENS ── */
:root {
  --bg: #080808;
  --bg2: #0e0e0e;
  --bg3: #141414;
  --border: #1c1c1c;
  --border2: #242424;
  --t1: #ffffff;
  --t2: #e0e0e0;
  --t3: #b0b0b0;
  --t4: #808080;
  --gold: #d4af6a;
  --gold2: rgba(212,175,106,.1);
  --gold3: rgba(212,175,106,.05);
  --green: #6db87a;
  --red: #c46b6b;
  --mono: 'JetBrains Mono', monospace;
  --serif: 'Fraunces', serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--t2);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--mono); }
::selection { background: var(--gold2); color: var(--t1); }

/* ── HIDDEN ── */
.hidden { display: none !important; }

/* ── SCANLINES ── */
.scanlines {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 9000;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.03) 2px,
    rgba(0,0,0,.03) 4px
  );
}

/* ── NOISE ── */
.noise {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 8999; opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── BOOT ── */
#boot-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.boot-inner { max-width: 400px; width: 90%; }
.boot-line {
  font-size: 12px; color: var(--t3); margin-bottom: 6px;
  opacity: 0; transition: opacity .2s;
}
.boot-line.show { opacity: 1; }
.boot-progress {
  height: 1px; background: var(--border2); margin-top: 1.5rem; overflow: hidden;
}
#boot-bar {
  height: 100%; background: var(--gold); width: 0%;
  transition: width .8s ease;
}

/* ── READING BAR ── */
#reading-bar {
  position: fixed; top: 0; left: 0; height: 1px;
  background: var(--gold); z-index: 1000; width: 0%;
  transition: width .08s linear;
}

/* ── HEADER ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 2.5rem;
  background: rgba(8,8,8,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-left { display: flex; align-items: center; gap: 1rem; }
.header-sig {
  font-size: 13px; color: var(--t3); letter-spacing: .04em; cursor: pointer;
  transition: color .2s;
}
.header-sig:hover { color: var(--t2); }
.header-crumb { font-size: 11px; color: var(--t4); letter-spacing: .06em; }
nav { display: flex; gap: 2rem; }
.nav-a {
  font-size: 11px; color: var(--t4); cursor: pointer; letter-spacing: .08em;
  transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav-a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width .2s;
}
.nav-a:hover, .nav-a.active { color: var(--t2); }
.nav-a.active::after { width: 100%; }

/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; }
#app { padding-top: 56px; }
main,
#page-projects,
#page-project-article,
#page-about {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ── TERMINAL PREFIX ── */
.terminal-prefix {
  font-size: 11px; color: var(--t4); margin-bottom: 1.4rem;
  letter-spacing: .04em;
}

/* ── HERO ── */
.hero-section { margin-bottom: 4rem; }

.glitch-name {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 300;
  color: var(--t1);
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: .5rem;
  position: relative;
  display: inline-block;
}
.glitch-name::before,
.glitch-name::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%;
}
.glitch-name::before {
  opacity: .7; color: var(--gold);
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
  animation: glitch-a 3s steps(1) infinite;
}
.glitch-name::after {
  opacity: .7; color: var(--red);
  clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%);
  animation: glitch-b 4s steps(1) infinite;
}
@keyframes glitch-a { 0%,100%{transform:translate(-2px,0)} 50%{transform:translate(2px,-1px)} }
@keyframes glitch-b { 0%,100%{transform:translate(2px,0)} 50%{transform:translate(-2px,1px)} }

.hero-tagline {
  font-size: 16px; color: var(--t2); margin-bottom: 2rem;
  font-style: italic; letter-spacing: .02em;
}

/* ── LIVE BAR ── */
.live-bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg2);
  margin-bottom: 2rem;
  font-size: 11px;
}
.live-item { display: flex; flex-direction: column; }
.live-label { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--t4); }
.live-val { color: var(--t2); }
.live-sep { color: var(--border2); }

/* ── NOW BLOCK ── */
.now-block { margin-bottom: 2rem; }
.now-row { display: flex; gap: 1.5rem; padding: .25rem 0; font-size: 12px; }
.nk { color: var(--t4); min-width: 70px; }
.nv { color: var(--t2); }
.dot-live {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); margin-right: 5px; vertical-align: middle;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.2} }

/* ── SOCIAL ── */
.social-row { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.soc-link {
  font-size: 11px; color: var(--t4); letter-spacing: .08em;
  transition: color .2s; position: relative;
}
.soc-link:hover { color: var(--t1); }

/* ── SECTIONS ── */
.section { margin-bottom: 3.5rem; }
.section-hdr {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1.2rem; padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}
.sh-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--t4); }
.sh-sub { font-size: 10px; color: var(--t4); }
.sh-link { font-size: 11px; color: var(--t3); cursor: pointer; transition: color .2s; }
.sh-link:hover { color: var(--t2); }

/* ── GITHUB STRIP ── */
.gh-strip { margin-bottom: .8rem; }
.gh-day {
  border-radius: 2px;
  background: var(--bg3); border: 1px solid var(--border);
  cursor: pointer; transition: opacity .1s;
}
.gh-day:hover { opacity: .75; }
.gh-empty { background: transparent; border-color: transparent; cursor: default; pointer-events: none; }
.gh-day.l1 { background: #1a3a21; border-color: #1a3a21; }
.gh-day.l2 { background: #2d6b38; border-color: #2d6b38; }
.gh-day.l3 { background: #4a9a58; border-color: #4a9a58; }
.gh-day.l4 { background: var(--green); border-color: var(--green); }
.gh-loading { font-size: 11px; color: var(--t4); }
.gh-stats { display: flex; gap: 1.5rem; font-size: 11px; color: var(--t4); }
.gh-stat-val { color: var(--t2); }

/* ── GITHUB TOOLTIP ── */
.gh-tip {
  display: none;
  position: fixed;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 8px 11px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t2);
  z-index: 9000;
  max-width: 260px;
  line-height: 1.6;
  pointer-events: none;
}
.gh-tip-date { font-size: 10px; color: var(--t4); margin-bottom: 2px; }
.gh-tip-count { color: var(--t1); margin-bottom: 4px; }
.gh-tip-evs { color: var(--t3); border-top: 1px solid var(--border); padding-top: 4px; margin-top: 2px; }

/* ── POST FEED ── */
.post-feed { display: flex; flex-direction: column; }
.post-item {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1.5rem; padding: .7rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.post-item:last-child { border: none; }
.post-item:hover .pt { color: var(--t1); }
.pt { color: var(--t2); font-size: 13px; flex: 1; transition: color .15s; }
.p-tag {
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-right: 8px; opacity: .8;
}
.pd { font-size: 11px; color: var(--t4); flex-shrink: 0; }
.p-views { font-size: 10px; color: var(--t4); margin-left: .5rem; }

/* ── FILTER TAGS ── */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.ftag {
  font-size: 10px; letter-spacing: .08em; color: var(--t4);
  border: 1px solid var(--border); border-radius: 2px; padding: 3px 10px;
  cursor: pointer; transition: all .15s; background: none;
}
.ftag:hover, .ftag.active { border-color: var(--gold); color: var(--gold); }

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 3rem; }
.page-title {
  font-family: var(--serif); font-size: clamp(1.6rem,4vw,2.2rem);
  font-weight: 300; color: var(--t1); letter-spacing: -.015em;
  margin-bottom: .4rem;
}
.page-sub { font-size: 13px; color: var(--t4); font-style: italic; }

/* ── PROJECTS GRID ── */
.proj-grid { display: flex; flex-direction: column; gap: 10px; }
.proj-card {
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 3px; background: var(--bg2);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; cursor: pointer; transition: border-color .15s;
}
.proj-card:hover { border-color: var(--border2); }
.proj-card:hover .proj-name { color: var(--t1); }
.proj-name { font-size: 13px; color: var(--t2); margin-bottom: 3px; transition: color .15s; }
.proj-desc { font-size: 12px; color: var(--t4); line-height: 1.5; }
.proj-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.proj-tag {
  font-size: 9px; letter-spacing: .08em; padding: 2px 7px;
  border: 1px solid var(--border2); border-radius: 2px; color: var(--t4);
}
.proj-status { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; flex-shrink: 0; }
.proj-status.active { color: var(--green); }
.proj-status.wip { color: var(--gold); }
.proj-status.archived { color: var(--t4); }
.proj-links { display: flex; gap: 10px; margin-top: 6px; }
.proj-link { font-size: 10px; color: var(--t4); transition: color .15s; }
.proj-link:hover { color: var(--t2); }

/* ── ABOUT ── */
.about-body { font-family: var(--serif); font-size: .93rem; color: var(--t2); line-height: 1.9; }
.about-body strong { color: var(--t1); font-weight: 500; }
.about-skills { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.sg-label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--t4); margin-bottom: .3rem; }
.sg-tags { font-size: 13px; color: var(--t2); }

/* ── ARTICLE PAGE ── */
.art-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--t4); cursor: pointer;
  transition: color .15s; margin-bottom: 2rem; letter-spacing: .04em;
}
.art-back:hover { color: var(--t2); }
.art-meta-row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.art-badge {
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(200,169,110,.25);
  padding: 2px 8px; border-radius: 2px;
}
.art-meta-sep { color: var(--t4); }
.art-meta-txt { font-size: 11px; color: var(--t4); }
h1.art-h1 {
  font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400; color: var(--t1); line-height: 1.2;
  letter-spacing: -.015em; margin-bottom: 1rem;
}
.art-lede {
  font-family: var(--serif); font-style: italic; font-size: .95rem;
  color: var(--t3); line-height: 1.75;
  margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.author-row { display: flex; align-items: center; gap: 10px; margin-bottom: 2.5rem; }
.author-av {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--t4); flex-shrink: 0;
}
.author-name { font-size: 12px; color: var(--t2); }
.author-sub { font-size: 10px; color: var(--t4); }

/* BODY */
.art-body { font-family: var(--serif); font-size: .93rem; color: var(--t2); line-height: 2; }
.art-body p { margin-bottom: 1.4rem; }
.art-body h2 {
  font-family: var(--mono); font-size: 10px; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; color: var(--t4);
  margin: 2.5rem 0 1rem;
}
.art-body strong { color: var(--t1); font-weight: 500; }
.art-body em { color: var(--t3); font-style: italic; }
.art-body code {
  font-family: var(--mono); font-size: .82em;
  background: var(--bg3); padding: 1px 5px; border-radius: 2px; color: var(--gold);
}
.art-body pre {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 4px; padding: 1rem 1.2rem; margin: 1.5rem 0;
  overflow-x: auto;
}
.art-body pre code { background: none; padding: 0; font-size: .85em; color: var(--t2); }
.art-blockquote {
  border-left: 1px solid var(--gold); margin: 2rem 0;
  padding: .8rem 0 .8rem 1.4rem;
  font-style: italic; font-size: 1rem; color: var(--t2); line-height: 1.7;
}
.art-callout {
  background: var(--gold3); border: 1px solid rgba(200,169,110,.1);
  border-radius: 4px; padding: .9rem 1.1rem; margin: 1.8rem 0;
  font-family: var(--mono); font-size: 11px; color: var(--t3); line-height: 1.7;
}
.art-callout-label {
  color: var(--gold); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: .35rem;
}
/* HIGHLIGHT */
.hl {
  background: linear-gradient(120deg, transparent, rgba(200,169,110,.16) 15%, rgba(200,169,110,.2) 85%, transparent);
  color: var(--t1); padding: 1px 2px; border-radius: 1px; cursor: help;
}
.hl:hover { background: linear-gradient(120deg, transparent, rgba(200,169,110,.28) 15%, rgba(200,169,110,.32) 85%, transparent); }

/* TAGS ROW */
.art-tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1.5rem; }
.art-tag-pill {
  font-size: 10px; color: var(--t4); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 2px; letter-spacing: .04em;
}

/* REACTIONS */
.reactions { display: flex; gap: 8px; flex-wrap: wrap; margin: 2.5rem 0 1.5rem; }
.rbtn {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 20px; padding: 5px 13px;
  font-family: var(--mono); font-size: 11px; color: var(--t3);
  cursor: pointer; transition: all .15s;
  display: flex; align-items: center; gap: 5px;
}
.rbtn:hover { border-color: var(--gold); color: var(--t2); }
.rbtn.active { border-color: var(--gold); background: var(--gold2); color: var(--gold); }

/* COMMENTS */
.comments-hdr {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--t4); margin-bottom: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.comment-item {
  padding: 1.1rem 0; border-bottom: 1px solid var(--border);
  animation: fadeup .3s ease both;
}
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.comment-hd { display: flex; justify-content: space-between; margin-bottom: .4rem; }
.c-name { font-size: 12px; color: var(--t2); }
.c-when { font-size: 10px; color: var(--t4); }
.c-place { font-size: 10px; color: var(--t4); }
.c-body { font-family: var(--serif); font-size: .875rem; color: var(--t3); line-height: 1.75; }
.c-like {
  margin-top: .5rem; font-size: 10px; color: var(--t4);
  cursor: pointer; background: none; border: none;
  font-family: var(--mono); transition: color .15s;
}
.c-like:hover { color: var(--t2); }
.c-like.liked { color: var(--gold); }

/* COMMENT FORM */
.cform { margin-top: 2rem; }
.cform-label {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--t4); margin-bottom: .6rem;
}
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.ci {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 3px; padding: 8px 11px;
  font-family: var(--mono); font-size: 12px; color: var(--t1);
  outline: none; width: 100%; transition: border-color .15s;
}
.ci:focus { border-color: var(--gold); }
.ci::placeholder { color: var(--t4); }
textarea.ci { resize: none; height: 80px; font-family: var(--serif); font-size: .875rem; line-height: 1.6; margin-bottom: 8px; }
.csub {
  background: none; border: 1px solid var(--border2);
  border-radius: 3px; padding: 8px 18px;
  font-family: var(--mono); font-size: 11px; color: var(--t3);
  cursor: pointer; transition: all .2s; letter-spacing: .04em;
}
.csub:hover { border-color: var(--gold); color: var(--gold); }

/* ── TOOLTIP ── */
.tooltip-box {
  position: fixed; background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 3px; padding: 4px 9px; font-size: 10px; color: var(--t3);
  pointer-events: none; opacity: 0; transition: opacity .12s;
  z-index: 5000; font-family: var(--mono); max-width: 240px; line-height: 1.5;
}

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 3px; padding: .55rem 1.1rem;
  font-size: 11px; color: var(--t2);
  opacity: 0; transition: all .25s; z-index: 9998;
  pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── PROGRESS RING ── */
.pring {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 32px; height: 32px; display: none;
}
.pring svg { transform: rotate(-90deg); }
.pring circle { transition: stroke-dashoffset .1s linear; }
.pnum {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 8px; color: var(--t4); font-family: var(--mono);
}


/* ── POST CARDS ── */
.post-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg2);
}
.post-card:hover {
  border-color: var(--gold);
  background: var(--bg3);
  transform: translateX(4px);
}
.pc-meta {
  display: flex;
  gap: 1rem;
  font-size: 11px;
  color: var(--t4);
  margin-bottom: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pc-cat { color: var(--gold); }
.pc-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--t1);
  margin-bottom: .6rem;
  line-height: 1.3;
}
.pc-lede {
  color: var(--t3);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: .8rem;
}
.pc-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.tag {
  font-size: 10px;
  color: var(--t4);
  border: 1px solid var(--border2);
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: lowercase;
}


/* ── ARTICLE PAGE ── */
.art-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.art-back {
  font-size: 12px;
  color: var(--t4);
  cursor: pointer;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: color .2s;
}
.art-back:hover {
  color: var(--gold);
}
.art-meta {
  display: flex;
  gap: 1rem;
  font-size: 11px;
  color: var(--t4);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.art-cat {
  color: var(--gold);
}
.art-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 400;
  color: var(--t1);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.art-lede {
  font-size: 1.1rem;
  color: var(--t3);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1rem;
}
.art-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ── COMMENTS SECTION ── */
.comments-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.comments-title {
  font-size: 1.2rem;
  color: var(--t1);
  margin-bottom: 1.5rem;
  font-family: var(--serif);
}
.comment-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border2);
  color: var(--t2);
  padding: .7rem;
  font-family: var(--mono);
  font-size: 13px;
  margin-bottom: .8rem;
  outline: none;
  transition: border-color .2s;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--gold);
}
.comment-form textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--serif);
  line-height: 1.6;
}
.comment-form button {
  background: none;
  border: 1px solid var(--border2);
  color: var(--t3);
  padding: .6rem 1.5rem;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.comment-form button:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.comment {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.2rem;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .8rem;
  font-size: 12px;
}
.comment-author {
  color: var(--t1);
  font-weight: 500;
}
.comment-time {
  color: var(--t4);
}
.comment-body {
  color: var(--t2);
  line-height: 1.6;
  font-size: 14px;
}

nav {
  display: flex;
  align-items: center;
}

.nav-a {
  border: 1px solid var(--border2);
  padding: 8px 14px;
  border-radius: 4px;
  transition: all .2s;
}

.nav-a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.live-val {
  max-width: 240px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ── PROJECT ARTICLE BODY ── */
/* Paste this at the bottom of your main.css */

#page-project-article {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.art-body {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--t2);
  line-height: 1.85;
}

.art-body h2 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t4);
  margin-top: 2.8rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.art-body h3 {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--t2);
  margin-top: 2rem;
  margin-bottom: .6rem;
}

.art-body p {
  margin-bottom: 1.3rem;
  color: var(--t2);
}

.art-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.art-body a:hover {
  color: var(--t1);
}

.art-body pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.art-body code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  line-height: 1.7;
}

.art-body p code,
.art-body li code {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1px 6px;
  font-size: 12px;
}

.art-body ul,
.art-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.3rem;
}

.art-body li {
  margin-bottom: .4rem;
}

.art-body blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  color: var(--t3);
  font-style: italic;
}

.art-body img {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  margin: 1.5rem 0;
}

.art-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.art-body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 1.5rem;
}

.art-body th {
  text-align: left;
  color: var(--t4);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .5rem .8rem;
  border-bottom: 1px solid var(--border);
}

.art-body td {
  padding: .5rem .8rem;
  border-bottom: 1px solid var(--border);
  color: var(--t2);
}

.art-body tr:last-child td {
  border-bottom: none;
}

