/* Plain terminal look: one monospace font, dark background, phosphor green accents. */
:root {
  color-scheme: dark;
  --bg: #0d0f0d;
  --panel: #141814;
  --text: #cfd6cf;
  --muted: #7d887d;
  --green: #5fd068;
  --amber: #e5b567;
  --rule: #2a312a;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", "Fira Code", Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0 auto;
  max-width: 46rem;
  padding: 1.25rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.7 var(--mono);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--green); color: var(--bg); }

/* Links: body-coloured with a green underline; hover highlights like a terminal selection. */
a { color: inherit; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bg); background: var(--green); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* header / footer */
.site-header {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-bottom: .75rem; margin-bottom: 2rem; border-bottom: 1px dashed var(--rule);
}
.site-title { color: var(--green); font-weight: 700; text-decoration: none; }
.site-title:hover { background: none; color: var(--green); }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--bg); background: var(--muted); }
.cursor { display: inline-block; width: .6em; height: 1.1em; margin-left: .35em; vertical-align: text-bottom; background: var(--green); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.site-footer { margin-top: 4rem; padding-top: .75rem; border-top: 1px dashed var(--rule); color: var(--muted); font-size: .85rem; }

/* prompt lines */
.prompt { margin: 2rem 0 1rem; color: var(--text); }
.prompt:first-child { margin-top: 0; }
.ps1 { color: var(--green); font-weight: 700; margin-right: .5ch; }
.comment, .error { color: var(--muted); }
.error { color: #e06c6c; }

/* post list */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { margin: 0; border-bottom: 1px dashed var(--rule); }
.post-list li:first-child { border-top: 1px dashed var(--rule); }
.post-card {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: start;
  padding: .9rem .5rem; color: inherit; text-decoration: none;
}
.post-card:hover { background: var(--panel); color: inherit; }
.post-card:hover .title { color: var(--green); }
.post-card:hover .title::before { content: "> "; }
.thumb {
  display: block; width: 9rem; aspect-ratio: 3 / 2; object-fit: cover;
  border: 1px solid var(--rule); background: var(--panel);
  filter: grayscale(.35) contrast(1.05);
}
.post-card:hover .thumb { filter: none; border-color: var(--green); }
.thumb-empty { display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.meta { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.meta time { color: var(--muted); font-size: .85rem; }
.meta .title { color: var(--text); font-weight: 700; }
.meta .subtitle { color: var(--muted); font-size: .9rem; }
@media (max-width: 34rem) {
  .post-card { grid-template-columns: 6rem 1fr; gap: .75rem; }
  .thumb { width: 6rem; }
}

/* article */
article header { margin-bottom: 2rem; }
h1, h2, h3, h4, h5 { color: var(--green); line-height: 1.35; font-size: 1rem; }
h1 { font-size: 1.35rem; margin: 0 0 .4rem; }
article h2 { margin-top: 2.5rem; }
article h3, article h4, article h5 { margin-top: 2rem; color: var(--text); }
article h2::before { content: "## "; color: var(--muted); }
article h3::before { content: "### "; color: var(--muted); }
article h4::before { content: "#### "; color: var(--muted); }
article h5::before { content: "##### "; color: var(--muted); }
.subtitle { color: var(--muted); margin: 0 0 .5rem; }
.byline { color: var(--muted); font-size: .85rem; margin: 0; }
strong { color: #eef3ee; }
em { color: var(--text); }
hr { border: 0; border-top: 1px dashed var(--rule); margin: 2.5rem 0; }
article ul, article ol { padding-left: 2.5ch; }
article ul { list-style: none; }
article ul > li::before { content: "-"; color: var(--green); display: inline-block; width: 2.5ch; margin-left: -2.5ch; }
article ol > li::marker { color: var(--green); }
blockquote { margin: 1.5rem 0; padding: 0 0 0 2ch; border-left: 2px solid var(--green); color: var(--muted); }
code { color: var(--amber); font-family: var(--mono); font-size: .95em; }
pre { overflow-x: auto; padding: 1rem; background: var(--panel); border: 1px solid var(--rule); font-size: .88rem; line-height: 1.55; }
pre code { color: var(--text); }
img, video, iframe { max-width: 100%; height: auto; }
article img { display: block; margin: 0 auto; border: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { border: 1px solid var(--rule); padding: .35rem .6rem; text-align: left; }

/* subscribe */
.subscribe { margin: 3rem 0 2rem; padding: 1rem 1.25rem; background: var(--panel); border: 1px solid var(--rule); }
.subscribe .prompt { margin: 0 0 .25rem; }
.subscribe .comment { margin: 0 0 1rem; font-size: .9rem; }
.subscribe form { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.subscribe input[type=email] {
  flex: 1 1 14rem; padding: .45rem .6rem; font: inherit; color: var(--text); caret-color: var(--green);
  background: var(--bg); border: 1px solid var(--rule); border-radius: 0; outline: none;
}
.subscribe input[type=email]:focus { border-color: var(--green); }
.subscribe button {
  padding: .45rem .8rem; font: 700 1em var(--mono); color: var(--green);
  background: transparent; border: 1px solid var(--green); border-radius: 0; cursor: pointer;
}
.subscribe button:hover { color: var(--bg); background: var(--green); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
