/* Blog-specific styles. Everything else comes from site.css (the main website's stylesheet). */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap--narrow { max-width: calc(760px + 2 * var(--pad)); }

/* Blog header */
.blog-hero { padding-bottom: clamp(36px, 4vw, 56px); }
.blog-hero h1 { font-size: clamp(40px, 5.6vw, 76px); margin: 22px 0 22px; }
.blog-hero .lead { font-size: clamp(18px, 1.8vw, 24px); margin-bottom: 32px; max-width: 860px; }
.blog-hero .lead p { margin: 0; }
.blog-eyebrow { margin-top: 28px; }
.blog-eyebrow + h1 { margin-top: 12px; }

.cat-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.cat-nav a {
  display: inline-block; padding: 9px 16px; border: 1px solid #d6d3ce; background: #fff;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.cat-nav a:hover { border-color: var(--ink); }
.cat-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Featured (latest) article */
.featured-post { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-bottom: clamp(48px, 5vw, 72px); margin-bottom: clamp(48px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.featured-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.featured-media:hover img { transform: scale(1.02); }
.featured-body h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 200; line-height: 1.15; margin: 14px 0 16px; }
.featured-body h2 a { text-decoration: none; }
.featured-body h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.featured-body .post-excerpt { font-size: 17px; margin-bottom: 18px; }
.featured-body .post-meta { margin-bottom: 26px; }

/* Cards (extends the main site's .post-card) */
.post-card .post-card-title { font-size: 22px; font-weight: 300; line-height: 1.28; margin: 10px 0 12px; }
.post-card .post-img img { display: block; }
.post-card .post-cat { color: var(--ink); }
.post-card a:hover .post-card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.post-img--logo { display: flex; align-items: center; justify-content: center; }
.post-card .post-img--logo img.logo-placeholder, .featured-media img.logo-placeholder { width: 46%; height: auto; object-fit: contain; opacity: .55; }
.blog-empty { color: var(--muted); font-size: 20px; }

/* Pagination */
.srd-pagination { margin-top: clamp(48px, 5vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.srd-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.srd-pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d6d3ce; text-decoration: none; font-size: 14px; letter-spacing: .08em; }
.srd-pagination a.page-numbers:hover { border-color: var(--ink); }
.srd-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.srd-pagination .page-numbers.dots { border: 0; }

/* Search form */
.search-form { display: flex; gap: 10px; max-width: 560px; margin-top: 8px; }
.search-form input[type="search"] { flex: 1; min-width: 0; border: 1px solid #d6d3ce; background: #fff; padding: 14px 16px; font: 300 17px var(--sans); color: var(--ink); border-radius: 0; }
.search-form input[type="search"]:focus { outline: none; border-color: var(--ink); }
.search-form .btn { padding: 14px 24px; }

/* Article */
.post-header { background: var(--stone); padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 4vw, 56px); }
.post-header .eyebrow { margin-top: 30px; }
.post-header .eyebrow a { text-decoration: none; }
.post-header .eyebrow a:hover { color: var(--ink); }
.post-title { font-size: clamp(36px, 4.8vw, 62px); font-weight: 200; line-height: 1.08; letter-spacing: -.015em; margin: 14px 0 20px; }
.post-dek { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: var(--muted); margin-bottom: 22px; }
.post-meta { font-size: 14px; letter-spacing: .04em; color: var(--faint); margin: 0; }
.post-meta a { color: var(--ink); text-decoration: none; }
.post-meta a:hover { text-decoration: underline; }
.post-hero { margin: 0 auto; max-width: 1200px; background: var(--stone); }
.post-hero img { width: 100%; max-height: 78vh; object-fit: cover; }
.post-hero figcaption { max-width: calc(760px + 2 * var(--pad)); margin: 0 auto; padding: 12px var(--pad) 0; font-size: 14px; color: var(--faint); background: #fff; }

/* Article typography */
.entry-content { padding-top: clamp(40px, 5vw, 64px); padding-bottom: 16px; font-size: 19px; line-height: 1.8; color: #333; }
.entry-content > * { margin-top: 0; margin-bottom: 1.3em; }
.entry-content h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 300; line-height: 1.2; color: var(--ink); margin: 2em 0 .6em; }
.entry-content h3 { font-size: 24px; font-weight: 400; line-height: 1.3; color: var(--ink); margin: 1.8em 0 .5em; }
.entry-content h4, .entry-content h5, .entry-content h6 { font-size: 19px; font-weight: 500; color: var(--ink); margin: 1.6em 0 .4em; }
.entry-content a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content strong, .entry-content b { font-weight: 500; color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--faint); }
.entry-content blockquote, .entry-content .wp-block-quote { margin: 2em 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--ink); font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.45; color: var(--ink); }
.entry-content blockquote p { margin: 0 0 .5em; }
.entry-content blockquote cite, .entry-content .wp-block-quote cite { display: block; font: 400 13px var(--sans); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-top: 10px; }
.entry-content .wp-block-pullquote { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; text-align: center; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content img { height: auto; }
.entry-content figcaption, .entry-content .wp-element-caption { font-size: 14px; line-height: 1.5; color: var(--faint); margin-top: 10px; text-align: left; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; }
.entry-content th { font-weight: 500; color: var(--ink); }
.entry-content code { font-size: .88em; background: var(--stone); padding: 2px 6px; }
.entry-content pre { background: var(--stone); padding: 20px; overflow-x: auto; font-size: 15px; }
.entry-content .alignwide { width: min(1100px, calc(100vw - 2 * var(--pad))); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content::after { content: ''; display: table; clear: both; }
.entry-content .wp-block-button__link { background: var(--ink); color: #fff; border-radius: 0; padding: 18px 32px; font: 400 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.entry-content .wp-block-embed iframe { max-width: 100%; }
.page-links { display: flex; gap: 8px; margin: 2em 0; font-size: 15px; }

/* Article footer */
.post-footer { padding-bottom: clamp(48px, 6vw, 80px); }
.post-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 28px; padding: 0; }
.post-tags a { display: inline-block; padding: 6px 12px; background: var(--stone); font-size: 13px; text-decoration: none; color: #444; }
.post-tags a:hover { background: var(--ink); color: #fff; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.share .label, .post-footer .label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); margin: 0; }
.share a { text-decoration: none; letter-spacing: .06em; border-bottom: 1px solid transparent; }
.share a:hover { border-bottom-color: var(--ink); }
.author-box { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; padding: 36px 0; border-bottom: 1px solid var(--line); }
.author-box .author-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--stone); }
.author-box .label { margin-bottom: 4px; }
.author-name { font-size: 22px; font-weight: 300; margin: 0 0 8px; }
.author-name a { text-decoration: none; }
.author-bio { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.post-services { padding: 30px 0; border-bottom: 1px solid var(--line); }
.post-services ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 12px; }
.post-services a { font-size: 17px; text-decoration: none; border-bottom: 1px solid #ccc; }
.post-services a:hover { border-bottom-color: var(--ink); }
.srd-post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 30px; }
.srd-post-nav a { display: block; text-decoration: none; }
.srd-post-nav .nav-next { text-align: right; grid-column: 2; }
.srd-post-nav .label { display: block; margin-bottom: 6px; }
.srd-post-nav .post-nav-title { font-size: 19px; font-weight: 300; line-height: 1.35; }
.srd-post-nav a:hover .post-nav-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Comments */
.comments-wrap { padding-bottom: clamp(48px, 6vw, 80px); }
.comments-title, .comment-reply-title { font-size: 26px; font-weight: 300; margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-meta { font-size: 14px; color: var(--faint); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 10px; }
.comment-form label { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #888; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid #d6d3ce; padding: 12px 14px; font: 300 16px var(--sans); }
.comment-form p { margin-bottom: 18px; }

@media (max-width: 900px) {
  .featured-post { grid-template-columns: 1fr; }
  .entry-content { font-size: 18px; }
  .entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em 0; max-width: 100%; }
}
@media (max-width: 560px) {
  .author-box { grid-template-columns: 64px 1fr; gap: 16px; }
  .author-box .author-avatar { width: 64px; height: 64px; }
  .srd-post-nav .nav-links { grid-template-columns: 1fr; }
  .srd-post-nav .nav-next { grid-column: 1; text-align: left; }
  .search-form { flex-direction: column; }
}
