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

:root {
    --void: #000000;
    --smoke: #0A0A0A;
    --smoke-up: #12120F;
    --line: #1A1A1A;
    --line-hi: #2A2A2A;
    --ivory: #EDE7D8;
    --ivory-soft: #C9C4B6;
    --ivory-dim: #8A8578;
    --ivory-mute: #4E4A42;
    --brass: #B08D40;
    --brass-hi: #CFA654;
    --brass-soft: rgba(176, 141, 64, 0.18);
    --good: #7BC47F;
    --warn: #E4A44D;
    --bad: #D95C5C;
    --serif: 'Fraunces', 'EB Garamond', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    color: var(--ivory);
    background: var(--void);
    min-height: 100vh;
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brass-hi); text-decoration: none; border-bottom: 1px solid var(--brass-soft); padding-bottom: 1px; }
a:hover { color: var(--ivory); border-color: var(--brass-hi); }

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 32px 80px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 80px;
}
.monogram {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 0.14em;
    color: var(--ivory);
    text-transform: uppercase;
    border: 0;
}
.monogram .dot { color: var(--brass); padding: 0 3px; }
.chamber-label {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.32em;
    color: var(--ivory-dim);
    text-transform: uppercase;
}

main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 80px;
    align-items: start;
}
@media (max-width: 820px) {
    main { grid-template-columns: 1fr; gap: 48px; }
    header { margin-bottom: 40px; }
}

/* ── side copy ──────────────────────────────────────── */
.side-copy {
    padding-top: 12px;
    max-width: 520px;
}
.roman {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--brass);
    margin-bottom: 28px;
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.roman::before {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--brass);
    display: inline-block;
}
.side-copy h1 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(36px, 4.4vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ivory);
    margin-bottom: 24px;
    max-width: 12ch;
}
.side-copy h1 em {
    font-style: italic;
    color: var(--brass-hi);
    font-weight: 300;
}
.side-copy p {
    color: var(--ivory-soft);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 16px;
    max-width: 50ch;
}
.side-copy .legal {
    color: var(--ivory-mute);
    font-size: 12px;
    line-height: 1.7;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    max-width: 50ch;
}
.side-copy .legal a {
    color: var(--ivory-dim);
    border-bottom-color: var(--ivory-mute);
}
.side-copy .legal a:hover {
    color: var(--ivory);
    border-color: var(--brass);
}

.invite-meta {
    margin-top: 32px;
    padding: 20px;
    background: var(--smoke);
    border: 1px solid var(--line-hi);
}
.invite-meta .meta-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ivory-soft);
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}
.invite-meta .meta-row:last-child { border: 0; }
.invite-meta .meta-row span:first-child {
    font-size: 10px;
    color: var(--ivory-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ── card form ──────────────────────────────────────── */
.card {
    background: var(--smoke);
    border: 1px solid var(--line-hi);
    padding: 40px 36px;
    position: relative;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.card-label {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--brass);
    text-transform: uppercase;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.form-field label {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--brass);
    text-transform: uppercase;
    font-weight: 500;
}
.form-field input {
    font-family: var(--sans);
    font-size: 15px;
    color: var(--ivory);
    background: var(--void);
    border: 1px solid var(--line-hi);
    padding: 14px 16px;
    outline: none;
    transition: 180ms;
}
.form-field input:focus {
    border-color: var(--brass);
    background: var(--smoke-up);
}
.form-field input[readonly] {
    background: var(--smoke-up);
    color: var(--ivory-soft);
    cursor: default;
}
.form-field .hint {
    font-size: 11px;
    color: var(--ivory-mute);
    letter-spacing: 0.06em;
    line-height: 1.5;
}

.form-actions {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
button.primary {
    padding: 14px 32px;
    background: var(--brass);
    color: var(--void);
    border: 1px solid var(--brass);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    cursor: pointer;
    transition: 180ms;
    width: 100%;
}
button.primary:hover:not(:disabled) { background: var(--brass-hi); }
button.primary:disabled { opacity: 0.5; cursor: not-allowed; }

.status {
    margin-top: 18px;
    font-family: var(--sans);
    font-size: 13px;
    min-height: 22px;
    color: var(--ivory-dim);
    letter-spacing: 0.04em;
}
.status.ok { color: var(--brass-hi); }
.status.err { color: var(--bad); }

.foot {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--ivory-dim);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.foot-quiet {
    margin-top: 18px;
    font-size: 11px;
    color: var(--ivory-mute);
    line-height: 1.6;
    letter-spacing: 0.04em;
}
.foot-quiet a { border-bottom: 1px dotted var(--ivory-mute); color: var(--ivory-dim); }

.state-notice {
    padding: 24px;
    background: var(--void);
    border: 1px solid var(--line-hi);
    text-align: center;
}
.state-notice.err { border-color: var(--bad); }
.state-notice h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 18px;
    color: var(--bad);
    margin-bottom: 10px;
}
.state-notice p {
    color: var(--ivory-soft);
    font-size: 13px;
    line-height: 1.7;
}
.state-notice .legal {
    font-size: 11px;
    color: var(--ivory-mute);
    margin-top: 14px;
}

footer {
    margin-top: auto;
    padding-top: 60px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ivory-mute);
    text-align: center;
}
