﻿/* LarissaStory compiled stylesheet - do not edit this file manually before source partials. */

/* ===== variables.css ===== */
/* ==========================================
   LarissaStory Design System
========================================== */

:root {
    --bg: #f7f5f0;
    --bg-soft: #ede8dd;
    --surface: #ffffff;
    --surface-muted: #fbfaf7;
    --text: #1b1b1f;
    --text-light: #62606a;
    --primary: #5146b8;
    --primary-hover: #3f3794;
    --accent: #b86b2f;
    --accent-soft: #f3e3d5;
    --teal: #12756d;
    --teal-soft: #deefec;
    --border: #e2dbce;
    --success: #147a54;
    --danger: #bd2d2d;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 10px 24px rgba(27, 27, 31, .06);
    --shadow: 0 18px 45px rgba(27, 27, 31, .10);
    --shadow-lg: 0 28px 70px rgba(27, 27, 31, .14);
    --container: 1180px;
    --transition: .22s ease;
}


/* ===== layout.css ===== */
/* ==========================================
   Base Layout
========================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 12%, rgba(18, 117, 109, .10), transparent 28%),
        radial-gradient(circle at 82% 4%, rgba(81, 70, 184, .11), transparent 30%),
        linear-gradient(180deg, #fbfaf7 0%, var(--bg) 42%, #f4f0e8 100%);
    color: var(--text);
    font-family: "Tajawal", Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

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

.is-hidden {
    display: none !important;
}

/* ================= Header ================= */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(226, 219, 206, .86);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 24px;
}

.logo {
    color: var(--primary);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar a {
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-weight: 700;
    padding: 10px 14px;
    transition: var(--transition);
}

.navbar a:hover,
.navbar a:focus-visible {
    background: var(--surface-muted);
    color: var(--text);
}

/* ================= Hero ================= */

.hero {
    padding: 72px 0 38px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, .72fr);
    align-items: center;
    gap: clamp(28px, 5vw, 68px);
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(40px, 5.8vw, 70px);
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 18px;
}

.hero-text {
    max-width: 680px;
    color: var(--text-light);
    font-size: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-link,
.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    padding: 11px 18px;
    transition: var(--transition);
}

.primary-link {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 14px 28px rgba(81, 70, 184, .22);
}

.primary-link:hover,
.primary-link:focus-visible {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.secondary-link {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .70);
    color: var(--text);
}

.secondary-link:hover,
.secondary-link:focus-visible {
    border-color: rgba(81, 70, 184, .22);
    background: var(--surface);
}

.hero-panel {
    position: relative;
    border: 1px solid rgba(226, 219, 206, .92);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow-lg);
    padding: 22px;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: -1;
    border-radius: calc(var(--radius-lg) + 6px);
    background: linear-gradient(135deg, rgba(81, 70, 184, .15), rgba(184, 107, 47, .10));
    filter: blur(24px);
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-box label {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.search-box input {
    width: 100%;
    min-height: 60px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    outline: none;
    padding: 0 18px;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: rgba(81, 70, 184, .45);
    box-shadow: 0 0 0 4px rgba(81, 70, 184, .10), var(--shadow-sm);
}

.search-box input.has-value {
    border-color: rgba(18, 117, 109, .42);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.hero-stats div {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
    padding: 14px 12px;
}

.hero-stats strong,
.hero-stats span {
    display: block;
}

.hero-stats strong {
    color: var(--primary);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
}

.hero-stats span {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 700;
    margin-top: 5px;
}

/* ================= Page Intro ================= */

.page-hero {
    padding: 54px 0 12px;
}

.page-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(226, 219, 206, .76);
    padding-bottom: 28px;
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.24;
    margin-bottom: 10px;
}

.page-hero p {
    max-width: 680px;
    color: var(--text-light);
    font-size: 19px;
}

.page-search {
    width: min(430px, 100%);
}

/* ================= Categories ================= */

.category-bar {
    padding: 12px 0 28px;
}

.category-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    border-block: 1px solid rgba(226, 219, 206, .76);
    padding-block: 18px;
}

.category-heading h2 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
}

.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: thin;
}

.category-pill {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .74);
    color: var(--text-light);
    font-weight: 800;
    padding: 10px 16px;
    transition: var(--transition);
}

.category-pill:hover,
.category-pill.is-active {
    border-color: transparent;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(81, 70, 184, .18);
}

.category-pill.is-active {
    cursor: default;
}

.category-pill-more {
    border-color: rgba(81, 70, 184, .24);
    color: var(--primary);
}

/* ================= Sections ================= */

.stories {
    padding: 34px 0 84px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-heading h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
}

#storiesCount {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
    color: var(--text-light);
    font-weight: 800;
    padding: 8px 14px;
    white-space: nowrap;
}

.section-action {
    width: auto;
}

.footer {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, .66);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-light);
}

.footer-brand {
    max-width: 360px;
}

.footer h3 {
    color: var(--text);
    font-size: 22px;
    margin-bottom: 4px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
}

.footer-links a {
    color: var(--text-light);
    font-weight: 700;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--primary);
}

.footer-copy {
    white-space: nowrap;
}

/* ================= Story Page ================= */

.story-shell {
    width: min(940px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 84px;
}

.story-page {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: clamp(26px, 5vw, 58px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--primary);
    font-weight: 800;
    transition: var(--transition);
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--primary-hover);
    transform: translateX(3px);
}

.story-back-link::before {
    content: "→";
    line-height: 1;
}

.story-header {
    border-bottom: 1px solid var(--border);
    margin-bottom: 38px;
    padding-bottom: 34px;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.story-meta span,
.story-meta a {
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text-light);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 12px;
}

.story-meta a {
    transition: var(--transition);
}

.story-meta a:hover,
.story-meta a:focus-visible {
    background: var(--primary);
    color: #fff;
}

.story-heading {
    max-width: 820px;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 16px;
}

.story-summary {
    max-width: 760px;
    color: var(--text-light);
    font-size: 20px;
    line-height: 1.9;
}

.story-content {
    max-width: 760px;
    margin-inline: auto;
    color: #242329;
    font-size: 20px;
    line-height: 2.12;
}

.story-content > * + *,
.story-content-chunk > * + *,
.story-content-chunk + .story-content-chunk {
    margin-top: 18px;
}

.story-content-chunk.is-revealed {
    animation: storyChunkReveal .36s ease both;
}

.story-content-chunk[hidden] {
    display: none;
}

.story-content p {
    min-height: 1px;
}

.story-content h2,
.story-content h3,
.story-content h4 {
    color: var(--text);
    line-height: 1.45;
    margin-top: 32px;
}

.story-content h2 {
    font-size: 30px;
}

.story-content h3 {
    font-size: 26px;
}

.story-content h4 {
    font-size: 22px;
}

.story-content ul,
.story-content ol {
    padding-inline-start: 24px;
}

.story-content li + li {
    margin-top: 8px;
}

.story-content a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.story-content blockquote {
    border-inline-start: 4px solid var(--accent);
    background: var(--surface-muted);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    padding: 18px 22px;
}

.continue-reading-wrap {
    display: flex;
    justify-content: center;
    margin: 32px auto 0;
    max-width: 760px;
}

.continue-reading-wrap[hidden] {
    display: none;
}

.continue-reading-button {
    min-height: 50px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 12px 22px;
    transition: var(--transition);
}

.continue-reading-button:hover,
.continue-reading-button:focus-visible {
    background: var(--primary-hover);
    box-shadow: 0 0 0 4px rgba(81, 70, 184, .12);
    transform: translateY(-2px);
}

.story-static-night {
    background:
        radial-gradient(circle at 14% 12%, rgba(65, 154, 147, .09), transparent 28%),
        radial-gradient(circle at 82% 4%, rgba(133, 122, 232, .10), transparent 30%),
        linear-gradient(180deg, #151a24 0%, #191f2b 44%, #121720 100%);
    color: #eceaf3;
}

.story-static-night .header,
.story-static-night .footer {
    border-color: rgba(139, 148, 170, .22);
    background: rgba(20, 24, 34, .88);
}

.story-static-night .navbar a {
    color: #bbb6ce;
}

.story-static-night .navbar a:hover,
.story-static-night .navbar a:focus-visible {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.story-static-night .story-page {
    border-color: rgba(139, 148, 170, .24);
    background: #202737;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.story-static-night .reading-shell {
    background: transparent;
}

.story-static-night .reading-page {
    border-color: rgba(139, 148, 170, .24);
    background: #202737;
}

.story-static-night .story-header,
.story-static-night .story-bottom-actions {
    border-color: rgba(139, 148, 170, .24);
}

.story-static-night .story-heading,
.story-static-night .story-content h2,
.story-static-night .story-content h3,
.story-static-night .story-content h4 {
    color: #f6f2ff;
}

.story-static-night .story-summary,
.story-static-night .story-content,
.story-static-night .reading-content,
.story-static-night .footer-content,
.story-static-night .footer-links a {
    color: #c9c4d8;
}

.story-static-night .story-meta span,
.story-static-night .story-meta a {
    border-color: rgba(139, 148, 170, .24);
    background: #252c3b;
    color: #dcd8e8;
}

.story-static-night .story-meta a:hover,
.story-static-night .story-meta a:focus-visible {
    background: #857ae8;
    color: #fff;
}

.story-static-night .story-content a,
.story-static-night .back-link {
    color: #afa7ff;
}

.story-static-night .story-content blockquote {
    border-color: #d08a52;
    background: #252c3b;
    color: #d8d2e3;
}

.story-static-night .secondary-link {
    border-color: rgba(139, 148, 170, .28);
    background: #252c3b;
    color: #f6f2ff;
}

.story-static-night .continue-reading-button,
.story-static-night .primary-link {
    background: #857ae8;
    color: #fff;
}

.story-static-night .continue-reading-button:hover,
.story-static-night .continue-reading-button:focus-visible,
.story-static-night .primary-link:hover,
.story-static-night .primary-link:focus-visible {
    background: #7469d8;
}

.story-bottom-actions,
.story-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid var(--border);
    margin-top: 42px;
    padding-top: 26px;
}

.story-static-night .story-bottom-actions,
.story-static-night .story-actions {
    border-top-color: rgba(139, 148, 170, .24);
}

.story-static-night .footer h3 {
    color: #f6f2ff;
}

.story-static-night .cookie-consent {
    border-color: rgba(139, 148, 170, .26);
    background: rgba(32, 39, 55, .98);
    box-shadow: 0 22px 56px rgba(0, 0, 0, .32);
}

.story-static-night .cookie-consent p {
    color: #c9c4d8;
}

.story-static-night .cookie-actions a {
    color: #afa7ff;
}

.story-static-night .cookie-actions button {
    background: #857ae8;
    color: #fff;
}

.story-static-night .cookie-actions button:hover,
.story-static-night .cookie-actions button:focus-visible {
    background: #7469d8;
}

/* ================= Legal Pages ================= */

.legal-shell {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 84px;
}

.legal-page {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: clamp(26px, 5vw, 58px);
}

.legal-content {
    border-top: 1px solid var(--border);
    margin-top: 34px;
    padding-top: 8px;
}

.legal-content section {
    padding-top: 26px;
}

.legal-content h2 {
    color: var(--text);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 8px;
}

.legal-content p {
    color: var(--text-light);
    font-size: 19px;
    line-height: 2;
}

/* ================= Cookie Consent ================= */

.cookie-consent {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 16px;
    width: min(620px, calc(100% - 36px));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-lg);
    padding: 16px;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

.cookie-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.cookie-actions a,
.cookie-actions button {
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 800;
    padding: 9px 12px;
}

.cookie-actions a {
    color: var(--primary);
}

.cookie-actions button {
    background: var(--primary);
    color: #fff;
}

.cookie-actions button:hover,
.cookie-actions button:focus-visible {
    background: var(--primary-hover);
}

/* ================= Category Directory ================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.category-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    border: 1px solid rgba(226, 219, 206, .90);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: var(--transition);
}

.category-card:hover {
    border-color: rgba(81, 70, 184, .22);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card h3 {
    color: var(--text);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
}

.category-card p {
    color: var(--text-light);
}


/* ===== cards.css ===== */
/* ==========================================
   Story Cards
========================================== */

#storiesContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.story-card {
    position: relative;
    display: flex;
    min-height: 300px;
    flex-direction: column;
    border: 1px solid rgba(226, 219, 206, .90);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: 24px;
    transition: var(--transition);
}

.story-card::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--teal));
    opacity: .80;
}

.story-card:hover {
    border-color: rgba(81, 70, 184, .22);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.story-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.story-category,
.story-time {
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    padding: 7px 10px;
}

.story-category {
    background: var(--accent-soft);
    color: #743f19;
}

.story-time {
    background: var(--teal-soft);
    color: var(--teal);
}

.story-card h3 {
    font-size: 25px;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 12px;
}

.story-card p {
    flex: 1;
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.95;
    margin-bottom: 24px;
}

.story-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
}

.read-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    padding: 11px 18px;
    transition: var(--transition);
}

.read-btn:hover,
.read-btn:focus-visible {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.empty-state {
    grid-column: 1 / -1;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .72);
    color: var(--text-light);
    padding: 38px;
    text-align: center;
}

.empty-state h3 {
    color: var(--text);
    font-size: 24px;
    margin-bottom: 8px;
}


/* ===== animations.css ===== */
@media (prefers-reduced-motion: no-preference) {
    .hero-inner,
    .category-bar,
    .story-card,
    .story-page {
        animation: fadeUp .45s ease both;
    }

    .story-card:nth-child(2) {
        animation-delay: .04s;
    }

    .story-card:nth-child(3) {
        animation-delay: .08s;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes storyChunkReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== responsive.css ===== */
@media (max-width: 900px) {
    .hero-inner,
    .category-shell,
    .page-hero-inner {
        grid-template-columns: 1fr;
    }

    .page-hero-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-copy {
        max-width: none;
    }

    .hero-panel {
        max-width: 680px;
    }
}

@media (max-width: 760px) {
    .container,
    .story-shell,
    .legal-shell {
        width: min(100% - 28px, var(--container));
    }

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 16px 0;
    }

    .navbar {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .navbar a {
        flex: 0 0 auto;
        padding: 8px 10px;
    }

    .hero {
        padding: 46px 0 24px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-text,
    .story-summary,
    .story-content {
        font-size: 18px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-link,
    .secondary-link {
        width: 100%;
    }

    .section-action {
        width: 100%;
    }

    .hero-panel {
        padding: 16px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .search-box input {
        min-height: 56px;
    }

    .category-shell {
        gap: 12px;
        padding-block: 16px;
    }

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

    #storiesContainer {
        grid-template-columns: 1fr;
    }

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

    .story-card {
        min-height: auto;
    }

    .story-card-top,
    .footer-content,
    .cookie-consent {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-copy {
        white-space: normal;
    }

    .story-card-footer,
    .read-btn,
    .category-card .read-btn {
        width: 100%;
    }

    .story-page {
        border-radius: var(--radius);
        padding: 24px;
    }

    .legal-page {
        border-radius: var(--radius);
        padding: 24px;
    }

    .story-meta {
        gap: 8px;
    }

    .continue-reading-button {
        width: 100%;
    }

    .story-content {
        max-width: none;
        line-height: 2.05;
    }

    .story-content h2 {
        font-size: 25px;
    }

    .story-content h3 {
        font-size: 23px;
    }

    .story-content h4 {
        font-size: 20px;
    }

    .story-bottom-actions,
    .story-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .story-bottom-actions .secondary-link,
    .story-actions .back-link {
        width: 100%;
        justify-content: center;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-actions a,
    .cookie-actions button {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .logo {
        font-size: 25px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .story-heading {
        font-size: 30px;
    }

    .story-page {
        padding: 20px;
    }

    .story-content,
    .story-summary {
        font-size: 17px;
    }

    .legal-content p {
        font-size: 17px;
    }
}

