/* The journal shares the site's palette while giving stories room to breathe. */
.blog-masthead { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.eyebrow { color: var(--home-accent); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.blog-masthead select { width: auto; }
.blog-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 28px 0 48px; }
.blog-hero h1 { font-size: clamp(3rem, 5.5vw, 4.5rem); line-height: 1.02; letter-spacing: -.055em; font-weight: 500; margin: 0; }
.blog-hero h1 span { color: var(--home-accent); }
.blog-hero-copy { max-width: 44ch; justify-self: end; }
#blog-intro { font-size: 1.0625rem; line-height: 1.8; color: var(--home-text-muted); margin: 0 0 12px; }
.blog-about summary { color: var(--home-accent); font-size: .8125rem; min-height: 40px; padding: 8px 0; }
#blog-desc { font-size: .875rem; line-height: 1.8; color: var(--home-text-muted) !important; padding: 12px 0; }
.journal-section { border-top: 1px solid var(--home-border); }
.journal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0 20px; }
.journal-heading { display: flex; align-items: center; gap: 12px; }
.journal-heading h2 { padding: 0; margin: 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; }
#blog-count { font-size: .75rem; color: var(--home-text-muted); font-variant-numeric: tabular-nums; }
.journal-search { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--home-text-muted); font-weight: 400; }
.journal-search input { width: 200px; border: none; border-bottom: 1px solid var(--home-border); padding: 10px 0; background: transparent; font-size: .8125rem; min-height: 44px; border-radius: 0; }
.journal-search input::placeholder { color: var(--home-text-muted); }
.journal-filters { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.blog-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-button { border: 1px solid var(--home-border); background: transparent; color: var(--home-text-muted); border-radius: 24px; padding: 8px 16px; font-size: .75rem; min-height: 40px; }
.topic-button[aria-pressed="true"] { background: var(--home-navy); border-color: var(--home-navy); color: var(--home-card-bg); }
.topic-button:hover { border-color: var(--home-accent); }
.tag-select { margin: 0; font-weight: 400; }
.tag-select > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tag-select select { max-width: 210px; min-height: 40px; border: 0; color: var(--home-text-muted); background: transparent; padding: 8px; font-size: .75rem; }
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.story { min-width: 0; background: var(--home-card-bg); border: 1px solid var(--home-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.story-visual { border: 0; border-bottom: 1px solid var(--home-border); padding: 24px; background: var(--home-accent-light); width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; position: relative; cursor: zoom-in; }
.story-visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-expand { position: absolute; bottom: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--home-border); border-radius: 50%; color: var(--home-accent); background: var(--home-card-bg); font-size: 18px; }
.story-visual:focus-visible { outline-offset: -5px; }
.story-body { display: flex; flex-direction: column; padding: 24px; flex: 1; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; color: var(--home-text-muted); font-size: .75rem; }
.story-category { color: var(--home-accent); font-weight: 500; }
.story h3 { margin: 0 0 14px; font-size: 1.3125rem; font-weight: 500; line-height: 1.35; letter-spacing: -.025em; }
.story-title-button { border: 0; padding: 0; color: inherit; background: transparent; text-align: left; font: inherit; min-height: 44px; }
.story-title-button:hover { color: var(--home-accent); }
.story-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .875rem; line-height: 1.8; color: var(--home-text-muted); margin-bottom: 24px; }
.story-author { font-size: .75rem; color: var(--home-text-muted); margin-top: auto; padding-bottom: 16px; }
.story-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--home-border); padding-top: 12px; }
.story-actions button, .story-actions a { font-size: .75rem; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.story-read { border: 0; padding: 0; background: transparent; color: var(--home-accent); }
.story-plain { border: 0; border-radius: 6px; padding: 8px 12px; background: var(--home-accent-light); color: var(--home-accent); }
.story-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.15fr; }
.story-featured .story-visual { height: 100%; min-height: 380px; border-bottom: 0; border-right: 1px solid var(--home-border); padding: 36px; }
.story-featured .story-visual img { max-height: 360px; }
.story-featured .story-body { padding: 36px 40px; }
.story-featured h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; }
.story-featured .story-excerpt { -webkit-line-clamp: 3; font-size: .9375rem; }
.featured-label { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--home-accent); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.featured-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--home-accent); }
.journal-empty, .journal-skeleton { grid-column: 1 / -1; min-height: 280px; border: 1px solid var(--home-border); border-radius: var(--radius); padding: 48px; text-align: center; background: var(--home-card-bg); }
.journal-empty h3 { font-size: 1.5rem; margin: 0 0 12px; }
.journal-empty p { color: var(--home-text-muted); margin-bottom: 24px; }
.journal-skeleton { background: linear-gradient(90deg, var(--home-accent-light) 45%, var(--home-card-bg) 45%); }
.journal-dialog { padding: 48px; border: 0; border-radius: 16px; background: var(--home-card-bg); color: var(--home-text); width: min(720px, calc(100% - 32px)); max-height: 85vh; margin: auto; overflow: auto; }
.journal-dialog::backdrop { background: #10243caa; backdrop-filter: blur(4px); }
body:has(.journal-dialog[open]) { overflow: hidden; }
.dialog-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; font-size: 26px; background: var(--home-bg); color: var(--home-navy); line-height: 1; }
#dialog-title { font-size: 1.875rem; font-weight: 500; line-height: 1.25; letter-spacing: -.03em; margin: 20px 0; padding: 0; }
.dialog-copy { font-size: 1rem; line-height: 1.9; white-space: pre-line; }
.dialog-paper { margin-top: 28px; }
.journal-dialog.image-dialog { width: min(1000px, calc(100% - 32px)); padding: 56px 24px 24px; }
.dialog-image { display: block; max-height: 65vh; width: 100%; object-fit: contain; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .story { transition: border-color 150ms ease-out; }
  .story:hover { border-color: var(--home-accent); }
  .story-plain:hover { background: var(--home-border); }
}
@media (max-width: 991px) {
  .blog-hero { gap: 32px; }
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-featured .story-body { padding: 28px; }
  .story-featured .story-visual { padding: 24px; }
}
@media (max-width: 600px) {
  .blog-masthead { gap: 16px; }
  .eyebrow { font-size: .75rem; max-width: 22ch; }
  .blog-hero { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }
  .blog-hero h1 { font-size: 3.5rem; }
  .blog-hero-copy { justify-self: start; }
  .journal-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .journal-search, .journal-search input { width: 100%; }
  .journal-filters { gap: 12px; }
  .topic-button { padding-inline: 12px; }
  .journal-grid { grid-template-columns: 1fr; }
  .story-featured { display: flex; }
  .story-featured .story-visual { min-height: 0; height: 260px; border-right: 0; border-bottom: 1px solid var(--home-border); }
  .story-featured .story-body { padding: 24px; }
  .story-featured h3 { font-size: 1.5rem; }
  .story-visual { height: 240px; }
  .journal-dialog { padding: 48px 24px 24px; }
  #dialog-title { font-size: 1.5rem; }
  .journal-empty { padding: 32px 24px; }
}
