/* Dylan Anderson, personal blog. Plain CSS, no build step. */
:root {
  --ink: #111;
  --muted: #555;
  --rule: #e3e3e3;
  --accent: #0a7cc2;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }

.site-header { padding: 2rem 1.5rem 0; }
.site-header h1 { margin: 0 0 1rem; font-size: 2.6rem; line-height: 1.1; font-weight: 700; }
.site-header h1 a { color: var(--ink); }
.site-header h1 a:hover { text-decoration: none; }
.site-header nav { display: flex; gap: 2rem; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--rule); padding: 0.8rem 0.25rem; font-size: 0.95rem; }
.site-header nav a { color: var(--ink); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 3rem; padding-top: 2rem; padding-bottom: 4rem; }

.post { padding: 0 0 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--rule); }
.post h2 { margin: 0 0 0.6rem; font-size: 1.6rem; line-height: 1.25; font-weight: 400; }
.post h2 a { color: var(--ink); }
.post p { margin: 0; }
.post time { color: var(--muted); }

.sidebar { text-align: center; font-size: 0.98rem; }
.sidebar img { display: block; width: 168px; height: auto; margin: 0 auto 1.25rem; border: 2px solid var(--ink); }
.sidebar p { margin: 0; }

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; gap: 2rem; }
  .sidebar { order: -1; }
  .site-header h1 { font-size: 2.1rem; }
}
