/* Blog styles. Loaded after style.css and only on /blog/ pages.
   Uses the same colour tokens, fonts and spacing as the rest of the site. */

/* breadcrumbs and meta */
.crumbs{font-size:.9rem;margin:0 0 1rem;color:#C9C3B2}
.crumbs a{color:var(--gold-light);text-decoration:none}
.crumbs a:hover{color:#F7F4EE;text-decoration:underline}
.crumbs span{margin:0 .35rem;opacity:.7}
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .7rem;margin:0 0 .6rem;font-size:.9rem;color:var(--muted)}
.post-meta--hero,.page-hero .post-meta--hero{color:#C9C3B2;margin:1.2rem 0 0}
.pill{display:inline-block;padding:.2rem .7rem;border:1px solid var(--gold);border-radius:999px;font-size:.78rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;text-decoration:none;color:var(--gold-dark);background:transparent;line-height:1.5}
.pill:hover{background:var(--gold);color:var(--navy)}
.pill--lg{font-size:.88rem;padding:.4rem 1rem;text-transform:none;letter-spacing:0;color:var(--navy);border-color:#B9AF95;background:#fff}
.pill--lg:hover{border-color:var(--gold)}
.pill[aria-current]{background:var(--navy);border-color:var(--navy);color:#F7F4EE}
.cat-filter{margin:0 0 2.2rem}
.cat-filter ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.6rem}

/* listing */
.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
.post-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-top:4px solid var(--gold);border-radius:4px;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.post-card:hover,.post-card:focus-within{border-color:var(--navy);box-shadow:0 8px 24px rgba(15,31,61,.1)}
.post-card-img{display:block;aspect-ratio:16/10;background:var(--navy);overflow:hidden}
.post-card-img picture{display:block;height:100%}
.post-card-img img{width:100%;height:100%;object-fit:cover}
.post-card-img--none{display:grid;place-items:center}
.post-card-img--none .post-card-mark{width:auto;height:3.2rem;height:3.2rem;width:auto;opacity:.9}
.post-card-body{display:flex;flex-direction:column;flex:1;padding:1.4rem 1.5rem 1.6rem}
.post-card h3{font-size:1.35rem;margin-bottom:.45em}
.post-card h3 a{color:var(--navy);text-decoration:none}
.post-card h3 a:hover{color:var(--gold-dark)}
.post-card-excerpt{flex:1;color:var(--muted);margin-bottom:1rem}
.post-card .more{text-decoration:none}
.post-card .more:hover{color:var(--gold-dark)}
.pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;margin-top:2.5rem;color:var(--muted)}
.empty-state{max-width:640px;background:#fff;border:1px solid var(--line);border-top:4px solid var(--gold);border-radius:4px;padding:2rem}
.empty-state h2{font-size:1.6rem}
.empty-state p:last-child{margin:0}

/* article hero without a photo */
.hero-photo-row.no-photo{grid-template-columns:1fr}
/* featured image: large, full width of the article, with the site's gold offset frame */
.feature{position:relative;max-width:960px;margin:0 auto 2.8rem;padding:0 12px 12px 0}
.feature::before{content:"";position:absolute;top:12px;left:12px;right:0;bottom:0;border:2px solid var(--gold);border-radius:4px;z-index:0}
.feature picture{display:block;position:relative;z-index:1}
.feature img{display:block;width:100%;height:auto;border-radius:4px;background:var(--navy)}
.page-hero .lead{max-width:60ch}

/* article body */
.article-body{font-size:1.1rem;line-height:1.75}
.article-body>*:first-child{margin-top:0}
.article-body h2{font-size:clamp(1.5rem,3vw,1.9rem);margin:2em 0 .6em}
.article-body h3{margin:1.7em 0 .5em}
.article-body ul,.article-body ol{padding-left:1.4rem;margin:0 0 1.2em}
.article-body li{margin-bottom:.5em}
.article-body a{overflow-wrap:anywhere}
.article-body blockquote{margin:1.8em 0;padding:0 0 0 1.2rem;border-left:4px solid var(--gold);font-family:var(--serif);font-size:1.3rem;line-height:1.5;color:var(--navy)}
.article-body blockquote p{margin:0 0 .8em}
.article-body blockquote p:last-child{margin:0}
.article-body img{border-radius:4px;margin:1.6em auto}
.article-body figure{margin:1.8em 0}
.article-body figcaption{font-size:.9rem;color:var(--muted);margin-top:.5rem}
.article-body hr{border:0;border-top:1px solid var(--line);margin:2.4em 0}
.article-body table{display:block;overflow-x:auto;border-collapse:collapse;margin:1.6em 0;font-size:.98rem}
.article-body th,.article-body td{text-align:left;vertical-align:top;padding:.65rem .85rem;border-bottom:1px solid var(--line)}
.article-body th{background:var(--mist);color:var(--navy)}
.article-body code{font-size:.92em;background:var(--mist);padding:.1em .35em;border-radius:3px}
.article-body iframe{max-width:100%}
.author-note{margin:3rem 0 1.5rem;padding:1.4rem 1.5rem;background:var(--mist);border-left:4px solid var(--gold);border-radius:0 4px 4px 0}
.author-note p{margin:0 0 1rem}
.author-note p:last-child{margin:0}

/* YouTube (loads only after the visitor presses play) */
.video{margin:0 0 2.2rem}
.video-link,.video iframe{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:4px}
.video-link{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;padding:1rem;background:var(--navy);color:#F7F4EE;text-align:center;text-decoration:none;border:3px solid var(--gold);overflow:hidden}
.video-link:hover{color:#F7F4EE;background:var(--deep)}
.video-play{width:4.2rem;height:4.2rem;border-radius:50%;background:var(--gold);position:relative;transition:transform .15s}
.video-play::after{content:"";position:absolute;left:54%;top:50%;transform:translate(-50%,-50%);border-style:solid;border-width:.85rem 0 .85rem 1.4rem;border-color:transparent transparent transparent var(--navy)}
.video-link:hover .video-play{transform:scale(1.07)}
.video-label{font-family:var(--serif);font-size:1.4rem}
.video-note{font-size:.85rem;color:#C9C3B2;max-width:34ch}
.video .video-link:focus-visible{outline-color:var(--gold-light)}

@media (max-width:1100px){.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){
  .post-grid{grid-template-columns:1fr}
  .pager{justify-content:center;text-align:center}
  .article-body{font-size:1.05rem}
  .article-body blockquote{font-size:1.2rem}
}

/* Phones held sideways: the header and the call bar stay hidden while you read or scroll
   and appear when you tap the page (see blog.js). */
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  .site-header, .callbar { transition: transform .3s ease; }
  body.chrome-hidden .site-header { transform: translateY(-101%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
  body.chrome-hidden .callbar { transform: translateY(101%); visibility: hidden; box-shadow: none; transition: transform .3s ease, visibility 0s linear .3s; }
}
