/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink: #000000;
    --ink-light: #373435;
    --ink-muted: #928C80;
    --paper: #ffffff;
    --paper-dark: #f6f3ea;
    --paper-cream: #ffffff;
    --rule: #CFC6B5;
    --rule-dark: #928C80;
    --accent: #373435;
    --accent-hover: #1a1a1a;
    --gold: #CFC6B5;
    --sage: #ABC2BC;
    --sage-dark: #7a9e95;
    --teal: #B1D1D2;
    --charcoal: #373435;
    --gray: #666666;

    /* Category colours */
    --cat-community: #ABC2BC;
    --cat-environment: #7da396;
    --cat-people: #B1D1D2;
    --cat-sport: #8ab0b2;
    --cat-village-life: #928C80;
    --cat-opinion: #373435;
    --cat-animal-welfare: #ABC2BC;
    --cat-newsbite: #CFC6B5;

    --font-masthead: 'Cormorant Garamond', Georgia, serif;
    --font-headline: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;
    --font-ui: 'Nunito Sans', 'Segoe UI', sans-serif;

    --container: 1280px;
    --gutter: 24px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* ============================================
   UTILITY RULES (newspaper lines)
   ============================================ */
.rule { border: none; border-top: 1px solid var(--rule); }
.rule--thick { border-top-width: 1px; border-color: var(--rule); }
.rule--double {
    border: none;
    border-top: 3px double var(--rule-dark);
}
.rule--ornament {
    border: none;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='20'%3E%3Cline x1='0' y1='4' x2='80' y2='4' stroke='%23c4b8a8' stroke-width='1'/%3E%3Ccircle cx='100' cy='10' r='4' fill='none' stroke='%23c4b8a8' stroke-width='1'/%3E%3Cline x1='120' y1='4' x2='200' y2='4' stroke='%23c4b8a8' stroke-width='1'/%3E%3C/svg%3E") center center no-repeat;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-top: 40px;
}

.section-header__title {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    color: var(--ink);
}

.section-header__line {
    flex: 1;
    height: 3px;
    background: var(--charcoal);
    position: relative;
}

.section-header__line::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--rule);
}

/* ============================================
   NEWS CARD (shared component)
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-bottom: 48px;
}

.news-card {
    cursor: pointer;
    transition: transform 0.3s;
}

.news-card a {
    color: inherit;
    text-decoration: none;
}

.news-card:hover { transform: translateY(-4px); }

.news-card__image-wrap {
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 16px;
    position: relative;
}

.news-card__image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' fill='%23000' opacity='0.03'/%3E%3C/svg%3E") repeat;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

.news-card__image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s;
    filter: contrast(1.02) saturate(0.92);
}

.news-card:hover .news-card__image { transform: scale(1.05); }

.news-card__category {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sage-dark);
    margin-bottom: 8px;
}

.news-card__title {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 10px;
    transition: color 0.2s;
}

.news-card:hover .news-card__title { color: var(--accent); }

.news-card__excerpt {
    font-size: 0.92rem;
    color: var(--ink-light);
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-card__meta {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: var(--ink-muted);
}

@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ANIMATIONS (reveal classes)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
    margin: 16px 0 4px;
    overflow: hidden;
}

.breadcrumb__item {
    white-space: nowrap;
    flex-shrink: 0;
}

.breadcrumb__item:last-child {
    flex-shrink: 1;
    overflow: hidden;
    min-width: 0;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    gap: 4px;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    overflow: hidden;
    white-space: nowrap;
}

.breadcrumb__link {
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb__link:hover { color: var(--accent); }

.breadcrumb__current {
    color: var(--ink-muted);
    /* truncate long titles */
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: bottom;
}

.breadcrumb__sep {
    color: var(--rule-dark);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .section-header__title { white-space: normal; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .ticker-bar, .main-nav, .newsletter, .events-strip, .advertisers { display: none; }
    body { background: #fff; color: #000; }
}
