:root {
    color-scheme: light;
    font-family: system-ui, sans-serif;
    color: #132b23;
    background: #eff4f0;
    font-synthesis: none;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

a {
    color: #175c43;
}

.dashboard {
    width: min(100% - 2rem, 52rem);
    margin-inline: auto;
    padding-block: clamp(2rem, 7vw, 5rem);
}

.dashboard-header,
.test-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.dashboard-header {
    margin-bottom: 1.75rem;
}

h1,
h2,
p,
dl,
dd {
    margin: 0;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    letter-spacing: -.075em;
    line-height: 1.05;
}

.tagline {
    margin-top: .6rem;
    color: #426156;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    flex-shrink: 0;
    padding: .45rem .85rem;
    border: 1px solid #b9d9c7;
    border-radius: 2rem;
    background: #e2f2e8;
    color: #195d42;
    font-size: .875rem;
    font-weight: 650;
}

.status::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #26825d;
}

.clock-card {
    padding: clamp(1.25rem, 5vw, 3rem);
    border-radius: 1.5rem;
    background: #12362c;
    color: #f3faf5;
}

.clock-card h2,
.clock-details dt {
    color: #bed8ca;
    font-size: .875rem;
    font-weight: 650;
}

.clock-time,
.clock-date {
    display: block;
}

.clock-time {
    font-size: clamp(2.65rem, 10vw, 6.25rem);
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: 1.15;
    margin-block: .6rem .3rem;
}

.clock-date {
    font-size: clamp(1rem, 3vw, 1.2rem);
}

.clock-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem 1.5rem;
    padding-top: 1.2rem;
    margin-top: 1.8rem;
    border-top: 1px solid #456559;
}

.clock-details dd {
    margin-top: .2rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.clock-details dd span {
    color: #bed8ca;
    white-space: nowrap;
}

.test-card {
    margin-top: 1rem;
    padding: clamp(1.25rem, 4vw, 1.75rem);
    border: 1px solid #d1ded5;
    border-radius: 1.25rem;
    background: #fff;
}

.test-card h2 {
    font-size: 1.15rem;
    line-height: 1.25;
}

.test-card p {
    margin-top: .3rem;
    color: #426156;
}

.test-card button {
    flex-shrink: 0;
    min-height: 2.75rem;
    padding: .65rem 1rem;
    border: 0;
    border-radius: .6rem;
    background: #175c43;
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.test-card button:hover:not(:disabled) {
    background: #104732;
}

.test-card button:disabled {
    background: #4b6b5e;
    cursor: wait;
}

:focus-visible {
    outline: 2px solid #18704d;
    outline-offset: 4px;
}

@media (max-width: 38rem) {
    .dashboard-header,
    .test-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .test-card button {
        width: 100%;
    }
}
