/* memkeeper blog. Shares the landing page's catalog aesthetic.
   IBM Plex Mono body, Newsreader serif display, dark ground, cyan accent. */
:root { --accent: #3db8e1; --bg: #0b0e13; --ink: #e9edf2; --mut: #9aa3b2; --dim: #687180; --faint: #4e5765; --line: rgba(233,237,242,0.14); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "IBM Plex Mono", monospace; font-weight: 300; line-height: 1.7;
  -webkit-font-smoothing: antialiased; position: relative; min-height: 100vh; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(61,184,225,0.13), transparent 60%),
    radial-gradient(700px 700px at 5% 108%, rgba(40,140,180,0.08), transparent 55%);
}
.wrap { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 clamp(1.4rem, 5vw, 3rem); }
.wrap.wide { max-width: 1040px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }

/* header / nav */
.top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 2rem 0 0; font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mut);
  border-bottom: 1px solid var(--line); padding-bottom: 1.4rem;
}
.top .brand { color: var(--ink); font-weight: 500; }
.top .brand b { color: var(--accent); font-weight: 500; }
.top nav a { color: var(--mut); margin-left: 1.3rem; letter-spacing: 0.18em; }
.top nav a:hover { color: var(--ink); }

.draft-tag {
  display: inline-block; margin: 1.6rem 0 0; font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 2px; padding: 0.3rem 0.7rem; background: rgba(61,184,225,0.07);
}

/* blog index */
.lede { font-family: "Newsreader", serif; font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.25; color: var(--ink); margin: 2.4rem 0 0.6rem; }
.lede-sub { color: var(--mut); max-width: 54ch; margin: 0 0 2.6rem; font-size: 0.95rem; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--line); padding: 1.8rem 0; }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list .meta { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.7rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.post-list .meta .tag { color: var(--accent); }
.post-list h2 { font-family: "Newsreader", serif; font-weight: 400; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15; margin: 0 0 0.5rem; }
.post-list h2 a { color: var(--ink); }
.post-list h2 a:hover { color: var(--accent); }
.post-list p { color: var(--mut); margin: 0; font-size: 0.92rem; max-width: 60ch; }
.post-list .soon h2 a { color: var(--mut); pointer-events: none; }

/* article */
article { padding: 2.6rem 0 1rem; }
.art-meta { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); display: flex; gap: 1.1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.art-meta .tag { color: var(--accent); }
article h1 { font-family: "Newsreader", serif; font-weight: 400; font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 1.6rem; }
article h2 { font-family: "Newsreader", serif; font-weight: 500; font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--ink); margin: 2.6rem 0 0.8rem; }
article h3 { font-size: 0.96rem; letter-spacing: 0.04em; color: var(--accent); margin: 1.8rem 0 0.5rem; font-weight: 500; }
article p, article li { font-size: 1rem; color: #c7cedb; }
article strong { color: var(--ink); font-weight: 500; }
article em { color: var(--ink); }
article a { border-bottom: 1px solid rgba(61,184,225,0.4); }
article ul { padding-left: 1.2rem; }
article li { margin: 0.4rem 0; }
article blockquote {
  margin: 1.6rem 0; padding: 0.4rem 0 0.4rem 1.3rem; border-left: 2px solid var(--accent);
  font-family: "Newsreader", serif; font-style: italic; font-size: 1.15rem; color: var(--ink);
}
article code {
  font-family: "IBM Plex Mono", monospace; font-size: 0.86em; background: #141922;
  border: 1px solid var(--line); border-radius: 3px; padding: 0.1rem 0.36rem; color: #7fa7c4;
}
article pre {
  background: #080b10; border: 1px solid var(--line); border-radius: 4px; padding: 1.1rem 1.3rem;
  overflow-x: auto; font-size: 0.84rem; line-height: 1.7; margin: 1.4rem 0;
}
article pre code { background: none; border: none; padding: 0; color: #c7cedb; }
article table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.9rem; }
article th, article td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); }
article th { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mut); font-weight: 500; }
article td { color: var(--ink); }
article td.n { color: var(--accent); font-family: "Newsreader", serif; font-style: italic; font-size: 1.1rem; }
.callout { background: #141922; border: 1px solid var(--line); border-radius: 4px; padding: 1.2rem 1.4rem; margin: 1.6rem 0; font-size: 0.92rem; color: var(--mut); }
.callout b { color: var(--ink); font-weight: 500; }

/* footer */
.foot {
  border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0 3rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mut);
}
.foot .accent { color: var(--accent); }
.byline { color: var(--dim); font-size: 0.82rem; letter-spacing: normal; text-transform: none; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.byline a { border-bottom: 1px solid rgba(61,184,225,0.4); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
