/*
 * Weddings.ro Editorial
 * Photography-led editorial system. All components are square-edged,
 * restrained and designed around typography, rhythm and image quality.
 */

:root {
    --wed-ink: #171614;
    --wed-ink-soft: #24211e;
    --wed-paper: #fffdf9;
    --wed-ivory: #f4f0e9;
    --wed-sand: #ece5da;
    --wed-gold: #9a7c4a;
    --wed-muted: #6f6963;
    --wed-line: #cfc8bf;
    --wed-line-light: #e8e2da;
    --wed-display: "Bodoni Moda", "Times New Roman", serif;
    --wed-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --wed-wide: min(1280px, calc(100vw - 64px));
    --wed-reading: min(720px, calc(100vw - 40px));
    --wed-ease: cubic-bezier(.2, .7, .2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--wed-paper);
    color: var(--wed-ink);
    font-family: var(--wed-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-underline-offset: .18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--wed-gold);
    outline-offset: 4px;
}

::selection {
    background: var(--wed-ink);
    color: var(--wed-paper);
}

.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;
}

.alignwide {
    width: var(--wed-wide);
    max-width: var(--wed-wide);
    margin-left: auto;
    margin-right: auto;
}

.editorial-kicker,
.editorial-kicker a,
.eyebrow,
.editorial-date,
.edition-note,
.text-link,
.article-byline,
.footer-heading,
.section-index {
    font-family: var(--wed-sans);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.editorial-kicker,
.editorial-kicker a,
.eyebrow {
    color: var(--wed-gold);
}

.editorial-kicker a:hover,
.text-link a:hover {
    text-decoration: underline;
}

/* Masthead */
.editorial-masthead {
    position: relative;
    z-index: 20;
}

.masthead-utility {
    min-height: 28px;
    border-bottom: 1px solid var(--wed-line-light);
}

.masthead-utility p {
    margin: 0;
    color: var(--wed-muted);
    font-size: .61rem;
    font-weight: 600;
    letter-spacing: .16em;
}

.masthead-brand {
    min-height: 124px;
    gap: 8px;
    padding: 22px 0 18px;
}

.masthead-brand .wp-block-site-logo,
.masthead-brand .custom-logo-link {
    margin: 0 auto;
}

.masthead-brand .custom-logo {
    width: auto;
    max-height: 58px;
    object-fit: contain;
}

.masthead-fallback {
    margin: 0;
    font-family: var(--wed-display);
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .92;
}

.masthead-brand:has(.custom-logo) .masthead-fallback {
    display: none;
}

.masthead-tagline {
    margin: 0;
    color: var(--wed-muted);
    font-size: .72rem;
    letter-spacing: .08em;
}

.navigation-bar {
    border-top: 1px solid var(--wed-line);
    border-bottom: 1px solid var(--wed-line);
}

.navigation-inner {
    min-height: 46px;
    gap: 28px;
}

.main-navigation {
    flex: 1;
}

.main-navigation .wp-block-navigation-item__content {
    position: relative;
    padding: 14px 0 12px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.main-navigation .wp-block-navigation-item__content::after {
    position: absolute;
    right: 0;
    bottom: 13px;
    left: 0;
    height: 1px;
    background: var(--wed-ink);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s var(--wed-ease);
}

.main-navigation .wp-block-navigation-item__content:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.masthead-search {
    width: 38px;
    flex: 0 0 38px;
}

.masthead-search .wp-block-search__inside-wrapper {
    border: 0;
    padding: 0;
}

.masthead-search input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.masthead-search button {
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 9px;
    border: 0;
    background: transparent;
    color: var(--wed-ink);
}

/* Homepage introduction and lead */
.edition-intro {
    gap: 32px;
    padding: 30px 0 22px;
}

.publication-purpose {
    max-width: 610px;
    margin: 0;
    font-size: clamp(1.55rem, 2.5vw, 2.3rem);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.04;
}

.edition-note {
    max-width: 460px;
    margin: 0;
    color: var(--wed-muted);
    text-align: right;
}

.lead-layout {
    padding: 0 0 110px;
}

.lead-columns {
    align-items: stretch;
    gap: clamp(36px, 5vw, 76px);
}

.lead-story .wp-block-post-template,
.editors-selection .wp-block-post-template,
.edit-grid .wp-block-post-template,
.essential-grid .wp-block-post-template,
.story-grid .wp-block-post-template {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lead-story .wp-block-post-template > li {
    margin: 0;
}

.lead-image,
.compact-story .wp-block-post-featured-image,
.edit-card .wp-block-post-featured-image,
.essential-card .wp-block-post-featured-image,
.story-card .wp-block-post-featured-image {
    margin: 0;
    overflow: hidden;
    background: var(--wed-ivory);
}

.lead-image img,
.compact-story img,
.edit-card img,
.essential-card img,
.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--wed-ease), filter .5s ease;
}

.lead-image:hover img,
.compact-story:hover img,
.edit-card:hover img,
.essential-card:hover img,
.story-card:hover img {
    transform: scale(1.025);
}

.lead-copy {
    max-width: 760px;
    padding: 28px 2px 0;
}

.lead-copy > * {
    margin-top: 0;
}

.lead-title {
    margin: 12px 0 12px;
    font-size: clamp(2.1rem, 3.65vw, 3.85rem);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .99;
}

.lead-title a:hover,
.compact-story h3 a:hover,
.story-card h3 a:hover,
.edit-card h3 a:hover,
.essential-card h3 a:hover {
    color: inherit;
}

.lead-deck {
    max-width: 670px;
    margin: 0 0 16px;
    color: var(--wed-muted);
    font-size: .98rem;
    line-height: 1.7;
}

.lead-deck p,
.card-deck p {
    margin: 0;
}

.editorial-date {
    color: var(--wed-muted);
    letter-spacing: .08em;
}

.lead-sidebar {
    padding-top: 3px;
}

.section-label-row {
    margin-bottom: 26px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--wed-ink);
}

.section-label,
.section-index {
    margin: 0;
}

.section-label {
    font-family: var(--wed-sans);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.section-index {
    color: var(--wed-muted);
}

.editors-selection .wp-block-post-template {
    display: grid;
    gap: 30px;
}

.compact-story {
    display: grid;
    grid-template-columns: minmax(110px, 40%) 1fr;
    gap: 20px;
    align-items: start;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--wed-line-light);
}

.compact-story-copy > * {
    margin-top: 0;
}

.compact-story h3 {
    margin: 10px 0 15px;
    font-size: clamp(1.2rem, 1.7vw, 1.62rem);
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.12;
}

/* Shared section architecture */
.home-section {
    padding: 92px 0;
}

/* Consecutive white modules need a tighter editorial rhythm than sections
 * separated by a background-color change. */
.start-here {
    padding-bottom: 56px;
}

.start-here + .category-led {
    padding-top: 68px;
}

.section-heading {
    gap: 28px;
    margin-bottom: 48px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--wed-ink);
}

.section-heading h2 {
    margin: 3px 0 0;
    font-size: clamp(2.15rem, 4.1vw, 3.85rem);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .98;
}

.section-description {
    max-width: 380px;
    margin: 0;
    color: var(--wed-muted);
    font-size: .9rem;
    line-height: 1.65;
    text-align: right;
}

.text-link {
    margin: 0 0 5px;
}

.dark-edit {
    padding: 108px 0 116px;
    color: var(--wed-paper);
}

.dark-edit .section-heading {
    border-bottom-color: rgba(255, 253, 249, .32);
}

.dark-edit .section-heading h2 {
    color: var(--wed-paper);
}

.dark-edit .section-description,
.dark-edit .section-index {
    color: rgba(255, 253, 249, .7);
}

.edit-grid .wp-block-post-template,
.story-grid .wp-block-post-template {
    gap: clamp(26px, 3vw, 46px);
}

.edit-card > *,
.essential-card > *,
.story-card > * {
    margin-top: 0;
}

.edit-card .editorial-kicker,
.essential-card .editorial-kicker,
.story-card .editorial-kicker {
    margin-top: 20px;
}

.edit-card h3,
.story-card h3,
.essential-card h3 {
    margin: 10px 0 0;
    font-size: clamp(1.45rem, 2.2vw, 2.15rem);
    font-weight: 400;
    letter-spacing: -.03em;
    line-height: 1.08;
}

.edit-card h3 a,
.dark-edit .editorial-kicker a {
    color: var(--wed-paper);
}

.dark-edit .editorial-kicker {
    color: var(--wed-sand);
}

/* Dark editorial modules need their own interaction palette. Card-title
 * hover previously inherited the black heading color and disappeared. */
.dark-edit .edit-card h3 a,
.dark-edit .edit-card h3 a:visited,
.dark-edit .text-link a,
.dark-edit .text-link a:visited {
    color: var(--wed-paper);
}

.dark-edit .edit-card h3 a:hover,
.dark-edit .edit-card h3 a:focus-visible,
.dark-edit .text-link a:hover,
.dark-edit .text-link a:focus-visible {
    color: var(--wed-sand);
}

.dark-edit .editorial-kicker a:hover,
.dark-edit .editorial-kicker a:focus-visible {
    color: var(--wed-paper);
}

.essential-grid .wp-block-post-template {
    gap: 24px;
}

.essential-card {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--wed-line);
}

.essential-card h3 {
    font-size: clamp(1.25rem, 1.7vw, 1.65rem);
}

.soft-feature {
    margin: 0;
}

.card-deck {
    margin-top: 14px;
    color: var(--wed-muted);
    font-size: .86rem;
    line-height: 1.65;
}

/* Advertising placements. The shortcode emits no markup when a placement is
 * empty, so an unconfigured slot never creates a blank gap. */
.editorial-ad-slot {
    width: var(--wed-wide);
    margin: 0 auto;
    padding: 28px 0;
    text-align: center;
}

.editorial-ad-slot__label {
    margin: 0 0 10px;
    color: var(--wed-muted);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.editorial-ad-slot__content {
    display: flex;
    min-height: 1px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.editorial-ad-slot__content img,
.editorial-ad-slot__content iframe {
    max-width: 100%;
}

.editorial-ad-slot--home-leaderboard {
    padding-top: 10px;
    padding-bottom: 54px;
}

.editorial-ad-slot--home-mid {
    padding-top: 12px;
    padding-bottom: 12px;
}

.editorial-ad-slot--home-mid + .category-led {
    padding-top: 68px;
}

.editorial-ad-slot--article-end,
.editorial-ad-slot--category-mid {
    padding-top: 34px;
    padding-bottom: 54px;
}

/* Newsletter */
.editorial-newsletter {
    padding: 104px 24px 110px;
}

.editorial-newsletter h2 {
    margin: 6px auto 14px;
    font-size: clamp(2.25rem, 4.25vw, 4.1rem);
    font-weight: 400;
    letter-spacing: -.05em;
    line-height: 1;
}

.newsletter-deck {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--wed-muted);
    line-height: 1.65;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    width: min(620px, 100%);
    margin: 30px auto 0;
    border-bottom: 1px solid var(--wed-ink);
}

.newsletter-form input,
.newsletter-form button {
    min-height: 52px;
    border: 0;
    border-radius: 0;
    font-family: var(--wed-sans);
}

.newsletter-form input {
    min-width: 0;
    padding: 0 16px 0 2px;
    background: transparent;
    color: var(--wed-ink);
    font-size: .92rem;
}

.newsletter-form button {
    padding: 0 22px;
    background: var(--wed-ink);
    color: var(--wed-paper);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: background .25s ease;
}

.newsletter-form button:hover {
    background: var(--wed-gold);
}

.newsletter-message {
    width: min(620px, 100%);
    margin: 12px auto 0;
    font-size: .8rem;
    text-align: center;
}

.newsletter-message--success {
    color: #356248;
}

.newsletter-message--error {
    color: #8a2f2b;
}

/* Article */
.article-header {
    padding: 92px 24px 54px;
    text-align: center;
}

.article-kicker {
    justify-content: center;
}

.article-title {
    max-width: 960px;
    margin: 16px auto 20px;
    font-size: clamp(2.55rem, 5.1vw, 4.85rem);
    font-weight: 400;
    letter-spacing: -.052em;
    line-height: .96;
}

.article-deck {
    max-width: 760px;
    margin: 0 auto;
    color: var(--wed-muted);
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    line-height: 1.62;
}

.article-deck p {
    margin: 0;
}

.article-byline {
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
    color: var(--wed-muted);
    letter-spacing: .08em;
}

.article-byline p,
.article-byline .wp-block-post-author,
.article-byline .wp-block-post-date,
.article-byline .wp-block-shortcode {
    margin: 0;
}

.article-author .wp-block-post-author__name {
    font: inherit;
}

.article-hero {
    width: min(1180px, calc(100vw - 64px));
    margin: 0 auto 72px;
}

.article-featured-image {
    margin: 0;
}

.article-featured-image img {
    width: 100%;
    object-fit: cover;
}

.article-prose {
    width: var(--wed-reading);
    margin-right: auto;
    margin-left: auto;
    padding-bottom: 108px;
}

.article-prose .wp-block-post-content {
    font-family: var(--wed-sans);
    font-size: clamp(1.08rem, 1.5vw, 1.18rem);
    line-height: 1.78;
}

.article-prose .wp-block-post-content > p:first-child {
    font-family: var(--wed-display);
    font-size: clamp(1.45rem, 2.1vw, 1.85rem);
    letter-spacing: -.015em;
    line-height: 1.5;
}

.article-prose h2 {
    margin-top: 2.3em;
    margin-bottom: .65em;
    font-family: var(--wed-display);
    font-size: clamp(1.9rem, 3.25vw, 2.8rem);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.article-prose h3 {
    margin-top: 1.9em;
    margin-bottom: .5em;
    font-family: var(--wed-display);
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    font-weight: 400;
    line-height: 1.15;
}

.article-prose p,
.article-prose ul,
.article-prose ol {
    margin-top: 0;
    margin-bottom: 1.35em;
}

.article-prose a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.article-prose blockquote {
    margin: 2.3em 0;
    padding: 0;
    border: 0;
    font-family: var(--wed-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-style: italic;
    letter-spacing: -.035em;
    line-height: 1.18;
}

.article-prose figure.alignwide {
    width: min(1040px, calc(100vw - 64px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.article-prose figcaption {
    color: var(--wed-muted);
    font-size: .72rem;
    line-height: 1.5;
}

.article-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.article-prose th,
.article-prose td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--wed-line);
    text-align: left;
}

.article-end-mark {
    width: 44px !important;
    margin: 72px auto 44px !important;
    border-top: 2px solid var(--wed-gold) !important;
}

.editorial-credit {
    padding: 28px 0 0;
    border-top: 1px solid var(--wed-line);
}

.editorial-credit h2 {
    margin: 8px 0 10px;
    font-size: 1.8rem;
}

.editorial-credit p:last-child {
    color: var(--wed-muted);
    font-size: .86rem;
    line-height: 1.65;
}

.related-editorial {
    padding: 106px 0 116px;
}

.compact-newsletter {
    padding-top: 82px;
    padding-bottom: 88px;
}

/* Archives and pages */
.archive-header,
.category-hero,
.search-header,
.page-header {
    padding: 90px 24px 58px !important;
    background: var(--wed-paper) !important;
    color: var(--wed-ink) !important;
    text-align: center;
}

.archive-header h1,
.category-hero h1,
.category-hero .wp-block-query-title,
.search-header h1,
.page-header h1 {
    font-family: var(--wed-display);
    font-size: clamp(2.6rem, 5.6vw, 4.9rem) !important;
    font-weight: 400 !important;
    letter-spacing: -.05em;
    line-height: .95;
}

.category-intro-content {
    max-width: 720px;
    margin: 0 auto;
    color: var(--wed-muted);
    font-size: 1rem;
    line-height: 1.75;
    text-align: center;
}

.category-description {
    max-width: 680px;
    margin: 20px auto 0;
    color: var(--wed-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.category-intro-section {
    padding: 38px 20px;
}

.category-intro-section:has(.wp-block-shortcode:empty) {
    display: none;
}

.category-lead-section {
    padding: 86px 0 72px;
}

.category-featured-query .wp-block-post-template {
    margin: 0;
    padding: 0;
}

.category-lead {
    gap: clamp(32px, 5vw, 72px);
}

.category-lead-title {
    margin: 12px 0 18px;
    font-size: clamp(2rem, 3.4vw, 3.55rem);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .99;
}

.category-secondary-section {
    padding: 0 0 102px;
}

.category-more-section {
    padding: 104px 0 116px;
}

.category-more-query .wp-block-query-pagination {
    grid-column: 1 / -1;
}

.archive-content,
.category-content,
.search-content,
.page-content-wrapper {
    padding-top: 70px !important;
    padding-bottom: 110px !important;
}

.wp-block-query-pagination {
    gap: 8px;
    margin-top: 60px;
}

.wp-block-query-pagination a,
.wp-block-query-pagination span {
    min-width: 40px;
    padding: 9px 12px;
    border: 1px solid var(--wed-line);
    font-size: .75rem;
    text-align: center;
}

.wp-block-query-pagination .current {
    border-color: var(--wed-ink);
    background: var(--wed-ink);
    color: var(--wed-paper);
}

/* Footer */
footer.wp-block-template-part,
.wp-site-blocks > main + footer.wp-block-template-part {
    margin-block-start: 0 !important;
}

.editorial-footer {
    margin-top: 0 !important;
    padding: 94px 0 32px;
    color: var(--wed-paper);
}

.footer-grid {
    gap: 64px;
}

.editorial-footer .wp-block-site-logo img,
.editorial-footer .custom-logo {
    filter: brightness(0) invert(1);
    opacity: .94;
}

.footer-title {
    margin: 0;
    color: var(--wed-paper);
    font-size: 3rem;
}

.editorial-footer:has(.custom-logo) .footer-title {
    display: none;
}

.footer-manifesto {
    max-width: 480px;
    margin-top: 26px;
    color: rgba(255, 253, 249, .68);
    font-family: var(--wed-display);
    font-size: 1.35rem;
    line-height: 1.45;
}

.footer-heading {
    margin: 0 0 24px;
    color: var(--wed-paper);
}

.editorial-footer .wp-block-navigation {
    gap: 12px;
}

.editorial-footer .wp-block-navigation-item__content {
    color: rgba(255, 253, 249, .74);
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: none;
}

.editorial-footer .wp-block-navigation-item__content:hover {
    color: var(--wed-paper);
}

.footer-legal {
    gap: 24px;
    margin-top: 68px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 253, 249, .18);
}

.footer-legal p {
    margin: 0;
    color: rgba(255, 253, 249, .5);
    font-size: .62rem;
    letter-spacing: .06em;
}

.footer-legal .wp-block-shortcode {
    margin: 0;
    color: rgba(255, 253, 249, .5);
    font-size: .62rem;
    letter-spacing: .06em;
}

body.blog main > .wp-block-group:first-child,
body.archive main > .wp-block-group:first-child,
body.search main > .wp-block-group:first-child {
    background: var(--wed-paper) !important;
}

body.blog main > .wp-block-group:first-child h1,
body.archive main > .wp-block-group:first-child .wp-block-query-title,
body.search main > .wp-block-group:first-child .wp-block-query-title {
    font-size: clamp(2.6rem, 5.6vw, 4.9rem) !important;
    letter-spacing: -.05em;
    line-height: .96;
}

body.blog main > .wp-block-group:nth-child(2) > .wp-block-query,
body.archive main > .wp-block-group:nth-child(2) > .wp-block-query,
body.search main > .wp-block-group:nth-child(2) > .wp-block-query,
body.error404 main .wp-block-query {
    width: var(--wed-wide);
}

body.blog main .wp-block-post-template,
body.archive main .wp-block-post-template,
body.search main .wp-block-post-template,
body.error404 main .wp-block-post-template {
    gap: clamp(28px, 4vw, 52px);
}

body.blog main .wp-block-post-title,
body.archive main .wp-block-post-title,
body.search main .wp-block-post-title,
body.error404 main .wp-block-post-title {
    font-size: clamp(1.45rem, 2.3vw, 2.2rem) !important;
    letter-spacing: -.03em;
    line-height: 1.08 !important;
}

/* Motion, respectful of user preference */
@media (prefers-reduced-motion: no-preference) {
    .editorial-home .wp-block-post-template > li {
        animation: editorial-reveal .75s var(--wed-ease) both;
    }

    .editorial-home .wp-block-post-template > li:nth-child(2) { animation-delay: .08s; }
    .editorial-home .wp-block-post-template > li:nth-child(3) { animation-delay: .16s; }
    .editorial-home .wp-block-post-template > li:nth-child(4) { animation-delay: .24s; }

    @keyframes editorial-reveal {
        from { opacity: 0; transform: translateY(16px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 960px) {
    :root {
        --wed-wide: min(calc(100% - 40px), 1280px);
    }

    .masthead-utility p:first-child {
        display: none;
    }

    .masthead-utility {
        justify-content: center;
    }

    .navigation-inner {
        min-height: 46px;
    }

    .lead-columns {
        flex-direction: column;
    }

    .lead-story,
    .lead-sidebar {
        flex-basis: auto !important;
    }

    .lead-sidebar {
        padding-top: 22px;
    }

    .edit-grid .wp-block-post-template,
    .story-grid .wp-block-post-template {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .essential-grid .wp-block-post-template {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 40px;
    }

    .article-header {
        padding-top: 70px;
    }

    .footer-grid {
        flex-wrap: wrap !important;
    }

    .footer-grid > .wp-block-column {
        flex-basis: calc(50% - 32px) !important;
    }
}

@media (max-width: 680px) {
    :root {
        --wed-wide: calc(100% - 32px);
        --wed-reading: calc(100% - 32px);
    }

    .masthead-utility {
        display: none;
    }

    .masthead-brand {
        min-height: 0;
        padding: 14px 0 12px;
    }

    .masthead-brand .custom-logo {
        max-width: 148px;
        max-height: 46px;
    }

    .masthead-tagline {
        display: none;
    }

    .navigation-inner {
        flex-direction: row;
    }

    .wp-block-navigation__responsive-container.is-menu-open {
        padding: 24px;
    }

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
        font-family: var(--wed-display);
        font-size: 2rem;
        font-weight: 400;
        letter-spacing: -.02em;
        text-transform: none;
    }

    .edition-intro {
        display: block;
        padding-top: 24px;
    }

    .publication-purpose {
        font-size: 1.6rem;
    }

    .edition-note {
        margin-top: 16px;
        font-size: .55rem;
        line-height: 1.6;
        text-align: left;
    }

    .lead-layout {
        padding-bottom: 76px;
    }

    .lead-title {
        font-size: clamp(2.15rem, 10.5vw, 3rem);
    }

    .compact-story {
        grid-template-columns: 110px 1fr;
        gap: 16px;
    }

    .home-section,
    .dark-edit,
    .related-editorial {
        padding-top: 72px;
        padding-bottom: 78px;
    }

    .start-here {
        padding-bottom: 42px;
    }

    .start-here + .category-led,
    .editorial-ad-slot--home-mid + .category-led {
        padding-top: 52px;
    }

    .editorial-ad-slot {
        width: calc(100% - 32px);
        padding-top: 20px;
        padding-bottom: 36px;
    }

    .section-heading {
        display: block;
        margin-bottom: 34px;
    }

    .section-heading h2 {
        font-size: 2.5rem;
    }

    .section-description,
    .text-link,
    .section-index {
        margin-top: 16px;
        text-align: left;
    }

    .edit-grid .wp-block-post-template,
    .story-grid .wp-block-post-template,
    .essential-grid .wp-block-post-template {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .edit-card h3,
    .story-card h3 {
        font-size: 1.75rem;
    }

    .essential-card h3 {
        font-size: 1.6rem;
    }

    .editorial-newsletter {
        padding: 72px 16px 78px;
    }

    .editorial-newsletter h2 {
        font-size: 2.65rem;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
        border-bottom: 0;
        gap: 10px;
    }

    .newsletter-form input {
        padding: 0 14px;
        border-bottom: 1px solid var(--wed-ink);
    }

    .article-header {
        padding: 58px 16px 38px;
    }

    .article-title {
        font-size: clamp(2.3rem, 10.5vw, 3.3rem);
    }

    .archive-header h1,
    .category-hero h1,
    .category-hero .wp-block-query-title,
    .search-header h1,
    .page-header h1,
    body.blog main > .wp-block-group:first-child h1,
    body.archive main > .wp-block-group:first-child .wp-block-query-title,
    body.search main > .wp-block-group:first-child .wp-block-query-title {
        font-size: clamp(2.35rem, 11vw, 3.35rem) !important;
    }

    .article-byline {
        gap: 5px;
        font-size: .58rem;
    }

    .article-hero {
        width: 100%;
        margin-bottom: 48px;
    }

    .article-prose {
        padding-bottom: 76px;
    }

    .article-prose .wp-block-post-content {
        font-size: 1.05rem;
        line-height: 1.75;
    }

    .article-prose figure.alignwide {
        width: 100vw;
    }

    .category-lead {
        flex-direction: column;
    }

    .category-lead > .wp-block-column {
        flex-basis: auto !important;
    }

    .footer-grid > .wp-block-column {
        flex-basis: 100% !important;
    }

    .footer-legal {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media print {
    .editorial-masthead,
    .editorial-footer,
    .related-editorial,
    .editorial-newsletter {
        display: none !important;
    }

    .article-prose,
    .article-header {
        width: 100%;
        max-width: none;
    }
}
