/* ==============================================================
   Vellum — WordPress adjustments on top of story.css
   (core block markup, admin bar, templates)
   ============================================================== */

.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }

/* fixed header clears the admin bar */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* query loop around the latest issue on the front page */
.wp-block-post-template { list-style: none; margin: 0; padding: 0; }

/* core drop cap uses the Vellum drop cap */
.has-drop-cap:not(:focus)::first-letter {
  float: left;
  font-family: var(--display); font-weight: 800; font-style: normal; text-transform: none;
  font-size: 4.3em; line-height: 0.8;
  margin: 0; padding: 0.05em 0.1em 0 0;
  color: var(--accent-text);
}
.theme-dark .has-drop-cap:not(:focus)::first-letter { color: inherit; }

/* cover lead link */
.cover-lead .title__heading a { text-decoration: none; }
.cover-lead .title__heading a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.title__content > :last-child { margin-bottom: 0; }

/* core images inside text sections */
.wp-block-image.inline-media { margin: 2.5rem 0; }
.wp-block-image.inline-media--wide img { width: 100%; }
.wp-element-caption {
  font-family: var(--sans); font-size: 0.8125rem; line-height: 1.45;
  color: var(--muted); text-align: left;
  margin: 0.6rem 0 0;
}

/* core quote as pull quote */
.wp-block-quote.pullquote cite { display: block; }
.wp-block-quote.pullquote > p:last-of-type { margin-bottom: 0.6rem; }

/* core table as data table */
.wp-block-table.data-table { margin: 1.75rem 0 2.25rem; overflow-x: auto; }
.wp-block-table.data-table table { width: 100%; border-collapse: collapse; }
.wp-block-table.data-table thead,
.wp-block-table.data-table tfoot { border: 0; }
.wp-block-table.data-table :where(th, td) { border: 0; border-bottom: 1px solid #dddad3; }
.wp-block-table.data-table tfoot td { border-top: 2px solid var(--fg-light); }
.wp-block-table.data-table .has-text-align-right { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wp-block-table.data-table .wp-element-caption { margin-top: 0.6rem; }

/* headings inside cards and sittings keep block-library defaults out */
.roundup__card .wp-block-heading { margin: 0 0 0.75rem; }
.sitting .wp-block-list { margin: 0; }

/* issue archive and plain pages */
.page-body {
  max-width: var(--measure); margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) var(--gutter) 4rem;
}
.page-body .wp-block-post-title {
  font-family: var(--display); font-weight: 800; line-height: 1.1;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem); margin: 0 0 1.5rem;
}
.issue-list .wp-block-post { padding: 1.25rem 0; border-bottom: 1px solid #dddad3; }
.issue-list .wp-block-post-title { font-size: 1.5rem; margin: 0; }
.issue-list .wp-block-post-title a { text-decoration: none; }
.issue-list .wp-block-post-title a:hover { text-decoration: underline; }
.issue-list .wp-block-post-date { font-family: var(--sans); font-size: 0.875rem; color: var(--muted-light); margin-top: 0.25rem; }
