/* The Daniel Blog — 2026 refresh */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #101828;
  --muted: #5c6676;
  --navy: #131c33;
  --navy-ink: #e9edf5;
  --accent: #b8860b;
  --accent-bright: #d4a017;
  --rule: #e2e6ec;
  --max: 1020px;
  --narrow: 700px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1420;
    --surface: #161e2e;
    --ink: #e7ebf2;
    --muted: #98a2b3;
    --navy: #0a101c;
    --navy-ink: #e7ebf2;
    --accent: #d4a017;
    --accent-bright: #e6b52c;
    --rule: #263043;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16.5px/1.7 "Public Sans", system-ui, -apple-system, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

header.site {
  background: var(--navy);
  color: var(--navy-ink);
  padding: 1rem 0;
}
header.site .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--navy-ink);
}
.wordmark span { color: var(--accent-bright); }
.wordmark:hover { text-decoration: none; }
nav.top { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.86rem; font-weight: 500; }
nav.top a { color: #b6c0d4; }
nav.top a:hover { color: var(--accent-bright); text-decoration: none; }

.kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero { background: var(--navy); color: var(--navy-ink); padding: 3rem 0 3.4rem; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}
.hero p { color: #b6c0d4; max-width: 32em; }
.hero-art { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,0.35); }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

main { padding: 2.8rem 0 3.4rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16,24,40,0.12); }
.card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  margin: 0.35rem 0 0.45rem;
}
.card p { font-size: 0.9rem; color: var(--muted); }

.archive {
  margin-top: 2.8rem;
  padding: 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.archive h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}
.archive ul { list-style: none; }
.archive li { padding: 0.45rem 0; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--muted); }
.archive li:first-child { border-top: 0; }
.archive li span { font-weight: 600; color: var(--ink); }
.archive li em { color: var(--accent); font-style: normal; font-size: 0.8rem; }

article.page { max-width: var(--narrow); margin: 0 auto; }
article.page header { margin-bottom: 1.5rem; }
article.page h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-top: 0.4rem;
}
.page-hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--rule);
  margin: 0 0 1.8rem;
}
article.page p { margin: 0 0 1.15rem; font-size: 1.02rem; }
article.page h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  margin: 1.8rem 0 0.7rem;
}
article.page ul {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem 1.2rem;
}
article.page li {
  padding: 0.5rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 0.92rem;
}
article.page li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

footer.site {
  background: var(--navy);
  color: #8794ab;
  padding: 1.6rem 0 2rem;
  font-size: 0.82rem;
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
