:root {
    color-scheme: dark;
    --ink: #ecf8f5;
    --muted: #9eb8b4;
    --water: #062f36;
    --deep-water: #031b20;
    --card: rgba(10, 57, 63, 0.78);
    --line: rgba(157, 226, 214, 0.2);
    --foam: #9de2d6;
    --sun: #ffc96b;
    --danger: #ff9d8e;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 5%, rgba(42, 154, 152, 0.2), transparent 32rem),
        linear-gradient(155deg, var(--water), var(--deep-water) 62%);
}

button,
input {
    font: inherit;
}

.shell {
    width: min(100% - 2rem, 46rem);
    margin: 0 auto;
    padding: 4.5rem 0 2.5rem;
}

.hero {
    margin-bottom: 2rem;
}

.eyebrow {
    margin: 0 0 0.55rem;
    color: var(--sun);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 12ch;
    margin-bottom: 0.55rem;
    font-size: clamp(2.6rem, 9vw, 5.2rem);
    line-height: 0.92;
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 1.1rem;
    font-size: 1.05rem;
    letter-spacing: -0.015em;
}

.lede,
.hint,
.empty,
footer {
    color: var(--muted);
}

.lede {
    max-width: 34rem;
    margin-bottom: 0;
    font-size: 1.05rem;
}

.card,
.notice {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--card);
    box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(0.65rem);
}

.card {
    margin-bottom: 1rem;
    padding: 1.25rem;
}

.notice {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
}

.notice--success {
    border-color: rgba(157, 226, 214, 0.48);
}

.notice--error {
    border-color: rgba(255, 157, 142, 0.6);
    color: var(--danger);
}

label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--foam);
    font-size: 0.85rem;
    font-weight: 700;
}

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

input[type="text"] {
    min-width: 0;
    width: 100%;
    border: 1px solid rgba(157, 226, 214, 0.34);
    border-radius: 0.7rem;
    padding: 0.8rem 0.9rem;
    color: var(--ink);
    background: rgba(2, 27, 32, 0.7);
}

input[type="text"]:focus-visible,
button:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 2px;
}

button {
    border: 0;
    border-radius: 0.7rem;
    padding: 0.8rem 1.25rem;
    color: #082d31;
    background: var(--foam);
    font-weight: 850;
    cursor: pointer;
}

button:hover {
    background: #c1f1e9;
}

.hint {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-heading h2 {
    margin-bottom: 0;
}

.count {
    min-width: 2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    color: var(--foam);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.value-list {
    display: grid;
    gap: 0;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.value-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--line);
    padding: 0.85rem 0;
    overflow-wrap: anywhere;
}

.value-list li:last-child {
    padding-bottom: 0.15rem;
}

.value-list small {
    flex: 0 0 auto;
    color: var(--muted);
}

.empty {
    margin: 1rem 0 0;
}

footer {
    padding-top: 0.5rem;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 34rem) {
    .shell {
        width: min(100% - 1.25rem, 46rem);
        padding-top: 2.5rem;
    }

    .entry-row {
        grid-template-columns: 1fr;
    }

    button {
        width: 100%;
    }
}
