/*
Theme Name: Cherokee Gazette
Theme URI: https://cherokeecountygazette.com/
Author: The Georgia Gazette
Author URI: https://thegeorgiagazette.com/
Description: Bespoke template theme for the Georgia Gazette county-network. Lean, fast, mobile-first. Crime-news layout with extensible category structure.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cherokee-gazette
*/

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: #0b3d91; text-decoration-skip-ink: auto; }
a:hover { text-decoration: underline; }
button { font: inherit; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.container--narrow { max-width: 760px; }

/* ---------- Masthead ---------- */
.site-header {
    background: #ffffff;
    color: #000000;
    border-bottom: 1px solid #000;
}
.masthead {
    padding: 1.5rem 1rem 1.25rem;
    text-align: center;
}
.masthead__title {
    font-family: "Merriweather", "Times New Roman", Georgia, serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.0;
    color: #000000;
    margin: 0;
    font-size: clamp(1.75rem, 5vw + 0.5rem, 3.75rem);
}
.masthead__title a { color: inherit; text-decoration: none; }
.masthead__tagline {
    font-family: system-ui, sans-serif;
    font-size: 0.8125rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #555;
    margin: 0.4rem 0 0;
}
.masthead__rule {
    border: 0;
    border-top: 1px solid #000;
    margin: 0;
}
.masthead__rule--thick {
    border-top-width: 3px;
    margin-top: 0.25rem;
}

/* ---------- Nav ---------- */
.site-nav {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}
.site-nav__list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.site-nav__list a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}
.site-nav__list a:hover { color: #0b3d91; text-decoration: underline; }

/* ---------- Story river (homepage) ---------- */
.river { padding: 1.5rem 0 2rem; }
.river__section-title {
    font-family: "Merriweather", Georgia, serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #555;
    margin: 0 0 1rem;
    border-bottom: 2px solid #000;
    padding-bottom: 0.4rem;
}
.river__list { list-style: none; margin: 0; padding: 0; }
.river__item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #e6e6e6;
}
@media (min-width: 720px) {
    .river__item { grid-template-columns: 220px 1fr; gap: 1.25rem; }
    .river__item--lead { grid-template-columns: 1fr; }
}
.river__item--lead .river__headline {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.15;
}
.river__thumb a { display: block; }
.river__thumb img {
    width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover;
    background: #f2f2f2;
    border: 1px solid #e6e6e6;
}
.river__kicker {
    font-family: "Merriweather", Georgia, serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #b00020;
    margin: 0 0 0.25rem;
}
.river__headline {
    font-family: "Merriweather", Georgia, serif;
    font-weight: 800;
    line-height: 1.2;
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}
.river__headline a { color: #111; text-decoration: none; }
.river__headline a:hover { text-decoration: underline; }
.river__dek { margin: 0; color: #444; font-size: 0.9375rem; }
.river__meta {
    font-size: 0.8125rem;
    color: #666;
    margin-top: 0.5rem;
    font-variant-numeric: tabular-nums;
}

/* ---------- Article ---------- */
.article { padding: 1.5rem 0 3rem; }
.article__kicker {
    font-family: "Merriweather", Georgia, serif;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #b00020;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.article__headline {
    font-family: "Merriweather", Georgia, serif;
    font-weight: 900;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.15;
    margin: 0 0 0.5rem;
    color: #111;
}
.article__dek { font-size: 1.125rem; color: #444; margin: 0 0 1rem; }
.article__dateline {
    font-size: 0.875rem;
    color: #555;
    margin: 0 0 1.25rem;
    font-variant-numeric: tabular-nums;
}
.article__dateline strong { color: #111; }
.article__featured {
    margin: 1rem 0 1.5rem;
}
.article__featured img { width: 100%; height: auto; }
.article__featured figcaption {
    font-size: 0.8125rem;
    color: #555;
    margin-top: 0.4rem;
}
.article__body { font-size: 1.125rem; line-height: 1.7; }
.article__body p { margin: 0 0 1.1rem; }
.article__body h2 {
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 1.75rem 0 0.5rem;
}
.article__body h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.article__body blockquote {
    margin: 1.25rem 0;
    padding: 0.5rem 1.25rem;
    border-left: 3px solid #000;
    font-style: italic;
    color: #222;
}
.article__body a { color: #0b3d91; }

/* ---------- Ad slots (Ezoic placeholders; visually empty until enabled) ---------- */
.adslot {
    margin: 1rem auto;
    text-align: center;
    min-height: 0;
}
.adslot[data-ezoic-disabled="true"] { display: none; }

/* ---------- Page (about/contact/etc) ---------- */
.page { padding: 1.5rem 0 2.5rem; }
.page__title {
    font-family: "Merriweather", Georgia, serif;
    font-weight: 900;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0 0 1rem;
}
.page__body { font-size: 1.0625rem; line-height: 1.7; }
.page__body h2 {
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.25rem;
    margin: 1.5rem 0 0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #111;
    color: #ddd;
    padding: 2rem 0;
    margin-top: 3rem;
    font-size: 0.875rem;
}
.site-footer a { color: #fff; }
.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 720px) {
    .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer__brand-name {
    font-family: "Merriweather", Georgia, serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
}
.footer__network {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
    text-align: center;
    color: #aaa;
    font-size: 0.8125rem;
}
.footer__network a { color: #fff; text-decoration: none; }
.footer__network a:hover { text-decoration: underline; }

/* ---------- Utility ---------- */
.skip-link {
    position: absolute; left: -9999px; top: -9999px;
}
.skip-link:focus {
    left: 1rem; top: 1rem; background: #000; color: #fff;
    padding: 0.5rem 0.75rem; z-index: 1000;
}
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}
