:root {
    color-scheme: dark;

    --bg: #06111f;
    --panel: rgba(13, 30, 50, .86);
    --text: #f4f7fb;
    --muted: #94a5b8;
    --line: rgba(255, 255, 255, .12);
    --accent: #e62b35;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);

    background:
        radial-gradient(
            circle at 50% -20%,
            #15395e 0,
            #08192b 36%,
            var(--bg) 68%
        );
}

button,
input {
    font: inherit;
}

.topbar {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
    padding: 0 5vw;

    border-bottom: 1px solid var(--line);

    background: rgba(4, 13, 24, .74);
    backdrop-filter: blur(18px);

    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.swiss-mark {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border-radius: 7px;
    background: var(--accent);

    font-size: 23px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

nav a:hover,
nav a[aria-current="page"] {
    color: var(--text);
}

.page {
    width: min(900px, 92vw);
    margin: 0 auto;
    padding: 74px 0 90px;
}

.hero {
    text-align: center;
    margin-bottom: 38px;
}

.eyebrow {
    margin: 0 0 10px;

    color: #7fa1c4;
    letter-spacing: .18em;
    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    margin: 0;

    font-size: clamp(40px, 7vw, 68px);
    letter-spacing: -.04em;
}

.hero p:last-child {
    color: var(--muted);
}

.timer-card {
    padding: clamp(26px, 6vw, 52px);

    border: 1px solid var(--line);
    border-radius: 26px;

    background: var(--panel);

    box-shadow:
        0 32px 90px rgba(0, 0, 0, .25);
}

.timer-display {
    text-align: center;

    font-variant-numeric: tabular-nums;

    font-size: clamp(58px, 11vw, 108px);
    font-weight: 620;
    letter-spacing: -.055em;

    line-height: 1;
}

.timer-display.finished {
    color: #ff737b;
}

.status {
    margin-top: 16px;

    text-align: center;
    color: var(--muted);
}

.inputs {
    max-width: 620px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 14px;

    margin: 38px auto 22px;
}

.inputs label {
    display: grid;
    gap: 7px;
}

.inputs span {
    color: var(--muted);
    font-size: 13px;
}

.inputs input {
    width: 100%;

    padding: 12px;

    border: 1px solid var(--line);
    border-radius: 11px;

    background: rgba(255,255,255,.04);
    color: var(--text);

    text-align: center;
    font-size: 20px;
}

.presets,
.controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px;
}

.presets {
    margin: 24px 0 30px;
}

.presets button,
.controls button {
    padding: 10px 17px;

    border: 1px solid var(--line);
    border-radius: 999px;

    background: rgba(255,255,255,.05);
    color: var(--text);

    cursor: pointer;
}

.presets button:hover,
.controls button:hover:not(:disabled) {
    background: rgba(255,255,255,.10);
}

.controls .primary {
    border-color: transparent;
    background: var(--accent);
}

.controls button:disabled {
    opacity: .38;
    cursor: default;
}

@media (max-width: 700px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;

        padding-top: 15px;
        padding-bottom: 15px;
    }

    nav {
        width: 100%;
        overflow-x: auto;
    }

    .inputs {
        grid-template-columns: 1fr;
    }
}
