:root {
    --paper-color: #eaddcf; /* slightly more worn/sandy for the western feel */
    --ink-color: #1a1a1a;
    --faded-ink: #3a3a3a;
    --ruler-color: #2b2b2b;
    --font-title: 'Rye', cursive;
    --font-headline: 'Arvo', serif;
    --font-body: 'Lora', serif;
}

body {
    background-color: var(--paper-color);
    /* Applies the paper texture across the entire page */
    background-image: 
        linear-gradient(90deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.02) 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    margin: 0;
    padding: 2rem 4rem;
    font-family: var(--font-body);
    color: var(--ink-color);
    box-sizing: border-box;
    min-height: 100vh;
}

/* Weathering effects on the whole page edges */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 150px rgba(80, 50, 20, 0.4);
    pointer-events: none;
    z-index: 100;
}

/* HEADER */
header {
    text-align: center;
    border-bottom: 6px double var(--ruler-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.title {
    font-family: var(--font-title);
    font-size: 7vw; /* Dynamic size to fill width nicely */
    margin: 0;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.sub-title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-top: 15px;
    color: var(--faded-ink);
}

.header-info {
    display: flex;
    justify-content: space-between;
    border-top: 3px solid var(--ruler-color);
    border-bottom: 3px solid var(--ruler-color);
    margin-top: 20px;
    padding: 10px 0;
    font-family: var(--font-headline);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* LAYOUT */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: var(--font-headline);
    margin-top: 0;
    color: var(--ink-color);
}

.headline {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
}

.subheadline {
    font-size: 1.5rem;
    font-style: italic;
    text-align: left;
    margin-bottom: 20px;
    color: var(--faded-ink);
    font-weight: 400;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
}

p.first-paragraph::first-letter {
    font-size: 5rem;
    float: left;
    line-height: 0.8;
    padding-right: 12px;
    font-family: var(--font-headline);
    font-weight: 700;
}

.divider {
    height: 2px;
    background-color: var(--ruler-color);
    margin: 30px 0;
}

/* SECTIONS */
.left-panel {
    grid-column: span 3;
    border-right: 2px solid var(--ruler-color);
    padding-right: 30px;
}

.lead-story {
    grid-column: span 6;
    border-right: 2px solid var(--ruler-color);
    padding-right: 40px;
}

.columns-2 {
    column-count: 2;
    column-gap: 40px;
}

.classifieds-panel {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* IMAGES */
.image-container {
    width: 100%;
    margin-bottom: 25px;
    border: 4px solid var(--ink-color);
    padding: 8px;
    background: transparent;
    box-sizing: border-box;
    position: relative;
}

.image-container img {
    width: 100%;
    display: block;
}

.caption {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    margin-top: 10px;
    color: var(--faded-ink);
}

/* ADVERTISEMENTS (LINKS) */
.ad-space {
    border: 5px solid var(--ink-color);
    padding: 30px 25px 25px 25px;
    text-align: center;
    text-decoration: none;
    color: var(--ink-color);
    display: block;
    background-color: rgba(0,0,0,0.03);
    transition: all 0.2s ease;
    box-shadow: 5px 5px 0 var(--ink-color);
    position: relative;
}

.ad-space:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--ink-color);
    background-color: rgba(0,0,0,0.06);
    cursor: pointer;
}

.ad-space:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink-color);
}

.ad-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

.ad-space p {
    text-align: center;
    margin-bottom: 0;
    font-size: 1.2rem;
}

.ad-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--paper-color);
    padding: 0 15px;
    font-family: var(--font-headline);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 2px solid var(--ink-color);
    border-right: 2px solid var(--ink-color);
    white-space: nowrap;
}

.classifieds-header {
    font-family: var(--font-title);
    font-size: 3rem;
    text-align: center;
    border-bottom: 4px double var(--ink-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 1300px) {
    .left-panel { grid-column: span 12; border-right: none; padding-right: 0; border-bottom: 2px solid var(--ruler-color); padding-bottom: 30px; }
    .lead-story { grid-column: span 7; padding-left: 0; }
    .classifieds-panel { grid-column: span 5; }
}

@media (max-width: 992px) {
    body { padding: 1.5rem; }
    .grid { display: flex; flex-direction: column; }
    .lead-story { border-right: none; padding-right: 0; border-bottom: 2px solid var(--ruler-color); padding-bottom: 40px; }
    .title { font-size: 10vw; }
}

@media (max-width: 768px) {
    .columns-2 { column-count: 1; }
    .header-info { flex-direction: column; text-align: center; gap: 8px; }
    body { padding: 1rem; }
}
