@font-face {
    font-family: "Space Grotesk";
    src: url("fonts/space-grotesk.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Condensed";
    src: url("fonts/barlow-condensed.woff2") format("woff2");
    font-weight: 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #241820;
    --muted: #624e59;
    --paper: #fffaf8;
    --white: #fff;
    --pink: #ffabc8;
    --blush: #ffedf3;
    --accent: #a22854;
    --mono: ui-monospace, "Courier New", monospace;
    font-family: "Space Grotesk", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.landing { display: grid; gap: 1rem; width: min(100% - 1.5rem, 38rem); margin-inline: auto; padding-block: clamp(1rem, 5vw, 3rem) 1rem; }
.label { font: 700 .73rem/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.poster {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: clamp(.6rem, 2.6vw, 1.1rem);
    padding: clamp(1.25rem, 4vw, 2rem) 1.25rem;
    border: 1px solid var(--ink);
    background:
        linear-gradient(var(--ink), var(--ink)) top 10px left 10px / 12px 1px,
        linear-gradient(var(--ink), var(--ink)) top 10px left 10px / 1px 12px,
        linear-gradient(var(--ink), var(--ink)) top 10px right 10px / 12px 1px,
        linear-gradient(var(--ink), var(--ink)) top 10px right 10px / 1px 12px,
        linear-gradient(var(--ink), var(--ink)) bottom 10px left 10px / 12px 1px,
        linear-gradient(var(--ink), var(--ink)) bottom 10px left 10px / 1px 12px,
        linear-gradient(var(--ink), var(--ink)) bottom 10px right 10px / 12px 1px,
        linear-gradient(var(--ink), var(--ink)) bottom 10px right 10px / 1px 12px,
        radial-gradient(ellipse at 50% 90%, var(--blush), var(--white) 72%);
    background-repeat: no-repeat;
    text-align: center;
}
.poster-top, .poster-caption { display: flex; align-items: center; gap: .5rem; }
.poster-top span { font: 400 1.15rem/1 system-ui, sans-serif; }
.wordmark { display: grid; justify-items: center; width: min(100%, 25rem); }
.wordmark span { font: 900 clamp(3rem, 8vw, 5.65rem)/.9 "Barlow Condensed", Impact, sans-serif; letter-spacing: -.015em; }
.wordmark img { display: block; width: 100%; height: auto; }
.poster-caption { padding: .32rem .75rem; border: 1px solid var(--ink); border-radius: 2rem; background: var(--white); }
.poster-caption span, .verification h2 span, footer span { color: var(--accent); }

.verification { min-width: 0; padding: clamp(1rem, 4vw, 1.5rem); border: 1px solid var(--ink); border-radius: 1rem; background: var(--white); }
.verification h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.1; letter-spacing: -.055em; }
.verification > p { margin-top: .35rem; color: var(--muted); }
#verification-form { display: grid; gap: 1rem; margin-top: 1.35rem; }
.verification > .form-error { color: var(--accent); font-weight: 700; }
.form-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-field > .label { display: block; margin-bottom: .45rem; padding: 0; }
.form-field input[type="email"] {
    width: 100%;
    min-height: 3rem;
    padding: .65rem .85rem;
    border: 1px solid #d9b7c6;
    border-radius: .7rem;
    font: inherit;
    color: var(--ink);
    background: var(--paper);
}
.form-field input::placeholder { color: var(--muted); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.choice { position: relative; }
.choice input { position: absolute; top: .6rem; left: .6rem; margin: 0; opacity: 0; }
.choice-card {
    display: grid;
    place-items: center;
    gap: .3rem;
    height: 100%;
    padding: .8rem .45rem;
    border: 1px solid #d9b7c6;
    border-radius: .75rem;
    background: var(--paper);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}
.choice-card svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.choice:hover .choice-card { border-color: var(--accent); }
.choice input:checked + .choice-card { border-color: var(--accent); background: linear-gradient(160deg, var(--blush), var(--pink)); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + .choice-card { outline: 3px solid var(--accent); outline-offset: 3px; }
.primary-button {
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    min-height: 3rem;
    padding: .6rem .85rem;
    border: 1px solid var(--ink);
    border-radius: 2rem;
    background: linear-gradient(#ffd4e4, var(--pink));
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.primary-button:hover { background: var(--pink); }
.form-note { color: var(--muted); font-size: .8rem; text-align: center; }
#result-email { overflow-wrap: anywhere; }
.result-card { margin-block: 1rem; overflow: hidden; border: 1px solid #d9b7c6; border-radius: .8rem; background: var(--paper); }
.result-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; align-items: center; padding: .7rem .85rem; border-bottom: 1px solid #d9b7c6; }
.result-status { padding: .24rem .5rem; border: 1px solid #d9b7c6; border-radius: 2rem; color: var(--accent); }
.result-content { padding: 1rem; background: var(--blush); text-align: center; }
.result-content > p:last-child { margin-top: .45rem; color: var(--muted); font-size: .9rem; }
footer { grid-column: 1 / -1; padding-block: .3rem; color: var(--muted); text-align: center; }

@media (min-width: 44rem) {
    .landing {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1rem, 2.5vw, 1.75rem);
        width: min(100% - 3rem, 67rem);
    }

    .wordmark span { font-size: clamp(3rem, 6.5vw, 5.65rem); }
}
