/* Content carried over from the old WordPress site (posts, person, data & REM-3D pages, archives).
   Styles the WordPress block markup in the site's design. Loaded before theme.css, so it uses only tokens. */

.wp-hero h1 { max-width: 22ch; font-size: clamp(2rem, 4.2vw, 3.3rem); }
.wp-hero .eyebrow a { color: inherit; text-decoration: none; }
.wp-hero .eyebrow a:hover { text-decoration: underline; }
.wp-meta { color: var(--text-2); margin: .6rem 0 0; font-family: var(--font-mono); font-size: .9rem; }

/* ---------- prose ---------- */
.wp-prose { font-size: 1.06rem; line-height: 1.7; color: var(--text); max-width: 72ch; }
.wp-prose p, .wp-prose ul, .wp-prose ol, .wp-prose blockquote, .wp-prose table, .wp-prose pre, .wp-prose .wp-block-file { margin: 0 0 1.1em; }
.wp-prose h1, .wp-prose h2, .wp-prose h3, .wp-prose h4 { margin: 1.8em 0 .5em; line-height: 1.2; }
.wp-prose > :first-child { margin-top: 0; }
.wp-prose h1 { font-size: 1.9rem; }
.wp-prose h2 { font-size: 1.6rem; }
.wp-prose h3 { font-size: 1.3rem; }
.wp-prose ul, .wp-prose ol { padding-left: 1.4em; margin: 0; }
.wp-prose li + li { margin-top: .35em; }
.wp-prose blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--accent); color: var(--text-2); font-style: italic; }
.wp-prose hr, .wp-prose .wp-block-separator { border: 0; border-top: 1px solid var(--line-strong); margin: 2em 0; }
.wp-prose pre, .wp-prose code { font-family: var(--font-code, ui-monospace, monospace); font-size: .9em; }
.wp-prose pre { background: var(--surface-2); padding: 14px 16px; overflow-x: auto; border: 1px solid var(--line); }
.wp-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.wp-prose th, .wp-prose td { border-bottom: 1px solid var(--line); padding: .5em .7em; text-align: left; vertical-align: top; }
.wp-prose th { font-family: var(--font-display); border-bottom: 2px solid var(--text); }

/* images & figures */
.wp-prose img { max-width: 100%; height: auto; }
.wp-prose figure { margin: 1.6em 0; }
.wp-prose figure img { display: block; }
.wp-prose figcaption, .wp-prose .wp-caption-text, .wp-prose .wp-element-caption {
  margin-top: .6em; font-family: var(--font-display); font-size: .86rem; line-height: 1.45; color: var(--text-2);
}
.wp-prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.wp-prose .aligncenter img { margin: 0 auto; }
.wp-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 45%; }
.wp-prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 45%; }
.wp-prose .wp-caption { max-width: 100%; }
.wp-prose::after { content: ""; display: block; clear: both; }
.wp-featured { margin: 0 0 1.8em; }
.wp-featured img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }

/* galleries & columns */
.wp-prose .wp-block-gallery, .wp-prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.wp-prose .wp-block-gallery figure, .wp-prose .gallery-item { margin: 0; }
.wp-prose .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; }
.wp-prose .wp-block-column { flex: 1 1 240px; min-width: 0; }
.wp-prose .wp-block-media-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: center; }

/* embeds, files, buttons */
.wp-prose iframe, .wp-prose video { max-width: 100%; }
.wp-prose .wp-block-embed__wrapper, .wp-prose .ast-oembed-container { position: relative; aspect-ratio: 16 / 9; }
.wp-prose .wp-block-embed__wrapper iframe, .wp-prose .ast-oembed-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wp-prose .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wp-prose .wp-block-file__button, .wp-prose .wp-block-button__link {
  display: inline-block; padding: .55em 1em; font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  background: var(--accent); color: var(--on-accent); text-decoration: none; border: 0;
}
.wp-prose .wp-block-file__button:hover, .wp-prose .wp-block-button__link:hover { background: var(--text); color: var(--on-accent); }

/* person pages: portrait floats beside the bio on wide screens */
.wp-person img:first-of-type { max-width: 260px; }
@media (max-width: 640px) {
  .wp-prose .alignleft, .wp-prose .alignright { float: none; margin: 1em 0; max-width: 100%; }
  .wp-prose .wp-block-media-text { grid-template-columns: 1fr; }
}

/* ---------- post navigation ---------- */
.wp-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 3rem; padding-top: 1.2rem; border-top: 2px solid var(--text); }
.wp-postnav a { display: block; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; line-height: 1.3; }
.wp-postnav a span { display: block; font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .3em; }
.wp-postnav a:hover { color: var(--accent); }
.wp-postnav .wp-newer { text-align: right; }
.wp-back { margin-top: 1.4rem; font-family: var(--font-display); font-weight: 600; }
@media (max-width: 640px) { .wp-postnav { grid-template-columns: 1fr; } .wp-postnav .wp-newer { text-align: left; } }

/* ---------- archive lists (news.html, /category/, /author/) ---------- */
.wp-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.wp-cats .chip { text-decoration: none; color: var(--text); border-color: var(--line-strong); }
.wp-year { font-size: 1.5rem; margin: 2.4rem 0 .4rem; padding-bottom: .4rem; border-bottom: 2px solid var(--text); }
.wp-year:first-child { margin-top: 0; }
.wp-list { list-style: none; margin: 0; padding: 0; }
.wp-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.wp-thumb { display: block; width: 150px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.wp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-thumb-empty { background: repeating-linear-gradient(45deg, var(--surface-2) 0 6px, var(--surface-3) 6px 7px); }
.wp-item h2 { font-size: 1.25rem; margin: .2rem 0 .35rem; line-height: 1.25; }
.wp-item h2 a { color: var(--text); text-decoration: none; }
.wp-item h2 a:hover { color: var(--accent); }
.wp-item-meta { margin: 0; font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.wp-item-meta a { color: var(--accent); text-decoration: none; }
.wp-excerpt { margin: 0; color: var(--text-2); font-size: .98rem; }
.wp-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 2rem; font-family: var(--font-display); font-weight: 700; }
.wp-pager a { text-decoration: none; }
@media (max-width: 560px) { .wp-item { grid-template-columns: 1fr; } .wp-thumb { width: 100%; aspect-ratio: 16 / 9; } }
