:root {
    color-scheme: light;
    --ink: #14243a;
    --muted: #64748b;
    --line: #dbe4ec;
    --surface: #ffffff;
    --accent: #0f766e;
    --accent-soft: #dff3ef;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, #e5eef3 0, #f4f7f8 360px, #f4f7f8 100%);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.weather-shell {
    max-width: 1140px;
}

.weather-navbar {
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(203, 213, 225, 0.75);
    backdrop-filter: blur(14px);
}

.weather-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1140px;
    min-height: 72px;
}

.weather-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 750;
    text-decoration: none;
}

.weather-logo:hover {
    color: var(--accent);
}

.weather-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.weather-nav-location {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid #cfe0dd;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #155e57;
    font-size: 13px;
    font-weight: 650;
}

.location-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a394;
    box-shadow: 0 0 0 4px rgba(22, 163, 148, 0.14);
}

.weather-page {
    padding-top: 32px;
}

.weather-hero {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 26px 70px rgba(41, 62, 79, 0.2);
    color: #ffffff;
    isolation: isolate;
}

.weather-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(11, 28, 44, 0.84) 0%, rgba(11, 28, 44, 0.55) 52%, rgba(11, 28, 44, 0.12) 100%),
        linear-gradient(0deg, rgba(6, 20, 32, 0.5) 0%, transparent 45%);
}

.weather-content {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 510px;
    padding: 42px 46px;
}

.weather-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.weather-eyebrow,
.section-kicker {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.weather-eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.weather-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 650;
    letter-spacing: 0;
}

.weather-time {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: rgba(9, 26, 40, 0.22);
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.weather-time-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.35);
}

.weather-main {
    align-self: center;
}

.weather-condition {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 520;
}

.weather-temp {
    margin: 0;
    font-size: clamp(92px, 12vw, 154px);
    font-weight: 580;
    line-height: 0.85;
    letter-spacing: 0;
}

.weather-temp span {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.54em;
    font-weight: 400;
    vertical-align: top;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    max-width: 620px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    background: rgba(9, 26, 40, 0.28);
    backdrop-filter: blur(14px);
}

.weather-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 15px 18px;
}

.weather-detail + .weather-detail {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-detail span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
}

.weather-detail strong {
    font-size: 21px;
    font-weight: 650;
}

.weather-detail small {
    font-size: 12px;
    font-weight: 600;
}

.forecast-section {
    padding: 46px 0 28px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-kicker {
    color: var(--accent);
}

.section-heading h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0;
}

.section-heading > p {
    margin: 0 2px 2px 0;
    color: var(--muted);
    font-size: 13px;
}

.hourly-forecast {
    display: grid;
    grid-auto-columns: minmax(96px, 1fr);
    grid-auto-flow: column;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 16px;
    scrollbar-color: #b5c3cf transparent;
    scrollbar-width: thin;
}

.hour-card {
    min-height: 154px;
    padding: 17px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.82);
    text-align: center;
    box-shadow: 0 8px 24px rgba(63, 83, 98, 0.06);
}

.hour-card-current {
    border-color: #a8d5cd;
    background: var(--accent-soft);
}

.hour-card p {
    margin: 0;
}

.hour-time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.hour-card-current .hour-time {
    color: var(--accent);
}

.hour-icon {
    display: block;
    width: 46px;
    height: 46px;
    margin: 13px auto;
    object-fit: contain;
}

.hour-temp {
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .weather-page {
        padding-top: 18px;
    }

    .weather-hero,
    .weather-content {
        min-height: 480px;
    }

    .weather-content {
        padding: 28px 24px;
    }

    .weather-header {
        flex-direction: column;
        gap: 16px;
    }

    .weather-header h1 {
        font-size: 28px;
    }

    .weather-time {
        align-self: flex-start;
    }

    .weather-temp {
        font-size: 104px;
    }

    .weather-details {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
    }

    .weather-detail {
        padding: 13px 12px;
    }

    .weather-detail strong {
        font-size: 18px;
    }

    .forecast-section {
        padding-top: 34px;
    }
}

@media (max-width: 480px) {
    .weather-nav-content {
        min-height: 64px;
    }

    .weather-logo {
        font-size: 16px;
    }

    .weather-logo img {
        width: 32px;
        height: 32px;
    }

    .weather-nav-location {
        padding: 8px 10px;
        font-size: 12px;
    }

    .weather-hero,
    .weather-content {
        min-height: 450px;
    }

    .weather-content {
        padding: 24px 19px;
    }

    .weather-time {
        gap: 8px;
        padding: 9px 10px;
        font-size: 12px;
    }

    .weather-condition {
        font-size: 19px;
    }

    .weather-temp {
        font-size: 88px;
    }

    .weather-detail {
        padding: 12px 8px;
    }

    .weather-detail span {
        font-size: 10px;
    }

    .weather-detail strong {
        font-size: 16px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .section-heading h2 {
        font-size: 22px;
    }
}
