/* Adam the Handyman. One theme that follows the system light or dark setting, one accent, one radius (6px). */
:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --text: #15181b;
  --muted: #5a6168;
  --rule: #d9dcd8;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --radius: 6px;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --measure: 68ch;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111417; --surface: #191d21; --text: #e9ecee; --muted: #9aa3ab; --rule: #2b3137; --accent: #8fb0ff; --accent-ink: #0d1117; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); background: var(--rule); }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 0.75rem; border-radius: var(--radius); z-index: 2; }

.site-head, main, .site-foot { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }
.site-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; padding: 1.5rem 0 1.25rem; border-bottom: 1px solid var(--rule); }
.brand { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.site-head nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.95rem; }
.site-head nav a { color: var(--muted); text-decoration: none; padding: 0.25rem 0; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--text); box-shadow: 0 2px 0 var(--accent); }

.draft-bar { margin: 0; padding: 0.5rem 1.25rem; background: var(--accent); color: var(--accent-ink); font-size: 0.875rem; text-align: center; }
.draft-note { border-left: 3px solid var(--accent); padding: 0.5rem 0 0.5rem 1rem; color: var(--muted); }
.tag-sched { color: var(--accent); font-weight: 600; }

.intro { padding: 3rem 0 2rem; max-width: 44rem; }
.intro h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 0.75rem; text-wrap: balance; }
.intro p { color: var(--muted); font-size: 1.125rem; margin: 0; }

.lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem; align-items: center; padding-bottom: 3rem; }
.lead h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; letter-spacing: -0.015em; margin: 0.25rem 0 0.75rem; text-wrap: balance; }
.lead h2 a { color: var(--text); text-decoration: none; }
.lead h2 a:hover { color: var(--accent); }
.lead-text > p:last-child { color: var(--muted); margin: 0; }

.month { display: grid; grid-template-columns: 11rem 1fr; gap: 0 2rem; padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.month h2 { font-size: 0.95rem; font-weight: 600; color: var(--muted); margin: 0.2rem 0 1rem; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.1rem; align-items: center; }
.row-img img { aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }
.row-title { font-weight: 600; font-size: 1.1rem; line-height: 1.3; color: var(--text); text-decoration: none; }
.row-title:hover { color: var(--accent); text-decoration: underline; }
.row-meta { display: flex; flex-wrap: wrap; gap: 0.15rem 1rem; margin: 0.3rem 0 0; font-size: 0.875rem; color: var(--muted); }
.row-meta a { color: var(--muted); }
.empty { color: var(--muted); padding: 1rem 0 3rem; }

.post { padding: 2.5rem 0 1rem; }
.post-head { max-width: 46rem; }
.post-head h1 { font-size: clamp(1.85rem, 4.4vw, 2.75rem); line-height: 1.12; letter-spacing: -0.022em; margin: 0.5rem 0 1.75rem; text-wrap: balance; }
.post-img { margin: 0 0 2.25rem; }
.post-img img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-img figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 0.5rem; }
.post-img figcaption a { color: var(--muted); }

.prose { max-width: var(--measure); }
.prose > p:first-child { font-size: 1.1875rem; line-height: 1.6; }
.prose h2 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -0.012em; margin: 2.5rem 0 0.75rem; text-wrap: balance; }
.prose h3 { font-size: 1.125rem; margin: 1.75rem 0 0.5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 650; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.85rem; vertical-align: top; }
.prose thead th { border-bottom: 1px solid var(--rule); font-weight: 650; }
.prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--rule) 30%, transparent); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); max-width: var(--measure); }
.post-nav a { color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.35; }
.post-nav a:hover { color: var(--accent); }
.post-nav a span { display: block; font-weight: 400; font-size: 0.875rem; color: var(--muted); margin-bottom: 0.2rem; }
.post-nav .next { text-align: right; }

.site-foot { margin-top: 3rem; padding: 1.75rem 0 3rem; border-top: 1px solid var(--rule); font-size: 0.875rem; color: var(--muted); }
.site-foot p { max-width: 52rem; margin: 0 0 0.6rem; }
.site-foot a { color: var(--muted); }
.site-foot address { max-width: 52rem; margin: 0 0 0.6rem; font-style: normal; }
.prose address { margin: 0 0 1.1rem; font-style: normal; }

@media (max-width: 767px) {
  body { font-size: 1rem; }
  .site-head, main, .site-foot { width: min(100% - 2rem, 62rem); }
  .intro { padding: 2rem 0 1.5rem; }
  .lead { grid-template-columns: 1fr; gap: 1rem; padding-bottom: 2rem; }
  .month { grid-template-columns: 1fr; }
  .row { grid-template-columns: 5.5rem 1fr; gap: 0.85rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
}

/* About: the journey timeline */
.timeline { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0 1.5rem; margin: 1.5rem 0; }
.timeline dt { grid-column: 1; padding: 1rem 0; border-top: 1px solid var(--rule); font-weight: 650; color: var(--accent); }
.timeline dd { grid-column: 2; margin: 0; padding: 1rem 0; border-top: 1px solid var(--rule); }
.prose blockquote { margin: 1.75rem 0; padding: 0 0 0 1.25rem; border-left: 3px solid var(--accent); font-size: 1.15em; }
.prose blockquote p { margin: 0; }
@media (max-width: 767px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline dd { grid-column: 1; border-top: 0; padding-top: 0; }
  .timeline dt { padding-bottom: 0.25rem; }
}
