/* Self-hosted brand fonts (DESIGN.md "Typography"): latin + latin-ext, normal weight. */
@font-face {
    font-family: 'Noto Serif Display Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62.5% 100%;
    src: url('/fonts/noto-serif-display-latin-ext-wdth-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Noto Serif Display Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62.5% 100%;
    src: url('/fonts/noto-serif-display-latin-wdth-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Hanken Grotesk Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('/fonts/hanken-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Hanken Grotesk Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('/fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Guest surface palette from DESIGN.md "Zaproszenie" (light only). */
:root {
    --cream: #f9f7f4;
    --paper: #ffffff;
    --ink: #1b1e33;
    --slate: #5b6078;
    --line: #e6dccb;
    --indigo: #2c2c7a;
    --indigo-deep: #1e1e5a;
    --glaze: #f4eada;
    --myrtle: #2f6b4f;
    --myrtle-tint: #e3efe8;
    --rosehip: #b23a48;
    --rosehip-tint: #f6e3e5;
    --ease-out: cubic-bezier(0.2, 0, 0, 1);
}

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

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--cream);
    color: var(--ink);
    font-family: 'Hanken Grotesk Variable', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.page {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 16px 28px;
}

.header {
    width: 100%;
    max-width: 680px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 4px;
}

.logo {
    display: block;
    height: 36px;
    width: auto;
}

.main {
    width: 100%;
    max-width: 680px;
    margin: auto;
}

/* Printed wedding stationery card: paper on cream, double hairline border, 24px radius, no shadow. */
.card {
    position: relative;
    background-color: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 8px;
}

.card-inner {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 28px 20px 24px;
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.title {
    margin: 0;
    font-family: 'Noto Serif Display Variable', Georgia, serif; /* taste-ok */
    font-stretch: 62.5%;
    font-weight: 400;
    font-size: clamp(34px, 7.5vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.01em;
    color: var(--ink);
    max-width: 15ch;
}

.signet {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: block;
}

.lead {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--slate);
    max-width: 52ch;
}

.pillars {
    list-style: none;
    margin: 0 0 28px;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ink);
}

.pillars li {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.pillars li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: var(--indigo);
    flex: 0 0 auto;
    transform: translateY(-2px);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.role-btn {
    appearance: none;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background-color: var(--paper);
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 120ms var(--ease-out), border-color 120ms var(--ease-out), color 120ms var(--ease-out);
}

.role-btn:hover {
    background-color: var(--glaze);
    border-color: var(--indigo);
}

.role-btn[aria-checked='true'] {
    background-color: var(--glaze);
    border-color: var(--indigo);
    color: var(--indigo-deep);
}

.role-btn:focus-visible,
.input:focus-visible,
.submit:focus-visible,
.footer a:focus-visible {
    outline: 2px solid var(--indigo);
    outline-offset: 2px;
}

.email-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background-color: var(--paper);
    color: var(--ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 120ms var(--ease-out);
}

.input::placeholder {
    color: var(--slate);
    opacity: 0.75;
}

.input:hover {
    border-color: var(--indigo);
}

.input[aria-invalid='true'] {
    border-color: var(--rosehip);
}

.submit {
    appearance: none;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--indigo);
    border-radius: 6px;
    background-color: var(--indigo);
    color: var(--paper);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 120ms var(--ease-out), border-color 120ms var(--ease-out), transform 120ms var(--ease-out);
}

.submit:hover:not(:disabled) {
    background-color: var(--indigo-deep);
    border-color: var(--indigo-deep);
}

.submit:active:not(:disabled) {
    transform: scale(0.98);
}

.submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.helper {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--slate);
}

.status {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
}

.status[hidden] {
    display: none;
}

.status-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.status--success {
    background-color: var(--myrtle-tint);
    color: var(--myrtle);
    border: 1px solid #b9d7c5;
}

.status--error {
    background-color: var(--rosehip-tint);
    color: var(--rosehip);
    border: 1px solid #e4bbc0;
}

/* Honeypot hidden from real users and screen readers */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.footer {
    width: 100%;
    max-width: 680px;
    margin: 24px auto 0;
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-size: 14px;
    color: var(--slate);
}

.footer a {
    color: var(--indigo);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer a:hover {
    color: var(--indigo-deep);
}

@media (min-width: 640px) {
    .page {
        padding: 40px 24px 36px;
    }

    .header {
        margin-bottom: 28px;
    }

    .logo {
        height: 44px;
    }

    .card-inner {
        padding: 40px 44px 36px;
    }

    .signet {
        width: 58px;
        height: 58px;
    }

    .lead {
        font-size: 18px;
    }

    .email-row {
        flex-direction: row;
        align-items: stretch;
    }

    .input {
        flex: 1 1 auto;
    }

    .submit {
        flex: 0 0 auto;
    }

    .footer {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
