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

:root {
    --bg: #fffdf5;
    --surface: #ffffff;
    --text-dark: #2a2110;
    --text-body: #4a3f25;
    --text-muted: #7d7050;
    --accent: #b7860b;
    --accent-dark: #8a6408;
    --accent-light: #fdf6dc;
    --accent-soft: #fffbeb;
    --border: #f3e3a6;
    --header-from: #fef9e7;
    --header-to: #f7ecd0;
    --shadow-sm: 0 2px 10px rgba(20, 40, 60, 0.07);
    --shadow-md: 0 8px 28px rgba(20, 40, 60, 0.12);
}

body {
    background: var(--bg);
    color: var(--text-body);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

.film-grain, .ambient-light { display: none; }

/* NAV */
.nav-links {
    background: #ffffff;
    text-align: center;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--accent);
    box-shadow: var(--shadow-sm);
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 20px;
    font-size: 0.78rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* HOME HEADER */
header {
    background: linear-gradient(135deg, var(--header-from) 0%, var(--header-to) 100%);
    padding: 80px 24px 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
header h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.8rem);
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 16px;
    position: relative;
}
header p {
    font-size: 1.05rem;
    color: var(--text-body);
    max-width: 600px;
    margin: 0 auto 32px;
    font-weight: 400;
    position: relative;
}
.btn {
    display: inline-block;
    padding: 13px 36px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(20, 40, 60, 0.18);
    position: relative;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* LAYOUT */
.container { max-width: 1180px; margin: 0 auto; padding: 70px 24px; }
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    letter-spacing: 4px;
    margin-bottom: 50px;
    text-align: center;
    text-transform: uppercase;
    color: var(--text-dark);
}
.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 16px auto 0;
}
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }

/* CARDS */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-img { width: 100%; height: 210px; object-fit: cover; display: block; transition: transform 0.4s; }
.card:hover .card-img { transform: scale(1.04); }
.card-content { padding: 26px 28px 30px; }
.card-content span {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
}
.card-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    line-height: 1.4;
}
.card-content p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* FOOTER */
footer {
    background: var(--accent-light);
    color: var(--text-muted);
    text-align: center;
    padding: 40px 20px;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    border-top: 1px solid var(--border);
}

/* ARTICLE HEADERS (both naming styles) */
.article-page-header, .article-header {
    background: linear-gradient(135deg, var(--header-from) 0%, var(--header-to) 100%);
    padding: 64px 24px 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.article-page-header .label, .article-header span {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    letter-spacing: 3px;
    font-size: 0.78rem;
    display: block;
    margin-bottom: 14px;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
}
.article-page-header h1, .article-header h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    letter-spacing: 2px;
    line-height: 1.35;
    color: var(--text-dark);
    margin-bottom: 14px;
    position: relative;
}
.article-page-header .meta, .article-meta {
    color: var(--text-muted);
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    position: relative;
}

/* ARTICLE BODY */
.article-container { max-width: 780px; margin: 0 auto; padding: 0 24px 100px; }
.article-body { padding-top: 44px; }
.article-body p {
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 24px;
    text-align: left;
}
.article-body h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    letter-spacing: 1px;
    margin-top: 48px;
    margin-bottom: 18px;
    color: var(--text-dark);
    padding-left: 14px;
    border-left: 4px solid var(--accent);
    line-height: 1.4;
}
.article-body h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    letter-spacing: 1px;
    margin-top: 32px;
    margin-bottom: 14px;
    color: var(--accent-dark);
}

/* GRAPHS */
.graph-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    margin: 36px 0;
    box-shadow: var(--shadow-sm);
}
.graph-box h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-align: center;
}
.graph-box p.caption {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
}

/* IMAGES */
.article-hero {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    margin: 36px 0;
    box-shadow: var(--shadow-md);
}
.article-inline-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    margin: 36px 0 10px;
    box-shadow: var(--shadow-sm);
}
.img-caption {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 32px;
    text-align: center;
    font-style: italic;
}

/* INTERLINKS */
.interlinks {
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 32px;
    margin: 56px 0 20px;
}
.interlinks h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--accent-dark);
    margin-bottom: 18px;
    text-transform: uppercase;
}
.interlinks ul { list-style: none; }
.interlinks ul li { margin-bottom: 14px; padding-left: 14px; border-left: 3px solid var(--accent); }
.interlinks ul li:last-child { margin-bottom: 0; }
.interlinks ul li a { color: var(--text-dark); text-decoration: none; font-size: 0.97rem; font-weight: 700; transition: color 0.2s; }
.interlinks ul li a:hover { color: var(--accent); }
.interlinks ul li span { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ABOUT */
.about-content { max-width: 780px; margin: 0 auto; padding: 70px 24px; }
.about-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 28px;
    text-transform: uppercase;
    color: var(--text-dark);
}
.about-content p { color: var(--text-body); font-size: 1.05rem; line-height: 1.9; margin-bottom: 22px; }

@media (max-width: 768px) {
    header { padding: 60px 20px 70px; }
    .article-page-header, .article-header { padding: 50px 20px 60px; }
    .article-hero { height: 240px; }
    .article-inline-img { height: 210px; }
    .grid-3 { grid-template-columns: 1fr; }
    .interlinks { padding: 22px 20px; }
}


/* Chrono-Lithic: champagne gold, Georgia serif, square frames, double rules */
body { font-family: 'Plus Jakarta Sans', sans-serif; }
.nav-links { background: #fffdf5; border-top: 4px solid #b7860b; border-bottom: 1px solid #b7860b; box-shadow: none; }
.nav-links a { font-family: Georgia, 'Times New Roman', serif; font-style: italic; color: #6b5a22; font-size: 0.95rem; letter-spacing: 1px; text-transform: none; }
.nav-links a.active, .nav-links a:hover { color: #8a6408; text-decoration: underline; text-underline-offset: 6px; }
header, .article-page-header {
    background: linear-gradient(180deg, #fef9e7 0%, #f7ecd0 100%);
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%201200%20320%27%20preserveAspectRatio%3D%27none%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23b7860b%27%20stroke-opacity%3D%270.22%27%20stroke-width%3D%271.5%27%3E%3Ccircle%20cx%3D%27160%27%20cy%3D%27160%27%20r%3D%2760%27/%3E%3Ccircle%20cx%3D%27160%27%20cy%3D%27160%27%20r%3D%2744%27/%3E%3Ccircle%20cx%3D%27160%27%20cy%3D%27160%27%20r%3D%2728%27/%3E%3Ccircle%20cx%3D%271040%27%20cy%3D%27150%27%20r%3D%2780%27/%3E%3Ccircle%20cx%3D%271040%27%20cy%3D%27150%27%20r%3D%2762%27/%3E%3Ccircle%20cx%3D%271040%27%20cy%3D%27150%27%20r%3D%2744%27/%3E%3Ccircle%20cx%3D%27600%27%20cy%3D%27120%27%20r%3D%2720%27/%3E%3Ccircle%20cx%3D%27600%27%20cy%3D%27120%27%20r%3D%2736%27/%3E%3Cpath%20d%3D%27M0%20300%20H1200%27%20stroke-width%3D%273%27/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover; background-position: center;
    padding: 90px 24px 100px; border-bottom: 3px double #b7860b;
}
header::before, .article-page-header::before { display: none; }
header h1, .article-page-header h1, .article-header h1, .section-title, .article-body h2, .card-content h3, .about-content h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: 1px; }
header h1, .article-page-header h1 { color: #2a2110; }
header p, .article-page-header .meta { font-family: Georgia, serif; font-style: italic; }
.article-page-header .label, .article-header span { font-family: Georgia, serif; font-style: italic; color: #8a6408; letter-spacing: 2px; text-transform: none; font-size: 1rem; }
.card { border-radius: 0; border: 1px solid #b7860b; box-shadow: 6px 6px 0 #f3e3a6; }
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 #e8c76a; }
.card-content span { font-family: Georgia, serif; font-style: italic; color: #8a6408; text-transform: none; letter-spacing: 1px; }
.card-content h3 { color: #2a2110; }
.section-title { font-style: italic; color: #2a2110; text-transform: none; font-size: 2rem; }
.section-title::after { background: #b7860b; height: 1px; width: 160px; box-shadow: 0 4px 0 #b7860b; }
.article-body h2 { border-left: none; border-bottom: 1px solid #b7860b; padding-bottom: 8px; font-style: italic; color: #2a2110; }
.article-body h3 { font-family: Georgia, serif; font-style: italic; color: #8a6408; }
.btn { background: #b7860b; border-radius: 0; font-family: Georgia, serif; font-style: italic; text-transform: none; letter-spacing: 1px; font-size: 1rem; }
.btn:hover { background: #8a6408; }
.graph-box { border-radius: 0; border: 1px solid #b7860b; }
.interlinks { background: #fffbeb; border: 1px solid #b7860b; border-radius: 0; box-shadow: inset 0 0 0 4px #fffbeb, inset 0 0 0 5px #f3e3a6; }
.interlinks h4 { font-family: Georgia, serif; font-style: italic; color: #8a6408; text-transform: none; letter-spacing: 1px; font-size: 1.05rem; }
.interlinks ul li { border-left: 2px solid #b7860b; }
.article-hero, .article-inline-img { border-radius: 0; border: 6px solid #fffdf5; outline: 1px solid #b7860b; box-shadow: 0 12px 30px rgba(42,33,16,0.20); }
.about-content h2 { font-style: italic; }
footer { background: #2a2110; color: #f3e3a6; font-family: Georgia, serif; font-style: italic; }


/* ---- New layout and visuals ---- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.card { animation: rise .7s ease both; }
.card:nth-child(2) { animation-delay: .1s; } .card:nth-child(3) { animation-delay: .2s; } .card:nth-child(4) { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }

/* Layout: vertical timeline with alternating cards */
.grid-3 { grid-template-columns: 1fr; position: relative; max-width: 960px; margin: 0 auto; }
.grid-3::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(#b7860b, #f3e3a6); transform: translateX(-50%); }
.grid-3 .card { position: relative; width: calc(50% - 40px); margin-bottom: 40px; }
.grid-3 .card:nth-child(odd) { margin-right: auto; }
.grid-3 .card:nth-child(even) { margin-left: auto; }
.grid-3 .card::after { content: ''; position: absolute; top: 50%; width: 14px; height: 14px; background: #b7860b; border-radius: 50%; }
.grid-3 .card:nth-child(odd)::after { right: -47px; }
.grid-3 .card:nth-child(even)::after { left: -47px; }
@media (max-width: 900px) { .grid-3::before { left: 12px; } .grid-3 .card { width: calc(100% - 40px); margin-left: 36px !important; margin-right: 0 !important; } .grid-3 .card::after { display: none; } }
