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

:root {
    --green-dark: #1a472a;
    --green-primary: #228b22;
    --green-light: #2d5a3d;
    --white: #ffffff;
    --off-white: #f8f9f7;
    --text-light: rgba(255, 255, 255, 0.9);
}

html {
    font-size: 18px;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--green-primary);
    color: var(--white);
    line-height: 1.7;
    min-height: 100vh;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Password Gate */
.password-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.password-box {
    text-align: center;
    max-width: 400px;
}

.password-box h1 {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.password-box p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.password-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.password-box button {
    background-color: var(--white);
    color: var(--green-dark);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.password-box button:hover {
    transform: translateY(-2px);
}

.password-box .error-msg {
    color: #ffcccc;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2.5rem;
}

h1 {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

/* Intro Section */
.intro {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.intro p {
    margin-bottom: 0.75rem;
}

.intro .organisers {
    font-size: 0.95rem;
    color: var(--text-light);
}

.intro .contact {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.intro .contact a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.intro .contact a:hover {
    text-decoration-thickness: 2px;
}

/* Sign Button */
.sign-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--green-dark);
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sign-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sign-button:active {
    transform: translateY(0);
}

/* Letter Section */
.letter {
    background-color: var(--off-white);
    color: #1a1a1a;
    padding: 2.5rem;
    border-radius: 6px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.letter p {
    margin-bottom: 1.25rem;
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.letter .recipient {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-style: normal;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.letter .salutation {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Signatories Section */
.signatories {
    margin-bottom: 3rem;
}

.signatories h2 {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.signatories-list {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 6px;
}

.signatories-list ol {
    columns: 1;
    column-gap: 2rem;
    list-style-position: inside;
    padding: 0;
}

@media (min-width: 500px) {
    .signatories-list ol {
        columns: 2;
    }
}

.signatories-list li {
    padding: 0.4rem 0;
    break-inside: avoid;
    font-size: 0.95rem;
}

.signatories-list .affiliation {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

.signatories-list .anonymous-entry {
    font-style: italic;
    list-style: none;
}

.signatories-list .loading,
.signatories-list .error {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
}

/* Footer */
footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    .container {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    .letter {
        padding: 1.5rem;
    }

    .signatories-list {
        padding: 1.25rem;
    }
}
