:root {
    color-scheme: light;
    --background: #f4f0e8;
    --surface: #fffdf8;
    --ink: #201b2c;
    --muted: #6f6879;
    --accent: #6d4aae;
    --accent-soft: #e9e0f7;
    --line: #dcd3c7;
    --max-width: 74rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
}

.site-header,
main,
footer {
    width: min(calc(100% - 2rem), var(--max-width));
    margin-inline: auto;
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    min-height: 4.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.header-days {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.day-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.day-nav a,
.day-nav [aria-current] {
    display: block;
    padding: 0.3rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

.day-nav a {
    border-color: var(--line);
    color: var(--muted);
}

.day-nav a:hover,
.day-nav a:focus-visible {
    border-color: var(--accent);
    color: var(--ink);
    outline: none;
}

.day-nav [aria-current] {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 650;
}

.brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
}

.date,
.eyebrow,
.section-number {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero {
    max-width: 54rem;
    padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--accent);
}

h1,
h2 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.08;
}

h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(4rem, 13vw, 8.5rem);
    font-weight: 500;
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 500;
    letter-spacing: -0.035em;
}

.lead {
    max-width: 48rem;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.4;
}

.section-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 0 2rem;
    scrollbar-width: thin;
}

.section-nav a {
    flex: 0 0 auto;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.55);
    font-size: 0.9rem;
    text-decoration: none;
}

.section-nav a:hover,
.section-nav a:focus-visible {
    border-color: var(--accent);
    outline: none;
}

.content {
    display: grid;
    gap: 1rem;
    padding-bottom: 5rem;
}

.card {
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: var(--surface);
    scroll-margin-top: 1rem;
}

.section-number {
    margin: 0 0 0.75rem;
    color: var(--accent);
}

.highlight {
    max-width: 50rem;
    margin: 0 0 2rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    font-weight: 650;
}

.detail {
    max-width: 48rem;
}

.detail p:first-child {
    margin-top: 0;
}

.detail p:last-child {
    margin-bottom: 0;
}

.audit {
    margin-top: 2rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.audit summary {
    cursor: pointer;
    font-weight: 700;
}

.audit-content {
    overflow-x: auto;
    padding-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 0.7rem;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

footer {
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

@media (min-width: 52rem) {
    .content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card:first-child,
    .card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 35rem) {
    /* Dátum ostáva viditeľný — hovorí, ktorý deň návštevník práve číta.
       Na úzkom mobile sa zalomí nad odkazy, aby sa nikdy neorezal. */
    .header-days {
        flex-wrap: wrap-reverse;
        justify-content: flex-start;
        gap: 0.35rem 0.75rem;
        width: 100%;
    }

    .site-header,
    main,
    footer {
        width: min(calc(100% - 1.25rem), var(--max-width));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
