:root {
    color-scheme: light;
    font-family: system-ui, sans-serif;
    color: #172327;
    background: #edf4f1;
    --accent: #0a5948;
    --border: #778b85;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(ellipse at top right, #d9ebe1, transparent 55%);
}

.site-header {
    width: min(100% - 3rem, 76rem);
    margin-inline: auto;
    padding-block: 1.75rem;
    border-bottom: 1px solid #b9cec4;
}

.wordmark {
    color: inherit;
    font-size: 1.375rem;
    font-weight: 750;
    letter-spacing: -0.05em;
    text-decoration: none;
}

.wordmark span { color: var(--accent); }

.workspace {
    width: min(100% - 3rem, 48rem);
    margin-inline: auto;
    padding-block: clamp(3rem, 10vw, 8rem);
}

h1 {
    margin: 0;
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    font-weight: 720;
    line-height: 1;
    letter-spacing: -0.07em;
}

.intro {
    margin: 1rem 0 2rem;
    color: #3c5250;
    font-size: clamp(1rem, 3vw, 1.25rem);
}

.tool {
    padding: clamp(1rem, 4vw, 2rem);
    background: #fff;
    border: 1px solid #c8d8d0;
    border-radius: 1rem;
    box-shadow: 0 1rem 2.75rem #1c453117;
}

label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 650;
}

.input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
}

input, button {
    min-height: 3.25rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font: inherit;
}

input {
    width: 100%;
    padding: 0.75rem;
    color: inherit;
    background: #f8fbf9;
}

input::placeholder { color: #516462; }

button {
    padding: 0.75rem 1.125rem;
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 650;
    cursor: pointer;
}

button:hover:enabled { background: #074638; }
button:disabled { opacity: 0.65; cursor: default; }

button.secondary { color: var(--accent); background: #fff; }
button.secondary:hover { background: #edf4f1; }

:focus-visible {
    outline: 3px solid #15816c;
    outline-offset: 3px;
}

.result {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #c8d8d0;
}

.status { margin: 0; color: #3c5250; }
.status:not(:empty) { margin-top: 0.875rem; }
.status[data-error] { color: #9d2b20; }

@media (max-width: 36rem) {
    .site-header, .workspace { width: calc(100% - 2rem); }
    .input-row { grid-template-columns: minmax(0, 1fr); }
}
