:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #152b3d;
  background: #edf4f8;
  --muted: #4d6576;
  --line: #dce8ef;
  --accent: #115677;
}

* { box-sizing: border-box; }
body { margin: 0; }
p, h1, h2 { margin: 0; }
.shell { width: min(70rem, calc(100% - 3rem)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-content { min-height: 4.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.1rem; font-weight: 750; color: inherit; text-decoration: none; }
.brand span { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; background: #e3f1f8; color: var(--accent); border-radius: .65rem; font-size: 1.25rem; }
.header-location { color: var(--muted); font-size: .94rem; }
main { padding-block: 1.65rem 2.75rem; }

.hero {
  min-height: 22rem;
  display: grid;
  align-items: center;
  border-radius: 1.45rem;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, #122c40 2%, #122c40 23%, #122c40e8 39%, #122c4055 70%, #122c401a),
    url("warsaw-winter.jpg") right 52% / cover no-repeat,
    #21455e;
}
.hero-content { padding: 2.1rem clamp(1.4rem, 5vw, 3.35rem); }
.eyebrow { color: #b7dbee; font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
h1 { margin-top: .35rem; font-size: clamp(2.25rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -.055em; }
.temperature { margin-top: .8rem; font-size: clamp(3.4rem, 8vw, 5.25rem); letter-spacing: -.085em; line-height: 1.05; font-weight: 650; }
.temperature span { font-size: .48em; vertical-align: .65em; margin-left: .22em; letter-spacing: -.045em; }
.hero-label { margin-top: .3rem; font-weight: 650; }
.hero-description { margin-top: .65rem; color: #d0e3ef; }

.outlook, .climate { margin-top: 1.25rem; padding: clamp(1rem, 3vw, 1.7rem); background: #fff; border: 1px solid var(--line); border-radius: 1.25rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .9rem 1.5rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.15; letter-spacing: -.032em; }
.section-header p, .climate p { margin-top: .35rem; color: var(--muted); }
.periods { display: flex; gap: .2rem; padding: .23rem; margin: 0; min-width: 0; border: 0; border-radius: .72rem; background: #edf4f8; }
.periods label { position: relative; cursor: pointer; }
.periods input, .visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.periods label span { display: block; padding: .53rem .85rem; border-radius: .55rem; font-size: .94rem; font-weight: 650; white-space: nowrap; }
.periods input:checked + span { background: #163c54; color: white; }
.periods input:focus-visible + span, a:focus-visible { outline: 2px solid #08739e; outline-offset: 3px; }
.period-caption { display: flex; justify-content: space-between; gap: .65rem; margin: 1.2rem 0 .6rem; font-weight: 650; }
.period-caption span { font-size: .88rem; color: var(--muted); font-weight: 500; }
.days, .weekdays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.days { list-style: none; margin: 0; padding: 0; }
.days-7, .calendar, .weekdays { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day { padding: .85rem .32rem; border-radius: .75rem; background: #f1f7fa; border: 1px solid #e7f0f4; text-align: center; }
.day > p:first-child { font-size: .9rem; font-weight: 650; }
.day > p:nth-child(3):not(.range) { color: var(--muted); font-size: .88rem; }
.weather-icon { display: block; color: #567d95; font-family: "Segoe UI Symbol", sans-serif; font-size: 2.35rem; line-height: 1.25; margin: .25rem 0; }
.weather-icon.snow { color: #22779c; }
.weather-icon.clear { color: #976707; }
.range { color: #16384e; margin-top: .4rem; font-size: 1.25rem; font-weight: 750; white-space: nowrap; }
.range span { margin-left: .18em; color: #4c6475; font-weight: 500; }
.weekdays { margin-bottom: .5rem; text-align: center; font-size: .88rem; color: var(--muted); }
.calendar > :first-child { grid-column-start: 5; }
.calendar .day { padding-block: .55rem; }
.calendar .weather-icon { font-size: 1.6rem; }
.calendar .range { font-size: 1rem; }
.climate { display: grid; grid-template-columns: .8fr 1.3fr; align-items: start; gap: 1rem 2rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: .45rem .35rem; text-align: left; }
thead th { font-size: .875rem; color: var(--muted); }
tbody tr { border-top: 1px solid var(--line); }
tbody th { font-weight: 650; }

@media (max-width: 58rem) {
  .days-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 42rem) {
  .shell { width: calc(100% - 1.5rem); }
  .header-content { min-height: 3.8rem; }
  main { padding-top: .85rem; }
  .hero {
    min-height: 19rem;
    background-position: center, 63% center;
    background-image: linear-gradient(90deg, #122c40ef, #122c409d 65%, #122c4066), url("warsaw-winter.jpg");
  }
  .header-location { font-size: .85rem; }
  .days-7 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .climate { grid-template-columns: 1fr; }
  .calendar, .weekdays { gap: .2rem; }
  .calendar .day { padding-inline: 0; }
  .calendar .range { font-size: .875rem; white-space: normal; }
  .calendar .range span { display: block; margin: 0; }
  .day > p:first-child, .day > p:nth-child(3):not(.range) { font-size: .875rem; }
}
