:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
    background: #f3f6fa;
    scrollbar-gutter: stable;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: #f3f6fa;
}

button,
input {
    font: inherit;
}

.page-shell {
    display: grid;
    min-height: 100vh;
    place-items: start center;
    padding: 2rem 1rem;
}

.converter-card {
    width: min(100%, 42rem);
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid #dce3ed;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 1.25rem 3rem rgb(31 47 70 / 10%);
}

.converter-header {
    margin-bottom: 2rem;
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: #315da8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    overflow-wrap: break-word;
}

h1 {
    margin: 0;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.15;
}

h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.intro {
    max-width: 35rem;
    margin: 1rem 0 0;
    color: #56647a;
    line-height: 1.6;
}

.conversion-form {
    display: grid;
    gap: 1.25rem;
}

.form-field {
    display: grid;
    gap: 0.5rem;
}

label {
    font-weight: 650;
}

input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #aab6c7;
    border-radius: 0.55rem;
    color: #172033;
    background: #ffffff;
}

input:focus {
    border-color: #315da8;
    outline: 3px solid rgb(49 93 168 / 18%);
}

.field-help,
.field-error {
    margin: 0;
    font-size: 0.9rem;
}

.field-help {
    color: #637086;
}

.field-error {
    min-height: 1.2em;
    color: #a62424;
}

.example-picker {
    display: grid;
    gap: 0.65rem;
}

.example-label {
    margin: 0;
    color: #56647a;
    font-size: 0.9rem;
    font-weight: 650;
}

.example-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

button {
    width: fit-content;
    min-height: 2.75rem;
    padding: 0.7rem 1.2rem;
    border: 0;
    border-radius: 0.55rem;
    color: #ffffff;
    background: #315da8;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #264c8d;
}

button:focus-visible {
    outline: 3px solid rgb(49 93 168 / 30%);
    outline-offset: 3px;
}

.example-button {
    min-height: 2.25rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid #c2ccda;
    color: #315da8;
    background: #ffffff;
    font-size: 0.875rem;
    font-weight: 650;
}

.example-button:hover {
    border-color: #8fa6c8;
    background: #eef4ff;
}

.submit-button {
    width: 10.5rem;
    white-space: nowrap;
}

.submit-button:active {
    transform: translateY(1px);
    background: #1f417b;
}

.submit-button:disabled {
    opacity: 0.75;
    cursor: wait;
}

.conversion-result {
    margin-top: 2rem;
    padding: 1.25rem;
    border-left: 0.3rem solid #315da8;
    border-radius: 0.4rem;
    background: #eef4ff;
}

.conversion-output {
    margin: 0;
    color: #3e4c62;
    line-height: 1.6;
}

@media (max-width: 30rem) {
    .submit-button {
        width: 100%;
    }
}
