:root {
  --background: #f5fbff;
  --foreground: #14304a;
  --muted: #57728d;
  --panel-soft: #eaf6ff;
  --line: #c7dcec;
  --blue: #2176b8;
  --blue-dark: #164f91;
  --aqua: #28a9c7;
  --yellow: #f2b544;
  --shadow: 0 18px 50px rgba(24, 86, 132, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #eaf6ff;
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

body::before {
  inset: -14px;
  z-index: -2;
  background: url("vollenhove-background.png") center / cover no-repeat;
  filter: blur(4px) saturate(1.08);
  transform: scale(1.01);
}

body::after {
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 14% 10%, rgba(40, 169, 199, 0.12), transparent 26rem),
    linear-gradient(180deg, rgba(245, 251, 255, 0.56) 0%, rgba(245, 251, 255, 0.74) 44%, rgba(255, 255, 255, 0.86) 100%);
}

.app-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 46px;
}

.hero-section,
.rain-section,
.forecast-section,
.status-panel {
  width: 100%;
  border: 1px solid rgba(112, 157, 190, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(9px);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 220px;
  padding: clamp(26px, 4vw, 46px);
  overflow: hidden;
  position: relative;
}

.hero-section::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -70px;
  width: 280px;
  height: 170px;
  border-radius: 50%;
  background: rgba(40, 169, 199, 0.12);
}

.hero-copy,
.current-weather {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.9rem, 8vw, 6rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.updated {
  margin-bottom: 0;
  color: var(--muted);
}

.current-weather {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: min(100%, 330px);
  padding: 22px;
  border: 1px solid rgba(33, 118, 184, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #e8f7ff);
}

.current-weather strong {
  display: block;
  font-size: clamp(2.5rem, 7vw, 4.7rem);
  line-height: 0.95;
}

.current-weather span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

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

.metric-card,
.forecast-card,
.rain-summary article {
  border: 1px solid rgba(112, 157, 190, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 132px;
  padding: 20px;
}

.metric-card p,
.rain-summary p,
.forecast-card p,
dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.metric-card strong,
.rain-summary strong {
  display: block;
  margin: 5px 0 4px;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  line-height: 1.08;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.metric-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--panel-soft);
  position: relative;
}

.thermo-icon::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 9px;
  width: 8px;
  height: 25px;
  border-radius: 999px;
  background: var(--blue);
}

.thermo-icon::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--aqua);
}

.pressure-icon::before,
.pressure-icon::after {
  content: "";
  position: absolute;
  border: 3px solid var(--blue);
  border-radius: 50%;
}

.pressure-icon::before {
  inset: 9px;
}

.pressure-icon::after {
  left: 23px;
  top: 14px;
  width: 3px;
  height: 17px;
  border: 0;
  border-radius: 2px;
  background: var(--aqua);
  transform: rotate(45deg);
  transform-origin: bottom center;
}

.wind-icon::before,
.wind-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 10px;
  height: 4px;
  border-radius: 999px;
  background: var(--blue);
}

.wind-icon::before {
  top: 16px;
  box-shadow: 7px 10px 0 var(--aqua);
}

.wind-icon::after {
  top: 16px;
  right: 12px;
  width: 12px;
  height: 12px;
  border: 4px solid var(--blue);
  border-left: 0;
  border-bottom: 0;
  background: transparent;
  border-radius: 0 999px 0 0;
}

.rain-section,
.forecast-section {
  margin-top: 16px;
  padding: clamp(18px, 3vw, 30px);
}

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

.rain-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e1f4fb;
  color: var(--blue-dark);
  font-weight: 800;
}

.rain-chart {
  width: 100%;
  overflow-x: auto;
  padding: 4px 0 0;
}

.rain-chart svg {
  display: block;
  width: 100%;
  min-width: 560px;
  height: auto;
  cursor: crosshair;
}

.rain-chart line {
  stroke: var(--line);
  stroke-width: 1;
}

.rain-area {
  fill: rgba(33, 118, 184, 0.58);
}

.rain-line {
  fill: none;
  stroke: var(--blue-dark);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.now-line {
  stroke: #172378 !important;
  stroke-dasharray: 3 3;
  stroke-width: 2 !important;
}

.hover-line {
  stroke: #164f91 !important;
  stroke-width: 2 !important;
  opacity: 0.65;
}

.hover-dot {
  fill: #ffffff;
  stroke: #164f91;
  stroke-width: 3;
}

.rain-hit-point {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

.rain-hit-point:focus-visible {
  fill: rgba(22, 79, 145, 0.18);
  stroke: #164f91;
  stroke-width: 2;
  outline: none;
}

.rain-chart text {
  fill: var(--foreground);
  font-size: 13px;
  font-weight: 700;
}

.now-label {
  fill: #172378 !important;
}

.axis-label {
  text-anchor: middle;
}

.rain-tooltip rect {
  fill: #172378;
}

.rain-tooltip text {
  fill: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-anchor: middle;
}

.rain-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.rain-summary article {
  min-height: 94px;
  padding: 18px;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.forecast-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 14px;
  align-items: start;
  padding: 18px;
}

.forecast-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.65rem;
}

.forecast-icon-box {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(112, 157, 190, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(234, 246, 255, 0.88), rgba(255, 255, 255, 0.82));
  overflow: hidden;
}

.forecast-icon-box .weather-icon {
  justify-self: end;
  width: 76px;
  height: 76px;
  transform: scale(0.66);
  transform-origin: center;
}

.forecast-icon-box .weather-icon.sunny {
  box-shadow: inset -14px -14px 0 rgba(255, 255, 255, 0.24);
}

.forecast-card dl {
  grid-column: 1 / -1;
  display: grid;
  gap: 11px;
  margin: 0;
}

.forecast-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(112, 157, 190, 0.18);
  padding-top: 10px;
}

dd {
  margin: 0;
  color: var(--foreground);
  font-weight: 800;
  text-align: right;
}

.weather-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  position: relative;
}

.weather-icon.sunny {
  background: var(--yellow);
  box-shadow: inset -14px -14px 0 rgba(255, 255, 255, 0.24);
}

.weather-icon.partly,
.weather-icon.cloudy,
.weather-icon.rain,
.weather-icon.storm,
.weather-icon.snow,
.weather-icon.fog {
  background: transparent;
}

.weather-icon.partly::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset -8px -8px 0 rgba(255, 255, 255, 0.22);
}

.weather-icon.partly::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 35px;
  width: 54px;
  height: 24px;
  border-radius: 999px;
  background: #d9ecf8;
  box-shadow: 12px -14px 0 1px #d9ecf8, 28px -7px 0 0 #d9ecf8;
}

.weather-icon.cloudy::before,
.weather-icon.rain::before,
.weather-icon.storm::before,
.weather-icon.snow::before,
.weather-icon.fog::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 32px;
  width: 58px;
  height: 26px;
  border-radius: 999px;
  background: #d9ecf8;
  box-shadow: 13px -15px 0 1px #d9ecf8, 30px -7px 0 0 #d9ecf8;
}

.weather-icon.rain::after,
.weather-icon.storm::after,
.weather-icon.snow::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: 2px;
  width: 6px;
  height: 16px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 16px 0 0 var(--blue), 32px 0 0 var(--blue);
}

.weather-icon.storm::after {
  width: 18px;
  height: 28px;
  left: 30px;
  bottom: 0;
  background: var(--yellow);
  clip-path: polygon(42% 0, 88% 0, 60% 39%, 100% 39%, 28% 100%, 45% 55%, 10% 55%);
  box-shadow: none;
  border-radius: 0;
}

.weather-icon.snow::after {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 16px 0 0 #ffffff, 32px 0 0 #ffffff, 8px 12px 0 #ffffff, 24px 12px 0 #ffffff;
}

.weather-icon.fog::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 9px;
  bottom: 7px;
  height: 4px;
  border-radius: 999px;
  background: #9db8ca;
  box-shadow: 0 9px 0 #c4d6e2, 12px 18px 0 #9db8ca;
}

.status-panel {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin-top: 16px;
  padding: 36px;
  text-align: center;
}

.is-hidden {
  display: none;
}

@media (max-width: 860px) {
  .hero-section,
  .metric-grid,
  .rain-summary,
  .forecast-grid {
    grid-template-columns: 1fr;
  }

  .current-weather {
    width: 100%;
  }

  .metric-card {
    min-height: 116px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 20px, 1160px);
    padding-top: 10px;
  }

  .hero-section,
  .rain-section,
  .forecast-section {
    padding: 18px;
  }

  .current-weather {
    align-items: flex-start;
    padding: 18px;
  }

  .weather-icon {
    width: 62px;
    height: 62px;
  }

  .metric-card {
    padding: 16px;
  }

  .section-heading {
    display: grid;
  }
}
