/*
Theme Name: styleandsuch.com
Author: Анна Левина
Description: Образовательный блог о развитии памяти, мнемотехнике и практичных способах обучения в повседневной жизни.
Version: 1.1
Text Domain: stylensuch
*/

/* ============ CSS VARIABLES ============ */
:root {
    --bg: #FDFAF6;
    --bg-alt: #F3EDE3;
    --ink: #2B2826;
    --ink-soft: #5C5450;
    --ink-muted: #8B827C;
    --sage: #6E8B74;
    --sage-dark: #546B59;
    --sage-soft: #E2EBE4;
    --terra: #C97B5E;
    --terra-dark: #A8614A;
    --terra-soft: #F3DDD3;
    --line: #E6DFD3;
    --card-bg: #FFFFFF;
    --radius: 8px;
    --shadow-soft: 0 1px 2px rgba(43, 40, 38, 0.04);
    --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lora', Georgia, 'Times New Roman', serif;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gap: 64px;
}

/* ============ RESET / BASE ============ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--sage-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
    opacity: 0.75;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.25;
    font-weight: 600;
    margin: 1.5em 0 0.6em;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p {
    margin: 0 0 1.1em;
}

blockquote {
    border-left: 3px solid var(--sage);
    padding: 0.4em 0 0.4em 1.4em;
    margin: 1.6em 0;
    font-style: italic;
    color: var(--ink-soft);
}

code, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: var(--bg-alt);
    border-radius: 4px;
}

code {
    padding: 0.15em 0.4em;
}

pre {
    padding: 1em 1.2em;
    overflow-x: auto;
    border: 1px solid var(--line);
}

pre code {
    background: transparent;
    padding: 0;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2em 0;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.4em 0;
    border: 1px solid var(--line);
    background: var(--card-bg);
}

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

th {
    background: var(--bg-alt);
    font-family: var(--font-ui);
    font-weight: 600;
}

/* ============ LAYOUT ============ */
.outer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    padding: var(--gap) 0;
}

.layout-with-aside {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    gap: 6%;
    align-items: start;
}

.layout-wide {
    max-width: 85%;
    margin: 0 auto;
}

/* ============ TOP QUOTE BAR ============ */
.quote-bar {
    background: var(--sage-soft);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--sage-dark);
}

.quote-bar__inner {
    padding: 10px 24px;
    text-align: center;
    font-style: italic;
    max-width: 1200px;
    margin: 0 auto;
}

.quote-bar__mark {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    margin-right: 6px;
    color: var(--sage);
}

/* ============ SITE HEADER ============ */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
}

.brand:hover {
    opacity: 1;
}

.brand-logo {
    width: 48px;
    height: 48px;
    display: block;
    flex-shrink: 0;
}

.brand-text {
    min-width: 0;
}

.brand-name {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    display: block;
    letter-spacing: -0.01em;
}

.brand-tagline {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.3;
    margin-top: 3px;
    max-width: 420px;
    display: block;
}

/* ============ PRIMARY NAV ============ */
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}

.primary-nav a {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    opacity: 1;
    border-bottom-color: var(--terra);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 14px;
    font-family: var(--font-ui);
    font-size: 14px;
    cursor: pointer;
    color: var(--ink);
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    line-height: 1.2;
    transition: opacity 0.2s ease;
}

.btn-primary {
    background: var(--terra);
    color: var(--bg);
}

.btn-primary:hover {
    opacity: 0.85;
    color: var(--bg);
}

.btn-ghost {
    background: transparent;
    color: var(--sage-dark);
    border: 1px solid var(--sage);
}

.btn-ghost:hover {
    background: var(--sage-soft);
    opacity: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    color: var(--terra-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.read-more::after {
    content: "→";
    display: inline-block;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.read-more:hover {
    opacity: 1;
    color: var(--terra);
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* ============ BREADCRUMBS ============ */
.crumbs {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--ink-muted);
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.crumbs a {
    color: var(--ink-soft);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--terra-dark);
}

.crumbs .sep {
    margin: 0 8px;
    color: var(--ink-muted);
}

/* ============ HERO / FRONTPAGE SECTIONS ============ */
.hero-section {
    padding: 50px 40px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: var(--gap);
}

.hero-section h1 {
    margin-top: 0;
    font-size: 2.6rem;
    line-height: 1.2;
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 640px;
}

.section-block {
    margin-bottom: var(--gap);
    padding: 48px 40px;
    border-radius: var(--radius);
}

.section-block.sage {
    background: var(--sage-soft);
}

.section-block.terra {
    background: var(--terra-soft);
}

.section-block.plain {
    background: var(--card-bg);
    border: 1px solid var(--line);
}

.section-block h2 {
    margin-top: 0;
}

.section-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 28px;
}

.section-card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
}

.section-card__num {
    font-family: var(--font-head);
    font-size: 32px;
    color: var(--terra);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.section-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.section-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
}

.cta-block {
    text-align: center;
    background: var(--ink);
    color: var(--bg);
    padding: 56px 40px;
    border-radius: var(--radius);
    margin-top: var(--gap);
}

.cta-block h2 {
    color: var(--bg);
    margin-top: 0;
}

.cta-block p {
    color: rgba(253, 250, 246, 0.8);
    max-width: 540px;
    margin: 0 auto 24px;
}

/* ============ POSTS GRID / CARDS ============ */
.posts-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 30px;
}

.posts-heading h2 {
    margin: 0;
}

.posts-heading__hint {
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--ink-muted);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

/* Asymmetric first card on homepage */
.posts-grid--featured .card:first-child {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 320px;
}

.posts-grid--featured .card:first-child .card-thumb-wrap {
    flex: 0 0 46%;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.posts-grid--featured .card:first-child .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.posts-grid--featured .card:first-child .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.posts-grid--featured .card:first-child .card-body {
    padding: 36px 40px;
}

.posts-grid--featured .card:first-child h2,
.posts-grid--featured .card:first-child h3 {
    font-size: 1.8rem;
}

/* Regular card */
.card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.card:hover {
    border-color: var(--ink-muted);
}

.card-thumb-wrap {
    display: block;
    overflow: hidden;
}

.card-thumb-wrap a {
    display: block;
}

.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-thumb-wrap img {
    transform: scale(1.03);
}

.card-body {
    flex: 1;
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sage-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    text-decoration: none;
}

.card-category::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage);
}

.card h3,
.card h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.card h3 a,
.card h2 a {
    color: var(--ink);
    text-decoration: none;
}

.card h3 a:hover,
.card h2 a:hover {
    color: var(--terra-dark);
    opacity: 1;
}

.card-meta {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 12px;
}

.card-excerpt {
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-excerpt p:last-child {
    margin-bottom: 0;
}

.card-footer {
    margin-top: auto;
    padding-top: 12px;
}

/* ============ SIDEBAR ============ */
.sidebar {
    font-family: var(--font-body);
}

.widget {
    margin-bottom: 36px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
}

.widget-title {
    margin: 0 0 14px;
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--ink);
}

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

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.widget li:last-child {
    border-bottom: 0;
}

.widget a {
    color: var(--ink);
    text-decoration: none;
}

.widget a:hover {
    color: var(--terra-dark);
}

/* Trainer mini-block */
.trainer-widget {
    background: var(--terra-soft);
    border: 1px solid var(--terra-soft);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 36px;
}

.trainer-widget__label {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--terra-dark);
    margin-bottom: 8px;
}

.trainer-widget h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.trainer-widget p {
    font-size: 15px;
    margin: 0 0 14px;
    color: var(--ink-soft);
}

.trainer-sequence {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.trainer-sequence span {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg);
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.trainer-widget button {
    background: var(--terra);
    color: var(--bg);
    border: 0;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.trainer-widget button:hover {
    opacity: 0.85;
}

/* ============ SINGLE POST / PAGE ============ */
.entry-header {
    margin-bottom: 32px;
}

.entry-header h1 {
    margin-top: 0;
    font-size: 2.3rem;
}

.entry-meta {
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--ink-muted);
    margin-top: 8px;
}

.entry-meta span + span::before {
    content: "•";
    margin: 0 8px;
    color: var(--ink-muted);
}

.entry-thumb {
    margin: 0 0 32px;
    border-radius: var(--radius);
    overflow: hidden;
}

.entry-thumb img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
    margin: 0 0 1.2em;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.6em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content img {
    border-radius: var(--radius);
    margin: 1.2em 0;
}

/* Apply-today block */
.apply-today {
    margin-top: 48px;
    padding: 32px 36px;
    background: var(--sage-soft);
    border-radius: var(--radius);
}

.apply-today h3 {
    margin: 0 0 18px;
    font-size: 1.3rem;
    color: var(--sage-dark);
}

.apply-today ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apply-today li {
    position: relative;
    padding: 8px 0 8px 34px;
    font-size: 16px;
    color: var(--ink);
}

.apply-today li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--sage);
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s ease;
    cursor: pointer;
}

.apply-today li:hover::before {
    background: var(--sage);
}

/* ============ COMMENTS ============ */
.comments-area {
    margin-top: 56px;
}

.comments-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

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

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

.comment-list .children {
    list-style: none;
    padding-left: 24px;
    margin-top: 12px;
    border-left: 2px solid var(--line);
}

.comment-author {
    font-weight: 600;
    color: var(--ink);
    font-family: var(--font-ui);
}

.comment-metadata {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 10px;
}

.comment-content p {
    margin: 0 0 0.6em;
}

.comment-reply-link {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--sage-dark);
    text-decoration: none;
}

.comment-respond {
    margin-top: 32px;
    padding: 26px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.comment-respond label {
    display: block;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--ink-soft);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--bg);
    color: var(--ink);
    margin-bottom: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--sage);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .submit {
    background: var(--sage);
    color: var(--bg);
    border: 0;
    padding: 11px 24px;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.comment-form .submit:hover {
    opacity: 0.85;
}

/* ============ SEARCH FORM ============ */
.search-form {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--bg);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease;
}

.search-form input[type="search"]:focus {
    border-color: var(--sage);
}

.search-form button {
    padding: 11px 20px;
    background: var(--sage);
    color: var(--bg);
    border: 0;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.search-form button:hover {
    opacity: 0.85;
}

/* ============ PAGINATION ============ */
.pagination {
    margin: 50px 0 20px;
    display: flex;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-ui);
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--card-bg);
}

.pagination a:hover {
    background: var(--sage-soft);
    border-color: var(--sage);
    opacity: 1;
}

.pagination .current {
    background: var(--sage);
    color: var(--bg);
    border-color: var(--sage);
}

.pagination .dots {
    border: 0;
    background: transparent;
}

/* ============ 404 ============ */
.page-404 {
    text-align: center;
    padding: 60px 20px 80px;
}

.page-404 .big {
    font-family: var(--font-head);
    font-size: 5rem;
    color: var(--terra);
    margin: 0;
    line-height: 1;
}

.page-404 h1 {
    margin: 16px 0;
}

.page-404 .search-form {
    max-width: 440px;
    margin: 24px auto;
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--ink);
    color: var(--bg);
    margin-top: var(--gap);
    padding: 56px 0 24px;
    font-family: var(--font-ui);
    font-size: 15px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 36px;
}

.footer-col .widget {
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 0;
}

.footer-col .widget-title {
    color: var(--bg);
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.footer-col p {
    color: rgba(253, 250, 246, 0.75);
    line-height: 1.6;
    font-size: 14.5px;
}

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

.footer-col li {
    padding: 6px 0;
    border: 0;
    font-size: 14.5px;
}

.footer-col a {
    color: rgba(253, 250, 246, 0.75);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--terra);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(253, 250, 246, 0.1);
    padding-top: 22px;
    text-align: center;
    font-size: 13.5px;
    color: rgba(253, 250, 246, 0.55);
}

/* ============ COOKIE BANNER ============ */
.cookie-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: var(--ink);
    color: var(--bg);
    padding: 16px 20px;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 9999;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    max-width: 720px;
    margin: 0 auto;
}

.cookie-bar p {
    margin: 0;
    flex: 1;
    line-height: 1.5;
    color: rgba(253, 250, 246, 0.85);
}

.cookie-bar a {
    color: var(--terra);
}

.cookie-bar button {
    background: var(--terra);
    color: var(--bg);
    border: 0;
    padding: 9px 20px;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.cookie-bar button:hover {
    opacity: 0.85;
}

.cookie-bar.is-hidden {
    display: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
    :root {
        --gap: 48px;
    }

    body {
        font-size: 17px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .layout-with-aside {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .layout-wide {
        max-width: 100%;
    }

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

    .section-inner {
        grid-template-columns: 1fr 1fr;
    }

    .posts-grid--featured .card:first-child .card-body {
        padding: 26px 28px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    .outer {
        padding: 0 16px;
    }

    .site-header {
        padding: 16px 0;
    }

    .brand-tagline {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .primary-nav {
        display: none;
        width: 100%;
        margin-top: 14px;
    }

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

    .primary-nav ul {
        flex-direction: column;
        gap: 6px;
    }

    .primary-nav a {
        padding: 10px 0;
        border-bottom: 1px solid var(--line);
        display: block;
    }

    .section-block {
        padding: 30px 20px;
    }

    .section-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-section {
        padding: 32px 22px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .posts-grid--featured .card:first-child {
        flex-direction: column;
        min-height: 0;
    }

    .posts-grid--featured .card:first-child .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
        min-height: 0;
    }

    .posts-grid--featured .card:first-child .card-thumb-wrap a {
        position: static;
    }

    .posts-grid--featured .card:first-child .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .posts-grid--featured .card:first-child .card-body {
        padding: 22px 24px 24px;
    }

    .footer-cols {
        grid-template-columns: 1fr;
    }

    .cookie-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .entry-header h1 {
        font-size: 1.7rem;
    }

    .cta-block {
        padding: 38px 24px;
    }
}

/* ============ ALIGNMENTS (WP standard) ============ */
.alignleft { float: left; margin: 6px 20px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 20px; }
.aligncenter { display: block; margin: 16px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--ink-muted);
    margin-top: 6px;
    text-align: center;
}
.screen-reader-text {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
