/* astral — dark monospace theme */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  background: #08080d;
  color: #c8c8d0;
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* typography */
h1, h2, h3, h4 { font-weight: 400; color: #e0e0e0; }
h1 { font-size: 1.1rem; margin-bottom: 0.3rem; }
h2 { font-size: 0.95rem; margin-bottom: 0.3rem; }
h3 { font-size: 0.85rem; margin-bottom: 0.3rem; }
p { font-size: 0.8rem; color: #888; margin-bottom: 1.2rem; }
a { color: #e0e0e0; text-decoration: none; transition: color 0.15s; }
a:hover { color: #667eea; }
strong, b { color: #667eea; font-weight: 400; }
em, i { color: #aaa; font-style: italic; }
code { font-family: inherit; background: #0e0e15; padding: 0.15em 0.4em; font-size: 0.85em; color: #999; }
pre { background: #0e0e15; border-left: 2px solid #1a1a28; padding: 1rem 1.2rem; margin: 1.2rem 0; font-size: 0.75rem; color: #666; line-height: 2; overflow-x: auto; }
pre code { background: none; padding: 0; }
hr { border: none; border-top: 1px solid #141420; margin: 2rem 0; }

/* header */
header { margin-bottom: 3rem; }
.sub { font-size: 0.7rem; color: #444; letter-spacing: 0.1em; }

/* dates */
.date { font-size: 0.65rem; color: #333; letter-spacing: 0.05em; display: block; margin-bottom: 2rem; }

/* navigation */
.back { font-size: 0.7rem; color: #333; display: inline-block; margin-bottom: 2rem; }
.back:hover { color: #667eea; }

/* post card (index page) */
.post-card { padding: 2rem 0; border-bottom: 1px solid #141420; }
.post-card:last-of-type { border-bottom: none; }
.post-card h2 { margin-bottom: 0.3rem; }
.post-card h2 a { color: #e0e0e0; }
.post-card h2 a:hover { color: #667eea; }
.post-card .date { margin-bottom: 1.2rem; }
.post-card .excerpt { font-size: 0.8rem; color: #888; margin-bottom: 1rem; line-height: 1.8; }
.read-more { font-size: 0.7rem; color: #444; }
.read-more:hover { color: #667eea; }

/* pagination */
.pagination { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #141420; }

/* post content */
.gh-content { margin-top: 0.5rem; }
.gh-content p { font-size: 0.8rem; color: #888; margin-bottom: 1.2rem; line-height: 1.8; }
.gh-content a { color: #667eea; }
.gh-content a:hover { text-decoration: underline; }
.gh-content strong { color: #667eea; font-weight: 400; }
.gh-content em { color: #444; }
.gh-content blockquote {
  background: #0e0e15;
  border-left: 2px solid #1a1a28;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 0.75rem;
  color: #666;
  line-height: 2;
}
.gh-content blockquote p { color: #666; margin-bottom: 0; }
.gh-content ul, .gh-content ol { font-size: 0.8rem; color: #888; margin-bottom: 1.2rem; padding-left: 1.5rem; }
.gh-content li { margin-bottom: 0.4rem; line-height: 1.8; }
.gh-content img {
  max-width: 100%;
  border-radius: 2px;
  margin: 1.5rem 0;
  border: 1px solid #141420;
}
.gh-content figure { margin: 1.5rem 0; }
.gh-content figcaption { font-size: 0.65rem; color: #444; margin-top: 0.5rem; text-align: center; }
.gh-content h2 { font-size: 0.95rem; color: #e0e0e0; margin: 2rem 0 0.8rem; }
.gh-content h3 { font-size: 0.85rem; color: #e0e0e0; margin: 1.5rem 0 0.6rem; }

/* ghost card overrides */
.kg-card { margin: 1.2rem 0; }
.kg-image-card img { max-width: 100%; }
.kg-bookmark-card { background: #0e0e15; border: 1px solid #1a1a28; padding: 1rem; }
.kg-bookmark-title { color: #e0e0e0; font-size: 0.8rem; }
.kg-bookmark-description { color: #666; font-size: 0.7rem; }
.kg-bookmark-metadata { color: #444; font-size: 0.6rem; }

/* subscribe box */
.subscribe-box { border-top: 1px solid #141420; margin-top: 3rem; padding-top: 2rem; }
.subscribe-box h3 { font-size: 0.85rem; font-weight: 400; color: #e0e0e0; margin-bottom: 0.3rem; }
.sub-desc { font-size: 0.65rem; color: #444; margin-bottom: 1rem; }
.row { display: flex; gap: 0.5rem; }
.subscribe-box input {
  flex: 1; padding: 0.6rem; background: #08080d; border: 1px solid #1a1a28;
  color: #e0e0e0; font-family: inherit; font-size: 0.75rem; outline: none;
}
.subscribe-box input:focus { border-color: #667eea; }
.subscribe-box input::placeholder { color: #333; }
.subscribe-box button {
  padding: 0.6rem 1.2rem; background: #667eea; border: none; color: #08080d;
  font-family: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer;
  letter-spacing: 0.03em; transition: opacity 0.2s; white-space: nowrap;
}
.subscribe-box button:hover { opacity: 0.85; }
.subscribe-box button:disabled { opacity: 0.4; }
.sub-msg { font-size: 0.6rem; margin-top: 0.5rem; }
.sub-msg.ok { color: #3a9e7a; }
.sub-msg.err { color: #e05a3a; }
.sub-fine { font-size: 0.55rem; color: #222; margin-top: 0.6rem; }
.sub-fine a { color: #667eea; text-decoration: none; }

/* footer */
footer { margin-top: 3rem; font-size: 0.6rem; color: #222; }
footer a { color: #333; }
footer a:hover { color: #667eea; }

/* koenig width classes */
.kg-width-wide { max-width: 640px; }
.kg-width-full { max-width: 100vw; margin-left: calc(-50vw + 50%); }

/* hide ghost branding */
.gh-powered-by,
.gh-portal-triggerbtn-iframe,
[data-ghost-portal],
.gh-post-upgrade-cta { display: none !important; }
