/*
Theme Name: AB Pilates Magazine
Theme URI: https://abpilates.com.br/
Author: AB Pilates
Author URI: https://abpilates.com.br/
Description: Tema editorial e responsivo para a revista AB Pilates, com foco em leitura, acessibilidade, descoberta de conteúdo e performance.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abpilates-magazine
Tags: blog, news, grid-layout, one-column, two-columns, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
    --ab-ink: #23364a;
    --ab-ink-deep: #172838;
    --ab-ink-soft: #566676;
    --ab-muted: #7f8b92;
    --ab-paper: #f8f6f1;
    --ab-paper-deep: #efebe3;
    --ab-white: #fffdf9;
    --ab-sage: #8ea58f;
    --ab-sage-deep: #547366;
    --ab-coral: #c36f56;
    --ab-gold: #d7b765;
    --ab-lilac: #b9b0c9;
    --ab-line: rgba(35, 54, 74, 0.14);
    --ab-line-light: rgba(255, 253, 249, 0.24);
    --ab-shadow: 0 20px 60px rgba(35, 54, 74, 0.10);
    --ab-radius: 18px;
    --ab-container: 1240px;
    --ab-reading: 760px;
    --ab-display: Georgia, "Times New Roman", serif;
    --ab-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ab-ink);
    background: var(--ab-paper);
    font-family: var(--ab-sans);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
    font-family: var(--ab-sans);
}

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

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

a:hover {
    color: var(--ab-coral);
}

button,
input,
textarea,
select {
    max-width: 100%;
    font-size: inherit;
}

button,
input[type="submit"],
.button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--ab-gold);
    outline-offset: 3px;
}

.site-container {
    width: min(var(--ab-container), calc(100% - 48px));
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    z-index: 1000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    margin: 0;
    overflow: visible;
    clip: auto;
    color: var(--ab-white);
    background: var(--ab-ink-deep);
    white-space: normal;
}

/* Header */
.topline {
    color: var(--ab-white);
    background: var(--ab-ink-deep);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.topline__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 38px;
}

.topline p {
    margin: 0;
}

.topline__signal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dbe8d9;
}

.topline__signal::before {
    width: 7px;
    height: 7px;
    content: "";
    border-radius: 50%;
    background: var(--ab-gold);
}

.site-header {
    position: relative;
    z-index: 20;
    background: var(--ab-paper);
    border-bottom: 1px solid var(--ab-line);
}

.site-header__main {
    display: grid;
    grid-template-columns: minmax(205px, 1fr) auto minmax(205px, 1fr);
    align-items: center;
    gap: 28px;
    min-height: 108px;
}

.site-branding {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: fit-content;
    color: var(--ab-ink);
    text-decoration: none;
}

.custom-logo-link img {
    width: auto;
    max-height: 60px;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--ab-white);
    font-family: var(--ab-display);
    font-size: 1.16rem;
    font-weight: 700;
    letter-spacing: -0.08em;
    border-radius: 52% 48% 56% 44%;
    background: var(--ab-sage-deep);
    transform: rotate(-7deg);
}

.brand-mark::after {
    position: absolute;
    right: -7px;
    bottom: -6px;
    width: 20px;
    height: 20px;
    content: "";
    border: 2px solid var(--ab-coral);
    border-radius: 50%;
}

.brand-copy {
    display: grid;
    gap: 0;
}

.brand-copy__name {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.15;
    text-transform: uppercase;
}

.brand-copy__tagline {
    color: var(--ab-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    line-height: 1.4;
    text-transform: uppercase;
}

.site-header__title {
    margin: 0;
    color: var(--ab-ink-deep);
    font-family: var(--ab-display);
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 1;
    text-align: center;
}

.site-header__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.site-header__issue {
    color: var(--ab-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.search-link {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--ab-ink);
    border: 1px solid var(--ab-line);
    border-radius: 50%;
    text-decoration: none;
}

.search-link:hover {
    color: var(--ab-white);
    background: var(--ab-coral);
    border-color: var(--ab-coral);
}

.search-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.primary-nav {
    border-top: 1px solid var(--ab-line);
}

.primary-nav__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.primary-menu__list,
.footer-menu__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 28px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-menu__list a,
.footer-menu__list a {
    color: var(--ab-ink-soft);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-menu__list a:hover,
.footer-menu__list a:hover {
    color: var(--ab-coral);
}

.menu-toggle {
    display: none;
    padding: 8px 12px;
    color: var(--ab-ink);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--ab-line);
    border-radius: 999px;
}

/* Editorial primitives */
.eyebrow,
.section-kicker {
    display: inline-block;
    color: var(--ab-coral);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
}

.breadcrumbs {
    width: min(var(--ab-container), calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0 0;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 0;
    margin: 0;
    color: var(--ab-muted);
    font-size: 0.78rem;
    list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
    padding-left: 12px;
    color: var(--ab-gold);
    content: "/";
}

.breadcrumbs a {
    text-decoration: none;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-bottom: 23px;
}

.section-heading h2 {
    margin: 0;
    font-family: var(--ab-display);
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.section-heading__rule {
    flex: 1;
    height: 1px;
    background: var(--ab-line);
}

.section-heading__note {
    color: var(--ab-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Homepage */
.homepage-main {
    overflow: hidden;
}

.home-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 60px;
    align-items: end;
    padding: 66px 0 46px;
}

.home-intro__kicker {
    margin: 0 0 12px;
}

.home-intro h1 {
    max-width: 660px;
    margin: 0;
    color: var(--ab-ink-deep);
    font-family: var(--ab-display);
    font-size: clamp(3rem, 7vw, 6.9rem);
    font-weight: 400;
    letter-spacing: -0.075em;
    line-height: 0.9;
}

.home-intro h1 em {
    color: var(--ab-coral);
    font-style: italic;
}

.home-intro__summary {
    max-width: 380px;
    padding-bottom: 5px;
    color: var(--ab-ink-soft);
    font-size: 1.02rem;
}

.home-intro__summary p {
    margin: 0;
}

.home-intro__breath {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 22px;
    color: var(--ab-sage-deep);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.breath-line {
    position: relative;
    display: inline-block;
    width: 86px;
    height: 22px;
    overflow: hidden;
}

.breath-line::before,
.breath-line::after {
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    height: 13px;
    content: "";
    border-top: 1px solid var(--ab-sage);
    border-radius: 50%;
    transform: rotate(-7deg);
}

.breath-line::after {
    top: 3px;
    left: 22px;
    width: 70px;
    opacity: 0.52;
    transform: rotate(10deg);
}

.category-ribbon {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 0 17px;
    margin: 0 0 34px;
    scrollbar-width: thin;
}

.category-ribbon a {
    flex: 0 0 auto;
    padding: 8px 15px;
    color: var(--ab-ink-soft);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid var(--ab-line);
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.52);
}

.category-ribbon a:hover {
    color: var(--ab-white);
    background: var(--ab-sage-deep);
    border-color: var(--ab-sage-deep);
}

.featured-section {
    padding-bottom: 68px;
}

.featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(310px, 0.62fr);
    gap: 18px;
}

.featured-grid__side {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 18px;
}

.featured-grid__mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.story-card {
    min-width: 0;
}

.story-card__link {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    color: var(--ab-white);
    text-decoration: none;
    border-radius: var(--ab-radius);
    background: var(--ab-ink);
    isolation: isolate;
}

.story-card__link::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(180deg, rgba(23, 40, 56, 0.02) 22%, rgba(23, 40, 56, 0.88) 100%);
}

.story-card__link:hover {
    color: var(--ab-white);
}

.story-card__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--ab-sage-deep);
}

.story-card__media--lead {
    min-height: 540px;
}

.story-card__media--feature {
    min-height: 275px;
}

.story-card__media--small {
    min-height: 206px;
}

.story-card__media--list {
    position: relative;
    min-height: 160px;
}

.story-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    transition: transform 500ms ease, opacity 350ms ease;
}

.story-card__link:hover .story-card__image {
    opacity: 0.98;
    transform: scale(1.035);
}

.story-card__media--lead,
.story-card__media--feature {
    background: linear-gradient(135deg, #456d6b, #a3b79a 55%, #dfc18b);
}

.story-card__media--small {
    background: linear-gradient(135deg, #b86d55, #d5a570 62%, #f1d6a2);
}

.story-card__media--list {
    background: linear-gradient(135deg, #5f7d75, #b5c4a2 60%, #e5ca91);
}

.story-card__art {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.story-card__art::before,
.story-card__art::after,
.story-card__art-ring,
.story-card__art-line,
.story-card__art-dot {
    position: absolute;
    display: block;
    content: "";
}

.story-card__art::before {
    top: 20%;
    right: 14%;
    width: 44%;
    height: 44%;
    border: 1px solid rgba(255, 253, 249, 0.58);
    border-radius: 47% 53% 64% 36%;
    transform: rotate(24deg);
}

.story-card__art::after {
    top: 38%;
    left: 18%;
    width: 72%;
    height: 1px;
    background: rgba(255, 253, 249, 0.50);
    transform: rotate(-18deg);
}

.story-card__art-ring {
    top: 15%;
    left: 26%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 253, 249, 0.82);
    border-radius: 50%;
}

.story-card__art-line {
    right: 28%;
    bottom: 20%;
    width: 45%;
    height: 42%;
    border-bottom: 1px solid rgba(255, 253, 249, 0.75);
    border-left: 1px solid rgba(255, 253, 249, 0.75);
    border-radius: 0 0 0 80%;
    transform: rotate(-21deg);
}

.story-card__art-dot {
    right: 15%;
    bottom: 24%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 253, 249, 0.86);
}

.story-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.story-card--lead .story-card__body {
    min-height: 540px;
    padding: clamp(25px, 4vw, 50px);
}

.story-card--feature .story-card__body {
    min-height: 275px;
}

.story-card--small .story-card__body {
    min-height: 206px;
    padding: 20px;
}

.story-card__category {
    display: inline-block;
    width: fit-content;
    margin-bottom: 10px;
    color: #f4d18e;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.story-card__title {
    max-width: 790px;
    margin: 0;
    color: var(--ab-white);
    font-family: var(--ab-display);
    font-size: clamp(1.35rem, 2.3vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.story-card--lead .story-card__title {
    max-width: 730px;
    font-size: clamp(2.25rem, 5.4vw, 5.1rem);
    line-height: 0.98;
}

.story-card--small .story-card__title {
    font-size: clamp(1.12rem, 1.6vw, 1.45rem);
}

.story-card__excerpt {
    max-width: 650px;
    margin: 15px 0 0;
    color: rgba(255, 253, 249, 0.82);
    font-size: 0.92rem;
    line-height: 1.55;
}

.story-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: rgba(255, 253, 249, 0.68);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.story-card--small .story-card__meta {
    margin-top: 12px;
    font-size: 0.62rem;
}

.empty-state {
    padding: 60px;
    text-align: center;
    background: var(--ab-white);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
}

.empty-state h1 {
    margin-top: 0;
    font-family: var(--ab-display);
    font-weight: 400;
}

.now-section {
    padding: 30px 0 74px;
    background: var(--ab-ink);
}

.now-section .section-heading h2,
.now-section .section-heading__note {
    color: var(--ab-white);
}

.now-section .section-heading__rule {
    background: var(--ab-line-light);
}

.now-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    background: var(--ab-line-light);
    border: 1px solid var(--ab-line-light);
}

.now-item {
    display: flex;
    min-height: 175px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    color: var(--ab-white);
    text-decoration: none;
    background: var(--ab-ink);
}

.now-item:hover {
    color: var(--ab-white);
    background: #2d465d;
}

.now-item__number {
    color: var(--ab-gold);
    font-family: var(--ab-display);
    font-size: 1.2rem;
}

.now-item__category {
    color: #bad0b6;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.now-item__title {
    margin: 8px 0 0;
    font-family: var(--ab-display);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.homepage-lower {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 65px;
    padding-top: 78px;
    padding-bottom: 78px;
}

.latest-list {
    display: grid;
    gap: 25px;
}

.list-story {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--ab-line);
}

.list-story__media {
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    border-radius: 13px;
}

.list-story__media .story-card__media {
    transition: transform 350ms ease;
}

.list-story__media:hover .story-card__media {
    transform: scale(1.03);
}

.list-story__body {
    align-self: center;
}

.list-story__title {
    max-width: 720px;
    margin: 6px 0 8px;
    font-family: var(--ab-display);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.list-story__title a {
    text-decoration: none;
}

.list-story__excerpt {
    max-width: 650px;
    margin: 0 0 11px;
    color: var(--ab-ink-soft);
    font-size: 0.91rem;
    line-height: 1.55;
}

.list-story__date {
    color: var(--ab-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.magazine-aside {
    display: grid;
    align-content: start;
    gap: 18px;
}

.aside-card {
    padding: 25px;
    background: var(--ab-white);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
}

.aside-card--method {
    position: relative;
    overflow: hidden;
    color: var(--ab-white);
    background: var(--ab-sage-deep);
    border: 0;
}

.aside-card--method::after {
    position: absolute;
    right: -20px;
    bottom: -22px;
    width: 125px;
    height: 125px;
    content: "";
    border: 1px solid rgba(255, 253, 249, 0.42);
    border-radius: 50%;
}

.aside-card__kicker {
    color: var(--ab-gold);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.aside-card h2 {
    position: relative;
    z-index: 1;
    margin: 12px 0 10px;
    font-family: var(--ab-display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 1;
}

.aside-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--ab-ink-soft);
    font-size: 0.9rem;
}

.aside-card--method p {
    color: rgba(255, 253, 249, 0.8);
}

.aside-card__link {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 22px;
    color: var(--ab-white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-cloud a {
    padding: 7px 10px;
    color: var(--ab-ink-soft);
    font-size: 0.76rem;
    text-decoration: none;
    border: 1px solid var(--ab-line);
    border-radius: 999px;
}

.category-cloud a:hover {
    color: var(--ab-white);
    background: var(--ab-coral);
    border-color: var(--ab-coral);
}

.category-section {
    padding: 72px 0;
    background: var(--ab-paper-deep);
}

.category-section + .category-section {
    padding-top: 0;
}

.category-section__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-section .story-card__link {
    min-height: 270px;
}

.category-section .story-card__body {
    min-height: 270px;
    padding: 22px;
}

.category-section .story-card__title {
    font-size: 1.45rem;
}

/* Archives, search and pages */
.archive-header,
.search-header,
.page-header {
    max-width: 850px;
    padding: 72px 0 38px;
}

.archive-header h1,
.search-header h1,
.page-header h1 {
    margin: 10px 0 0;
    color: var(--ab-ink-deep);
    font-family: var(--ab-display);
    font-size: clamp(2.8rem, 6vw, 5.9rem);
    font-weight: 400;
    letter-spacing: -0.075em;
    line-height: 0.94;
}

.archive-description,
.page-header__description {
    max-width: 670px;
    margin: 20px 0 0;
    color: var(--ab-ink-soft);
    font-size: 1.02rem;
}

.archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 65px;
    padding-bottom: 88px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.archive-grid .story-card__link {
    min-height: 360px;
}

.archive-grid .story-card__body {
    min-height: 360px;
}

.pagination {
    padding-top: 40px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-grid;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    place-items: center;
    color: var(--ab-ink-soft);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid var(--ab-line);
    border-radius: 999px;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    color: var(--ab-white);
    background: var(--ab-coral);
    border-color: var(--ab-coral);
}

.site-sidebar {
    display: grid;
    align-content: start;
    gap: 26px;
}

.widget {
    padding: 24px;
    background: var(--ab-white);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
}

.widget-title {
    margin: 0 0 14px;
    font-family: var(--ab-display);
    font-size: 1.65rem;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
}

.widget ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.widget li + li {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--ab-line);
}

.widget a {
    color: var(--ab-ink-soft);
    font-size: 0.87rem;
    text-decoration: none;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 560px;
}

.search-form label {
    flex: 1;
}

.search-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    color: var(--ab-ink);
    background: var(--ab-white);
    border: 1px solid var(--ab-line);
    border-radius: 10px;
}

.search-submit,
.comment-form .submit {
    padding: 12px 18px;
    color: var(--ab-white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--ab-ink);
    border: 0;
    border-radius: 10px;
}

.search-submit:hover,
.comment-form .submit:hover {
    background: var(--ab-coral);
}

/* Single article: no featured image before the content by design. */
.article-header {
    max-width: 950px;
    padding: 70px 0 38px;
}

.article-header h1 {
    max-width: 920px;
    margin: 13px 0 21px;
    color: var(--ab-ink-deep);
    font-family: var(--ab-display);
    font-size: clamp(2.8rem, 7vw, 6.9rem);
    font-weight: 400;
    letter-spacing: -0.08em;
    line-height: 0.91;
}

.article-deck {
    max-width: 720px;
    margin: 0;
    color: var(--ab-ink-soft);
    font-size: clamp(1.06rem, 2vw, 1.3rem);
    line-height: 1.45;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 15px;
    margin-top: 26px;
    color: var(--ab-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-meta__author {
    color: var(--ab-sage-deep);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, var(--ab-reading)) minmax(230px, 1fr);
    justify-content: space-between;
    gap: 72px;
    padding-bottom: 84px;
}

.article-content {
    min-width: 0;
    color: #324657;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.08rem, 1.5vw, 1.22rem);
    line-height: 1.82;
}

.article-content > * {
    max-width: 100%;
}

.article-content > p:first-child {
    color: var(--ab-ink);
    font-size: 1.18em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 2.2em 0 0.65em;
    color: var(--ab-ink-deep);
    font-family: var(--ab-sans);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.article-content h2 {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.article-content h3 {
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}

.article-content a {
    color: var(--ab-sage-deep);
    font-weight: 700;
}

.article-content blockquote {
    padding: 22px 28px;
    margin: 2em 0;
    color: var(--ab-sage-deep);
    font-family: var(--ab-display);
    font-size: 1.45em;
    font-style: italic;
    line-height: 1.25;
    border-left: 4px solid var(--ab-coral);
    background: var(--ab-paper-deep);
}

.article-content figure {
    margin: 2em 0;
}

.article-content figcaption {
    padding-top: 8px;
    color: var(--ab-muted);
    font-family: var(--ab-sans);
    font-size: 0.72rem;
    line-height: 1.45;
}

.article-content ul,
.article-content ol {
    padding-left: 1.35em;
}

.article-content li + li {
    margin-top: 0.4em;
}

.article-content table {
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
    font-family: var(--ab-sans);
    font-size: 0.84em;
}

.article-content th,
.article-content td {
    padding: 10px;
    text-align: left;
    border: 1px solid var(--ab-line);
}

.article-content code,
.article-content pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82em;
}

.article-content pre {
    padding: 18px;
    overflow: auto;
    color: #e7efe9;
    background: var(--ab-ink-deep);
    border-radius: 10px;
}

.article-aside {
    padding-top: 11px;
}

.article-aside__box {
    position: sticky;
    top: 26px;
    padding: 22px 0 22px 24px;
    border-left: 1px solid var(--ab-line);
}

.article-aside__label {
    display: block;
    margin-bottom: 9px;
    color: var(--ab-coral);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.article-aside__box p {
    margin: 0;
    color: var(--ab-ink-soft);
    font-size: 0.84rem;
}

.article-foot {
    display: grid;
    gap: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--ab-line);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags a {
    padding: 7px 10px;
    color: var(--ab-ink-soft);
    font-size: 0.76rem;
    text-decoration: none;
    border: 1px solid var(--ab-line);
    border-radius: 999px;
}

.article-tags a:hover {
    color: var(--ab-white);
    background: var(--ab-coral);
    border-color: var(--ab-coral);
}

.author-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 22px;
    background: var(--ab-paper-deep);
    border-radius: 13px;
}

.author-box__avatar img {
    border-radius: 50%;
}

.author-box h2 {
    margin: 0;
    color: var(--ab-ink-deep);
    font-size: 1rem;
}

.author-box p {
    margin: 4px 0 0;
    color: var(--ab-ink-soft);
    font-size: 0.86rem;
}

.post-navigation {
    margin-top: 30px;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.post-navigation a {
    display: block;
    padding: 18px;
    color: var(--ab-ink);
    text-decoration: none;
    border: 1px solid var(--ab-line);
    border-radius: 13px;
}

.post-navigation a:hover {
    background: var(--ab-white);
}

.post-navigation__label {
    display: block;
    margin-bottom: 6px;
    color: var(--ab-coral);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.related-section {
    padding: 70px 0;
    background: var(--ab-paper-deep);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.related-grid .story-card__link {
    min-height: 300px;
}

.related-grid .story-card__body {
    min-height: 300px;
}

/* Comments are hidden by default and revealed by the Customizer setting. */
.comments-area {
    max-width: var(--ab-reading);
    padding: 30px 0 80px;
    border-top: 1px solid var(--ab-line);
}

.comments-title {
    margin: 0 0 22px;
    font-family: var(--ab-display);
    font-size: 2rem;
    font-weight: 400;
}

.comment-list {
    padding: 0;
    margin: 0 0 35px;
    list-style: none;
}

.comment-list li {
    padding: 18px 0;
    border-bottom: 1px solid var(--ab-line);
}

.comment-meta {
    color: var(--ab-muted);
    font-size: 0.75rem;
}

.comment-content {
    margin-top: 8px;
    color: var(--ab-ink-soft);
}

.comment-form .comment-notes,
.comment-form label {
    color: var(--ab-ink-soft);
    font-size: 0.82rem;
}

.comment-form p {
    margin: 0 0 15px;
}

/* Footer */
.site-footer {
    padding: 60px 0 22px;
    color: rgba(255, 253, 249, 0.75);
    background: var(--ab-ink-deep);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(140px, 0.7fr));
    gap: 60px;
    padding-bottom: 46px;
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--ab-white);
}

.footer-branding .brand-mark {
    background: var(--ab-sage-deep);
}

.footer-note {
    max-width: 420px;
    margin: 19px 0 0;
    color: rgba(255, 253, 249, 0.62);
    font-size: 0.9rem;
}

.footer-heading {
    margin: 0 0 14px;
    color: var(--ab-gold);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.footer-menu__list {
    display: grid;
    justify-content: start;
    gap: 10px;
}

.footer-menu__list a {
    color: rgba(255, 253, 249, 0.72);
    font-size: 0.72rem;
}

.footer-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-categories a {
    color: rgba(255, 253, 249, 0.72);
    font-size: 0.78rem;
    text-decoration: none;
}

.footer-categories a:hover {
    color: var(--ab-gold);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 19px;
    color: rgba(255, 253, 249, 0.45);
    font-size: 0.68rem;
    border-top: 1px solid var(--ab-line-light);
}

.footer-bottom p {
    margin: 0;
}

/* Error state */
.error-page {
    min-height: 55vh;
    padding: 100px 0;
    text-align: center;
}

.error-page h1 {
    margin: 0;
    color: var(--ab-ink-deep);
    font-family: var(--ab-display);
    font-size: clamp(4rem, 13vw, 10rem);
    font-weight: 400;
    letter-spacing: -0.1em;
    line-height: 0.8;
}

.error-page p {
    max-width: 480px;
    margin: 24px auto;
    color: var(--ab-ink-soft);
}

/* WordPress alignment and blocks */
.alignwide {
    width: min(100%, 1060px);
    margin-right: auto;
    margin-left: auto;
}

.alignfull {
    width: 100%;
}

.wp-block-image img,
.wp-block-gallery img {
    border-radius: 10px;
}

.wp-block-embed,
.wp-block-video,
.wp-block-audio {
    margin-right: 0;
    margin-left: 0;
}

/* Responsive */
@media (max-width: 980px) {
    .site-header__main {
        grid-template-columns: 1fr auto;
    }

    .site-header__title {
        display: none;
    }

    .home-intro,
    .homepage-lower,
    .archive-layout,
    .article-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid__side {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto;
    }

    .featured-grid__mini {
        grid-template-columns: 1fr;
    }

    .story-card--feature .story-card__body,
    .story-card__media--feature {
        min-height: 330px;
    }

    .category-section__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-aside {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 720px) {
    .site-container,
    .breadcrumbs {
        width: min(var(--ab-container), calc(100% - 32px));
    }

    .topline__inner {
        justify-content: center;
    }

    .topline__inner p:first-child {
        display: none;
    }

    .site-header__main {
        min-height: 82px;
    }

    .site-header__tools {
        gap: 8px;
    }

    .site-header__issue {
        display: none;
    }

    .brand-mark {
        width: 41px;
        height: 41px;
        font-size: 1rem;
    }

    .brand-copy__name {
        font-size: 0.92rem;
    }

    .brand-copy__tagline {
        font-size: 0.57rem;
    }

    .menu-toggle {
        display: inline-block;
    }

    .primary-nav {
        display: none;
    }

    .nav-open .primary-nav {
        display: block;
    }

    .primary-nav__inner {
        justify-content: flex-start;
        padding: 10px 0 16px;
    }

    .primary-menu__list {
        display: grid;
        width: 100%;
        justify-content: stretch;
        gap: 0;
    }

    .primary-menu__list li {
        border-bottom: 1px solid var(--ab-line);
    }

    .primary-menu__list a {
        display: block;
        padding: 11px 0;
    }

    .home-intro {
        gap: 27px;
        padding: 48px 0 35px;
    }

    .home-intro h1 {
        font-size: clamp(3.45rem, 17vw, 6rem);
    }

    .featured-grid__side {
        grid-template-columns: 1fr;
    }

    .featured-grid__mini {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-card--lead .story-card__body,
    .story-card__media--lead {
        min-height: 470px;
    }

    .story-card--lead .story-card__title {
        font-size: clamp(2.35rem, 12vw, 4rem);
    }

    .story-card__body {
        padding: 22px;
    }

    .now-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .homepage-lower,
    .archive-layout {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .list-story {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 14px;
    }

    .story-card__media--list {
        min-height: 112px;
    }

    .list-story__title {
        font-size: 1.25rem;
    }

    .list-story__excerpt {
        display: none;
    }

    .archive-grid,
    .category-section__grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .archive-grid .story-card__link,
    .archive-grid .story-card__body {
        min-height: 310px;
    }

    .archive-header,
    .search-header,
    .page-header,
    .article-header {
        padding-top: 52px;
    }

    .article-header h1 {
        font-size: clamp(2.9rem, 15vw, 5.2rem);
    }

    .article-content {
        font-size: 1.1rem;
        line-height: 1.76;
    }

    .post-navigation,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 32px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 420px) {
    .featured-grid__mini,
    .now-grid {
        grid-template-columns: 1fr;
    }

    .story-card--small .story-card__body,
    .story-card__media--small {
        min-height: 205px;
    }

    .search-form {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
