:root {
    --ink: #1c2b3a;
    --paper: #f4f2ee;
    --line: #d9d4c9;
    --muted: #7c7568;
}

html 

{
    font-size: clamp(15px, 0.75vw + 12px, 26px);
}


body {
    background-color: lightsteelblue;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
}

.weather-page {

    width: min(92%, 60rem);
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}



.weather-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted);
}

.weather-empty-sub {
    font-size: 0.9rem;
    margin-top: 0.25rem;
}



.hero {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.75rem 1.75rem 1.5rem;
    color: var(--ink);
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-place {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
}

.hero-updated {
    color: var(--muted);
}

.hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.hero-temp-block {
    display: flex;
    flex-direction: column;
}

.hero-temp {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 5.25rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-deg {
    font-size: 2.5rem;
    font-weight: 500;
    vertical-align: top;
    margin-left: 0.1rem;
}

.hero-condition {
    margin-top: 0.4rem;
    font-size: 1.05rem;
    color: var(--muted);
}

.hero-icon {
    font-size: 4rem;
    line-height: 1;
}

.hero-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero-meta-label {
    font-size: 0.75rem;
    color: var(--muted);
}

.hero-meta-value {
    font-size: 0.95rem;
    font-weight: 500;
}



.hourly {
    margin-top: 2rem;
}

.hourly-title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
    color: var(--ink);
}

.hourly-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

    .hourly-strip::-webkit-scrollbar {
        height: 6px;
    }

    .hourly-strip::-webkit-scrollbar-thumb {
        background: var(--line);
        border-radius: 3px;
    }

.hour-card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 4.5rem;
    padding: 0.85rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    border-right: 1px solid var(--line);
}

    .hour-card:last-child {
        border-right: none;
    }

.hour-time {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
}

.hour-icon {
    font-size: 1.4rem;
}

.hour-temp {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
}

.hour-wind {
    font-size: 0.7rem;
    color: var(--muted);
}





/* ---------- Focus visibility ---------- */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}
