:root {
    --bg: #f7f4ef;
    --surface: #ffffff;
    --text: #202124;
    --muted: #666f7a;
    --line: #dfe3e8;
    --accent: #227c70;
    --accent-dark: #155c53;
}

* {
    box-sizing: border-box;
}

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

a {
    color: inherit;
}

.hero,
.content-page,
.invitation-public {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.hero {
    min-height: 520px;
    display: grid;
    align-items: center;
}

.hero h1 {
    max-width: 760px;
    margin: 8px 0 16px;
    font-size: clamp(40px, 8vw, 86px);
    line-height: .95;
}

.hero p {
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
}

.eyebrow {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
}

.section-grid {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 64px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.simple-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 20px;
}

.rsvp-panel {
    margin-top: 32px;
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr);
    gap: 32px;
    align-items: start;
    border-top: 1px solid var(--line);
    padding-top: 32px;
}

.rsvp-panel h2 {
    margin: 8px 0 10px;
    font-size: 32px;
    line-height: 1.1;
}

.rsvp-panel p {
    color: var(--muted);
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.action-button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transform: translateZ(0);
    transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
    will-change: transform;
}

.btn[type="submit"],
button[type="submit"],
input[type="submit"] {
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
    will-change: transform;
}

.btn[type="submit"].is-pressed,
button[type="submit"].is-pressed,
input[type="submit"].is-pressed {
    transform: translateY(1px) scale(.97);
    box-shadow: inset 0 3px 7px rgba(0, 0, 0, .14);
}

.action-button::after {
    position: absolute;
    inset: 0;
    content: '';
    background: rgba(255, 255, 255, .22);
    opacity: 0;
    transform: scale(.75);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}

.action-button:hover {
    background: var(--accent-dark);
}

.action-button:focus-visible {
    outline: 3px solid rgba(34, 124, 112, .28);
    outline-offset: 2px;
}

.action-button:active,
.action-button.is-pressed {
    transform: translateY(1px) scale(.96);
    box-shadow: inset 0 3px 7px rgba(0, 0, 0, .16);
}

.action-button:active::after,
.action-button.is-pressed::after {
    opacity: 1;
    transform: scale(1);
}

.action-button:disabled,
.action-button.is-loading {
    cursor: wait;
    opacity: .75;
}

.action-button.is-loading,
.btn.is-loading,
button[type="submit"].is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.button-spinner {
    flex: 0 0 auto;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: button-spinner .75s linear infinite;
}

@media (prefers-reduced-motion: no-preference) {
    .action-button.is-pressed {
        animation: action-button-press .22s ease;
    }
}

@keyframes action-button-press {
    0% {
        transform: translateY(0) scale(1);
    }

    45% {
        transform: translateY(1px) scale(.96);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes button-spinner {
    to {
        transform: rotate(360deg);
    }
}

.form-message {
    border: 1px solid rgba(34, 124, 112, .22);
    border-radius: 8px;
    background: rgba(34, 124, 112, .08);
    color: var(--accent-dark);
    padding: 10px 12px;
}

.form-message.is-error {
    border-color: rgba(180, 35, 24, .22);
    background: rgba(180, 35, 24, .08);
    color: #9b1c1c;
}

.editor-content {
    max-width: 760px;
}

.editor-content h2,
.editor-content h3,
.editor-content h4 {
    margin: 28px 0 10px;
}

.editor-content p,
.editor-content li {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.editor-content blockquote {
    border-left: 4px solid var(--accent);
    margin: 24px 0;
    padding: 4px 0 4px 18px;
}

.editor-delimiter {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 32px 0;
}

@media (max-width: 760px) {
    .rsvp-panel {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
