:root {
    --brand-navy: #143351;
    --brand-navy-secondary: #193f67;
    --brand-gold: #e2c280;
    --neutral-white: #ffffff;
    --neutral-warm: #e4e2dd;
    --background: #f7f7f5;
    --surface: #ffffff;
    --text-primary: #143351;
    --text-secondary: #66717b;
    color: var(--text-primary);
    background: var(--background);
    font-family: "TT Commons Pro", Inter, Arial, sans-serif;
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    background: var(--background);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.page {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.card {
    width: min(100%, 28rem);
    padding: 2rem;
    border: 1px solid var(--neutral-warm);
    border-radius: .5rem;
    background: var(--surface);
    box-shadow: 0 .125rem .5rem rgb(20 51 81 / 6%);
}

h1,
h2,
h3 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: .01em;
}

h1 {
    margin: 0 0 .5rem;
    font-size: 1.875rem;
    line-height: 1.2;
}

p {
    margin-top: 0;
}

label {
    display: block;
    margin: 1.25rem 0 .5rem;
    color: var(--text-primary);
    font-size: .875rem;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 3rem;
    padding: .75rem .875rem;
    border: 1px solid #d9d9d5;
    border-radius: .375rem;
    background: var(--neutral-white);
    color: var(--text-primary);
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

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

input:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 .1875rem rgb(226 194 128 / 20%);
    outline: none;
}

button,
.button {
    display: inline-block;
    min-height: 2.75rem;
    margin-top: 1.5rem;
    padding: 0 1.125rem;
    border: 1px solid var(--brand-navy);
    border-radius: .375rem;
    background: var(--brand-navy);
    color: var(--neutral-white);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease;
}

button:hover,
.button:hover {
    border-color: var(--brand-navy-secondary);
    background: var(--brand-navy-secondary);
}

button:focus-visible,
.button:focus-visible {
    outline: .1875rem solid rgb(226 194 128 / 55%);
    outline-offset: .1875rem;
}

.alert {
    padding: .75rem 1rem;
    border-left: .1875rem solid #9b3b3b;
    background: #fbeeee;
    color: #742929;
}

.muted {
    color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
    input,
    button,
    .button {
        transition: none;
    }
}
