/* scottwfinn.com — one stylesheet for the whole site. Always light. */
:root {
  --ink: #1d2733;
  --muted: #5b6875;
  --line: #e3e7eb;
  --bg: #ffffff;
  --soft: #f5f7f9;
  --accent: #c8581f;
  --accent-dark: #a2461a;
  --max: 960px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

/* Hero */
.hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; color: #fff;
  background: #333 center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.05) 70%); }
.hero .wrap { position: relative; width: 100%; padding-bottom: 32px; }
.hero h1 { margin: 0; font-size: 40px; line-height: 1.15; }
.hero p { margin: 6px 0 0; font-size: 19px; opacity: .92; }

/* Content */
main { padding: 40px 0 64px; }
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 24px; margin: 40px 0 12px; }
.lede { color: var(--muted); font-size: 19px; margin-top: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg);
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); color: var(--ink); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card .body { padding: 16px 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.card .tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.card.plain .body { padding-top: 20px; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.post-list a { font-size: 20px; font-weight: 600; text-decoration: none; }
.post-list .meta, .meta { color: var(--muted); font-size: 14px; }

article { max-width: 680px; }
article .meta { margin-bottom: 24px; }

.note { background: var(--soft); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { padding-top: 20px; padding-bottom: 28px; }

@media (max-width: 600px) {
  .hero { min-height: 260px; }
  .hero h1 { font-size: 30px; }
  h1 { font-size: 28px; }
}
