:root {
  --ink: #2f4858;
  --paper: #f4efe6;
  --muted: #6f7a80;
  --line: #ddd3c2;
  --accent: #c8553d;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 Georgia, 'Times New Roman', serif; color: var(--ink); background: var(--paper); }
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; border-radius: 2px; }

.site-header, main, .site-footer { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.site-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; padding-top: 28px; padding-bottom: 28px; }
.logo { font-size: 1.35rem; font-weight: bold; text-decoration: none; letter-spacing: -0.3px; }
.site-header nav { display: flex; gap: 22px; font: 0.95rem system-ui, sans-serif; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); }

main { padding-bottom: 64px; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; margin: 8px 0 12px; letter-spacing: -0.5px; }
h2 { font: 600 0.78rem/1 system-ui, sans-serif; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin: 56px 0 18px; }
h3 { font-size: 1.15rem; margin: 10px 0 4px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 8px 0 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 22px; }
.grid figure { margin: 0; }
.grid figcaption { font: 0.88rem/1.4 system-ui, sans-serif; color: var(--muted); margin-top: 8px; }
.grid figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.downloads { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.downloads a { font: 0.85rem system-ui, sans-serif; }

.posts { list-style: none; padding: 0; margin: 0; }
.posts li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.posts time, .meta { font: 0.85rem system-ui, sans-serif; color: var(--muted); }
article { max-width: 680px; }
article p { margin: 0 0 1.1em; }

.site-footer { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 40px; font: 0.85rem system-ui, sans-serif; color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header nav { gap: 16px; }
}
