:root {
    color-scheme: light;
    --ink: #17352d;
    --muted: #63726b;
    --paper: #f4f1e8;
    --card: #fffdf7;
    --green: #2f785f;
    --green-light: #d9eadf;
    --sun: #f1b84b;
    --line: rgba(23, 53, 45, 0.14);
    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 78% 12%, rgba(241, 184, 75, 0.17), transparent 25rem),
        linear-gradient(150deg, #f8f5ec, var(--paper));
}

.shell {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 34px;
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(54px, 10vw, 96px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-weight: 760;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border: 8px solid var(--green);
    border-radius: 50% 50% 50% 8px;
    transform: rotate(-12deg);
}

.location {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.status-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 7vw, 58px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 253, 247, 0.88);
    box-shadow: 0 24px 60px rgba(50, 64, 56, 0.1);
}

.status-card::after {
    position: absolute;
    right: -75px;
    bottom: -105px;
    width: 230px;
    height: 230px;
    border: 44px solid var(--green-light);
    border-radius: 50%;
    content: "";
    opacity: 0.75;
}

.status-label,
.duration {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.signal {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a8afa9;
    box-shadow: 0 0 0 6px rgba(168, 175, 169, 0.16);
}

.signal.active {
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(47, 120, 95, 0.15);
}

.power-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 22px 0 12px;
}

.power {
    font-size: clamp(4.5rem, 17vw, 8.4rem);
    font-weight: 760;
    line-height: 0.9;
    letter-spacing: -0.075em;
}

.unit {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
}

.status-copy {
    position: relative;
    z-index: 1;
    max-width: 510px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.6;
}

.duration {
    position: relative;
    z-index: 1;
    justify-content: space-between;
    max-width: 330px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.duration strong {
    color: var(--ink);
}

.recommendation {
    display: flex;
    gap: 18px;
    margin-top: 18px;
    padding: 22px 24px;
    border: 1px solid rgba(241, 184, 75, 0.42);
    border-radius: 20px;
    background: rgba(255, 245, 207, 0.65);
}

.recommendation strong {
    font-size: 1rem;
}

.recommendation p {
    margin: 4px 0 0;
    color: #665831;
    line-height: 1.5;
}

.sun {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    border: 5px solid rgba(255, 253, 247, 0.95);
    border-radius: 50%;
    background: var(--sun);
    box-shadow: 0 0 0 4px var(--sun);
}

.partial-note {
    margin: 16px 0 0;
    padding: 0 6px;
    color: #835c19;
    font-size: 0.88rem;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    margin-top: 32px;
    padding: 0 6px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

footer p {
    max-width: 350px;
    margin: 0;
}

footer p:last-child {
    text-align: right;
}

[hidden] {
    display: none !important;
}

@media (max-width: 580px) {
    .shell {
        width: min(100% - 22px, 760px);
        padding-top: 18px;
    }

    .masthead {
        margin-bottom: 42px;
    }

    .location {
        display: none;
    }

    .status-card {
        border-radius: 22px;
    }

    footer {
        flex-direction: column;
        gap: 12px;
    }

    footer p:last-child {
        text-align: left;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .signal.active {
        animation: pulse 2.8s ease-out infinite;
    }

    @keyframes pulse {
        0%,
        45% {
            box-shadow: 0 0 0 6px rgba(47, 120, 95, 0.15);
        }
        75%,
        100% {
            box-shadow: 0 0 0 12px rgba(47, 120, 95, 0);
        }
    }
}
