/* Public site styles. No web fonts or JavaScript: system font stacks keep
   pages light and avoid third-party requests. */

:root {
    --ink: #1a1a1a;
    --muted: #5c5c5c;
    --paper: #fdfcf9;
    --rule: #d9d6cf;
    --accent: #b3261e;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #ece9e2;
        --muted: #a8a49b;
        --paper: #151515;
        --rule: #3a3833;
        --accent: #ff8a80;
    }
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1.0625rem/1.6 var(--serif);
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem; z-index: 10; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* Masthead */
.masthead { border-bottom: 3px double var(--rule); padding-top: 1.5rem; }
.paper-name {
    font: 800 clamp(2rem, 7vw, 3.5rem)/1 var(--sans);
    letter-spacing: -0.02em; text-decoration: none; text-transform: uppercase;
}
.coverage, .tagline { margin: 0.25rem 0 0; font-family: var(--sans); color: var(--muted); font-size: 0.9rem; }
.sections {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 0.5rem; margin-top: 1rem; padding-top: 0.5rem; padding-bottom: 0.5rem;
    border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 0.9rem;
}
.sections ul { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.sections a { text-decoration: none; font-weight: 600; }
.search input {
    font: inherit; padding: 0.3rem 0.5rem; border: 1px solid var(--rule);
    background: transparent; color: inherit; width: 12rem; max-width: 100%;
}

main { padding-top: 1.5rem; padding-bottom: 3rem; }
h1, h2, h3 { font-family: var(--sans); line-height: 1.15; letter-spacing: -0.01em; }

/* Front page and lists */
.cities, .issue-banner { font-family: var(--sans); font-size: 0.9rem; }
.cities { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.cities a { font-weight: 600; }
.latest {
    display: grid; gap: 1.5rem 2rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}
.card { border-top: 1px solid var(--rule); padding-top: 0.75rem; }
.card h3 { margin: 0.5rem 0 0.25rem; font-size: 1.25rem; }
.card h3 a { text-decoration: none; }
.card img { margin-bottom: 0.5rem; }
.deck { margin: 0.25rem 0; color: var(--muted); }
.meta { font: 0.85rem/1.4 var(--sans); color: var(--muted); }
.city {
    display: inline-block; margin-left: 0.4rem; padding: 0 0.35rem;
    border: 1px solid var(--rule); font-size: 0.75rem; text-transform: uppercase;
}
.pagination { display: flex; gap: 1rem; margin-top: 2rem; font-family: var(--sans); }

/* Story */
.story { max-width: var(--measure); margin: 0 auto; }
.story h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); margin: 0.25rem 0 0.5rem; }
.story .deck { font-size: 1.2rem; }
.kicker { margin: 0; font: 700 0.8rem var(--sans); text-transform: uppercase; letter-spacing: 0.05em; }
.kicker a { text-decoration: none; color: var(--accent); }
.hero, .body figure { margin: 1.5rem 0; }
.hero { margin-left: -1rem; margin-right: -1rem; }
figcaption { font: 0.85rem/1.4 var(--sans); color: var(--muted); padding: 0.4rem 1rem 0; }
.credit { font-style: italic; }
.body h2 { margin-top: 2rem; font-size: 1.4rem; }
blockquote { margin: 2rem 0; padding-left: 1rem; border-left: 3px solid var(--accent); font-size: 1.25rem; }
blockquote footer { font: 0.9rem var(--sans); color: var(--muted); }
.corrections, .in-issue { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 0.9rem; }
.corrections h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 1.5rem 0 3rem; font: 0.85rem var(--sans); color: var(--muted); }
.site-footer ul { display: flex; gap: 1rem; list-style: none; padding: 0; }
