:root {
    color-scheme: light;
    --paper: #f3efe6;
    --card: #fffdf8;
    --ink: #1c1915;
    --muted: #5e584e;
    --line: #e3d9c8;
    --green: #1f4d3a;
    --green-dark: #16382b;
    --error: #8d2b24;
    --success: #e7f3ec;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top, #fffaf1 0, transparent 42%),
        var(--paper);
}

.hero {
    position: relative;
    height: clamp(13rem, 46vw, 26rem);
    overflow: hidden;
    background: #f3e6d4;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    display: block;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 6.5rem;
    background: linear-gradient(to bottom, rgba(243, 239, 230, 0), var(--paper));
}

.wrap {
    position: relative;
    width: min(40rem, calc(100% - 2rem));
    margin: -4.4rem auto 0;
    padding: 0 0 3rem;
}

.sheet {
    padding: 1.7rem 1.4rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    box-shadow: 0 18px 50px rgba(48, 36, 18, 0.12);
    overflow-wrap: break-word;
}

.eyebrow {
    margin: 0 0 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--green);
    font-weight: 700;
}

h1 {
    margin: 0;
    font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
    font-size: clamp(1.7rem, 5.4vw, 3.15rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.lead {
    margin: 1.25rem 0 0;
    max-width: 38rem;
    font-size: 1.08rem;
    line-height: 1.55;
    color: var(--muted);
}

.card {
    margin-top: 1.5rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.success {
    background: var(--success);
    border-color: #c9e4d4;
}

.success h2 {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
}

.success p,
.banner,
.field-error {
    line-height: 1.45;
}

form {
    display: grid;
    gap: 0.35rem;
}

label {
    margin-top: 0.7rem;
    font-size: 0.92rem;
    font-weight: 650;
}

.optional {
    font-weight: 500;
    color: var(--muted);
}

input,
textarea {
    width: 100%;
    margin: 0;
    padding: 0.75rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

textarea { resize: vertical; }

input:focus,
textarea:focus {
    outline: 2px solid var(--green);
    outline-offset: 1px;
    border-color: var(--green);
}

button {
    margin-top: 1rem;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    background: var(--green);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:hover { background: var(--green-dark); }

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.banner,
.field-error {
    margin: 0.2rem 0 0;
    color: var(--error);
}

.turnstile { margin-top: 1rem; }

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

@media (max-width: 640px) {
    .hero { height: 12.5rem; }
    .hero img { object-position: center center; }
    .wrap { margin-top: -2.5rem; }
    .sheet { padding: 1.25rem 1rem 1.15rem; }
}
