:root {
    --ink: #1e2a4a;
    --background: #fbf9f4;
    --marigold: #e9a23b;
    --teal: #2f7b6c;
    --line: #ddd6c7;
    --chip: #f1ede2;
    --ink-soft: #5b6685;
    --white: #ffffff;
    --error: #a52b2b;
    --error-bg: #fff1f0;
    --success: #17633f;
    --success-bg: #edf8f1;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a { color: var(--teal); }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem clamp(1rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line);
}

.brand {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
}

.brand span { color: var(--teal); }
.brand i { color: var(--marigold); font-style: normal; }

.home-link {
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.home-link:hover { color: var(--teal); }

.page-shell {
    width: min(100% - 2rem, 680px);
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4.5rem) 0;
    flex: 1;
}

.intro { text-align: center; margin-bottom: 1.75rem; }

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

h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 7vw, 3.25rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.intro > p:last-child {
    max-width: 540px;
    margin: 0.75rem auto 0;
    color: var(--ink-soft);
}

.form-card {
    padding: clamp(1.25rem, 5vw, 2.25rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 34px rgba(30, 42, 74, 0.07);
}

.field { margin-bottom: 1.3rem; }

label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.optional {
    margin-left: 0.35rem;
    color: var(--ink-soft);
    font-size: 0.75rem;
    font-weight: 500;
}

input[type="text"], input[type="email"], input[type="url"] {
    width: 100%;
    min-height: 48px;
    padding: 0.72rem 0.85rem;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    font: inherit;
}

input::placeholder { color: #858da2; }

input:hover { border-color: #aaa28f; }

input:focus-visible, button:focus-visible, a:focus-visible, .status:focus-visible {
    outline: 3px solid rgba(233, 162, 59, 0.55);
    outline-offset: 2px;
}

input:focus { border-color: var(--teal); }
input[aria-invalid="true"] { border-color: var(--error); }

.hint, .field-error, .required-note {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
}

.hint, .required-note { color: var(--ink-soft); }
.field-error { min-height: 0; color: var(--error); font-weight: 600; }
.field-error:empty { display: none; }

button {
    width: 100%;
    min-height: 50px;
    padding: 0.75rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

button:hover:not(:disabled) { background: var(--teal); }
button:active:not(:disabled) { transform: scale(0.99); }
button:disabled { cursor: wait; opacity: 0.7; }

.required-note { text-align: center; }

.status {
    margin: 0 0 1.25rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status.success { color: var(--success); background: var(--success-bg); border-color: #acd7ba; }
.status.error { color: var(--error); background: var(--error-bg); border-color: #e8b4b0; }

.contact-check {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.5rem 1rem 2rem;
    color: var(--line);
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
}

footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--teal); }

.copyright {
    flex-basis: 100%;
    margin: 0.45rem 0 0;
    color: var(--ink-soft);
    text-align: center;
    font-size: 0.8rem;
}

.copyright a {
    color: var(--teal);
    font-weight: 600;
}

.copyright a:hover {
    color: var(--marigold);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .site-header { padding: 1rem; }
    .page-shell { width: min(100% - 1rem, 680px); padding: 2rem 0; }
    .form-card { border-radius: 12px; }
}

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