/*
Theme Name: Roseflow
Description: A standalone visual-first editorial theme for Pelrose, focused on hair, beauty, and personal style.
Author: Pelrose
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roseflow
Tags: blog, photography, grid-layout, custom-logo, custom-menu, featured-images, translation-ready, wide-blocks
*/

/* Editorial aesthetic, native CSS. DESIGN_VARIANCE 6 / MOTION_INTENSITY 3 / VISUAL_DENSITY 3.
 * One light theme: portrait photography, rose accents, unboxed story cards.
 * Cormorant's fine, open forms give Pelrose a publication voice; Source Sans keeps reading practical.
 */
:root {
  color-scheme: light;
  --rf-bg: #fff;
  --rf-surface: #fbf5f6;
  --rf-ink: #302a2d;
  --rf-muted: #71656b;
  --rf-rose: #914d63;
  --rf-rose-hover: #70394c;
  --rf-line: #e9dfe3;
  --rf-input-line: #a08791;
  --rf-serif: 'Cormorant Garamond', Georgia, serif;
  --rf-sans: 'Source Sans 3', 'Segoe UI', sans-serif;
  --rf-container: 1200px;
  --rf-content: 760px;
  --rf-radius: 3px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 30px; }
body { margin: 0; color: var(--rf-ink); background: var(--rf-bg); font: 400 18px/1.65 var(--rf-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
iframe, video { max-width: 100%; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--rf-rose); }
button, input, textarea, select { font: inherit; }
button, .button, input[type='submit'] { cursor: pointer; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rf-rose); outline-offset: 5px; }
::selection { background: #f0dce3; color: var(--rf-ink); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 20px; font-family: var(--rf-serif); font-weight: 500; line-height: 1.12; text-wrap: pretty; }
h1 { font-size: clamp(2.75rem, 5.3vw, 4.75rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5, h6 { font-size: 1.2rem; }
p { margin: 0 0 20px; }
figure { margin: 0; }
.container { width: min(var(--rf-container), calc(100% - 80px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }
.skip-link:focus { z-index: 1000; top: 12px; left: 12px; width: auto; height: auto; padding: 12px 20px; clip-path: none; background: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--rf-rose); }
.text-link span { font-size: 22px; font-weight: 400; }
.eyebrow { color: var(--rf-rose); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
.button, input[type='submit'] { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 46px; padding: 10px 22px; border: 1px solid var(--rf-rose); border-radius: var(--rf-radius); background: var(--rf-rose); color: #fff; font: 600 16px/1.5 var(--rf-sans); }
.button:hover, input[type='submit']:hover { background: var(--rf-rose-hover); border-color: var(--rf-rose-hover); color: #fff; }

/* A compact masthead with expandable mobile article search. */
.site-header { border-bottom: 1px solid var(--rf-line); background: var(--rf-bg); }
.header-inner { min-height: 80px; display: flex; gap: 32px; align-items: center; }
.site-branding { flex: 0 0 auto; }
.wordmark { display: inline-block; font-family: var(--rf-serif); font-weight: 500; font-size: 43px; letter-spacing: -.055em; line-height: 1.2; }
.custom-logo { width: auto; max-width: 185px; max-height: 52px; }
.main-navigation { margin-inline: auto; font-size: 15px; font-weight: 500; }
.menu { margin: 0; padding: 0; list-style: none; }
.main-navigation > .menu { display: flex; gap: 24px; align-items: center; }
.main-navigation li { position: relative; }
.main-navigation li a { display: inline-flex; min-height: 44px; align-items: center; white-space: nowrap; }
.main-navigation .current-menu-item > a, .main-navigation .current-menu-ancestor > a { color: var(--rf-rose); text-decoration: underline; }
.main-navigation .sub-menu { display: none; position: absolute; z-index: 10; inset-block-start: 100%; inset-inline-start: -18px; min-width: 200px; margin: 0; padding: 12px 18px; list-style: none; background: #fff; border: 1px solid var(--rf-line); }
.main-navigation .sub-menu .sub-menu { inset-inline-start: 100%; inset-block-start: 0; }
.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu, .main-navigation li.submenu-open > .sub-menu { display: block; }
.nav-enhanced li:focus-within:not(.submenu-open) > .sub-menu { display: none; }
.nav-enhanced li.submenu-open > .sub-menu { display: block; }
.submenu-toggle { min-width: 30px; min-height: 44px; border: 0; padding: 0; margin-inline-start: 4px; background: transparent; color: inherit; }
.submenu-toggle::before { content: ''; display: inline-block; width: 7px; height: 7px; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.submenu-toggle[aria-expanded='true']::before { transform: translateY(2px) rotate(225deg); }
.menu-toggle { background: none; border: 1px solid var(--rf-input-line); border-radius: var(--rf-radius); padding: 8px 16px; min-height: 44px; font-size: 15px; }
.menu-toggle__close, .menu-toggle[aria-expanded='true'] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded='true'] .menu-toggle__close { display: inline; }
.header-search { flex: 0 0 232px; }
.search-toggle { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; align-items: center; justify-content: center; }
.header-search[hidden], .search-toggle[hidden] { display: none; }
.search-form { display: flex; width: 100%; min-width: 0; border: 1px solid var(--rf-input-line); border-radius: var(--rf-radius); background: #fff; }
.search-field { display: block; flex: 1; min-width: 0; width: 100%; min-height: 44px; border: 0; border-radius: inherit; padding: 8px 12px; font-size: 16px; color: var(--rf-ink); background: transparent; }
input::placeholder, textarea::placeholder { color: var(--rf-muted); opacity: 1; }
.search-form:focus-within { outline: 2px solid var(--rf-rose); outline-offset: 3px; }
.search-field:focus { outline: 0; }
.search-form button { flex: 0 0 auto; min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: var(--rf-rose); font-size: 14px; font-weight: 600; }
.search-form button:hover { background: var(--rf-surface); }

/* Homepage: an editorial introduction beside two differently sized stories. */
.home-intro { display: grid; grid-template-columns: .75fr 1.7fr; align-items: center; gap: 52px; padding-block: 56px 48px; }
.home-intro:not(:has(.home-features)) { grid-template-columns: 1fr; }
.home-intro:not(:has(.home-features)) .home-intro__copy { max-width: 620px; }
.home-intro__copy { padding-bottom: 35px; }
.home-intro__copy h1 { font-size: clamp(2.6rem, 4.4vw, 3.9rem); line-height: 1.02; margin-bottom: 24px; }
.home-intro__copy > p:not(.eyebrow) { max-width: 30ch; color: var(--rf-muted); line-height: 1.65; font-size: 17px; }
.home-intro__copy .eyebrow { margin-bottom: 25px; }
.home-intro__copy .text-link { margin-top: 8px; }
.home-features { display: grid; grid-template-columns: 1.25fr .85fr; align-items: center; gap: 30px; }
.home-features .story-card:nth-child(2) { padding-top: 74px; }
.home-features .story-card:only-child { grid-column: 1 / -1; max-width: 480px; margin-inline: auto; }
.home-features .story-title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.home-features .story-card--feature .story-title { font-size: clamp(1.8rem, 2.7vw, 2.25rem); }
.home-features .story-excerpt { display: none; }
.browse-strip { border-block: 1px solid var(--rf-line); padding-block: 18px; }
.browse-strip:empty { display: none; }
.topic-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; font-size: 16px; }
.topic-links a { display: inline-flex; align-items: center; min-height: 44px; }
.topic-links a[aria-current] { color: var(--rf-rose); text-decoration: underline; }
.topic-links__label { color: var(--rf-muted); margin-inline-end: auto; font-family: var(--rf-serif); font-size: 24px; }
.latest-section { padding-block: 55px 80px; scroll-margin-top: 28px; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { margin-bottom: 8px; }
.section-heading p { color: var(--rf-muted); font-size: 17px; }
.story-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px 24px; }
.story-card { min-width: 0; align-self: start; }
.story-image { display: block; border-radius: var(--rf-radius); background: var(--rf-surface); }
.story-image img { width: 100%; height: auto; border-radius: inherit; }
.story-caption { padding-top: 17px; }
.story-category { display: inline-block; color: var(--rf-rose); font-size: 12px; letter-spacing: .055em; font-weight: 600; margin-bottom: 7px; }
.story-title { font-size: 27px; line-height: 1.13; letter-spacing: -.018em; margin-bottom: 10px; overflow-wrap: anywhere; }
.story-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.story-meta { font-size: 13px; color: var(--rf-muted); margin: 0; }
.story-excerpt { font-size: 16px; color: var(--rf-muted); }
.story-card:not(:has(.story-image)) .story-caption { padding: 28px 22px; background: var(--rf-surface); border-top: 2px solid var(--rf-rose); }

/* Archives retain source order and native crawlable pagination. */
.archive-layout { padding-block: 55px 80px; }
.paged-home-header { padding-top: 50px; }
.page-header { max-width: 800px; margin-bottom: 35px; }
.page-header h1 { margin-bottom: 18px; }
.search .page-header h1 { font-size: clamp(2rem, 3.5vw, 3rem); }
.page-header p, .archive-description { color: var(--rf-muted); max-width: 62ch; }
.page-header .eyebrow { color: var(--rf-rose); }
.archive-layout > .topic-links { padding-bottom: 24px; margin-bottom: 35px; border-bottom: 1px solid var(--rf-line); }
.breadcrumb { display: inline-block; font-size: 14px; color: var(--rf-muted); margin-bottom: 18px; text-decoration: underline; }
.archive-description a { text-decoration: underline; }
.pagination { margin-top: 52px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pagination .page-numbers:not(ul), .page-links .post-page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid var(--rf-line); border-radius: var(--rf-radius); font-size: 16px; }
.pagination .current, .page-links .current { background: var(--rf-rose); color: #fff; border-color: var(--rf-rose); }
.pagination a:hover { border-color: var(--rf-rose); }
.empty-state { max-width: 600px; padding-block: 40px 70px; }
.empty-state p { color: var(--rf-muted); }
.empty-state .search-form, .error-layout .search-form { max-width: 460px; margin-block: 30px; }
.error-layout { max-width: 800px; padding-block: 90px; }
.error-layout .topic-links { margin-top: 45px; }

/* Comfortable reading measure; portrait content is never cropped. */
.single-layout { padding-top: 38px; }
.article-header { max-width: 880px; margin: 0 auto 35px; text-align: center; }
.breadcrumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 13px; margin-bottom: 25px; color: var(--rf-muted); }
.breadcrumbs .story-category { margin: 0; font-size: inherit; letter-spacing: 0; }
.article-header h1 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 22px; line-height: 1.06; }
.article-deck { max-width: 640px; margin: 0 auto 24px; font-size: 20px; color: var(--rf-muted); }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; color: var(--rf-muted); }
.article-meta a { text-decoration: underline; }
.article-layout { position: relative; }
.article-body { width: min(100%, var(--rf-content)); margin-inline: auto; }
.article-cover { margin-bottom: 36px; }
.article-cover img { width: 100%; border-radius: var(--rf-radius); }
.article-sidebar { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 185px; }
.article-toc { position: sticky; top: 28px; border-top: 1px solid var(--rf-line); padding-top: 17px; font-size: 14px; }
.article-toc summary { cursor: pointer; font-weight: 600; color: var(--rf-rose); }
.article-toc ol { padding: 0; margin: 18px 0 0; max-height: 60vh; overflow: auto; scrollbar-width: thin; counter-reset: toc-item; }
.article-toc li { display: grid; grid-template-columns: minmax(3ch, max-content) minmax(0, 1fr); column-gap: .35em; margin-bottom: 12px; line-height: 1.4; counter-increment: toc-item; }
.article-toc li::before { content: counter(toc-item) "."; padding-block: 5px; }
.article-toc a { display: block; min-width: 0; padding-block: 5px; padding-inline-end: .25em; overflow-wrap: anywhere; }
.article-toc a[aria-current] { color: var(--rf-rose); text-decoration: underline; }
.entry-content { font-size: 19px; line-height: 1.8; overflow-wrap: anywhere; display: flow-root; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p, .entry-content ul, .entry-content ol { margin-block: 0 25px; }
.entry-content h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-block: 55px 23px; scroll-margin-top: 24px; }
.entry-content h3 { margin-top: 35px; }
.entry-content a { text-decoration: underline; color: var(--rf-rose); }
.entry-content figure { margin-block: 30px; }
.entry-content .wp-block-image img { border-radius: var(--rf-radius); height: auto; }
.entry-content figcaption, .wp-caption-text { color: var(--rf-muted); font-size: 14px; line-height: 1.5; margin-top: 12px; text-align: start; }
.entry-content blockquote { margin: 35px 0; padding: 12px 28px; border-inline-start: 2px solid var(--rf-rose); font: 500 30px/1.35 var(--rf-serif); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { font: 400 15px/1.6 var(--rf-sans); }
.entry-content pre { overflow: auto; background: var(--rf-surface); padding: 20px; font-size: 15px; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 17px; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--rf-line); text-align: start; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content hr { border: 0; border-top: 1px solid var(--rf-line); margin-block: 40px; }
.entry-content .wp-block-button__link { color: #fff; background: var(--rf-rose); border-radius: var(--rf-radius); font-family: var(--rf-sans); text-decoration: none; }
.entry-content .is-style-outline .wp-block-button__link { color: var(--rf-rose); background: transparent; }
.entry-content .alignwide, .entry-content .alignfull { width: 100%; max-width: 100%; }
.alignleft { float: left; margin: 8px 25px 20px 0; }
.alignright { float: right; margin: 8px 0 20px 25px; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-block-gallery { gap: 16px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 35px; }
.article-tags a { font-size: 14px; padding: 7px 14px; background: var(--rf-surface); color: var(--rf-rose); }
.author-note { border-top: 1px solid var(--rf-line); padding-top: 24px; margin-top: 36px; }
.author-note h2 { font-size: 27px; margin-bottom: 8px; }
.author-note p { color: var(--rf-muted); font-size: 16px; }
.related-section { border-top: 1px solid var(--rf-line); padding-block: 55px 80px; margin-top: 65px; }
.page-layout { width: min(var(--rf-content), calc(100% - 80px)); padding-block: 60px 80px; }
.page-layout .alignwide { width: min(100vw - 80px, 1000px); max-width: none; margin-inline-start: 50%; transform: translateX(-50%); }
.page-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }

/* Native forms and conversation. */
input:not([type='checkbox'], [type='radio'], [type='submit'], [type='hidden'], .search-field), textarea, select { max-width: 100%; border: 1px solid var(--rf-input-line); padding: 10px 12px; border-radius: var(--rf-radius); color: var(--rf-ink); background: #fff; }
textarea { width: 100%; }
.comments-area { margin-top: 50px; border-top: 1px solid var(--rf-line); padding-top: 35px; font-size: 16px; }
.comment-list, .comment-list .children { list-style: none; padding-inline-start: 0; }
.comment-list .children { padding-inline-start: 24px; }
.comment-body { padding-block: 20px; }
.comment-author { display: flex; align-items: center; gap: 8px; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: 13px; color: var(--rf-muted); margin-block: 8px 15px; }
.comment-content a, .reply a, .logged-in-as a { text-decoration: underline; }
.comment-form label { display: block; margin-bottom: 5px; }
.comment-form-cookies-consent label { display: inline; }
.comment-form input[type='checkbox'] { width: 18px; height: 18px; vertical-align: middle; accent-color: var(--rf-rose); }
.comment-reply-title { font-size: 30px; }
.bypostauthor > .comment-body { border-inline-start: 2px solid var(--rf-rose); padding-inline-start: 18px; }

/* The same light palette continues into the footer. */
.site-footer { background: var(--rf-surface); border-top: 1px solid var(--rf-line); }
.footer-main { display: grid; grid-template-columns: 1.15fr .7fr 1fr; gap: 70px; padding-block: 52px 45px; }
.footer-main:not(:has(.footer-explore)) { grid-template-columns: 1fr 1fr; }
.footer-brand .wordmark { font-size: 48px; margin-bottom: 15px; }
.footer-brand p { color: var(--rf-muted); font-size: 16px; max-width: 33ch; margin: 0; }
.footer-main h2 { font-family: var(--rf-sans); font-size: 16px; font-weight: 600; letter-spacing: 0; margin-bottom: 18px; }
.footer-explore .topic-links { flex-direction: column; align-items: flex-start; gap: 0; font-size: 15px; }
.footer-explore .topic-links a { min-height: 34px; }
.footer-discover .text-link { margin-top: 18px; font-size: 15px; }
.footer-bottom { border-top: 1px solid var(--rf-line); padding-block: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px 30px; font-size: 13px; color: var(--rf-muted); }
.footer-bottom p { margin: 0; }
.footer-bottom .menu { display: flex; flex-wrap: wrap; gap: 12px 25px; }
.footer-bottom a { display: inline-block; padding-block: 8px; }

@media (min-width: 1280px) {
  .article-layout:has(.article-sidebar:not([hidden])) .article-body { margin-inline-start: 225px; }
}
@media (max-width: 1279px) {
  .header-inner { gap: 22px; }
  .main-navigation > .menu { gap: 16px; }
  .header-search { flex-basis: 210px; }
  .home-intro { gap: 32px; }
  .home-features { gap: 24px; }
  .article-sidebar { position: static; width: min(100%, var(--rf-content)); margin: 0 auto 30px; }
  .article-toc { position: static; padding: 16px 22px; background: var(--rf-surface); border: 1px solid var(--rf-line); }
  .article-toc ol { columns: 2; max-height: none; }
  .article-toc li { break-inside: avoid; }
}
@media (max-width: 1023px) {
  .header-inner { flex-wrap: wrap; padding-block: 15px; gap: 14px 24px; }
  .header-inner.search-enhanced { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); grid-template-rows: minmax(50px, max-content); align-content: start; column-gap: 12px; }
  .search-enhanced .site-branding { grid-column: 1; grid-row: 1; min-width: 0; max-width: 100%; }
  .search-enhanced .wordmark { font-size: clamp(24px, 6vw, 39px); overflow-wrap: anywhere; }
  .search-enhanced .custom-logo { max-width: 100%; }
  .search-toggle:not([hidden]) { display: inline-flex; grid-column: 2; grid-row: 1; }
  .search-enhanced .menu-toggle { grid-column: 3; grid-row: 1; justify-self: end; }
  .search-enhanced .header-search { grid-column: 1 / -1; grid-row: 2; }
  .search-enhanced .main-navigation { grid-column: 1 / -1; grid-row: 3; }
  .site-branding { margin-inline-end: auto; }
  .header-search { order: 2; flex-basis: 245px; }
  .menu-toggle:not([hidden]) { display: block; order: 3; }
  .main-navigation { order: 4; width: 100%; margin: 0; }
  .main-navigation.nav-enhanced:not(.is-open) { display: none; }
  .main-navigation > .menu { flex-wrap: wrap; gap: 0 26px; }
  .main-navigation .sub-menu, .main-navigation .sub-menu .sub-menu { position: static; border: 0; padding: 4px 0 8px 18px; }
  .home-intro { grid-template-columns: 1fr; padding-top: 36px; gap: 32px; }
  .home-intro__copy { padding-bottom: 0; max-width: 680px; }
  .home-intro__copy h1 { font-size: 58px; max-width: 13ch; }
  .home-intro__copy > p:not(.eyebrow) { max-width: 50ch; }
  .home-intro__copy .eyebrow { max-width: none; margin-bottom: 14px; }
  .home-intro__copy .text-link { margin-top: 0; }
  .home-features { grid-template-columns: 1.15fr .85fr; gap: 32px; }
  .home-features .story-card:nth-child(2) { padding-top: 0; }
  .home-features .story-title { font-size: 30px; }
  .home-features .story-card--feature .story-title { font-size: 35px; }
  .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-main { gap: 35px; grid-template-columns: 1fr .65fr 1fr; }
}
@media (max-width: 767px) {
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 12px 20px; }
  .wordmark { font-size: 39px; }
  .header-search { order: 4; flex-basis: 100%; }
  .main-navigation { order: 5; }
  .main-navigation > .menu { display: block; }
  .main-navigation > .menu > li { border-top: 1px solid var(--rf-line); padding-block: 3px; }
  .main-navigation li:hover:not(.submenu-open) > .sub-menu { display: none; }
  .main-navigation:not(.nav-enhanced) li:focus-within > .sub-menu { display: block; }
  .submenu-toggle { float: inline-end; min-width: 44px; }
  .home-intro { padding-block: 32px 30px; gap: 30px; }
  .home-intro__copy h1 { font-size: clamp(2.8rem, 8vw, 3.7rem); max-width: 13ch; }
  .home-intro__copy > p:not(.eyebrow) { font-size: 16px; margin-bottom: 10px; }
  .home-intro__copy .eyebrow { font-size: 10px; }
  .home-features { grid-template-columns: 1fr; gap: 30px; }
  .home-features .story-card:nth-child(2) { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; align-items: center; }
  .home-features .story-card:nth-child(2) .story-caption { padding-top: 0; }
  .home-features .story-title { font-size: 27px; }
  .home-features .story-card--feature .story-title { font-size: 34px; }
  .browse-strip { padding-block: 14px; }
  .topic-links { gap: 4px 23px; font-size: 15px; }
  .topic-links__label { flex-basis: 100%; font-size: 22px; }
  .latest-section { padding-block: 35px 55px; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .story-title { font-size: 25px; }
  .story-caption { padding-top: 12px; }
  .section-heading { margin-bottom: 25px; }
  .archive-layout { padding-block: 35px 55px; }
  .page-header { margin-bottom: 24px; }
  .page-header h1 { overflow-wrap: anywhere; }
  .single-layout { padding-top: 25px; }
  .article-header { text-align: start; }
  .article-header h1 { font-size: clamp(2rem, 6vw, 2.5rem); }
  .article-meta, .breadcrumbs { justify-content: flex-start; }
  .article-meta { gap: 5px 16px; font-size: 13px; }
  .article-deck { font-size: 18px; }
  .article-toc ol { columns: 1; }
  .entry-content { font-size: 18px; line-height: 1.8; }
  .entry-content h2 { margin-top: 40px; }
  .entry-content figure { margin-block: 24px; }
  .entry-content .alignleft, .entry-content .alignright { float: none; margin-inline: 0; }
  .page-layout .alignwide { width: 100%; transform: none; margin-inline: 0; }
  .related-section { padding-block: 35px 55px; margin-top: 40px; }
  .page-layout { padding-block: 35px 55px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px 25px; padding-block: 35px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-main:not(:has(.footer-explore)) .footer-discover { grid-column: 1 / -1; }
  .footer-brand p { max-width: 45ch; }
  .footer-discover .search-form { flex-wrap: wrap; }
  .footer-discover .search-form button { width: 100%; text-align: start; }
  .footer-bottom { align-items: flex-start; }
  .error-layout { padding-block: 55px; }
}
@media (max-width: 479px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-grid .story-title { font-size: 31px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-main:not(:has(.footer-explore)) { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-explore .topic-links { flex-direction: row; gap: 4px 24px; }
  .footer-discover .search-form { flex-wrap: nowrap; }
  .footer-discover .search-form button { width: auto; }
  .home-features .story-card:nth-child(2) .story-title { font-size: 25px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: color .16s ease, background-color .16s ease; }
}
@media print {
  .site-header, .site-footer, .article-sidebar, .related-section, .comments-area, .skip-link { display: none !important; }
  .container, .article-body { width: 100%; max-width: none; margin: 0 !important; }
  body { font-size: 12pt; color: #000; }
  .entry-content { font-size: 12pt; }
  .article-cover img { max-height: 70vh; object-fit: contain; }
}
