:root {
    --bg: #faf8f4;
    --text: #2c2c2c;
    --text-mid: #555;
    --text-light: #888;
    --line: #bbb;
    --line-light: #ddd;
    --serif: 'Playfair Display', 'Georgia', serif;
    --sans: 'Inter', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    display: flex;
    justify-content: center;
    padding: 60px 24px 50px;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 660px;
    width: 100%;
}

/* ═══════════════════════════════════
   HEADER — poznámka pod čarou
   ═══════════════════════════════════ */

.site-header {
    margin-bottom: 45px;
}

.above-the-line {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-mid);
    padding-bottom: 18px;
    min-height: 1.7em;
}

.above-the-line .ref {
    font-size: 0.7em;
    vertical-align: super;
    line-height: 0;
}

.footnote-line {
    width: 180px;
    border: none;
    border-top: 1.5px solid var(--text);
    margin: 0 0 22px 0;
}

.site-title {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    text-decoration: none;
    color: inherit;
}

.site-title .asterisk {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 2.8rem;
    line-height: 1;
    color: var(--text);
    margin-top: -8px;
}

.site-title .name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 3.8rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
}

nav {
    margin-top: 35px;
    display: flex;
    gap: 24px;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    padding-bottom: 2px;
    transition: color 0.2s;
    cursor: pointer;
}

nav a:hover {
    color: var(--text);
}

nav a.active {
    color: var(--text);
    border-bottom: 1px solid var(--text);
}

/* ═══════════════════════════════════
   PŘÍSPĚVKY (homepage)
   ═══════════════════════════════════ */

.posts {
    margin-bottom: 40px;
}

.post {
    margin-bottom: 20px;
}

.post-date {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.post-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 16px;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.post-title a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.post-body {
    font-family: var(--sans);
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-mid);
}

.post-body em {
    font-style: italic;
}

.read-more {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid var(--line-light);
    padding-bottom: 2px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.read-more:hover {
    color: var(--text);
    border-bottom-color: var(--text);
}

.post-separator {
    width: 30px;
    border: none;
    border-top: 1px solid var(--line-light);
    margin: 25px auto;
}

/* ═══════════════════════════════════
   SAMOSTATNÁ STRÁNKA ČLÁNKU
   ═══════════════════════════════════ */

.single-post {
    margin-bottom: 60px;
}

.single-post .post-title {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 1.9rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
}

.single-post .post-title strong {
    font-weight: 700;
}

.article-body {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text);
}

.article-body p {
    margin-bottom: 1.2em;
    color: var(--text);
}

.article-body > p.intro-italic,
.article-body p.intro-italic {
    font-style: italic;
    color: var(--text-mid);
}

.article-body h3 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.3;
    letter-spacing: -0.005em;
    margin: 2em 0 0.8em;
    color: var(--text);
}

.article-body h4 {
    font-family: var(--sans);
    font-weight: 600;
    font-style: normal;
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 1.6em 0 0.7em;
    color: var(--text);
}

.article-body a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--line);
    transition: text-decoration-color 0.2s;
}

.article-body a:hover {
    text-decoration-color: var(--text);
}

.article-body em {
    font-style: italic;
}

.article-body strong {
    font-weight: 600;
}

.article-body blockquote {
    font-style: italic;
    border-left: 2px solid var(--line-light);
    padding: 0.2em 0 0.2em 1.4em;
    margin: 1.4em 0;
    color: var(--text-mid);
}

.article-body ol {
    margin: 1em 0 1.4em 0;
    padding-left: 1.4em;
}

.article-body ol li {
    margin-bottom: 0.7em;
    padding-left: 0.3em;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line-light);
    margin: 0.4em 0 2.2em 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-body table td {
    vertical-align: top;
    padding: 0.7em 0.9em;
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    width: 50%;
}

.article-body table td:first-child {
    border-right: 1px solid var(--line-light);
    color: var(--text-mid);
}

.article-body table td.note {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-mid);
    border-right: none;
    background: rgba(0, 0, 0, 0.015);
}

.article-body .examples {
    font-size: 0.92rem;
    color: var(--text-mid);
}

.article-body .examples p {
    margin-bottom: 0.9em;
}

.article-body .examples h4 {
    font-size: 1.1rem;
}

.article-body figure {
    margin: 1.8em 0;
    text-align: center;
}

.article-body figure img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}

.article-body .cliff {
    font-style: italic;
    color: var(--text-mid);
    margin-top: 2.5em;
}

.back-link {
    display: inline-block;
    margin-top: 60px;
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid var(--line-light);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.back-link:hover {
    color: var(--text);
    border-bottom-color: var(--text);
}

/* ═══════════════════════════════════
   SEKCE PŘEKLADATELKA
   ═══════════════════════════════════ */

.about {
    font-family: var(--sans);
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text);
}

.about p {
    margin-bottom: 1.2em;
}

.about a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--line);
    transition: text-decoration-color 0.2s;
}

.about a:hover {
    text-decoration-color: var(--text);
}

.about em {
    font-style: italic;
}

.about .sign-off {
    font-style: italic;
    color: var(--text-mid);
    margin-top: 2em;
}

.posts,
.about {
    display: none;
}

.posts.active,
.about.active {
    display: block;
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */

.site-footer {
    margin-top: 80px;
    padding-top: 18px;
    border-top: 1px solid var(--line-light);
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    letter-spacing: 0.02em;
}

.site-footer a {
    color: var(--text-light);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--text);
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */

@media (max-width: 600px) {
    body {
        padding: 35px 20px 30px;
    }

    .above-the-line {
        font-size: 0.95rem;
    }

    .site-title .asterisk {
        font-size: 1.8rem;
        margin-top: -4px;
    }

    .site-title .name {
        font-size: 2.4rem;
    }

    .footnote-line {
        width: 120px;
    }

    .post-title {
        font-size: 1.3rem;
    }

    .single-post .post-title {
        font-size: 1.7rem;
    }

    .site-footer {
        flex-direction: column;
        gap: 6px;
    }

    .article-body table {
        font-size: 0.82rem;
    }

    .article-body table td {
        padding: 0.6em 0.5em;
    }
}
