:root {
    --cream: #fff8f0;
    --green-deep: #1b4332;
    --green: #1c8073;
    --gold: #c4923a;
    --gold: oklch(75.511% 0.1152 81.905);
    --text: #1a1a2e;
    --muted: #6b7280;
    --line: #eadfce;
    --white: #ffffff;
    --danger-bg: #fde8e8;
    --danger: #9b1c1c;
    --font-body: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    --font-heading: 'Anek Latin', ui-sans-serif, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--cream);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
}

h1,
h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

h1 {
    font-size: 1.75rem;
}

a {
    color: var(--green-deep);
}

.site-header,
.site-footer,
.wrap {
    width: min(40rem, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    padding: 1.5rem 0 0.5rem;
}

.logo-link {
    display: inline-block;
}

.logo-link img {
    display: block;
    width: 11rem;
    height: auto;
}

.wrap {
    padding: 1.25rem 0 3rem;
}

.site-footer {
    padding: 0 0 2rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.lead,
.muted {
    color: var(--muted);
}

.lead {
    margin-top: 0;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

label,
legend {
    font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"],
.code-field input {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--text);
    border-radius: 0.75rem;
    padding: 0.8rem 0.9rem;
    font: inherit;
    font-size: 1rem;
}

.code-field {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 0.75rem;
    padding: 0 0.9rem;
}

.code-field span {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.code-field input {
    border: 0;
    padding-left: 0;
    padding-right: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

input:focus,
.code-field:focus-within {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.code-field input:focus {
    outline: none;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--green-deep);
    background: var(--green-deep);
    color: var(--white);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    background: var(--green);
    border-color: var(--green);
}

.button-secondary {
    background: transparent;
    color: var(--green-deep);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: var(--white);
    color: var(--green-deep);
}

.alert {
    background: var(--danger-bg);
    color: var(--danger);
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    margin: 0 0 1rem;
}

.panel,
.choice,
.summary {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1rem;
}

.panel {
    padding: 1rem 1.1rem;
}

.balance {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.choices {
    border: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.choice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
}

.choice.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.choice input {
    accent-color: var(--green-deep);
    width: 1.1rem;
    height: 1.1rem;
}

.summary {
    margin: 0;
    padding: 0.4rem 1rem;
}

.summary div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
}

.summary div:last-child {
    border-bottom: 0;
}

.summary dt {
    color: var(--muted);
}

.summary dd {
    margin: 0;
    text-align: right;
}

.table-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    text-align: left;
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

td:last-child {
    white-space: nowrap;
}

th {
    font-family: var(--font-heading);
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
