/* ==========================================================
   Blog: cards, listing, article, WordPress content
   ========================================================== */

/* ---------- Latest posts (home) ---------- */
.latest { padding: clamp(96px, 12vw, 160px) var(--pad) 0; }

/* ---------- Post cards ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.post-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.post-card__media {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden; border: 2px solid var(--ink); border-radius: 18px;
  background: var(--cream-2); transition: transform .3s, box-shadow .3s;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card__link:hover .post-card__media { transform: translate(-4px, -4px) rotate(-1deg); box-shadow: 4px 4px 0 var(--ink); }
.post-card__link:hover .post-card__media img { transform: scale(1.05); }
.post-card__media--empty { display: flex; align-items: flex-end; padding: 18px 20px; }
.post-card__media--empty > span:not(.date-badge) { font-size: clamp(40px, 4.4vw, 68px); font-weight: 800; letter-spacing: -0.05em; line-height: .9; }
.post-card--article .post-card__media--empty { background: var(--gold); }
.post-card--podcast .post-card__media--empty { background: var(--ink); color: var(--cream); }
.post-card--news .post-card__media--empty { background: var(--cream-2); }
.post-card--video .post-card__media--empty { background: var(--red); color: var(--cream); }
.play { position: absolute; top: 18px; right: 18px; width: 52px; height: 52px; }
.play circle { fill: var(--gold); }
.play path { fill: var(--ink); }
.post-card__body { padding: 18px 2px 0; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.tag { display: inline-block; border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.post-card__title { font-size: clamp(22px, 1.9vw, 28px); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 8px; }
.post-card__link:hover .post-card__title { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.post-card__excerpt { font-size: 16px; color: var(--ink-2); }

/* ---------- Blog index / archives ---------- */
.blog-hero { padding: 140px var(--pad) 40px; }
.blog-hero__intro { font-size: 21px; color: var(--ink-2); max-width: 560px; margin-top: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--pad) 48px; }
.filters a { padding: 8px 18px; border: 2px solid var(--ink); border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s; }
.filters a:hover { background: var(--cream-2); }
.filters a.is-current { background: var(--ink); color: var(--cream); }
.blog-list { padding: 0 var(--pad) clamp(72px, 9vw, 120px); }
.blog-list--featured .post-card:first-child { grid-column: span 2; }
.blog-list--featured .post-card:first-child .post-card__media { aspect-ratio: 16 / 9; }
.blog-list--featured .post-card:first-child .post-card__title { font-size: clamp(28px, 3vw, 44px); }
.blog-empty { padding: 0 var(--pad) 120px; font-size: 21px; color: var(--ink-2); }
.pagination { padding-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 600; text-decoration: none; }
.pagination .page-numbers.current { background: var(--ink); color: var(--cream); }

/* ---------- Single article ---------- */
.article { padding: 130px var(--pad) 0; }
.article__head { max-width: 980px; margin: 0 auto 48px; }
.article__back { display: inline-block; margin-bottom: 32px; font-weight: 600; text-decoration: none; }
.article__back:hover { color: var(--gold-d); }
.article__title { font-size: clamp(40px, 6vw, 92px); font-weight: 800; line-height: .95; letter-spacing: -0.045em; margin: 16px 0 28px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 2px solid var(--ink); }
.byline strong { color: var(--ink); }
.article__media { max-width: 1180px; margin: 0 auto 56px; border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; }
.article__media img { width: 100%; max-height: 640px; aspect-ratio: 16 / 9; object-fit: cover; }

/* Readable long-form content (also used for normal pages) */
.prose { max-width: 720px; margin: 0 auto; font: 21px/1.65 "Newsreader", Georgia, serif; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-top: 1.8em; }
.prose h2 { font-size: clamp(30px, 3vw, 40px); }
.prose h3 { font-size: clamp(24px, 2.3vw, 30px); }
.prose h4 { font-size: 21px; }
.prose a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { background: rgba(227, 166, 59, .3); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--gold-d); }
.prose blockquote, .prose .wp-block-quote, .prose .wp-block-pullquote {
  margin: 1.6em 0; padding: 6px 0 6px 24px; border-left: 5px solid var(--gold);
  font-style: italic; font-size: 1.2em; line-height: 1.4;
}
.prose blockquote cite { display: block; margin-top: 8px; font: 500 15px/1.4 var(--display); font-style: normal; color: var(--ink-2); }
.prose img { border-radius: 14px; }
.prose figure { margin: 1.6em 0; }
.prose figcaption, .prose .wp-element-caption { font: 14px/1.4 var(--display); color: var(--ink-2); margin-top: 8px; }
.prose hr { border: 0; height: 2px; background: var(--ink); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font: 16px/1.4 var(--display); }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1.5px solid var(--rule, rgba(20,19,17,.15)); }
.prose th { border-bottom: 2px solid var(--ink); }
.prose code { font-size: .85em; background: var(--cream-2); padding: 2px 6px; border-radius: 4px; }
.prose .alignwide { max-width: 1080px; margin-left: 50%; transform: translateX(-50%); width: calc(100vw - 2 * var(--pad)); }
.prose .alignfull { max-width: none; width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }

/* Podcast / video embeds */
.prose .wp-block-embed, .prose .wp-block-audio, .prose .wp-block-video { margin: 2em 0; }
.prose .wp-block-embed__wrapper iframe, .prose iframe { width: 100%; border: 0; border-radius: 14px; }
.prose .wp-block-audio, .episode {
  background: var(--ink); color: var(--cream); border-radius: 22px; padding: 22px 24px;
}
.prose audio, .episode audio { width: 100%; }
.prose .wp-block-audio figcaption { color: rgba(241,235,223,.7); }
.prose .wp-block-button__link { display: inline-block; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 14px 26px; font: 600 17px/1 var(--display); text-decoration: none; }

/* Call to action under each post */
.cta-box {
  max-width: 980px; margin: clamp(64px, 8vw, 96px) auto 0; background: var(--gold); border: 2px solid var(--ink); border-radius: 26px;
  padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.cta-box h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin-bottom: 8px; }
.cta-box p { font-size: 18px; }
.cta-box__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.post-nav { max-width: 980px; margin: 64px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 2px solid var(--ink); padding-top: 24px; }
.post-nav a { text-decoration: none; display: block; }
.post-nav span { display: block; font-size: 14px; color: var(--ink-2); }
.post-nav strong { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.post-nav a:hover strong { color: var(--gold-d); }
.post-nav__next { text-align: right; grid-column: 2; }

.more { padding: clamp(80px, 10vw, 128px) var(--pad) 0; }
.more h2 { font-size: clamp(36px, 4.4vw, 64px); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 32px; }

/* Normal pages (privacy statement etc.) */
.page-head { padding: 140px var(--pad) 48px; max-width: calc(720px + 2 * var(--pad)); margin: 0 auto; }
.page-head h1 { font-size: clamp(44px, 6vw, 88px); font-weight: 800; line-height: .95; letter-spacing: -0.045em; }
.page-body { padding: 0 var(--pad) 120px; }

/* ---------- WordPress basics ---------- */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; display: block; z-index: 100000; background: var(--ink); color: var(--cream); padding: 12px 18px; top: 8px; left: 8px; }
body.admin-bar .top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .top { top: 46px; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: 1fr; }
  .blog-list--featured .post-card:first-child { grid-column: auto; }
  .blog-hero, .page-head { padding-top: 110px; }
  .article { padding-top: 100px; }
  .prose { font-size: 19px; }
  .cta-box { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__next { grid-column: auto; text-align: left; }
  .prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 1em 0; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .posts-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Theme odds and ends ---------- */
.hp { position: absolute !important; left: -9999px; }
.top__logo img { max-height: 44px; width: auto; }
.top__nav a[aria-current="page"] { background-size: 100% 3px; }
.foot__menu { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.foot__menu a { text-decoration: none; }
.foot__menu a:hover { color: var(--gold); }

/* ---------- Content types ---------- */
.post-card--event .post-card__media--empty { background: var(--pen); color: var(--cream); }
.date-badge {
  position: absolute; top: 14px; left: 14px; display: grid; place-items: center; min-width: 64px; padding: 6px 10px 8px;
  background: var(--cream); color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; line-height: 1;
}
.date-badge b { font-size: 30px; letter-spacing: -0.04em; }
.date-badge--past { opacity: .75; }
.listen-on { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* Podcast player */
.episode { max-width: 980px; margin: 0 auto 56px; background: var(--ink); color: var(--cream); border-radius: 26px; padding: clamp(22px, 3vw, 36px); }
.episode__label { font-size: 15px; font-weight: 600; color: var(--gold); margin-bottom: 14px; }
.episode audio { width: 100%; display: block; }
.episode .listen-on { margin-top: 18px; }

/* Video */
.video-embed { max-width: 1180px; margin: 0 auto 56px; border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--ink); }
.video-embed iframe, .video-embed video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.video-link { max-width: 980px; margin: 0 auto 56px; }

/* Event details box */
.event-box {
  max-width: 980px; margin: 0 auto 56px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--cream-2); border: 2px solid var(--ink); border-radius: 26px; padding: clamp(22px, 3vw, 36px);
}
.event-box__date, .event-row__date { display: grid; place-items: center; min-width: 108px; padding: 12px 14px 16px; background: var(--pen); color: var(--cream); border-radius: 18px; text-transform: uppercase; font-weight: 700; font-size: 14px; line-height: 1; }
.event-box__date b, .event-row__date b { font-size: 52px; letter-spacing: -0.05em; }
.event-box__info { display: grid; gap: 10px; }
.event-box__info div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; }
.event-box__info dt { font-size: 14px; color: var(--ink-2); padding-top: 3px; }
.event-box__info dd { font-size: 19px; font-weight: 600; }
.event-box__actions { display: flex; flex-direction: column; gap: 10px; }
.event-box__past { font-weight: 600; color: var(--ink-2); }

/* Events page */
.events { padding: 0 var(--pad) clamp(72px, 9vw, 120px); max-width: 1180px; }
.events__label { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 16px; }
.events__label--past { margin-top: 64px; }
.events__none { font-size: 19px; color: var(--ink-2); padding: 20px 0; border-top: 2px solid var(--ink); }
.event-row { border-top: 2px solid var(--ink); }
.event-row:last-of-type { border-bottom: 2px solid var(--ink); }
.event-row a { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 22px 0; text-decoration: none; }
.event-row h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.event-row__meta { font-weight: 600; margin-top: 6px; }
.event-row__excerpt { color: var(--ink-2); margin-top: 6px; max-width: 640px; }
.event-row__go { font-size: 32px; transition: transform .3s; }
.event-row a:hover .event-row__go { transform: translateX(8px); }
.event-row a:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.event-row--past .event-row__date { background: var(--cream-2); color: var(--ink-2); }
.event-row--past a { padding: 14px 0; }
.event-row--past h3 { font-size: 22px; color: var(--ink-2); }

@media (max-width: 900px) {
  .event-box { grid-template-columns: 1fr; }
  .event-box__date { justify-self: start; }
  .event-box__actions { flex-direction: row; flex-wrap: wrap; }
  .event-row a { grid-template-columns: auto 1fr; gap: 16px; }
  .event-row__go { display: none; }
  .event-box__date, .event-row__date { min-width: 76px; }
  .event-box__date b, .event-row__date b { font-size: 36px; }
}

/* ---------- Static preview only: blog "pages" shown with :target, filters with radio buttons ---------- */
.view { display: none; }
.view:target { display: block; }
body:has(.view:target) #main { display: none; }
.preview-note { display: inline-block; margin-top: 18px; padding: 8px 14px; border: 2px dashed var(--ink-2); border-radius: 12px; font-size: 15px; color: var(--ink-2); }
.prose .preview-note { font: 15px/1.5 var(--display); }
.pf { position: relative; }
.pf__input { position: absolute; opacity: 0; pointer-events: none; }
.pf .filters label { padding: 8px 18px; border: 2px solid var(--ink); border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s; }
.pf .filters label:hover { background: var(--cream-2); }
#pf-all:checked ~ .filters [for="pf-all"], #pf-article:checked ~ .filters [for="pf-article"], #pf-news:checked ~ .filters [for="pf-news"],
#pf-podcast:checked ~ .filters [for="pf-podcast"], #pf-video:checked ~ .filters [for="pf-video"], #pf-event:checked ~ .filters [for="pf-event"] { background: var(--ink); color: var(--cream); }
.pf__input:focus-visible ~ .filters { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 999px; }
#pf-article:checked ~ .blog-list .post-card:not(.post-card--article),
#pf-news:checked ~ .blog-list .post-card:not(.post-card--news),
#pf-podcast:checked ~ .blog-list .post-card:not(.post-card--podcast),
#pf-video:checked ~ .blog-list .post-card:not(.post-card--video),
#pf-event:checked ~ .blog-list .post-card:not(.post-card--event) { display: none; }
.pf__input:not(#pf-all):checked ~ .blog-list .post-card:first-child { grid-column: auto; }
.pf__input:not(#pf-all):checked ~ .blog-list .post-card:first-child .post-card__media { aspect-ratio: 16 / 11; }
.pf__input:not(#pf-all):checked ~ .blog-list .post-card:first-child .post-card__title { font-size: clamp(22px, 1.9vw, 28px); }
.video-embed--placeholder { aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--cream); text-align: center; }
.video-embed--placeholder .play { position: static; width: 84px; height: 84px; margin: 0 auto 14px; }
.article .more { padding-left: 0; padding-right: 0; }
