/* Reader Atlas blog. Same look as the homepage (index.html), whose styles are inline. */
:root {
  --cream: #fbf5ee;
  --card: #ffffff;
  --ink: #1f1d3a;
  --ink-soft: #4a4866;
  --muted: #8a879f;
  --coral: #f6a77c;
  --coral-deep: #ee8a5a;
  --sun: #fbd56b;
  --line: #ece4da;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--muted); }

/* Header, menu and buttons come from /site.css. */

/* Blog index */
.blog-hero { text-align: center; padding: 56px 0 28px; }
.blog-hero h1 { font-size: clamp(2.8rem, 7vw, 4.4rem); margin: 10px 0 16px; }
.blog-hero p { color: var(--ink-soft); font-size: 1.15rem; max-width: 46ch; margin: 0 auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 36px; }
.chip { border: 2px solid var(--line); background: var(--card); color: var(--ink-soft); border-radius: 999px; padding: 8px 16px; font: 600 .9rem var(--sans); cursor: pointer; }
.chip small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chip:hover { border-color: var(--coral); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active small { color: #c9c7dc; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--card); border-radius: 20px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgba(31,29,58,.3); }
.post-card[hidden] { display: none; }
.post-cover { aspect-ratio: 16 / 9; background: #efe6da; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.type-cover { width: 100%; height: 100%; display: grid; place-items: center; padding: 20px 26px; text-align: center;
  background: linear-gradient(150deg, #2d2a52 0%, #4a3c74 60%, #ee8a5a 140%); color: #fff; }
.type-cover span { font: 600 1.25rem/1.2 var(--serif); }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: .78rem; font-weight: 600; color: var(--coral-deep); text-transform: uppercase; letter-spacing: .08em; }
.post-card h3 { font-size: 1.2rem; margin: 8px 0 8px; }
.post-card p { color: var(--ink-soft); font-size: .92rem; margin: 0 0 16px; flex: 1; }
.post-meta { font-size: .85rem; color: var(--muted); }

/* Post page */
.post { max-width: 720px; margin: 0 auto; padding: 36px 0 24px; }
.post .back { display: table; margin-bottom: 28px; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink-soft); }
.post .back:hover { color: var(--coral-deep); }
.post h1 { font-size: clamp(2.2rem, 5.5vw, 3.2rem); margin: 10px 0 14px; }
.post > .post-meta { margin-bottom: 32px; }
.listen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; background: var(--card);
  border: 2px solid var(--coral); border-radius: 16px; padding: 16px 20px; margin: 0 0 32px; font-size: .95rem; }
.listen a { font-weight: 600; white-space: nowrap; }
.post-body { font-size: 1.08rem; line-height: 1.75; color: #2c2a47; }
.post-body p { margin: 0 0 1.3em; }
.post-body h2 { font-size: 1.7rem; margin: 1.8em 0 .6em; }
.post-body h3 { font-size: 1.3rem; margin: 1.5em 0 .5em; }
.post-body a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.post-body a:hover { color: var(--coral-deep); }
.post-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--coral); font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--ink); }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.post-body li { margin-bottom: .4em; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.post-body figure { margin: 2em 0; }
.post-body figure.gif video { margin: 0 auto; border-radius: 14px; background: #efe6da; height: auto; }
.post-body figure.art svg { display: block; width: 100%; height: auto; }
.post-cover img.art-cover { object-fit: contain; background: #fff; padding: 8px; }
.post-body figcaption { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 10px; }
.post-body .embed { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin: 2em 0; background: #000; }
.post-body .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-body .bookmark { display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 20px; margin: 1.5em 0; font-weight: 400; }
.post-body .bookmark b { color: var(--ink); }
.post-body .bookmark span { color: var(--ink-soft); font-size: .92rem; }
.post-body .bookmark small { color: var(--coral-deep); font-weight: 600; }
.post-body .bookmark:hover { border-color: var(--coral); }

.more { padding: 40px 0 24px; border-top: 1px solid var(--line); margin-top: 32px; }
.more h2 { text-align: center; font-size: 2rem; margin-bottom: 28px; }

footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 40px 0 48px; }
footer a { color: var(--ink-soft); }

@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-body { font-size: 1.02rem; }
}
