/* Template 49 - Newspaper Classic / Editorial Broadsheet */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --paper-white: #f8f5f0;
    --paper-cream: #f0ebe0;
    --ink-black: #1a1a1a;
    --ink-dark: #2d2d2d;
    --ink-medium: #4a4a4a;
    --ink-light: #6a6a6a;
    --rule-color: #1a1a1a;
    --accent-red: #8b0000;
    --highlight-gold: #c9a227;
}

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

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

body {
    font-family: 'Source Serif 4', Georgia, serif;
    line-height: 1.75;
    color: var(--ink-black);
    background: var(--paper-white);
    font-weight: 400;
    overflow-x: hidden;
}

/* Newspaper texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - Newspaper Masthead */
.site-header {
    background: var(--paper-white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px double var(--rule-color);
}

.site-header::before {
    content: '';
    display: block;
    height: 4px;
    background: var(--ink-black);
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
}

/* Date line */
.header-inner::before {
    content: 'ESTABLISHED MMXXIV • DIGITAL EDITION';
    font-family: 'Libre Baskerville', serif;
    font-size: 0.7rem;
    color: var(--ink-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.site-logo {
    text-align: center;
    margin-bottom: 0.75rem;
    width: 100%;
    border-bottom: 1px solid var(--rule-color);
    padding-bottom: 0.75rem;
}

.site-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--ink-black);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.site-logo a:hover {
    letter-spacing: 12px;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.site-nav a {
    color: var(--ink-dark);
    text-decoration: none;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ink-black);
    transition: width 0.3s ease;
}

.site-nav a:hover {
    color: var(--accent-red);
}

.site-nav a:hover::after {
    width: 100%;
}

/* Separator dots between nav items */
.site-nav li:not(:last-child)::after {
    content: '•';
    margin-left: 2rem;
    color: var(--ink-light);
}

/* Hero Section - Front Page Headline */
.section.head {
    padding: 4rem 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--rule-color);
}

.section.head::before {
    content: 'BREAKING NEWS';
    display: block;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.75rem;
    color: var(--paper-white);
    background: var(--accent-red);
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section.head h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--ink-black);
    line-height: 1.1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section.head h1::first-letter {
    font-size: 5rem;
    float: left;
    line-height: 0.8;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
}

.section.head p {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--ink-medium);
    max-width: 700px;
    margin: 0 auto;
    text-align: justify;
    text-align-last: center;
    column-count: 1;
}

.section.head p::before {
    content: '— ';
    color: var(--ink-light);
}

.section.head p::after {
    content: ' —';
    color: var(--ink-light);
}

/* Section Styling */
.section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--rule-color);
}

.section header {
    text-align: center;
    margin-bottom: 3rem;
}

.section header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--ink-black);
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
}

.section header h2::before,
.section header h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: var(--rule-color);
}

.section header h2::before { right: calc(100% + 20px); }
.section header h2::after { left: calc(100% + 20px); }

.section header p {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--ink-medium);
    max-width: 500px;
    margin: 0 auto;
}

/* Footer - Newspaper Footer */
.footer {
    background: var(--paper-cream);
    padding: 0;
    margin-top: 0;
    border-top: 4px solid var(--ink-black);
}

.footer::before {
    content: '';
    display: block;
    height: 1px;
    background: var(--ink-black);
    margin-top: 2px;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3rem 2rem;
    gap: 3rem;
}

.footer-about {
    flex: 1;
    max-width: 450px;
    padding-right: 3rem;
    border-right: 1px solid var(--rule-color);
}

.footer-tagline {
    font-family: 'Libre Baskerville', serif;
    color: var(--ink-medium);
    line-height: 1.9;
    font-size: 0.95rem;
    text-align: justify;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-family: 'Libre Baskerville', serif;
    color: var(--ink-dark);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1rem;
}

.footer-links a::before {
    content: '§';
    position: absolute;
    left: 0;
    color: var(--ink-light);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-red);
}

.footer-links a:hover::before {
    color: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--rule-color);
    background: var(--paper-white);
}

.copyright a {
    font-family: 'Libre Baskerville', serif;
    color: var(--ink-light);
    font-size: 0.8rem;
    font-style: italic;
}

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

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(15px);
    animation: editorialFadeIn 0.6s ease forwards;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

body:not(.faq) h3,
:not(section.faq) h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--ink-black);
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: left;
    font-weight: 700;
}
