:root {
    color-scheme: light;
    --ink: #17251f;
    --muted: #607067;
    --cream: #f6f5ef;
    --surface: rgba(255, 255, 255, 0.88);
    --green: #1d6b4f;
    --green-dark: #124533;
    --line: #dbe4dd;
    --shadow: 0 24px 70px rgba(31, 73, 56, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    align-items: center;
    background:
        radial-gradient(circle at 10% 10%, #dceee3 0, transparent 34%),
        radial-gradient(circle at 90% 90%, #e7ead7 0, transparent 32%),
        var(--cream);
    color: var(--ink);
    display: flex;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    padding: 24px;
}

main {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 28px;
    box-shadow: var(--shadow);
    max-width: 680px;
    padding: clamp(32px, 7vw, 72px);
    width: 100%;
}

.eyebrow {
    align-items: center;
    color: var(--green);
    display: flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0.12em;
    margin: 0 0 22px;
    text-transform: uppercase;
}

.eyebrow::before {
    background: #d94b3d;
    border-radius: 50%;
    content: "";
    height: 9px;
    width: 9px;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    letter-spacing: -0.07em;
    line-height: 0.98;
    margin: 0;
    max-width: 560px;
}

.intro {
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.7;
    margin: 26px 0 38px;
    max-width: 530px;
}

.message {
    background: #e7f3eb;
    border-left: 4px solid var(--green);
    border-radius: 10px;
    color: var(--green-dark);
    margin: 0 0 28px;
    padding: 14px 16px;
}

.message.rate-limit {
    background: #fff0e6;
    border-left-color: #b93815;
    color: #7a210b;
}

form {
    display: grid;
    gap: 12px;
}

label {
    font-size: 0.92rem;
    font-weight: 750;
}

textarea {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    font: inherit;
    min-height: 132px;
    padding: 14px 16px;
    resize: vertical;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(29, 107, 79, 0.12);
    outline: none;
}

button {
    background: var(--green);
    border: 0;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    margin-top: 8px;
    padding: 15px 22px;
    transition: background 160ms ease, transform 160ms ease;
}

button:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

button:focus-visible {
    outline: 3px solid #9bcdb2;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    main {
        border-radius: 20px;
    }
}