/* =====================================================
   1. COLOURS
   ===================================================== */

:root {
    --ink: #202923;
    --muted: #657168;

    --paper: #c5ad82;
    --card: #ffffff;

    --green: #263f32;
    --green-2: #385c45;
    --lime: #d8e6b8;

    --rust: #b85d3c;
    --copper: #a95638;
    --bronze: #d29a68;

    --line: #dce2d8;
    --soft: #edf1e8;

    --dark: #080808;
    --dark-card: #151413;
    --dark-border: #45403a;

    --shadow: 0 12px 34px rgba(29, 45, 33, 0.15);
    --radius: 18px;
}


/* =====================================================
   2. GLOBAL / RESET
   ===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;

    color: var(--ink);

    background-color: var(--paper);
    background-image: url("https://apocalypsequizzes.com/images/parchment-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hidden {
    display: none !important;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--green-2);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--rust);
}

.container {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
}

#main-content {
    position: relative;
    z-index: 1;

    flex: 1 0 auto;
}


/* =====================================================
   3. ACCESSIBILITY
   ===================================================== */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;

    z-index: 100;

    padding: 10px 14px;

    background: #ffffff;
    color: #17251c;

    border-radius: 7px;
}

.skip-link:focus {
    left: 10px;
}


/* =====================================================
   4. SITE HEADER
   ===================================================== */

.site-header {
    position: relative;
    z-index: 100;

    width: 100%;

    background: #080808;
    color: #ffffff;

    border-bottom: 2px solid #b51f1f;
}

.header-inner {
    width: auto;
    min-height: 82px;

    margin: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}


/* BRAND */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 900;

    letter-spacing: -0.5px;
    white-space: nowrap;
}

.site-icon {
    display: block;

    width: 42px;
    height: 42px;

    object-fit: contain;
    flex-shrink: 0;
}

.brand-accent {
    color: #d32929;
}


/* MAIN NAVIGATION */

.top-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 26px;

    margin-left: auto;
}

.top-nav a {
    position: relative;
    display: inline-block;

    padding: 10px 0;

    color: #dddddd;
    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 700;

    white-space: nowrap;

    transition: color 0.2s ease;
}

.top-nav a:hover {
    color: #ffffff;
}


/* ACTIVE PAGE */

.top-nav a[aria-current="page"] {
    color: #ffffff;
}

.top-nav a[aria-current="page"]::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 2px;

    width: 100%;
    height: 2px;

    background: #b51f1f;
}


/* =====================================================
   5. HAMBURGER BUTTON
   ===================================================== */

.menu-toggle {
    flex-shrink: 0;

    width: 46px;
    height: 44px;

    padding: 10px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    background: #b51f1f;
    border: 1px solid #d32929;
    border-radius: 6px;

    box-shadow: 0 2px 7px rgba(181, 31, 31, 0.3);

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.menu-toggle span {
    display: block;

    width: 24px;
    height: 2.5px;

    background: #ffffff;
    border-radius: 3px;

    transition: 0.2s ease;
}

.menu-toggle:hover {
    background: #d32929;
    border-color: #ff4545;

    box-shadow: 0 3px 10px rgba(181, 31, 31, 0.45);
}

.menu-toggle:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}


/* =====================================================
   6. HAMBURGER DROPDOWN MENU
   ===================================================== */

.site-menu {
    position: absolute;

    top: 100%;
    right: 15px;

    width: 270px;

    z-index: 1000;

    background: #080808;

    border: 1px solid #333333;
    border-top: 2px solid #b51f1f;
    border-radius: 0 0 6px 6px;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.site-menu[hidden] {
    display: none !important;
}

.menu-links {
    display: flex;
    flex-direction: column;

    padding: 8px 0;
}

.menu-links a {
    display: block;

    padding: 12px 18px;

    color: #dddddd;
    text-decoration: none;

    font-size: 0.92rem;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.menu-links a:hover {
    background: #1b1b1b;
    color: #ffffff;
}

.menu-divider {
    height: 1px;

    background: #333333;

    margin: 6px 0;
}


/* =====================================================
   7. HERO SECTION
   ===================================================== */

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    margin-top: 30px;

    background: var(--green);
    color: #ffffff;

    border-radius: 24px;

    box-shadow: var(--shadow);
}

.hero::before {
    content: "";

    position: absolute;

    width: 460px;
    height: 460px;

    right: -95px;
    top: -170px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 36% 34%,
            #d8e6b8 0 5%,
            #8ca77d 6% 17%,
            #54735a 18% 38%,
            #36523e 39% 59%,
            rgba(38, 63, 50, 0.08) 60%
        );

    opacity: 0.9;
    z-index: -1;
}

.hero::after {
    content: "";

    position: absolute;
    inset: auto 0 0;

    height: 90px;

    background:
        linear-gradient(
            transparent,
            rgba(8, 21, 14, 0.27)
        );

    z-index: -1;
}

.hero-content {
    padding: clamp(30px, 6vw, 70px);
    max-width: 790px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 12px;

    border-radius: 999px;

    background: rgba(216, 230, 184, 0.13);
    color: var(--lime);

    text-transform: uppercase;
    letter-spacing: 0.1em;

    font-size: 0.75rem;
    font-weight: 800;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;

    background: var(--rust);
    border-radius: 50%;
}

.hero h1 {
    margin: 18px 0 15px;

    max-width: 760px;

    font-size: clamp(2.25rem, 5.7vw, 4.5rem);

    line-height: 1.03;
    letter-spacing: -0.055em;

    color: #ffffff;
}

.hero p {
    margin: 0;

    max-width: 660px;

    color: #e3eae1;

    font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 27px;
}


/* =====================================================
   8. BUTTONS
   ===================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 45px;

    padding: 11px 17px;

    border: 1px solid transparent;
    border-radius: 9px;

    background: var(--rust);
    color: #ffffff;

    text-decoration: none;

    font-weight: 800;
    font-size: 0.94rem;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

.button:hover {
    background: #a34f32;
    color: #ffffff;

    transform: translateY(-1px);
}

.button-secondary {
    background: transparent;

    border-color: rgba(255, 255, 255, 0.5);

    color: #ffffff;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* =====================================================
   9. SECTIONS / HEADINGS
   ===================================================== */

.section {
    margin-top: 48px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;

    color: var(--green);

    font-size: clamp(1.55rem, 3vw, 2.15rem);

    line-height: 1.2;
    letter-spacing: -0.035em;
}

.section-heading p {
    margin: 5px 0 0;

    max-width: 650px;

    color: #46564a;
}


/* =====================================================
   10. CATEGORY CARDS
   ===================================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 12px;

    min-height: 220px;

    padding: 14px;

    text-align: left;

    background: #151413;
    color: #ffffff;

    border: 1px solid #45403a;
    border-radius: 15px;

    cursor: pointer;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.16);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.category-card:hover,
.category-card:focus-visible {
    transform: translateY(-3px);

    border-color: var(--bronze);

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);

    outline: none;
}


/* Category images */

.category-image {
    display: block;

    width: 100%;
    height: 100px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 9px;

    background: linear-gradient(135deg, #292522, #66503e);
}

.category-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 250ms ease;
}

.category-card:hover .category-image img {
    transform: scale(1.04);
}

.category-image.no-image {
    display: grid;
    place-items: center;
}

.category-image.no-image::after {
    content: "Image coming soon";

    color: #e5d1b8;

    font-size: 0.78rem;
}


/* Category text */

.category-copy {
    display: flex;
    flex-direction: column;
    flex: 1;

    align-items: flex-start;
}

.category-card strong {
    display: block;

    color: #ffffff;

    font-size: 1rem;
    line-height: 1.3;
}

.category-card small {
    display: block;

    margin-top: 5px;

    color: #bcb6ae;

    font-size: 0.83rem;
    line-height: 1.45;
}

.category-count {
    margin-top: auto;
    padding-top: 10px;

    color: var(--bronze);

    font-size: 0.78rem;
    font-weight: 800;
}


/* =====================================================
   11. FEATURED ARTICLE
   ===================================================== */

.featured-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    overflow: hidden;

    border-radius: var(--radius);

    background: #151413;

    border: 1px solid #45403a;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.featured-copy {
    padding: clamp(24px, 4.5vw, 48px);

    align-self: center;
}

.tag {
    display: inline-block;

    border-radius: 999px;

    background: #302820;
    color: var(--bronze);

    padding: 5px 10px;

    font-size: 0.72rem;

    text-transform: uppercase;
    letter-spacing: 0.08em;

    font-weight: 900;
}

.featured-copy h2 {
    margin: 16px 0 13px;

    color: #ffffff;

    font-size: clamp(1.8rem, 3.6vw, 3rem);

    line-height: 1.09;
    letter-spacing: -0.045em;
}

.featured-copy p {
    margin: 0 0 23px;

    color: #bcb6ae;
}

.text-link {
    color: var(--lime);

    font-weight: 900;
    text-decoration-thickness: 2px;
}

.text-link:hover {
    color: var(--bronze);
}


/* Featured image */

.featured-art {
    position: relative;
    isolation: isolate;

    min-height: 340px;

    display: flex;
    align-items: flex-end;

    padding: 28px;

    overflow: hidden;

    color: #ffffff;

    background: linear-gradient(135deg, #292522, #66503e);

    text-decoration: none;
}

.featured-image {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Featured image label */

.featured-art-label {
    position: absolute;
    z-index: 2;

    right: 16px;
    bottom: 16px;
    left: 16px;

    width: fit-content;
    max-width: calc(100% - 32px);

    padding: 8px 12px;

    border-radius: 6px;

    color: #ffffff;
    background: rgba(18, 30, 25, 0.82);

    font-size: 0.82rem;
    line-height: 1.4;
}


/* Featured image fallback */

.featured-art.no-image {
    display: grid;
    place-items: center;
}

.featured-art.no-image::after {
    content: "Featured article image coming soon";

    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    color: #ffffff;

    font-weight: 600;
    text-align: center;
}


/* =====================================================
   12. ARTICLE LIBRARY — WHITE OUTER PANEL
   ===================================================== */

.library-panel {
    padding: clamp(18px, 3vw, 28px);

    background: #ffffff;

    border: 1px solid var(--line);
    border-radius: var(--radius);

    box-shadow: 0 12px 35px rgba(29, 30, 25, 0.18);
}


/* =====================================================
   13. SEARCH AND SORT
   ===================================================== */

.library-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;

    gap: 12px;

    margin-bottom: 17px;
}

.search-wrap {
    position: relative;
}

.search-icon {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--muted);

    font-size: 1.15rem;

    pointer-events: none;
}

.search-input,
.sort-select {
    width: 100%;

    min-height: 48px;

    border: 1px solid #cbd5c9;
    border-radius: 10px;

    padding: 11px 13px;

    color: var(--ink);

    background: #ffffff;
}

.search-input {
    padding-left: 42px;
}

.search-input::placeholder {
    color: #777777;
}

.search-input:focus,
.sort-select:focus {
    outline: 3px solid rgba(184, 93, 60, 0.2);

    border-color: var(--rust);
}

.sort-select option {
    background: #ffffff;
    color: var(--ink);
}


/* =====================================================
   14. ARTICLE FILTER BUTTONS
   ===================================================== */

.filter-row {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 20px;
}

.filter-button {
    padding: 8px 13px;

    border: 1px solid var(--line);
    border-radius: 999px;

    background: #f4f5f0;
    color: var(--green);

    cursor: pointer;

    font-size: 0.86rem;
    font-weight: 800;

    transition:
        background 0.18s ease,
        border-color 0.18s ease;
}

.filter-button:hover {
    border-color: var(--green-2);
}

.filter-button[aria-pressed="true"] {
    background: var(--green);
    color: #ffffff;

    border-color: var(--green);
}


/* =====================================================
   15. RESULTS COUNT
   ===================================================== */

.results-line {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin: 0 0 16px;

    color: #536157;

    font-size: 0.9rem;
}

.clear-button {
    border: 0;
    padding: 0;

    background: transparent;
    color: #a34f32;

    font-weight: 800;

    cursor: pointer;

    text-decoration: underline;
    text-underline-offset: 3px;
}

.clear-button:hover {
    color: #743721;
}


/* =====================================================
   16. ARTICLE GRID
   ===================================================== */

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;

    align-items: stretch;
}


/* =====================================================
   17. INDIVIDUAL ARTICLE CARDS
   ===================================================== */

.article-card {
    min-width: 0;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    height: 100%;

    background: var(--dark-card);

    border: 1px solid var(--dark-border);
    border-radius: 14px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.article-card:hover {
    background: #191715;

    border-color: #a17a57;

    transform: translateY(-3px);

    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.article-card[hidden] {
    display: none !important;
}


/* =====================================================
   18. ARTICLE CARD IMAGES
   ===================================================== */

.card-visual {
    position: relative;

    display: block;

    width: 100%;

    min-height: 0;
    padding: 0;

    overflow: hidden;

    background: linear-gradient(135deg, #292522, #66503e);

    line-height: 0;

    text-decoration: none;
}

/* Remove decorative shapes */

.card-visual::before,
.card-visual::after {
    display: none;
    content: none;
}

/* Image wrapper */

.article-image-wrap {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: linear-gradient(135deg, #292522, #66503e);
}

/* Actual image */

.article-card-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 300ms ease;
}

.card-visual:hover .article-card-image {
    transform: scale(1.04);
}


/* Image caption */

.visual-caption {
    position: absolute;
    z-index: 2;

    left: 12px;
    bottom: 12px;

    width: fit-content;
    max-width: calc(100% - 24px);

    padding: 7px 10px;

    border-radius: 5px;

    background: rgba(15, 15, 15, 0.82);
    color: #ffffff;

    font-size: 0.7rem;

    line-height: 1.3;
    letter-spacing: 0.06em;
}


/* Missing image fallback */

.article-image-wrap.no-image {
    display: grid;
    place-items: center;

    background: linear-gradient(135deg, #292522, #66503e);
}

.article-image-wrap.no-image::after {
    content: "Article image coming soon";

    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    color: #e5d1b8;

    font-size: 0.9rem;
    font-weight: 600;
}


/* =====================================================
   19. ARTICLE CARD TEXT
   ===================================================== */

.card-body {
    display: flex;
    flex: 1;

    flex-direction: column;
    align-items: flex-start;

    padding: 18px;
}

.card-category {
    display: inline-block;

    margin-bottom: 9px;

    color: var(--bronze);

    text-transform: uppercase;

    font-size: 0.7rem;
    letter-spacing: 0.09em;

    font-weight: 900;
}

.card-body h3 {
    margin: 0 0 9px;

    color: #f5eee4;

    font-size: 1.13rem;

    line-height: 1.32;
    letter-spacing: -0.02em;
}

.card-body h3 a {
    color: #f5eee4;

    text-decoration: none;
}

.card-body h3 a:hover {
    color: #e0a36e;
}

.card-body p {
    margin: 0 0 17px;

    color: #bcb6ae;

    font-size: 0.92rem;
    line-height: 1.58;
}


/* =====================================================
   20. READ ARTICLE BUTTON
   ===================================================== */

.card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;

    gap: 10px;

    width: 100%;

    margin-top: auto;
    padding-top: 15px;

    border-top: 1px solid #39332d;
}

.read-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 10px 16px;

    background: var(--copper);
    color: #ffffff;

    border: 1px solid #bd6948;
    border-radius: 7px;

    font-size: 0.88rem;
    font-weight: 800;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.read-link:hover {
    background: #c16c46;
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.3);
}

.read-arrow {
    font-size: 1.05rem;

    transition: transform 0.2s ease;
}

.read-link:hover .read-arrow {
    transform: translateX(3px);
}


/* =====================================================
   21. EMPTY SEARCH RESULTS
   ===================================================== */

.empty-state {
    display: none;

    padding: 38px 20px;

    text-align: center;

    border: 1px dashed #bdcbb9;
    border-radius: 12px;

    background: #f7f8f4;

    color: #536157;
}

.empty-state.show {
    display: block;
}

.empty-state[hidden] {
    display: none !important;
}


/* =====================================================
   22. BROWSE / NEWSLETTER SECTION
   ===================================================== */

.newsletter-note {
    margin-top: 46px;

    padding: clamp(22px, 4vw, 36px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-radius: var(--radius);

    background: #151413;

    border: 1px solid #45403a;
}

.newsletter-note h2 {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: 1.35rem;
    line-height: 1.3;
}

.newsletter-note p {
    margin: 0;

    max-width: 720px;

    color: #bcb6ae;
}


/* =====================================================
   23. SITE FOOTER
   ===================================================== */

.site-footer {
    width: 100%;

    margin-top: 45px;

    padding: 18px 20px 12px;

    background: #080808;
    color: #ffffff;

    border-top: 1px solid #292929;
}

.footer-inner {
    width: min(100%, 1100px);

    margin: auto;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 0;

    text-align: center;
}

/* Footer brand */

.footer-brand {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: 1.15rem;
    font-weight: 800;

    letter-spacing: 0.5px;
}

/* Footer links */

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px 22px;

    margin: 0 0 10px;
}

.footer-links a {
    color: #dddddd;

    text-decoration: none;

    font-size: 0.92rem;
    font-weight: 600;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Copyright */

.copyright {
    margin: 0;

    color: #999999;

    font-size: 0.8rem;
    text-align: center;
}


/* =====================================================
   24. FOCUS STATES
   ===================================================== */

.card-visual:focus-visible,
.featured-art:focus-visible,
.category-card:focus-visible,
.read-link:focus-visible,
.button:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid #b87943;
    outline-offset: 3px;
}


/* =====================================================
   25. TABLET RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {

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

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

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

    .featured-art {
        min-height: 300px;
    }
}


/* =====================================================
   26. MOBILE RESPONSIVE
   ===================================================== */

@media (max-width: 640px) {

    /* BODY */

    body {
        background-attachment: scroll;
    }

    .container {
        width: min(100% - 22px, 1180px);
    }


    /* HEADER */

    .header-inner {
        min-height: auto;

        display: grid;

        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand brand"
            "navigation menu";

        align-items: center;

        column-gap: 14px;
        row-gap: 10px;

        padding: 13px 0 15px;
    }

    .brand {
        grid-area: brand;

        font-size: 1.3rem;
    }

    .site-icon {
        width: 36px;
        height: 36px;
    }

    .top-nav {
        grid-area: navigation;

        margin-left: 0;

        display: flex;
        justify-content: flex-end;
        align-items: center;

        gap: 18px;

        min-width: 0;
    }

    .top-nav a {
        padding: 7px 0;

        font-size: 0.88rem;
    }

    .menu-toggle {
        grid-area: menu;

        justify-self: end;

        width: 44px;
        height: 42px;
    }

    .site-menu {
        right: 11px;

        width: min(270px, calc(100% - 22px));
    }


    /* HERO */

    .hero {
        margin-top: 18px;

        border-radius: 17px;
    }

    .hero-content {
        padding: 27px 22px 32px;
    }

    .hero::before {
        width: 260px;
        height: 260px;

        right: -125px;
        top: -40px;

        opacity: 0.5;
    }

    .hero h1 {
        max-width: 520px;

        font-size: clamp(2.15rem, 11vw, 3.2rem);
    }


    /* SECTIONS */

    .section {
        margin-top: 36px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
    }


    /* CATEGORIES */

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

        gap: 10px;
    }

    .category-card {
        min-height: 210px;

        padding: 11px;

        gap: 9px;
    }

    .category-image {
        height: 85px;
    }

    .category-card strong {
        font-size: 0.92rem;
    }

    .category-card small {
        font-size: 0.78rem;
    }


    /* FEATURED ARTICLE */

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

    .featured-copy {
        padding: 25px 21px;
    }

    .featured-art {
        min-height: 230px;

        grid-row: 1;

        padding: 18px;
    }


    /* ARTICLE LIBRARY */

    .library-panel {
        padding: 13px;

        border-radius: 14px;
    }

    .library-controls {
        grid-template-columns: 1fr;
    }

    .filter-row {
        gap: 7px;
    }

    .filter-button {
        padding: 7px 11px;

        font-size: 0.79rem;
    }

    .article-grid {
        grid-template-columns: 1fr;

        gap: 13px;
    }


    /* ARTICLE CARDS */

    .card-body {
        padding: 17px;
    }

    .card-body h3 {
        font-size: 1.12rem;
    }

    .card-body p {
        font-size: 0.9rem;
    }

    .read-link {
        padding: 11px 16px;
    }


    /* NEWSLETTER */

    .newsletter-note {
        align-items: flex-start;
        flex-direction: column;

        margin-top: 34px;

        padding: 22px;
    }


    /* FOOTER */

    .site-footer {
        margin-top: 35px;

        padding: 16px 15px 12px;
    }

    .footer-brand {
        margin-bottom: 10px;

        font-size: 1.05rem;
    }

    .footer-links {
        gap: 8px 18px;

        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 0.88rem;
    }

    .copyright {
        font-size: 0.75rem;
    }
}


/* =====================================================
   27. SMALL MOBILE SCREENS
   ===================================================== */

@media (max-width: 380px) {

    .top-nav {
        gap: 12px;
    }

    .top-nav a {
        font-size: 0.82rem;
    }

    .menu-toggle {
        width: 42px;
        height: 40px;
    }

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

    .category-card {
        min-height: 0;
    }

    .category-image {
        height: 120px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }
}


/* =====================================================
   28. REDUCED MOTION
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }
}
