﻿:root {
    --primary-color: #3a1d16;
    --secondary-color: #8d6e63;
    --accent-color: #d4a38a;
    --text-color: #2a1510;
    --light-bg: #f8f1eb;
    --gold-accent: #d4af37;
    --ink-strong: #1f0f09;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Georgia', serif;
    color: var(--text-color);
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.65;
}

main {
    flex: 1 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, box-shadow 0.2s ease;
}

a:hover,
a:focus-visible {
    color: var(--accent-color);
}

.btn {
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    padding: 0.65rem 1.6rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-primary {
    background: linear-gradient(135deg, rgba(212, 175, 55, 1) 0%, rgba(212, 163, 138, 1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.6);
    color: var(--ink-strong);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.34);
}

.hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(212, 175, 55, 0.38);
}

.hero-secondary {
    background: transparent;
    border: 1px solid rgba(58, 29, 22, 0.25);
    color: var(--primary-color);
    box-shadow: 0 10px 18px rgba(58, 29, 22, 0.08);
}

.hero-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(58, 29, 22, 0.4);
}

.hero-tertiary {
    background: transparent;
    border: 1px solid rgba(212, 163, 138, 0.45);
    color: var(--accent-color);
    box-shadow: 0 8px 18px rgba(212, 163, 138, 0.2);
}

.hero-tertiary:hover {
    transform: translateY(-2px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 236, 229, 0.94) 55%, rgba(240, 228, 219, 0.9) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(58, 29, 22, 0.08);
    box-shadow: 0 16px 32px rgba(58, 29, 22, 0.15);
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), transparent 48%),
        radial-gradient(circle at top right, rgba(212, 163, 138, 0.14), transparent 55%);
}

.navbar {
    background: transparent !important;
    padding: clamp(0.9rem, 1.4vw, 1.55rem) 0;
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-right: auto;
    z-index: 1;
}

.navbar-brand {
    display: inline-flex;
    align-items: baseline;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: clamp(1.9rem, 2.8vw, 2.4rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color) !important;
}

.navbar-brand span {
    color: var(--accent-color);
    margin-left: 0.12em;
}

.brand-tagline {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(58, 29, 22, 0.6);
}

.navbar-toggler {
    border: none;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    padding: 0.45rem 0.55rem;
    box-shadow: 0 6px 18px rgba(58, 29, 22, 0.15);
}

.nav-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-toggle-icon span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 999px;
    transition: transform 0.2s ease, width 0.2s ease;
}

.navbar-toggler:hover .nav-toggle-icon span:nth-child(2),
.navbar-toggler:focus .nav-toggle-icon span:nth-child(2) {
    width: 16px;
    transform: translateX(3px);
}

.navbar-nav {
    gap: 0.35rem;
    align-items: center;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(58, 29, 22, 0.75) !important;
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.65rem 1rem !important;
    border-radius: 999px;
    transition: color 0.25s ease, box-shadow 0.25s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: -40%;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(212, 163, 138, 0.18) 0%, transparent 65%);
    transition: opacity 0.3s ease;
}

.nav-link:hover::before,
.nav-link:focus-visible::before {
    opacity: 1;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(58, 29, 22, 0.4);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.4);
}

.nav-item-cta {
    margin-left: 0.75rem;
}

.nav-link-cta {
    padding: 0.6rem 1.4rem !important;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 163, 138, 0.32) 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--primary-color) !important;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.nav-link-cta:hover {
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.3);
}

.dropdown-menu {
    border: none;
    border-radius: 16px;
    padding: 0.75rem;
    min-width: 14rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 40px rgba(58, 29, 22, 0.15);
    backdrop-filter: blur(8px);
}

.dropdown-item {
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.74rem;
    color: rgba(58, 29, 22, 0.78);
}

.dropdown-item:hover {
    background: rgba(212, 163, 138, 0.16);
    color: var(--primary-color);
}

.dropdown-divider {
    margin: 0.35rem 0;
    border-top: 1px solid rgba(212, 163, 138, 0.25);
}

.section-heading {
    max-width: 780px;
    margin: 0 auto;
}

.pretitle {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(58, 29, 22, 0.6);
    margin-bottom: 0.5rem;
}

.section-heading h2 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.section-heading p {
    color: rgba(58, 29, 22, 0.7);
}

.hero-banner {
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(212, 163, 138, 0.25), transparent 55%),
                radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.15), transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    color: rgba(58, 29, 22, 0.55);
    margin-bottom: 1rem;
}

.hero-headline {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2.5rem, 4vw, 3.4rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-subheadline {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(58, 29, 22, 0.75);
    max-width: 36rem;
}

.hero-actions {
    gap: 0.75rem;
}

.hero-metrics {
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-metrics .metric-pill {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(58, 29, 22, 0.1);
    min-width: 140px;
}

.metric-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.metric-label {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(58, 29, 22, 0.55);
}

.hero-media-card {
    position: relative;
    border-radius: 22px;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(58, 29, 22, 0.3);
}

.hero-media-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.1) 0%, rgba(5, 5, 5, 0.65) 90%);
}

.hero-media-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2.4rem 2.2rem;
    color: #fff;
}

.media-kicker {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    color: rgba(255, 248, 225, 0.8);
}

.media-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.media-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.2rem;
}

.media-link {
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 248, 225, 0.9);
}

.story-highlights {
    background: rgba(248, 241, 235, 0.35);
}

.story-highlight-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 163, 138, 0.18);
    box-shadow: 0 14px 30px rgba(58, 29, 22, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.story-highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(58, 29, 22, 0.18);
}

.story-highlight-card .story-image {
    min-height: 200px;
    background-size: cover;
    background-position: center;
}

.story-highlight-card .story-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.story-tag {
    align-self: flex-start;
    font-size: 0.7rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    background: rgba(212, 163, 138, 0.18);
    color: rgba(58, 29, 22, 0.7);
}

.story-tag[data-category="erotic"] {
    background: rgba(255, 46, 99, 0.12);
    color: #ff2e63;
}

.story-tag[data-category="romantic"] {
    background: rgba(212, 163, 138, 0.16);
    color: #c86b4f;
}

.story-tag[data-category="spiritual"] {
    background: rgba(131, 178, 224, 0.16);
    color: #2e5c8f;
}

.story-highlight-card .story-title,
.mosaic-title,
.recent-story-title,
.library-card-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.35rem;
    margin: 0;
}

.story-highlight-card .story-title a,
.mosaic-title a,
.recent-story-title a,
.library-card-title a {
    color: var(--primary-color);
}

.story-summary,
.mosaic-summary,
.recent-story-summary,
.library-card-summary {
    color: rgba(58, 29, 22, 0.68);
    margin: 0;
}

.story-meta {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(58, 29, 22, 0.5);
}

.story-meta span + span::before {
    content: '\2022';
    margin: 0 0.6rem;
    opacity: 0.4;
}

.story-foot {
    margin-top: auto;
}

.story-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(212, 163, 138, 0.26) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--primary-color);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    gap: 0.45rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(212, 175, 55, 0.24);
    color: var(--primary-color);
}

.story-cta-outline {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(58, 29, 22, 0.15);
    color: rgba(58, 29, 22, 0.75);
}

.story-cta::after {
    content: '\203A';
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.story-cta:hover::after {
    transform: translateX(4px);
}

.story-cta-outline:hover {
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(58, 29, 22, 0.18);
}

.spotlight-feature {
    background: linear-gradient(120deg, rgba(58, 29, 22, 0.08) 0%, rgba(248, 241, 235, 0.35) 100%);
}

.spotlight-media {
    border-radius: 24px;
    min-height: 340px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 26px 48px rgba(58, 29, 22, 0.25);
}

.spotlight-content .pretitle {
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    color: rgba(58, 29, 22, 0.55);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.spotlight-content h2 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.spotlight-meta {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: rgba(58, 29, 22, 0.55);
    text-transform: uppercase;
}

.spotlight-content p {
    color: rgba(58, 29, 22, 0.72);
    line-height: 1.75;
}

.story-mosaic {
    background: #fff;
}

.mosaic-card {
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(58, 29, 22, 0.08);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 28px rgba(58, 29, 22, 0.12);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mosaic-media {
    min-height: 160px;
    background-size: cover;
    background-position: center;
}

.mosaic-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.category-showcase {
    background: linear-gradient(180deg, rgba(248, 241, 235, 0.55) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.genre-card {
    position: relative;
    border-radius: 22px;
    padding: 2.4rem;
    color: #fff;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 24px 44px rgba(58, 29, 22, 0.2);
}

.genre-card[data-category="erotic"] {
    background: linear-gradient(140deg, rgba(52, 17, 31, 0.95) 0%, rgba(130, 31, 60, 0.92) 100%);
}

.genre-card[data-category="romantic"] {
    background: linear-gradient(140deg, rgba(58, 26, 16, 0.94) 0%, rgba(149, 84, 45, 0.92) 100%);
}

.genre-card[data-category="spiritual"] {
    background: linear-gradient(140deg, rgba(22, 33, 56, 0.94) 0%, rgba(74, 110, 135, 0.92) 100%);
}

.genre-card h3 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.genre-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.genre-link {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.authors-panel {
    background: #fff;
}

.authors-cta .btn {
    border-radius: 999px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.65rem 1.6rem;
}

.newsletter-panel {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    margin: 0 1rem;
    background: linear-gradient(140deg, rgba(58, 29, 22, 0.92) 0%, rgba(33, 17, 25, 0.95) 100%);
    color: #fff;
    box-shadow: 0 30px 60px rgba(58, 29, 22, 0.25);
}

.newsletter-panel::before {
    content: '';
    position: absolute;
    inset: -30% 20% auto -20%;
    height: 120%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 65%);
    pointer-events: none;
}

.newsletter-panel .pretitle {
    color: rgba(249, 248, 216, 0.85);
}

.newsletter-panel h2 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}

.newsletter-panel p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.2rem;
}

.newsletter-form .newsletter-field {
    display: flex;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.35rem;
    gap: 0.4rem;
    backdrop-filter: blur(8px);
}

.newsletter-form .newsletter-field input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.65rem 1.1rem;
}

.newsletter-form .newsletter-field input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .newsletter-field input:focus-visible {
    outline: none;
}

.newsletter-form .newsletter-field .btn {
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    letter-spacing: 0.14em;
}

.newsletter-form small {
    color: rgba(255, 255, 255, 0.65);
}

.newsletter-feedback {
    display: none;
    margin-bottom: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.newsletter-feedback--visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.newsletter-feedback--pending {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.newsletter-feedback--success {
    background: rgba(83, 161, 118, 0.18);
    border-color: rgba(83, 161, 118, 0.45);
    color: rgba(235, 255, 241, 0.95);
}

.newsletter-feedback--error {
    background: rgba(196, 77, 88, 0.2);
    border-color: rgba(196, 77, 88, 0.45);
    color: rgba(255, 236, 239, 0.92);
}

.library-page {
    background: radial-gradient(circle at top left, rgba(248, 241, 235, 0.65), rgba(255, 255, 255, 0.95));
    color: var(--text-color);
}

.library-hero .pretitle {
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(58, 29, 22, 0.55);
}

.library-hero h1 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.library-hero p {
    max-width: 34rem;
    line-height: 1.75;
    color: rgba(58, 29, 22, 0.72);
}

.library-hero-card {
    background: linear-gradient(140deg, rgba(58, 29, 22, 0.9), rgba(33, 17, 25, 0.92));
    color: #fff;
    border-radius: 24px;
    padding: 2.4rem;
    box-shadow: 0 26px 40px rgba(58, 29, 22, 0.25);
}

.library-hero-card .hero-card-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.library-hero-card h2 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.9rem;
    margin: 1rem 0;
}

.library-category-block + .library-category-block {
    border-top: 1px solid rgba(58, 29, 22, 0.1);
    padding-top: 2.5rem;
    margin-top: 2.5rem;
}

.library-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: #fff;
    border-radius: 18px;
    padding: 1.6rem;
    border: 1px solid rgba(212, 163, 138, 0.18);
    box-shadow: 0 12px 24px rgba(58, 29, 22, 0.12);
}

.library-card-meta {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(58, 29, 22, 0.5);
}

.library-card-meta span + span::before {
    content: '\2022';
    margin: 0 0.6rem;
    opacity: 0.4;
}

.library-card-link {
    align-self: flex-start;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.library-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    color: var(--primary-color);
}

.library-card-link::after {
    content: '\203A';
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.library-card-link:hover::after {
    transform: translateX(4px);
}

.recent-story-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(212, 163, 138, 0.18);
    box-shadow: 0 16px 30px rgba(58, 29, 22, 0.14);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.recent-story-media {
    min-height: 180px;
    background-size: cover;
    background-position: center;
}

.recent-story-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.recent-story-meta {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(58, 29, 22, 0.5);
    display: flex;
    justify-content: space-between;
}

.recent-story-meta span + span::before {
    content: '\2022';
    margin: 0 0.6rem;
    opacity: 0.4;
}

.article-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2.2rem, 3.2vw, 3rem);
    color: var(--primary-color);
}

.article-meta {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(58, 29, 22, 0.55);
}

.article-content p {
    margin-bottom: 1.4rem;
}

.article-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 18px 32px rgba(58, 29, 22, 0.18);
}

.article-meta-info {
    border-top: 1px solid rgba(58, 29, 22, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.keywords-container {
    margin: 10px 0;
}

.keyword-box {
    background: rgba(212, 163, 138, 0.18);
    border: 1px solid rgba(212, 163, 138, 0.25);
    border-radius: 12px;
    padding: 0.35rem 0.75rem;
    margin: 0 0.4rem 0.4rem 0;
    display: inline-block;
    font-size: 0.78rem;
    color: rgba(58, 29, 22, 0.7);
}

.rating-section {
    margin-top: 1.5rem;
}

.star-rating {
    display: inline-flex;
    gap: 4px;
    font-size: 24px;
    line-height: 1;
}

.star-rating .star {
    color: transparent;
    -webkit-text-stroke: 1px #ffc107;
}

.star-rating .star.full {
    color: #ffc107;
}

.star-rating .star.half {
    position: relative;
}

.star-rating .star.half::before {
    content: '\2605';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.star-rating .star.empty {
    -webkit-text-stroke: 1px #495057;
}

.rating-input {
    display: inline-flex;
    gap: 6px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.rating-input .star {
    color: transparent;
    -webkit-text-stroke: 1px #212529;
    transition: transform 0.15s ease, color 0.15s ease;
    outline: none;
}

.rating-input .star.is-selected,
.rating-input .star.is-hovered {
    color: #ffc107;
    -webkit-text-stroke: 1px #ffc107;
}

.rating-input .star.is-hovered {
    transform: scale(1.1);
}

.rating-input .star:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: 4px;
}

.rating-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-left: 10px;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer {
    background-color: var(--light-bg);
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid rgba(58, 29, 22, 0.1);
    margin-top: 3rem;
    position: relative;
    box-shadow: 0 -3px 10px rgba(58, 29, 22, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-brand h3 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
}

.footer-divider {
    width: 40px;
    height: 2px;
    background-color: var(--gold-accent);
    margin: 0.5rem auto 1rem;
}

.footer-tagline {
    color: var(--secondary-color);
    font-style: italic;
    margin: 0;
    font-size: 0.95rem;
}

.footer-links ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li a {
    color: var(--text-color);
    font-weight: 500;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-legal {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
}

.footer-legal p {
    margin-bottom: 0.5rem;
}

.footer-legal a {
    color: var(--text-color);
    margin: 0 0.5rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

.footer-manage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.footer-manage-copy {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.footer-manage-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(58, 29, 22, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.footer-manage-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 8px 18px rgba(58, 29, 22, 0.12);
}

.footer-unsubscribe-form {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    background: rgba(248, 241, 235, 0.6);
    border: 1px solid rgba(58, 29, 22, 0.1);
}

.footer-unsubscribe-form[hidden] {
    display: none !important;
}

.footer-unsubscribe-field {
    display: flex;
    gap: 0.5rem;
}

.footer-unsubscribe-field input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(58, 29, 22, 0.25);
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
}

.footer-unsubscribe-field input:focus-visible {
    outline: none;
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.footer-unsubscribe-field button {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(212, 163, 138, 0.8));
    color: var(--ink-strong);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-unsubscribe-field button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.25);
}

.footer-unsubscribe-note {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(58, 29, 22, 0.55);
}

.footer-unsubscribe-feedback {
    display: none;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-unsubscribe-feedback--visible {
    display: block;
}

.footer-unsubscribe-feedback--pending {
    background: rgba(58, 29, 22, 0.08);
    border-color: rgba(58, 29, 22, 0.18);
    color: rgba(58, 29, 22, 0.7);
}

.footer-unsubscribe-feedback--success {
    background: rgba(83, 161, 118, 0.18);
    border-color: rgba(83, 161, 118, 0.35);
    color: rgba(21, 68, 29, 0.85);
}

.footer-unsubscribe-feedback--error {
    background: rgba(196, 77, 88, 0.18);
    border-color: rgba(196, 77, 88, 0.4);
    color: rgba(128, 30, 39, 0.9);
}

.homepage {
    background: radial-gradient(circle at top, rgba(248, 241, 235, 0.65), rgba(255, 255, 255, 0.95));
    color: var(--text-color);
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

@media (max-width: 991px) {
    .brand-block {
        max-width: 80%;
    }

    .brand-tagline {
        font-size: 0.72rem;
        letter-spacing: 0.16em;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.97);
        padding: 1.25rem 1rem;
        margin-top: 1rem;
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(58, 29, 22, 0.16);
    }

    .navbar-nav {
        align-items: stretch;
        gap: 0.65rem;
    }

    .nav-link {
        border-radius: 14px;
        justify-content: center;
        letter-spacing: 0.18em;
    }

    .nav-link::before {
        display: none;
    }

    .nav-link:hover {
        box-shadow: inset 0 0 0 1px rgba(212, 163, 138, 0.45);
    }

    .nav-link-cta,
    .nav-item-cta {
        margin-left: 0;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-unsubscribe-field {
        flex-direction: column;
    }

    .footer-unsubscribe-field button {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .hero-headline {
        font-size: 2.2rem;
    }

    .hero-media-card {
        min-height: 300px;
    }

    .hero-media-overlay {
        padding: 1.6rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-metrics {
        gap: 0.6rem;
    }

    .hero-metrics .metric-pill {
        width: 100%;
        align-items: center;
    }

    .story-highlight-card .story-image {
        min-height: 180px;
    }

    .genre-card {
        padding: 2rem;
        min-height: 220px;
    }

    .newsletter-panel,
    .library-hero-card {
        margin: 0;
        padding: 2rem;
    }

    .newsletter-form .newsletter-field {
        flex-direction: column;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.18);
    }

    .newsletter-form .newsletter-field .btn {
        width: 100%;
    }

    .library-card,
    .recent-story-card {
        padding: 1.4rem;
    }
}




