/*
Theme Name: CZFree Křížová
Description: Community network site for CZFree.Net.Krizova on Staré Brno.
Version: 1.1.1
Requires at least: 6.9
Requires PHP: 8.3
Text Domain: czfree-krizova
*/

:root {
    color-scheme: light;
    --ink: #132d29;
    --muted: #405953;
    --paper: #f7f8f2;
    --line: #cbd9ce;
    --accent: #145346;
    --accent-dark: #10392f;
    --width: 72rem;
    --body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --heading: Georgia, ui-serif, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--body); }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid #2e805c; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1, h2 { font-family: var(--heading); font-weight: 500; }
h1 { font-size: clamp(2.5rem, 6vw, 5.3rem); margin: 0 0 1.5rem; letter-spacing: -.055em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.45rem); letter-spacing: -.035em; }
p { margin: 0 0 1.1rem; }
figure { margin: 1.5rem 0; }
figcaption, .kicker { color: var(--muted); font-size: .88rem; }
.shell { width: min(var(--width), calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 20; top: .7rem; left: .7rem; padding: .5rem 1rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-content, .footer-content { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; flex-wrap: wrap; padding-block: 1.1rem; }
.brand { display: inline-flex; gap: .7rem; align-items: center; color: var(--ink); text-decoration: none; font-weight: 800; }
.brand-mark { width: .9rem; height: .9rem; border: 2px solid var(--accent); border-radius: 50%; box-shadow: inset 0 0 0 2px var(--paper); background: var(--accent); }
.nav { display: flex; align-items: center; gap: .6rem 1.5rem; flex-wrap: wrap; }
.nav a { font-weight: 650; color: var(--ink); }
.nav a:not([aria-current]) { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) 2.5rem; }
.kicker { margin-bottom: .85rem; font-weight: 700; }
.lead { font-size: clamp(1.08rem, 2vw, 1.26rem); color: var(--muted); max-width: 34rem; }
.hero figure { margin: clamp(1.7rem, 4vw, 3rem) 0 0; background: #e4ece4; }
.hero img { width: 100%; height: auto; }
.hero figcaption { padding: .65rem .85rem; }
.button { display: inline-block; margin-top: .55rem; background: var(--accent); border-radius: .35rem; padding: .7rem 1rem; color: white; text-decoration: none; font-weight: 700; }
.button:hover { background: var(--accent-dark); color: white; }
.coverage { margin-bottom: 2.5rem; }
.coverage h2 { margin: 0 0 .75rem; }
.coverage p { max-width: 65ch; color: var(--muted); }
.coverage-map { height: clamp(16rem, 37vw, 27rem); border: 1px solid var(--line); border-radius: .4rem; isolation: isolate; }
.coverage-links { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1rem; }
.coverage-links .button { margin: 0; }
.home-facts { margin-block: 0 3.5rem; padding-block: 1.25rem; border-block: 1px solid var(--line); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem 2rem; }
.home-facts dt { font-size: .82rem; color: var(--muted); font-weight: 650; }
.home-facts dd { margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.content { max-width: 48rem; padding-block: clamp(2.4rem, 7vw, 5rem); min-height: 60vh; }
.content h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); }
.entry { max-width: 70ch; }
.entry a { overflow-wrap: anywhere; }
.entry .network-details { border: 1px solid var(--line); border-radius: .4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); overflow: hidden; }
.network-details > div { background: white; padding: .9rem 1.15rem; }
.network-details dt { font-weight: 700; }
.network-details dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.traffic { padding: 1rem; border: 1px solid var(--line); border-radius: .4rem; background: white; }
.traffic img { max-width: 100%; }
.traffic figcaption { margin-top: .6rem; }
.news { margin-block: 0 4.5rem; }
.news h2 { margin-top: 0; }
.news-list { list-style: none; padding: 0; }
.news-list a { font-weight: 700; }
.news-list li { margin-bottom: .85rem; }
.post-date { display: block; color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.news-list .post-date { margin-bottom: 0; }
.sources { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
@media (max-width: 46rem) {
    .shell { width: calc(100% - 2rem); }
    .home-facts { grid-template-columns: 1fr 1fr; }
    .home-facts > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 26rem) {
    .entry .network-details { grid-template-columns: 1fr; }
}
