
:root {
    font-family: Inter, "Segoe UI", sans-serif;
    color: #f1f5f9;
    background: #0f172a;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at top, #1e3a5f 0%, transparent 55%),
        #0f172a;
}

.container {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
    padding: 64px 0 24px;
}

.header {
    margin-bottom: 32px;
}

.eyebrow {
    color: #60a5fa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

h1 {
    margin: 12px 0;
    font-size: clamp(32px, 6vw, 48px);
    letter-spacing: -1.5px;
}

.subtitle {
    color: #94a3b8;
    line-height: 1.6;
}

.weather-card {
    padding: 28px;
    border: 1px solid #334155;
    border-radius: 24px;
    background: rgb(30 41 59 / 90%);
    box-shadow: 0 24px 60px rgb(0 0 0 / 20%);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.card-header h2 {
    margin: 0;
    font-size: 18px;
}

.status {
    color: #93c5fd;
    font-size: 13px;
}

.city {
    margin: 32px 0 0;
    color: #cbd5e1;
    font-size: 16px;
}

.temperature {
    margin: 8px 0;
    font-size: clamp(56px, 12vw, 80px);
    font-weight: 700;
    letter-spacing: -4px;
}

.condition {
    margin-bottom: 32px;
    color: #94a3b8;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.metric {
    padding: 20px;
    border: 1px solid #475569;
    border-radius: 16px;
    background: #172033;
}

.metric-label {
    display: block;
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 13px;
}

.metric strong {
    font-size: 24px;
}

.updated {
    margin-top: 24px;
    color: #94a3b8;
    font-size: 12px;
}

button {
    width: 100%;
    margin-top: 12px;
    padding: 14px 20px;
    border: 0;
    border-radius: 12px;
    background: #3b82f6;
    color: white;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms ease;
}

button:hover {
    background: #2563eb;
}

button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.error {
    color: #fca5a5;
    line-height: 1.5;
}

footer {
    padding: 24px 0;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 480px) {
    .container {
        padding-top: 32px;
    }

    .weather-card {
        padding: 20px;
    }

    .metrics {
        gap: 10px;
    }

    .metric {
        padding: 14px;
    }
}
