/*
Theme Name: InnateMarketer
Theme URI: https://example.com/innatemarketer
Author: GitHub Copilot
Description: Minimal magazine-style WordPress theme built for lightweight performance and category-driven publishing.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: innatemarketer
*/

:root {
    --color-primary: #000000;
    --color-accent: #e4a07b;
    --color-background: #ffffff;
    --color-muted: #f4f4f4;
    --color-border: #ddd7d2;
    --color-subtle-text: #6d6763;
    --color-surface: rgba(255, 255, 255, 0.94);
    --shadow-soft: 0 16px 50px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
    --container: 1180px;
    --content-width: 760px;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.35rem;
    --space-xs: 0.45rem;
    --space-sm: 0.8rem;
    --space-md: 1.15rem;
    --space-lg: 1.8rem;
    --space-xl: 3rem;
    --font-heading: "Avenir Next", "Segoe UI", sans-serif;
    --font-body: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-primary);
    background:
        radial-gradient(circle at top left, rgba(228, 160, 123, 0.14), transparent 25%),
        linear-gradient(180deg, #fefaf7 0, #fffdfc 12rem, var(--color-background) 28rem);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

figure {
    margin: 0;
}

p {
    margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.8rem;
    font-family: var(--font-heading);
    line-height: 1.08;
}

a {
    color: var(--color-accent);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
    color: var(--color-primary);
}

button,
input,
textarea,
select {
    font: inherit;
}

button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.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;
}

.skip-link {
    position: absolute;
    top: -4rem;
    left: 1rem;
    z-index: 999;
    padding: 0.75rem 1rem;
    background: var(--color-primary);
    color: var(--color-background);
}

.skip-link:focus {
    top: 1rem;
}

.site-shell {
    width: min(100% - 2rem, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    background: var(--color-primary);
    color: var(--color-background);
}

.site-header__top {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 0.55rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 0;
}

.site-logo-mark {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.site-logo-mark img {
    width: auto;
    height: 2.3rem;
}

.site-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-title a,
.site-title a:hover,
.site-title a:focus-visible {
    color: var(--color-background);
    text-decoration: none;
}

.site-description {
    display: none;
}

.category-navigation {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.category-navigation__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-navigation__list::-webkit-scrollbar {
    display: none;
}

.category-navigation a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.category-navigation a:hover,
.category-navigation a:focus-visible {
    color: var(--color-accent);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-background);
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-toggle:hover,
.search-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.2);
}

.search-toggle svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.search-toggle__close {
    display: none;
}

.search-toggle[aria-expanded="true"] .search-toggle__open {
    display: none;
}

.search-toggle[aria-expanded="true"] .search-toggle__close {
    display: block;
}

.site-header__search-overlay {
    display: none;
    padding: 0.5rem 0 0.65rem;
}

.site-header__search-overlay[aria-hidden="false"] {
    display: block;
}

.site-header__search-overlay .search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.site-header__search-overlay .search-form__field {
    width: 100%;
    min-width: 0;
    padding: 0.65rem 0.95rem;
    border: 0;
    background: transparent;
    color: var(--color-background);
}

.site-header__search-overlay .search-form__field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.site-header__search-overlay .search-form__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.8rem;
    padding: 0 0.8rem;
    border: 0;
    background: transparent;
    color: var(--color-accent);
    cursor: pointer;
}

.site-header__search-overlay .search-form__button svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-background);
    cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.2);
}

.menu-toggle svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.section-eyebrow {
    margin-bottom: 0.45rem;
    color: var(--color-subtle-text);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-hero,
.archive-header,
.article-panel,
.community-panel,
.empty-state,
.related-content,
.content-card,
.featured-lead,
.category-lead,
.category-list__item,
.mini-card {
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-soft);
}

.home-hero,
.archive-header,
.article-panel,
.community-panel,
.empty-state,
.related-content {
    border-radius: var(--radius-lg);
}

.home-hero,
.archive-header,
.home-section,
.community-panel,
.related-content,
.article-shell,
.article-panel,
.empty-state,
.posts-grid,
.pagination {
    margin-bottom: var(--space-xl);
}

.home-hero,
.archive-header,
.article-panel,
.community-panel,
.empty-state,
.related-content {
    padding: clamp(1.25rem, 2.6vw, 2rem);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}

.home-hero h1,
.archive-header h1 {
    font-size: clamp(2.25rem, 5vw, 4.4rem);
}

.home-hero__text {
    max-width: 42rem;
    color: var(--color-subtle-text);
    font-size: 1.05rem;
}

.home-hero__actions {
    margin: 1.4rem 0;
}

.home-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
}

.home-hero__stats strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.home-hero__stats span {
    color: var(--color-subtle-text);
    font-size: 0.9rem;
}

.home-hero__panel {
    padding: 1.15rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(244, 244, 244, 0.78), rgba(255, 255, 255, 0.95));
}

.home-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.topic-chip,
.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: rgba(228, 160, 123, 0.15);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

button.topic-chip {
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button.topic-chip.is-active,
button.topic-chip:hover,
button.topic-chip:focus-visible {
    background: var(--color-primary);
    color: var(--color-background);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    transform: translateY(-1px);
}

/* ── Hero Slider ── */
.hero-slider {
    position: relative;
    margin-top: 1.2rem;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.hero-slider__track {
    display: flex;
    transition: transform 0.4s ease;
}

.hero-slide {
    flex: 0 0 100%;
    display: block;
    text-decoration: none;
    color: var(--color-primary);
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.hero-slide__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.hero-slide__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.hero-slide:hover .hero-slide__media img {
    transform: scale(1.05);
}

.hero-slide__title {
    display: block;
    margin-top: 0.55rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-slider__nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.hero-slider__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1.5px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-background);
    color: var(--color-primary);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.hero-slider__btn:hover,
.hero-slider__btn:focus-visible {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-background);
}

.hero-slider__btn svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.button--primary {
    background: var(--color-primary);
    color: var(--color-background);
}

.button--primary:hover,
.button--primary:focus-visible {
    color: var(--color-background);
    background: var(--color-accent);
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.section-link {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}

.featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.85fr);
    gap: 1.25rem;
}

.featured-lead,
.category-lead,
.content-card {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.featured-lead__media,
.category-lead__media,
.content-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(228, 160, 123, 0.35), rgba(0, 0, 0, 0.05));
}

.featured-lead__media img,
.category-lead__media img,
.content-card__media img,
.entry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-lead__body,
.category-lead__body,
.content-card__body {
    padding: 1.15rem;
}

.featured-lead h3,
.category-lead h3,
.content-card__title,
.mini-card h3,
.category-list__item h3,
.related-grid h3 {
    font-size: clamp(1.15rem, 1.7vw, 1.6rem);
}

.featured-lead h3 a,
.category-lead h3 a,
.content-card__title a,
.mini-card h3 a,
.category-list__item h3 a,
.related-grid h3 a {
    color: var(--color-primary);
    text-decoration: none;
}

.featured-stack,
.category-list,
.related-grid {
    display: grid;
    gap: 0.95rem;
}

.mini-card,
.category-list__item {
    padding: 1rem;
    border-radius: var(--radius-md);
}

.category-block__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    gap: 1.25rem;
}

.post-meta-row,
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
    align-items: center;
    color: var(--color-subtle-text);
    font-size: 0.88rem;
}

.post-date {
    color: var(--color-subtle-text);
    font-size: 0.84rem;
}

.breadcrumbs {
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--color-subtle-text);
    text-decoration: none;
}

.breadcrumbs__divider {
    color: var(--color-subtle-text);
}

.archive-header,
.empty-state {
    text-align: left;
}

.archive-description,
.empty-state p,
.community-panel p,
.article-deck,
.content-card__excerpt,
.featured-lead p,
.category-lead p,
.category-list__item p,
.mini-card p {
    color: var(--color-subtle-text);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.content-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.content-card:hover,
.content-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

.article-shell {
    width: min(100%, var(--content-width));
    margin-inline: auto;
}

.article-panel--page {
    width: min(100%, var(--content-width));
    margin-inline: auto;
}

.article-header {
    margin-bottom: 1.35rem;
}

.entry-title {
    font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.entry-thumbnail {
    margin-bottom: 1.4rem;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.entry-content > * {
    max-width: var(--content-width);
}

.entry-content > * + * {
    margin-top: 1.15rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    line-height: 1.15;
}

.entry-content img,
.entry-content figure,
.entry-content .wp-block-image {
    width: 100%;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.25rem;
}

.entry-footer {
    margin-top: 1.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.community-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto;
    gap: 1.5rem;
    align-items: center;
}

.community-panel__note {
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    min-height: 2.7rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    color: var(--color-primary);
    text-decoration: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.pagination .page-numbers:focus-visible {
    background: var(--color-primary);
    color: var(--color-background);
}

.site-footer {
    padding: 1.5rem 0 2rem;
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.75);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 1.3rem 0 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__column {
    min-width: 0;
}

.site-footer__column--brand {
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.site-footer__brand-lockup {
    display: inline-flex;
    margin-bottom: 0.9rem;
    text-decoration: none;
}

.site-footer__brand-lockup img {
    width: auto;
    height: 2.4rem;
}

.site-footer__title,
.site-footer__heading {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-background);
}

.site-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links li + li {
    margin-top: 0.55rem;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
    color: var(--color-accent);
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-background);
}

.footer-socials svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.site-footer__bottom p {
    margin: 0;
}

@media (max-width: 980px) {
    .home-hero,
    .featured-grid,
    .category-block__grid,
    .community-panel,
    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-logo-mark img {
        height: 2rem;
    }
}

/* Categories Page */
.categories-page {
    margin-bottom: var(--space-xl);
}

.categories-page__header {
    margin-bottom: 1.6rem;
}

.categories-page__desc {
    color: var(--color-subtle-text);
    font-size: 1.05rem;
    max-width: 36rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.cat-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: var(--color-primary);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cat-card:hover,
.cat-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: var(--color-primary);
}

.cat-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(228, 160, 123, 0.2), rgba(244, 244, 244, 0.8));
}

.cat-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cat-card:hover .cat-card__media img {
    transform: scale(1.05);
}

.cat-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--color-accent);
}

.cat-card__placeholder svg {
    width: 2.5rem;
    height: 2.5rem;
    opacity: 0.6;
}

.cat-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.1rem 1.15rem 1.25rem;
}

.cat-card__name {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.cat-card__description {
    margin: 0 0 0.6rem;
    color: var(--color-subtle-text);
    font-size: 0.88rem;
    line-height: 1.55;
    flex: 1;
}

.cat-card__count {
    display: inline-block;
    margin-top: auto;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--color-muted);
    color: var(--color-subtle-text);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    align-self: flex-start;
}

@media (max-width: 840px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Card Showcase Sections */
.card-showcase__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.1rem;
}

.showcase-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-card);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.showcase-card:hover,
.showcase-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
}

.showcase-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(228, 160, 123, 0.25), rgba(0, 0, 0, 0.04));
}

.showcase-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.showcase-card:hover .showcase-card__media img {
    transform: scale(1.04);
}

.showcase-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(228, 160, 123, 0.3), rgba(244, 244, 244, 0.6));
}

.showcase-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.85rem 0.9rem 1rem;
}

.showcase-card__body .post-meta-row {
    margin-bottom: 0.4rem;
}

.showcase-card__title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    line-height: 1.25;
}

.showcase-card__title a {
    color: var(--color-primary);
    text-decoration: none;
}

.showcase-card__title a:hover,
.showcase-card__title a:focus-visible {
    color: var(--color-accent);
}

.showcase-card__excerpt {
    margin: 0;
    color: var(--color-subtle-text);
    font-size: 0.84rem;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .card-showcase__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .card-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.newsletter-form__field {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-background);
    color: var(--color-primary);
    font-size: 0.95rem;
}

.newsletter-form__field:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(228, 160, 123, 0.2);
}

.newsletter-form__field::placeholder {
    color: var(--color-subtle-text);
}

.newsletter-form__btn {
    cursor: pointer;
    border: none;
    font-size: 0.82rem;
}

.newsletter-form__btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.newsletter-form__msg {
    margin: 0.4rem 0 0;
    font-size: 0.88rem;
    min-height: 1.4em;
}

.newsletter-form__msg:empty {
    display: none;
}

.newsletter-form__msg--success {
    color: #137333;
}

.newsletter-form__msg--error {
    color: #c5221f;
}

@media (max-width: 840px) {
    .menu-toggle {
        display: inline-flex;
    }

    .category-navigation {
        display: none;
    }

    .category-navigation.is-open {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--color-primary);
        padding: 0.6rem 1.25rem 0.8rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .category-navigation.is-open .category-navigation__list {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.7rem;
    }

    .site-header {
        position: sticky;
    }

    .site-header .site-shell {
        position: relative;
    }

    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__bottom {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100% - 1rem, var(--container));
    }

    .site-header__top {
        padding: 0.5rem 0;
    }

    .home-hero h1,
    .archive-header h1,
    .entry-title {
        font-size: clamp(1.85rem, 9vw, 2.6rem);
    }

    .posts-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
