/* ============================================================
   Lumina — Premium Digital Editorial Template
   ROYAWEB Static Site Generation System
   ============================================================
   Table of Contents:
   1.  Design Tokens
   2.  Reset & Base
   3.  Typography
   4.  Layout & Container
   5.  Buttons & Tags
   6.  Header & Navigation
   7.  Hero Section
   8.  Article Cards
   9.  Content Grid & Sidebar
   10. Trending & Ranking Lists
   12. Most Read Section
   13. Footer
   14. Detail Page
   15. Category Page
   16. Static Pages (Terms/Privacy/About/Contact)
   17. Ad Slots
   18. Reading Progress
   19. Back to Top
   20. Utilities
   21. Responsive — Tablet
   22. Responsive — Mobile
   ============================================================ */

/* ============================================================
   1. Design Tokens
   ============================================================ */
:root {
    /* Ink scale — cool-toned deep blues */
    --ink-900: #0B1426;
    --ink-800: #14223B;
    --ink-700: #1C2D45;
    --ink-600: #2A3F5F;
    --ink-500: #3D5070;
    --ink-400: #6B7B96;
    --ink-300: #9AA8C0;
    --ink-200: #C4CEDF;
    --ink-100: #E3E8F0;

    /* Canvas & paper */
    --canvas: #F5F7FB;
    --paper: #FFFFFF;

    /* Amber — signature accent */
    --amber-700: #9C5A12;
    --amber-600: #C2761A;
    --amber-500: #E89B2C;
    --amber-400: #F0B554;
    --amber-100: #FDF4E7;

    /* Signal — interaction blue */
    --signal: #1E88E5;
    --signal-dark: #1565C0;

    /* Category colors (reserved for future per-category rail) */
    --cat-tech: #4F46E5;
    --cat-entertainment: #DC2626;
    --cat-lifestyle: #059669;
    --cat-business: #D97706;
    --cat-science: #0891B2;
    --cat-sports: #7C3AED;

    /* Geometry */
    --radius: 4px;
    --radius-lg: 8px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(11, 20, 38, 0.08);
    --shadow-md: 0 4px 12px rgba(11, 20, 38, 0.10);
    --shadow-lg: 0 8px 28px rgba(11, 20, 38, 0.14);

    /* Layout */
    --container: 1280px;
    --gutter: 24px;

    /* Header height */
    --header-h: 64px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --dur: 0.25s;
}

/* ============================================================
   2. Reset & Base
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-700);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--signal);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

a:hover {
    color: var(--amber-600);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================================
   3. Typography
   ============================================================ */
.display-xl,
.display-l,
h1, h2, h3, h4, h5, h6,
.section-title,
.card-title,
.article-title {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    color: var(--ink-900);
    letter-spacing: -0.01em;
}

.display-xl {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
}

.display-l {
    font-size: 36px;
    line-height: 1.15;
    font-weight: 700;
}

h1, .h1 {
    font-size: 30px;
    line-height: 1.2;
}

h2, .h2, .section-title {
    font-size: 24px;
    line-height: 1.3;
}

h3, .h3 {
    font-size: 20px;
    line-height: 1.35;
}

.body-l {
    font-size: 18px;
    line-height: 1.7;
}

.body-text {
    font-size: 16px;
    line-height: 1.65;
}

.small {
    font-size: 14px;
    line-height: 1.5;
}

.caption {
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Section Eyebrow — signature element */
.eyebrow {
    display: inline-flex;
    align-items: center;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--amber-600);
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 6px;
}

.eyebrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--amber-600);
    border-radius: 1px;
}

/* ============================================================
   4. Layout & Container
   ============================================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: 48px 0;
}

.section-lg {
    padding: 64px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.content-main {
    min-width: 0;
}

.sidebar {
    min-width: 0;
}

/* ============================================================
   5. Buttons & Tags
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--dur) var(--ease);
    text-decoration: none;
}

.btn-primary {
    background: var(--amber-600);
    color: var(--paper);
}

.btn-primary:hover {
    background: var(--amber-500);
    color: var(--paper);
}

.btn-outline {
    border: 1.5px solid var(--ink-200);
    color: var(--ink-700);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--amber-600);
    color: var(--amber-600);
}

/* Category tag */
.cat-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: var(--radius);
    background: var(--amber-100);
    color: var(--amber-700);
    margin-bottom: 8px;
}

/* ============================================================
   6. Header & Navigation
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--ink-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    height: var(--header-h);
    display: flex;
    align-items: center;
}

.header-inner {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-brand img {
    height: 32px;
    width: auto;
}

.header-brand .brand-name {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--paper);
    letter-spacing: -0.02em;
}

.header-brand .brand-name span {
    color: var(--amber-500);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    color: var(--ink-200);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: all var(--dur) var(--ease);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--paper);
    background: rgba(255, 255, 255, 0.08);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--amber-500);
    border-radius: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--ink-200);
    transition: all var(--dur) var(--ease);
}

.icon-btn:hover {
    color: var(--paper);
    background: rgba(255, 255, 255, 0.08);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--paper);
    border-radius: 1px;
    transition: all var(--dur) var(--ease);
}

body.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   7. Hero Section
   ============================================================ */
.hero {
    padding: 32px 0 48px;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Hero main feature */
.hero-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--paper);
}

.hero-main .hero-main-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.hero-main:hover .hero-main-img {
    transform: scale(1.03);
}

.hero-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 28px 24px;
    background: linear-gradient(to top, rgba(11, 20, 38, 0.92) 0%, rgba(11, 20, 38, 0.5) 60%, transparent 100%);
}

.hero-main-content .cat-tag {
    background: var(--amber-600);
    color: var(--paper);
}

.hero-main-content h2 {
    font-size: 28px;
    line-height: 1.2;
    color: var(--paper);
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-main-content h2 a {
    color: inherit;
}

.hero-main-content .hero-meta {
    font-size: 13px;
    color: var(--ink-200);
}

/* Hero featured grid (3 small cards) */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.featured-card {
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--dur) var(--ease);
    border-left: 3px solid var(--amber-600);
}

.featured-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.featured-card .featured-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.featured-card .featured-body {
    padding: 12px 14px 14px;
}

.featured-card h3 {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.featured-card h3 a {
    color: var(--ink-800);
}

.featured-card h3 a:hover {
    color: var(--amber-600);
}

.featured-card .featured-meta {
    font-size: 12px;
    color: var(--ink-400);
}

/* Hero right — latest list */
.hero-right {
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.hero-right .section-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ink-100);
}

.hero-right .section-head h3 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-right .section-head h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--amber-600);
    border-radius: 2px;
}

.latest-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    counter-reset: latest-counter;
}

.latest-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    counter-increment: latest-counter;
    border-bottom: 1px solid var(--ink-100);
    transition: all var(--dur) var(--ease);
}

.latest-item:last-child {
    border-bottom: none;
}

.latest-item:hover {
    padding-left: 4px;
}

.latest-item .latest-num {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--ink-200);
    line-height: 1;
    flex-shrink: 0;
    width: 32px;
    transition: color var(--dur) var(--ease);
}

.latest-item .latest-num::before {
    content: counter(latest-counter);
}

.latest-item:hover .latest-num {
    color: var(--amber-600);
}

.latest-item .latest-body {
    flex: 1;
    min-width: 0;
}

.latest-item h4 {
    font-family: 'Fraunces', serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.latest-item h4 a {
    color: var(--ink-700);
}

.latest-item h4 a:hover {
    color: var(--amber-600);
}

.latest-item .latest-meta {
    font-size: 12px;
    color: var(--ink-400);
}

/* ============================================================
   8. Article Cards
   ============================================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--dur) var(--ease);
    display: flex;
    flex-direction: column;
    /* Category Color Rail — signature element */
    border-left: 3px solid var(--amber-600);
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.article-card .card-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.article-card .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.article-card:hover .card-cover img {
    transform: scale(1.05);
}

.article-card .card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card .card-title {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
    margin-bottom: 8px;
}

.article-card .card-title a {
    color: var(--ink-800);
}

.article-card .card-title a:hover {
    color: var(--amber-600);
}

.article-card .card-desc {
    font-size: 14px;
    color: var(--ink-500);
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--ink-100);
}

.article-card .card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-500);
}

.article-card .author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--amber-600);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.article-card .card-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--ink-400);
}

.article-card .card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ============================================================
   9. Content Grid & Sidebar
   ============================================================ */
.section-head {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.section-head .head-left h2 {
    font-size: 24px;
    font-weight: 700;
}

.section-head .head-left .eyebrow {
    margin-bottom: 8px;
}

.section-head .view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--amber-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Sidebar blocks */
.sidebar-block {
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-block .block-head {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ink-100);
}

.sidebar-block .block-head h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-block .block-head h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--amber-600);
    border-radius: 2px;
}

/* ============================================================
   10. Trending & Ranking Lists
   ============================================================ */
.trending-list {
    display: flex;
    flex-direction: column;
    counter-reset: trend-counter;
}

.trending-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--ink-100);
    transition: all var(--dur) var(--ease);
    counter-increment: trend-counter;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    transform: translateX(3px);
}

.trending-item .rank-num {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--amber-600);
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
    font-style: italic;
}

.trending-item .rank-num::before {
    content: counter(trend-counter);
}

.trending-item .trend-body {
    flex: 1;
    min-width: 0;
}

.trending-item h4 {
    font-family: 'Fraunces', serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.trending-item h4 a {
    color: var(--ink-700);
}

.trending-item h4 a:hover {
    color: var(--amber-600);
}

.trending-item .trend-meta {
    font-size: 11px;
    color: var(--ink-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================================
   12. Most Read Section
   ============================================================ */
.most-read-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: mr-counter;
}

.most-read-card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all var(--dur) var(--ease);
    border-top: 3px solid var(--amber-600);
    position: relative;
    counter-increment: mr-counter;
}

.most-read-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.most-read-card .mr-num {
    font-family: 'Fraunces', serif;
    font-size: 36px;
    font-weight: 700;
    font-style: italic;
    color: var(--ink-100);
    line-height: 1;
    margin-bottom: 8px;
}

.most-read-card .mr-num::before {
    content: counter(mr-counter);
}

.most-read-card h4 {
    font-family: 'Fraunces', serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.most-read-card h4 a {
    color: var(--ink-800);
}

.most-read-card h4 a:hover {
    color: var(--amber-600);
}

.most-read-card .mr-meta {
    font-size: 12px;
    color: var(--ink-400);
}

/* ============================================================
   13. Footer
   ============================================================ */
.site-footer {
    background: var(--ink-900);
    color: var(--ink-300);
    padding: 56px 0 24px;
    margin-top: 64px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand-name {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--paper);
    margin-bottom: 12px;
    display: block;
}

.footer-brand .brand-name span {
    color: var(--amber-500);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-400);
    max-width: 320px;
}

.footer-col h4 {
    font-family: 'Fraunces', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--paper);
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--ink-300);
    font-size: 14px;
    transition: color var(--dur) var(--ease);
}

.footer-col ul li a:hover {
    color: var(--amber-500);
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--ink-400);
}

.footer-bottom .footer-legal {
    display: flex;
    gap: 20px;
}

.footer-bottom .footer-legal a {
    font-size: 13px;
    color: var(--ink-400);
}

.footer-bottom .footer-legal a:hover {
    color: var(--amber-500);
}

/* ============================================================
   14. Detail Page
   ============================================================ */
.detail-page {
    background: var(--canvas);
}

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--amber-600);
    z-index: 1200;
    transition: width 0.1s linear;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 13px;
    color: var(--ink-400);
}

.breadcrumb a {
    color: var(--ink-500);
}

.breadcrumb a:hover {
    color: var(--amber-600);
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--ink-300);
}

/* Article header */
.article-header {
    padding: 16px 0 32px;
    border-bottom: 1px solid var(--ink-100);
    margin-bottom: 32px;
}

.article-header .cat-tag {
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--ink-500);
}

.article-meta .meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-meta .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--amber-600);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.article-meta .author-info .author-name {
    font-weight: 600;
    color: var(--ink-700);
}

.article-meta .meta-stats {
    display: flex;
    gap: 16px;
}

.article-meta .meta-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Article cover */
.article-cover {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    aspect-ratio: 21 / 9;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article body */
.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--ink-600);
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 26px;
    margin: 36px 0 16px;
    color: var(--ink-900);
}

.article-body h3 {
    font-size: 22px;
    margin: 28px 0 14px;
    color: var(--ink-800);
}

.article-body blockquote {
    border-left: 3px solid var(--amber-600);
    padding: 12px 0 12px 24px;
    margin: 28px 0;
    font-family: 'Fraunces', serif;
    font-size: 22px;
    line-height: 1.5;
    font-style: italic;
    color: var(--ink-700);
}

.article-body img {
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.article-body ul,
.article-body ol {
    margin: 0 0 24px 20px;
}

.article-body ul li,
.article-body ol li {
    margin-bottom: 8px;
    list-style: disc;
}

.article-body ol li {
    list-style: decimal;
}

.article-body a {
    color: var(--amber-600);
    text-decoration: underline;
    text-decoration-color: var(--amber-400);
    text-underline-offset: 2px;
}

.article-body a:hover {
    color: var(--amber-700);
}

/* Prev/Next navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0;
}

.post-nav-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    transition: all var(--dur) var(--ease);
    border: 1px solid var(--ink-100);
}

.post-nav-item:hover {
    border-color: var(--amber-600);
    box-shadow: var(--shadow-md);
}

.post-nav-item.next {
    text-align: right;
}

.post-nav-item .nav-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--amber-600);
    margin-bottom: 8px;
}

.post-nav-item .nav-title {
    font-family: 'Fraunces', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-800);
    line-height: 1.4;
}

.post-nav-item .nav-title a {
    color: inherit;
}

.post-nav-item .nav-title a:hover {
    color: var(--amber-600);
}

/* Detail sidebar */
.detail-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

/* ============================================================
   15. Category Page
   ============================================================ */
.category-page {
    background: var(--canvas);
}

.category-header {
    background: var(--ink-900);
    color: var(--paper);
    padding: 48px 0 40px;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--amber-600), var(--amber-400));
}

.category-header .eyebrow {
    color: var(--amber-500);
}

.category-header h1 {
    font-size: 42px;
    line-height: 1.15;
    color: var(--paper);
    font-weight: 700;
    margin-bottom: 8px;
}

.category-header .category-count {
    font-size: 15px;
    color: var(--ink-300);
}

.category-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 40px 0;
    align-items: start;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-600);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    transition: all var(--dur) var(--ease);
}

.pagination a:hover {
    border-color: var(--amber-600);
    color: var(--amber-600);
}

.pagination .current {
    background: var(--amber-600);
    color: var(--paper);
}

.pagination .disabled {
    color: var(--ink-300);
    cursor: not-allowed;
}

/* ============================================================
   16. Static Pages (Terms/Privacy/About/Contact)
   ============================================================ */
.static-page {
    padding: 48px 0;
}

.static-content {
    max-width: 760px;
    margin: 0 auto;
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-sm);
}

.static-content h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.static-content .static-subtitle {
    font-size: 15px;
    color: var(--ink-400);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ink-100);
}

.static-content h2 {
    font-size: 22px;
    margin: 32px 0 12px;
    color: var(--ink-900);
}

.static-content h3 {
    font-size: 18px;
    margin: 24px 0 10px;
    color: var(--ink-800);
}

.static-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-600);
    margin-bottom: 16px;
}

.static-content ul,
.static-content ol {
    margin: 0 0 16px 20px;
}

.static-content ul li {
    list-style: disc;
    margin-bottom: 8px;
    color: var(--ink-600);
}

.static-content ol li {
    list-style: decimal;
    margin-bottom: 8px;
    color: var(--ink-600);
}

.static-content a {
    color: var(--amber-600);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* About page */
.about-hero {
    text-align: center;
    padding: 24px 0 40px;
}

.about-hero h1 {
    font-size: 40px;
    margin-bottom: 16px;
}

.about-hero p {
    font-size: 18px;
    color: var(--ink-500);
    max-width: 600px;
    margin: 0 auto;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.about-stat {
    text-align: center;
    padding: 24px;
    background: var(--ink-100);
    border-radius: var(--radius-lg);
}

.about-stat .stat-num {
    font-family: 'Fraunces', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--amber-600);
    margin-bottom: 4px;
}

.about-stat .stat-label {
    font-size: 14px;
    color: var(--ink-500);
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 32px auto 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--ink-200);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--ink-700);
    background: var(--canvas);
    transition: border-color var(--dur) var(--ease);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--amber-600);
    background: var(--paper);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.contact-info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-info-item .ci-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--amber-100);
    color: var(--amber-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item .ci-label {
    font-size: 12px;
    color: var(--ink-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.contact-info-item .ci-value {
    font-size: 15px;
    color: var(--ink-700);
    font-weight: 500;
}

/* ============================================================
   17. Ad Slots
   ============================================================ */
.ad-page-top,
.ad-slot {
    text-align: center;
    margin: 0 auto;
    max-width: var(--container);
    padding: 12px var(--gutter);
    min-height: 50px;
}

.ad-page-top {
    background: var(--ink-900);
    padding: 8px var(--gutter);
}

.ad-page-top:empty {
    display: none;
}

.ad-incontent {
    margin: 32px 0;
    text-align: center;
    min-height: 90px;
    background: var(--ink-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ad-incontent:empty {
    display: none;
}

.ad-sidebar {
    margin-bottom: 24px;
    text-align: center;
    min-height: 250px;
    background: var(--ink-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ad-sidebar:empty {
    display: none;
}

/* ============================================================
   18. Reading Progress
   ============================================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--amber-600), var(--amber-400));
    z-index: 1200;
    transition: width 0.15s ease-out;
    box-shadow: 0 0 8px rgba(194, 118, 26, 0.4);
}

/* ============================================================
   19. Back to Top
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink-900);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--dur) var(--ease);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--amber-600);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ============================================================
   20. Utilities
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }
.lazy {
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.lazy.loaded {
    opacity: 1;
}

/* ============================================================
   21. Responsive — Tablet (769px – 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    :root {
        --gutter: 20px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sidebar {
        order: 2;
    }

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

    .hero-right {
        order: 3;
    }

    .most-read-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

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

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

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

    .article-header h1 {
        font-size: 30px;
    }

    .display-xl {
        font-size: 40px;
    }

    .display-l {
        font-size: 30px;
    }
}

/* ============================================================
   22. Responsive — Mobile (<= 768px)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --gutter: 16px;
        --header-h: 56px;
    }

    /* Hamburger menu visible */
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--ink-900);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 20px var(--gutter);
        gap: 4px;
        transform: translateX(-100%);
        transition: transform var(--dur) var(--ease);
        overflow-y: auto;
    }

    body.nav-open .main-nav {
        transform: translateX(0);
    }

    .main-nav a {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: var(--radius);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .main-nav a.active::after {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 20px 0 32px;
    }

    .hero-main-content {
        padding: 20px 16px 16px;
    }

    .hero-main-content h2 {
        font-size: 20px;
    }

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

    .hero-right {
        padding: 20px;
    }

    /* Grids */
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .most-read-grid {
        grid-template-columns: 1fr;
    }

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

    /* Section spacing */
    .section {
        padding: 32px 0;
    }

    .section-lg {
        padding: 40px 0;
    }

    /* Typography */
    .display-xl {
        font-size: 30px;
    }

    .display-l {
        font-size: 24px;
    }

    .article-header h1 {
        font-size: 24px;
    }

    .article-header {
        padding: 8px 0 24px;
        margin-bottom: 24px;
    }

    .article-body {
        font-size: 16px;
    }

    .article-body blockquote {
        font-size: 18px;
        padding-left: 16px;
    }

    .article-meta {
        gap: 12px;
        font-size: 13px;
    }

    .article-meta .meta-stats {
        gap: 10px;
    }

    /* Post nav */
    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav-item.next {
        text-align: left;
    }

    /* Footer */
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Static pages */
    .static-content {
        padding: 28px 20px;
    }

    .about-hero h1 {
        font-size: 28px;
    }

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

    .contact-info {
        grid-template-columns: 1fr;
    }

    /* Category header */
    .category-header {
        padding: 32px 0 28px;
    }

    .category-header h1 {
        font-size: 28px;
    }

    /* Back to top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    /* Ad slots */
    .ad-incontent {
        margin: 20px 0;
    }
}

/* ============================================================
   Extra small devices (<= 480px)
   ============================================================ */
@media (max-width: 480px) {
    .display-xl {
        font-size: 26px;
    }

    .section-title,
    h2 {
        font-size: 20px;
    }

    .article-card .card-body {
        padding: 14px 16px 16px;
    }

    .article-card .card-title {
        font-size: 16px;
    }

    .featured-card .featured-body {
        padding: 10px 12px 12px;
    }
}

/* ============================================================
   Print styles
   ============================================================ */
@media print {
    .site-header,
    .site-footer,
    .ad-page-top,
    .ad-incontent,
    .ad-sidebar,
    .reading-progress,
    .back-to-top,
    .sidebar,
    .detail-sidebar {
        display: none !important;
    }

    body {
        background: var(--paper);
        color: var(--ink-900);
    }

    .article-body {
        font-size: 12pt;
    }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   End of Lumina Stylesheet
   ============================================================ */
