/* Colors and fonts live here. Change --accent to restyle the whole site. */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1d1b19;
  --muted: #6b655d;
  --line: #e6e0d6;
  --accent: #b4532a;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --width: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --surface: #1f1e1c;
    --ink: #ece7df;
    --muted: #a39b90;
    --line: #34312d;
    --accent: #e08a5c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .4em; }

header.site, main, footer.site { max-width: var(--width); margin: 0 auto; padding: 0 20px; }

header.site {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; justify-content: space-between;
  padding-top: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

main { padding-top: 40px; padding-bottom: 64px; min-height: 60vh; }
main > section { margin-bottom: 56px; }

.hero h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); letter-spacing: -.01em; }
.tagline { font-family: var(--serif); font-size: 1.25rem; color: var(--muted); margin: 0 0 1em; }
.about { max-width: 62ch; }

.page-head h1 { font-size: 2.2rem; }
.page-head p { color: var(--muted); max-width: 62ch; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 1.35rem; margin: 0; }
.section-head a { font-size: .92rem; text-decoration: none; white-space: nowrap; }
.list-title { font-size: 1.35rem; margin: 36px 0 14px; }

.meta { color: var(--muted); font-size: .85rem; margin: 0 0 .25em; letter-spacing: .02em; }
.empty { color: var(--muted); font-style: italic; }

/* posts */
.posts { display: grid; gap: 0; }
.post { border-top: 1px solid var(--line); }
.post:last-child { border-bottom: 1px solid var(--line); }
.post-link { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 22px 0; color: inherit; text-decoration: none; }
.post-link:has(.post-img) { grid-template-columns: 160px 1fr; }
.post-img { width: 160px; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; }
.post h3 { font-size: 1.3rem; }
.post-link:hover h3 { color: var(--accent); }
.excerpt { color: var(--muted); margin: 0 0 .5em; }
.cta { color: var(--accent); font-size: .92rem; font-weight: 500; }

/* podcast */
.episode { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.episode h3 { font-size: 1.2rem; }
.episode p { margin: 0 0 .8em; }
iframe.spotify { width: 100%; border: 0; border-radius: 12px; display: block; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border: 1px solid var(--line); background: var(--surface); padding: 4px 14px; border-radius: 999px; text-decoration: none; font-size: .9rem; }
.pill:hover { border-color: var(--accent); }

/* videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; }
.video-card { color: inherit; text-decoration: none; }
.video-card h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; }
.video-card:hover h3 { color: var(--accent); }
.thumb { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--line); margin-bottom: 10px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .9rem; }
.play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.55); }
.play::after { content: ""; position: absolute; left: 19px; top: 14px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.thumb-empty + .play { display: none; }
.embed { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 18px; }
.embed iframe { width: 100%; height: 100%; border: 0; }
.video-title { font-size: 1.9rem; }

/* subscribe */
.subscribe { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.subscribe h2 { font-size: 1.3rem; }
.subscribe iframe { width: 100%; max-width: 480px; border: 0; background: transparent; }

footer.site {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 40px; color: var(--muted); font-size: .9rem;
}
footer.site .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .post-link:has(.post-img) { grid-template-columns: 1fr; }
  .post-img { width: 100%; }
}
