:root {
    color-scheme: light;
    --forest: #102c26;
    --forest-soft: #21473e;
    --cream: #f2eee3;
    --paper: rgba(255, 253, 247, .94);
    --gold: #c18f4f;
    --muted: #6c746f;
    --line: #dcd8cc;
    --error: #a33c32;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    font-family: "DM Sans", system-ui, sans-serif;
    color: var(--forest);
    background:
        linear-gradient(135deg, rgba(16,44,38,.035) 25%, transparent 25%) 0 0 / 32px 32px,
        var(--cream);
}

.page-shell {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 26px;
    overflow: hidden;
    padding: 48px 20px 28px;
}

.ambient {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(193,143,79,.22);
    border-radius: 999px;
}

.ambient-one { width: 420px; height: 420px; top: -240px; right: -110px; }
.ambient-two { width: 280px; height: 280px; bottom: -175px; left: -80px; }

.card {
    width: min(100%, 680px);
    padding: clamp(32px, 7vw, 64px);
    background: var(--paper);
    border: 1px solid rgba(16,44,38,.09);
    border-radius: 4px;
    box-shadow: 0 24px 80px rgba(29, 40, 35, .10);
}

.card::before {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    margin: -1px auto 31px;
    background: var(--gold);
}

header { text-align: center; }

.brand-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.line { width: 22px; height: 1px; background: var(--gold); opacity: .65; }

.eyebrow {
    margin: 0;
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1 {
    max-width: 500px;
    margin: 15px auto 14px;
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(36px, 7vw, 56px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.025em;
}

.intro {
    max-width: 480px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

form { margin-top: 39px; }
.field-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
label { font-size: 14px; font-weight: 600; }
.optional { color: #8c918d; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

textarea {
    display: block;
    width: 100%;
    min-height: 180px;
    resize: vertical;
    padding: 18px 19px;
    border: 1px solid var(--line);
    border-radius: 3px;
    outline: none;
    background: #fffefa;
    color: var(--forest);
    font: inherit;
    font-size: 16px;
    line-height: 1.55;
    transition: border-color .18s, box-shadow .18s;
}

textarea::placeholder { color: #a7aaa6; }
textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(193,143,79,.13); }

button {
    width: 100%;
    margin-top: 18px;
    padding: 16px 22px;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    background: var(--forest);
    color: white;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .025em;
    transition: background .18s, transform .18s;
}

button span { display: inline-block; margin-left: 7px; transition: transform .18s; }
button:hover { background: var(--forest-soft); }
button:hover span { transform: translateX(4px); }
button:active { transform: translateY(1px); }
button:focus-visible, .text-link:focus-visible { outline: 3px solid rgba(193,143,79,.45); outline-offset: 3px; }

.privacy { margin: 15px 0 0; color: #858b87; text-align: center; font-size: 12px; }
.privacy span { color: var(--gold); margin-right: 5px; }
.error { margin: 9px 0 0; color: var(--error); font-size: 13px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
footer { color: #7e8580; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.card--compact { max-width: 560px; text-align: center; }
.mark { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 24px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: "Newsreader", serif; font-size: 28px; }
.success-icon { position: relative; width: 58px; height: 58px; margin: 0 auto 27px; border-radius: 50%; background: var(--forest); }
.success-icon span { position: absolute; width: 23px; height: 12px; left: 18px; top: 19px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg); }
.success h1 { margin-top: 14px; }
.text-link { display: inline-block; margin-top: 28px; color: var(--forest); font-size: 14px; font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.text-link span { margin-left: 5px; }

@media (max-width: 520px) {
    .page-shell { padding: 18px 12px; gap: 18px; }
    .card { padding: 32px 22px; }
    .card::before { margin-bottom: 25px; }
    h1 { font-size: 40px; }
    form { margin-top: 30px; }
    .field-header { align-items: flex-start; flex-direction: column; gap: 4px; }
    textarea { min-height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
