/* Palette "Smrčina" — see docs/superpowers/specs/2026-07-18-landing-page-design.md */
:root {
    --green: #2B6141;
    --green-dark: #1E4630;
    --accent: #E9B44C;
    --accent-ink: #3D3016;
    --ground: #F4F3EB;
    --ink: #22302A;
    --muted: #5F6D64;
    --card: #FFFFFF;

    --radius-s: 10px;
    --radius-m: 16px;
    --radius-pill: 999px;
    --shadow: 0 1px 4px rgb(0 0 0 / 0.08);
    --content-width: 1200px;
}

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

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--ground);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- header ---------- */

.site-header {
    background: var(--green);
    padding: 1rem 1.5rem 2.2rem;
}

.site-nav {
    max-width: var(--content-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.nav-side {
    list-style: none;
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.9rem;
    transition: background-color 120ms ease;
    /* also covers the logout <button> */
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: rgb(255 255 255 / 0.14);
    outline: none;
}

.logout-form { display: contents; }

.logo-medallion {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 12px rgb(0 0 0 / 0.25);
    display: grid;
    place-items: center;
    margin-bottom: -3.4rem;
    position: relative;
    z-index: 1;
    /* the logo PNG is square with a white background — clip its corners */
    overflow: hidden;
}

.logo-medallion img {
    width: 84px;
    height: auto;
}

/* ---------- main ---------- */

.site-main {
    flex: 1;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 4.5rem 1.5rem 2rem;
}

.hero {
    text-align: center;
    padding: 1rem 0 2.5rem;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.hero p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.section {
    padding: 1.25rem 0;
}

.section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green);
    margin-bottom: 1rem;
}

.card {
    background: var(--card);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow);
    padding: 1.1rem 1.25rem;
}

/* events */

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.date-chip {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-pill);
    padding: 0.15rem 0.75rem;
    margin-bottom: 0.5rem;
}

a.event-card {
    color: inherit;
    text-decoration: none;
    display: block;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

a.event-card:hover,
a.event-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgb(0 0 0 / 0.13);
    outline: none;
}

.event-card h3 {
    font-size: 1.1rem;
}

.event-more {
    display: block;
    margin-top: 0.5rem;
    color: var(--green);
    font-weight: 600;
    font-size: 0.85rem;
}

.date-chip-large {
    font-size: 1rem;
    padding: 0.25rem 1rem;
    margin-bottom: 0.75rem;
}

.section-back {
    text-align: left;
    margin-top: 1.5rem;
}

.about-card {
    padding: 1.75rem 2rem;
    font-size: 1.05rem;
}

.about-card p {
    margin-bottom: 0.9rem;
}

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

.event-place {
    color: var(--muted);
    font-size: 0.9rem;
}

.event-desc {
    margin-top: 0.4rem;
    font-size: 0.95rem;
}

/* news */

.news-list {
    display: grid;
    gap: 0.75rem;
}

.news-item {
    display: flex;
    gap: 1.25rem;
}

.news-item time {
    color: var(--green);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    padding-top: 0.15rem;
}

.news-item h3 {
    font-size: 1.05rem;
}

.news-item p {
    font-size: 0.95rem;
}

.empty-note {
    color: var(--muted);
}

.section-more {
    margin-top: 0.9rem;
    text-align: right;
}

.section-more a {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

.section-more a:hover,
.section-more a:focus-visible {
    text-decoration: underline;
}

/* leaders */

.leader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.leader-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.leader-photo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.leader-photo-placeholder {
    background: var(--green);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    text-transform: uppercase;
}

.leader-grid-featured {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.leader-card-featured {
    padding: 1.5rem;
}

.leader-card-featured .leader-photo {
    width: 96px;
    height: 96px;
}

.leader-card-featured .leader-info h3 {
    font-size: 1.25rem;
}

.leader-divider {
    border: none;
    border-top: 2px solid #DDD9CB;
    margin: 1.5rem 0;
}

.leader-info h3 {
    font-size: 1.1rem;
}

.leader-nickname {
    color: var(--green);
    font-weight: 600;
    white-space: nowrap;
}

.leader-role {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.leader-contact {
    font-size: 0.9rem;
}

.leader-contact a {
    color: var(--green);
    text-decoration: none;
}

.leader-contact a:hover,
.leader-contact a:focus-visible {
    text-decoration: underline;
}

/* content pages, forms */

.content-page {
    max-width: 65ch;
}

.content-page h1 {
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-lead {
    color: var(--muted);
    font-size: 1.05rem;
}

.page-content p {
    margin-bottom: 0.9rem;
}

.button {
    display: inline-block;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.55rem 1.4rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    background: var(--green-dark);
    outline: none;
}

.login-section {
    max-width: 26rem;
    margin: 0 auto;
}

.login-section h1 {
    margin-bottom: 1rem;
}

.login-form {
    display: grid;
    gap: 0.5rem;
}

.login-form label {
    font-weight: 600;
    font-size: 0.9rem;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    border: 1px solid #CBD2CC;
    border-radius: var(--radius-s);
    padding: 0.5rem 0.75rem;
    font: inherit;
}

.login-form input:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 1px;
}

.login-form .button {
    margin-top: 0.5rem;
    justify-self: start;
}

.form-error {
    color: #A3341F;
    margin-bottom: 0.75rem;
}

.login-hint {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

/* ---------- footer ---------- */

.site-footer {
    background: var(--green-dark);
    color: rgb(255 255 255 / 0.85);
    text-align: center;
    font-size: 0.85rem;
    padding: 1.25rem;
    margin-top: 3rem;
}

.footer-link {
    color: rgb(255 255 255 / 0.55);
    font-size: 0.8rem;
    text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: #fff;
    text-decoration: underline;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
    .site-nav {
        grid-template-columns: 1fr auto 1fr;
        gap: 0.5rem;
    }

    .nav-side {
        flex-direction: column;
        gap: 0.4rem;
        align-items: stretch;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }

    .logo-medallion {
        width: 84px;
        height: 84px;
        margin-bottom: -2.6rem;
    }

    .logo-medallion img {
        width: 64px;
    }

    .site-main {
        padding-top: 3.5rem;
    }
}
