/* Greg's Best Of Wisdom: shared styles for the list page (best-of.html) and every post (best-of/*.html).
   Same look as the home page and legal pages: warm paper background, Mac system fonts, no em dashes in copy. */
:root {
  --bg: #f6f4ef; --card: #fff; --line: rgba(20,23,28,.10); --text: #15181d; --body: #343a44; --muted: #5a6270;
  --accent: #b36b12; --accent2: #0f7482; --soft: #fbf8f2;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", "Albert Sans", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", "Albert Sans", sans-serif;
}
* { box-sizing: border-box; margin: 0; }
body { background: var(--bg); color: var(--text); font: 17px/1.72 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* Header + footer come from site.css (shared with every page) */
.in { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Shared type */
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent2); font-weight: 600; text-decoration: none; }
h1 { font: 700 clamp(34px, 6vw, 54px)/1.08 var(--display); letter-spacing: -.035em; margin: 12px 0 14px; }
.dek { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.55; color: var(--muted); max-width: 680px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); margin-top: 18px; }
.meta span + span::before { content: "·"; margin-right: 14px; color: #b7bcc4; }

/* List page */
.blog-hero { padding: 72px 0 36px; }
.blog-hero .rss { margin-top: 14px; font-size: 14px; }
.blog-hero .rss a { color: var(--accent); font-weight: 600; }
.blog-hero h1 em { font-style: normal; color: var(--accent); }
.posts { display: grid; gap: 16px; padding-bottom: 40px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -18px rgba(20,23,28,.28); border-color: rgba(20,23,28,.18); }
.card .tag { padding: 0; background: none; display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent2); }
.card h2 { font: 700 clamp(22px, 3vw, 27px)/1.2 var(--display); letter-spacing: -.02em; margin: 8px 0 8px; }
.card p { color: var(--body); }
.card .meta { margin-top: 12px; font-size: 13px; }
.card .go { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 14px; display: inline-block; }

/* List cards with a photo */
.card.has-thumb { display: grid; grid-template-columns: 1fr 176px; gap: 26px; align-items: center; }
.card .thumb { width: 176px; height: 132px; object-fit: cover; border-radius: 12px; display: block; }

/* Post page */
article { padding: 60px 0 10px; }
.post-head { padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.body { max-width: 720px; }
.body > * + * { margin-top: 16px; }
.body p, .body li { color: var(--body); }
.body h2 { font: 700 26px/1.25 var(--display); letter-spacing: -.02em; margin-top: 46px; color: var(--text); }
.body h3 { font: 700 21px/1.3 var(--display); letter-spacing: -.015em; margin-top: 34px; color: var(--text); display: flex; align-items: baseline; gap: 12px; }
.body h3 .rank { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; align-self: center;
  font: 700 16px var(--display); color: #fff; background: linear-gradient(135deg, var(--accent), #8c4f08); }
.body h3 + * { margin-top: 8px; }
.body .facts { font-size: 14px; color: var(--muted); }
.body .facts em { font-style: normal; }
.body ul, .body ol { padding-left: 22px; display: grid; gap: 6px; }
.body a { color: var(--accent2); text-underline-offset: 2px; }
.body strong { color: var(--text); }
.body code { font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: #ece8df; padding: 2px 6px; border-radius: 6px; }
.body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
/* Small photos beside a pick: ![alt](src) caption */
.body .pic { float: right; width: 236px; margin: 6px 0 14px 28px; }
.body .pic img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 26px -12px rgba(20,23,28,.35); }
.body .pic figcaption { font-size: 11.5px; line-height: 1.45; color: var(--muted); margin-top: 7px; }
.body .pic figcaption a { color: var(--muted); }
.body h2, .body h3, .body hr, .body .table, .body blockquote, .body .sources { clear: both; }
.body > .pic + * { margin-top: 0; }

/* > blockquote = a callout box ("The short answer", "Greg's take") */
.body blockquote { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 18px 22px; }
.body blockquote > * + * { margin-top: 10px; }
.body blockquote ul { gap: 8px; }
/* Tables scroll sideways on phones instead of squeezing */
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.body table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
.body th, .body td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.body th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--soft); }
.body tr:last-child td { border-bottom: 0; }
.body .sources { font-size: 14px; }
.body .sources li { color: var(--muted); }

.post-foot { max-width: 720px; margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.post-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.updated { font-size: 14px; color: var(--muted); max-width: 720px; margin-top: 30px; font-style: italic; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .in { padding: 0 16px; }
  .blog-hero { padding: 48px 0 24px; }
  article { padding-top: 40px; }
  .card { padding: 22px 20px; }
  .card.has-thumb { grid-template-columns: 1fr 92px; gap: 16px; align-items: start; }
  .card .thumb { width: 92px; height: 92px; }
  .body .pic { width: 44%; margin-left: 16px; }
}
@media print {
  .site-head, .site-foot, .post-foot, .skip { display: none; }
  body { background: #fff; font-size: 12pt; }
  .table { overflow: visible; }
}
