:root {
  --bg: #ffffff; --fg: #1c2733; --muted: #66727f; --line: #e3e8ee; --surface: #f4f7fa;
  --blue: #1f5fae; --orange: #e8710a; --orange-soft: #fdf0e4;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1621; --fg: #e8edf2; --muted: #93a1b0; --line: #223041; --surface: #152131;
    --blue: #6ea8ff; --orange: #ff9a3c; --orange-soft: #2a1f17;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; border-top: 4px solid var(--orange); background: var(--bg); }
body {
  margin: 0 auto; max-width: 68ch; padding: 0 1.25rem;
  color: var(--fg);
  font: 1rem/1.7 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

header { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center; padding: 2.25rem 0 1.75rem; border-bottom: 1px solid var(--line); }
header .brand { color: var(--fg); font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
header .brand::after { content: ""; display: inline-block; width: .3em; height: .3em; margin-left: .12em; background: var(--orange); border-radius: 2px; }
nav a { color: var(--muted); font-size: .95rem; font-weight: 500; text-decoration: none; margin-left: 1.5rem; }
nav a:first-child { margin-left: 0; }
nav a:hover, header .brand:hover { color: var(--blue); }

main { padding: 2.5rem 0 3rem; }
footer { padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

h1, h2, h3 { line-height: 1.25; margin: 2em 0 .5em; letter-spacing: -.02em; }
h1 { font-size: 1.5rem; margin-top: 0; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
h2::before { content: ""; display: inline-block; width: .5em; height: 3px; margin-right: .4em; vertical-align: middle; background: var(--orange); }
img { max-width: 100%; height: auto; border-radius: 8px; }
blockquote { margin: 1.5em 0; padding: .5rem 1rem; border-left: 3px solid var(--orange); background: var(--surface); border-radius: 0 6px 6px 0; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
code { font: .875em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface); padding: .15em .4em; border-radius: 4px; }
pre { padding: 1rem 1.25rem; overflow-x: auto; border-radius: 8px; }
pre code { background: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: .45rem .6rem; text-align: left; }
th { color: var(--muted); font-weight: 600; }

.meta { color: var(--muted); font-size: .875rem; margin: -.25rem 0 2rem; }
.meta time { margin-right: .75rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 500; padding: .1rem .6rem; margin: 0 .35rem .35rem 0; background: var(--orange-soft); color: var(--orange); border-radius: 999px; text-decoration: none; }
.tag:hover { background: var(--orange); color: var(--bg); }

.posts, .tags { list-style: none; padding: 0; margin: 0; }
.posts li { display: flex; align-items: baseline; gap: 1.5rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.posts li:last-child { border-bottom: 0; }
.posts time { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; flex: 0 0 6.5rem; }
.posts a { color: var(--fg); font-weight: 600; text-decoration: none; }
.posts a:hover { color: var(--blue); }
.tags li { display: inline; }
@media (max-width: 480px) { .posts li { flex-direction: column; gap: 0; } }
