*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Georgia, 'Times New Roman', serif;
    background: #fff;
    color: #2c2c2c;
    line-height: 1.6;
}

/* ---- Login page ---- */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-container {
    text-align: center;
    max-width: 360px;
    width: 100%;
}

.site-title {
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    margin: 0 0 0.25rem;
}

.login-subtitle {
    color: #888;
    margin: 0 0 2.5rem;
}

.login-form label {
    display: block;
    text-align: left;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.4rem;
}

/* ---- Shared layout ---- */

.content, .site-header, footer {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Header ---- */

.site-header {
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e8e8e8;
}

.site-header h1 {
    font-size: 2.5rem;
    font-weight: normal;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
}

.tagline {
    color: #888;
    font-size: 1.05rem;
    margin: 0;
}

/* ---- Sections ---- */

section {
    margin: 3rem 0;
}

section h2 {
    font-size: 0.75rem;
    font-weight: normal;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #aaa;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 0.6rem;
    margin-bottom: 1.5rem;
}

.detail-block {
    margin-bottom: 1.5rem;
}

.detail-block h3 {
    font-size: 1rem;
    font-weight: normal;
    margin: 0 0 0.25rem;
    color: #666;
    letter-spacing: 0.04em;
}

.detail-block p {
    margin: 0;
}

/* ---- RSVP form ---- */

.rsvp-deadline {
    color: #888;
    margin-top: 0;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group > label,
.form-group legend {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.5rem;
}

.form-group fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.required {
    color: #bbb;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    color: #2c2c2c;
    background: #fff;
    transition: border-color 0.15s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #999;
}

textarea {
    resize: vertical;
}

.radio-label {
    display: block;
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.radio-label input {
    margin-right: 0.5rem;
}

button[type="submit"] {
    padding: 0.7rem 2.5rem;
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: #2c2c2c;
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.15s;
}

button[type="submit"]:hover {
    background: #444;
}

button[type="submit"]:disabled {
    background: #bbb;
    cursor: default;
}

/* ---- Feedback messages ---- */

.success-msg {
    margin-top: 1.25rem;
    color: #3a7c3a;
}

.error-msg {
    margin-top: 0.75rem;
    color: #b94a48;
    font-size: 0.9rem;
}

/* ---- Footer ---- */

footer {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #ccc;
    font-size: 0.85rem;
    border-top: 1px solid #e8e8e8;
    margin-top: 2rem;
}
