@font-face {
    font-family: Frutiger;
    src: url('../fonts/FrutigerNeueLTPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Frutiger;
    src: url('../fonts/FrutigerNeueLTPro-Bold.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: light;
    --weather-blue: #2e6da1; /*#87b9e2*/
    --weather-ink: #fff;
    font-family: Frutiger, Arial, sans-serif;
    color: var(--weather-ink);
    background: var(--weather-blue);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100dvh;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #142e43;
}

.screen-frame {
    width: min(100vw, calc(100dvh * 16 / 9));
    aspect-ratio: 16 / 9;
    container-type: inline-size;
    background: var(--weather-blue);
}

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

.screen {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.advertisement {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: #567b94;
}

.advertisement img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 51% center;
    display: block;
}

.advertisement::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgb(135 185 226 / 22%);
    pointer-events: none;
}

.ad-label {
    display: none;
    /*
    position: absolute;
    z-index: 1;
    left: 1.5625cqw;
    top: 1.458333cqw;
    padding: 0.416667cqw 0.625cqw;
    font-size: 0.833333cqw;
    letter-spacing: 0.104167cqw;
    background: rgb(20 47 67 / 65%);
     */
}

.weather {
    position: relative;
    height: 100%;
    padding: 3cqw 3cqw 0 5.208333cqw;
}

.current {
    height: 31cqw;
    display: grid;
    grid-template-columns: 35.416667cqw 1fr;
    align-items: start;
}

.hero-icon {
    width: 29cqw;
    height: 29cqw;
    margin: 0.625cqw 0 0 4.79cqw;
}

.current-summary {
    text-align: center;
    padding-top: 2.5cqw;
    min-width: 0;
}

.weekday {
    font-size: 1.770833cqw;
    font-weight: 700;
    letter-spacing: 0.260417cqw;
    text-transform: uppercase;
}

h1 {
    font-size: 4.0625cqw;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 2.395833cqw;
}

.temperature {
    font-size: 7.395833cqw;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 2.291667cqw;
    letter-spacing: -0.260417cqw;
    font-variant-numeric: tabular-nums;
}

.description {
    font-size: 2.5cqw;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 1.40625cqw;
    min-height: 5.520833cqw;
    overflow-wrap: anywhere;
}

.description.compact {
    font-size: 1.875cqw;
}

.condition-source {
    font-size: 0.9375cqw;
    line-height: 1.3;
    margin-top: 0.3125cqw;
}

h2 {
    font-size: 1.510417cqw;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25cqw;
    margin-top: 0.833333cqw;
}

.weather-card {
    min-width: 0;
}

.card-main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 8.333333cqw;
    gap: 0.677083cqw;
}

.card-icon {
    flex: 0 0 8.333333cqw;
    width: 8.333333cqw;
    height: 8.333333cqw;
}

.card-value {
    font-size: 2.239583cqw;
    font-weight: 700;
    line-height: 1.4;
    white-space: pre-line;
    font-variant-numeric: tabular-nums;
}

.card-value.small {
    font-size: 1.822917cqw;
}

.card-label {
    font-size: 1.8cqw;
    line-height: 1.4;
    font-weight: 700;
    margin-top: 0.260417cqw;
}

.card-detail {
    font-size: 1.4cqw;
    line-height: 1.4;
    margin-top: 0.15625cqw;
    min-height: 1.354167cqw;
}

.card-note {
    font-size: 1.3cqw;
    line-height: 1.4;
    margin-top: 0.104167cqw;
    min-height: 1.197917cqw;
}

.weather-footer {
    position: absolute;
    bottom: 0.5cqw;
    left: 5.208333cqw;
    right: 2.1875cqw;
    font-size: 0.78125cqw;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.104167cqw 0.729167cqw;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 0.5em
}

.weather-footer a {
    color: inherit;
    text-underline-offset: 0.15625cqw;
}

.weather-footer .logo {
    height: 2cqw;
}

.status {
    flex-basis: 100%;
    font-size: 0.9cqw;
}

.status[data-state='error'], .status[data-state='stale'] {
    font-weight: 700;
}

.demo-badge {
    position: absolute;
    top: 0.9375cqw;
    left: 5.208333cqw;
    font-size: 0.9375cqw;
    background: #254f71;
    padding: 0.364583cqw 0.625cqw;
    letter-spacing: 0.052083cqw;
}

.demo-badge[hidden] {
    display: none;
}

.sr-only {
    position: absolute;
    width: 0.052083cqw;
    height: 0.052083cqw;
    padding: 0;
    margin: -0.052083cqw;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

noscript p {
    position: fixed;
    bottom: 1.041667cqw;
    left: 38.541667cqw;
    padding: 0.78125cqw;
    background: #254f71;
    font-size: 1.145833cqw;
}

.advertisement img[hidden] {
    display: none;
}

.condition-source,
.status{
    display: none;
}