/* Terminal Notes — inspired by classic terminal interfaces. */
:root {
  color-scheme: dark;
  --bg: #202026;
  --bg-deep: #19191e;
  --panel: #25252c;
  --line: #3b3b43;
  --text: #d9d4ce;
  --muted: #88838a;
  --blue: #7d8d9e;
  --blue-soft: #68798a;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --measure: 790px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover, a:focus-visible { color: #a6b0ba; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
img { max-width: 100%; height: auto; }
.shell { width: min(100%, 980px); min-height: 100vh; border-right: 1px solid #303038; display: flex; flex-direction: column; }
.site-header { padding: 30px 46px 0; }
.brand { display: inline-block; background: var(--blue); color: #20262d; padding: 2px 11px 4px; font-size: 17px; font-weight: 600; text-decoration: none; line-height: 1.75; }
.brand:hover { background: #a6b0ba; color: #20262d; }
.signal { height: 4px; margin: 8px 0 18px; background: repeating-linear-gradient(90deg, var(--blue) 0 2px, transparent 2px 9px); opacity: .58; }
.main-nav { display: flex; align-items: center; gap: 27px; flex-wrap: wrap; font-size: 13px; }
.main-nav a { color: var(--text); }
.main-nav a:hover { color: var(--blue); }
.main-nav .search-link { color: var(--blue-soft); }
.content { width: min(100% - 92px, var(--measure)); margin: 96px 46px 90px; flex: 1; }
.intro { margin-bottom: 44px; }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .11em; margin: 0 0 15px; }
.eyebrow span, .prompt { color: var(--blue-soft); }
h1, h2, h3, h4 { color: var(--blue); font-weight: 600; line-height: 1.32; }
h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 15px; letter-spacing: -.045em; }
h2 { font-size: 24px; margin: 2.1em 0 .7em; }
h3 { font-size: 19px; margin: 1.7em 0 .6em; }
.cursor { color: var(--blue); animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.intro__description { color: #aaa4a0; max-width: 66ch; margin: 0; }
.rule { height: 5px; margin-top: 28px; background: repeating-linear-gradient(90deg, var(--blue) 0 2px, transparent 2px 6px); opacity: .42; }
.section-heading { display: flex; align-items: center; gap: 14px; color: var(--blue); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.section-heading__line { height: 1px; background: var(--line); flex: 1; }
.muted, .post-meta, figcaption { color: var(--muted); }
.muted { font-size: 10px; text-transform: none; letter-spacing: 0; }
.post-card { padding: 23px 0 27px; border-bottom: 1px solid var(--line); }
.post-card__title { margin: 0 0 7px; font-size: 21px; }
.post-card__title a { color: var(--blue); text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-meta { font-size: 12px; margin: 0 0 17px; }
.post-card__image { display: block; background: var(--panel); border: 1px solid var(--line); padding: 8px; margin: 22px 0; }
.post-card__image img { display: block; width: 100%; max-height: 460px; object-fit: cover; border: 1px solid #3a3030; }
.post-card__excerpt { color: #c5c0bb; font-size: 14px; }
.post-card__excerpt p { margin: 0 0 12px; }
.read-more { display: inline-block; margin-top: 9px; font-size: 12px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 28px 0; color: var(--muted); font-size: 11px; }
.pagination a { white-space: nowrap; }
.article-header { margin-bottom: 31px; }
.article-header h1 { margin-bottom: 14px; }
.article-header .post-meta { margin-bottom: 12px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px 15px; list-style: none; margin: 12px 0 0; padding: 0; font-size: 12px; }
.tag-list a { color: #aaa4a0; text-decoration: none; }
.tag-list a:hover { color: var(--blue); }
.featured-image { margin: 34px 0; padding: 8px; border: 1px solid var(--line); text-align: center; }
.featured-image img { width: 100%; display: block; }
figcaption { font-size: 11px; margin-top: 8px; }
.article-body { color: #d1ccc6; overflow-wrap: anywhere; }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.4em; }
.article-body ul, .article-body ol { padding-left: 1.5em; margin: 0 0 1.5em; }
.article-body li { margin: .35em 0; padding-left: .2em; }
.article-body li::marker { color: var(--blue); }
.article-body blockquote { margin: 1.8em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); color: #b9b2ab; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr { border: 0; border-top: 1px dashed var(--line); margin: 2.5em 0; }
.article-body a { text-decoration: underline; }
.article-body img { display: block; margin: 1.5em auto; }
.article-body figure { margin: 1.7em 0; }
.article-body figure img { margin: 0 auto; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 13px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article-body th { color: var(--blue); }
.article-body pre { position: relative; overflow: auto; padding: 18px; background: var(--bg-deep); border: 1px solid var(--line); color: #c6d9e9; font-size: 13px; line-height: 1.65; }
.article-body pre .code-copy { position: absolute; top: 7px; right: 7px; padding: 4px 8px; font-size: 10px; }
.article-body code, code { font-family: var(--mono); font-size: .9em; color: #a6b0ba; background: #292d32; padding: .12em .3em; }
.article-body pre code { padding: 0; background: transparent; color: inherit; }
.article-end { display: flex; align-items: center; gap: 14px; margin: 45px 0 15px; color: var(--blue-soft); font-size: 10px; letter-spacing: .1em; }
.article-end div { height: 1px; flex: 1; background: var(--line); }
.post-neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 42px; }
.post-neighbors a { display: flex; flex-direction: column; padding: 15px; background: var(--panel); text-decoration: none; overflow-wrap: anywhere; }
.post-neighbors a:last-child { text-align: right; }
.post-neighbors small { color: var(--muted); font-size: 10px; }
.post-neighbors span { color: var(--blue); font-size: 13px; }
.archive-header { margin-bottom: 42px; }
.archive-header > p:last-child { color: #aaa4a0; }
.author-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid var(--blue); margin: 0 0 16px; }
.all-tags { list-style: none; margin: 0; padding: 0; }
.all-tags li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 12px 0; }
.all-tags li span { color: var(--muted); font-size: 11px; }
.empty-state { color: var(--muted); padding: 24px 0; }
.error-page h1 { font-size: clamp(70px, 16vw, 130px); }
.error-page > p:not(.eyebrow) { max-width: 48ch; color: #aaa4a0; }
.site-footer { padding: 24px 46px 30px; border-top: 1px solid #303038; color: var(--muted); font-size: 11px; }
.site-footer p { margin: 0; }
.site-footer a { color: #aaa4a0; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 9px; }
input[type="search"], input[type="text"] { max-width: 100%; padding: 11px 13px; color: var(--text); background: var(--bg-deep); border: 1px solid var(--line); font: inherit; }
button, input[type="submit"] { padding: 11px 16px; color: var(--text); background: var(--panel); border: 1px solid var(--line); font: 600 13px var(--mono); cursor: pointer; }

@media (min-width: 1300px) { .shell { width: min(68vw, 980px); } }
@media (max-width: 640px) {
  body { font-size: 14px; }
  .shell { border-right: 0; }
  .site-header { padding: 22px 22px 0; }
  .content { width: auto; margin: 72px 22px 66px; }
  .main-nav { gap: 13px 19px; }
  .site-footer { padding: 22px; }
  .post-card__image { border-width: 1px; padding: 6px; }
  .featured-image { border-width: 1px; padding: 6px; }
  .pagination { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cursor { animation: none; } }
