:root {
  color-scheme: light dark;
  --bg: #faf9f6;
  --text: #242b29;
  --muted: #64706a;
  --line: #dce0d9;
  --accent: #226247;
  --surface: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.8 system-ui, -apple-system, "Malgun Gothic", sans-serif; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.site-header, main, footer { max-width: 960px; margin: auto; padding: 28px; }
.site-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { font-size: 27px; font-weight: 800; letter-spacing: -1px; text-decoration: none; }
nav { display: flex; gap: 22px; font-size: 14px; }
nav a { text-decoration: none; }
.intro { padding: 28px 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--accent); }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.35; letter-spacing: -1.5px; }
h2 { line-height: 1.5; letter-spacing: -.5px; }
.intro > p:last-child, .meta, footer { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 16px 0 32px; align-items: start; }
.post-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.post-card-cover { display: block; overflow: hidden; aspect-ratio: 8/5; background: var(--line); }
.post-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.post-card-cover:hover img { transform: scale(1.025); }
.post-card-body { padding: 22px 24px 24px; min-width: 0; }
.post-card h2 { margin: 0; font-size: 21px; line-height: 1.5; overflow-wrap: anywhere; }
.post-card h2 a { text-decoration: none; }
.post-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; margin: 12px 0 20px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.read-more { font-size: 14px; font-weight: 600; color: var(--accent); }
.post { max-width: 760px; margin: auto; }
.post > header { padding: 40px 0; border-bottom: 1px solid var(--line); }
.content { margin: 40px 0 60px; overflow-wrap: anywhere; }
.content img, .content video, .content iframe { max-width: 100%; }
.content img { height: auto; border-radius: 6px; }
.content pre { overflow: auto; padding: 18px; border-radius: 6px; background: #18251f; color: #e6eee9; line-height: 1.6; font-size: 14px; }
.content :not(pre) > code { background: #88998822; padding: 2px 5px; border-radius: 3px; }
.content blockquote { border-left: 3px solid var(--accent); margin-left: 0; padding-left: 22px; color: var(--muted); }
table { border-collapse: collapse; display: block; overflow: auto; }
td, th { border: 1px solid var(--line); padding: 8px 14px; }
.pagination { justify-content: center; margin: 36px 0; }
footer { border-top: 1px solid var(--line); font-size: 12px; margin-top: 40px; }
@media (max-width: 640px) {
  .site-header, main, footer { padding: 20px; }
  nav { gap: 14px; }
  .intro { padding: 20px 0; }
  .post-list { grid-template-columns: 1fr; gap: 22px; margin-top: 8px; }
  .post-card-body { padding: 20px; }
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #171d1a; --text: #e2e7e3; --muted: #a2b0a7; --line: #354139; --accent: #8fcfaa; --surface: #1c2520; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card-cover img { transition: none; }
  .post-card-cover:hover img { transform: none; }
}
