:root{
  --text:#15171c;
  --muted:#777f8d;
  --line:rgba(15,23,42,.1);
  --card:#fff;
  --soft:#f3f6fb;
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:22px;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:linear-gradient(160deg,#7c8dff 0%,#eef4ff 54%,#fff 100%);
}

.weather-card{
  width:min(100%,430px);
  padding:20px;
  border:1px solid var(--line);
  border-radius:24px;
  background:rgba(255,255,255,.96);
  box-shadow:0 26px 70px rgba(44,62,145,.24);
  backdrop-filter:blur(18px);
  animation:in .45s ease both;
}

.search{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  margin-bottom:18px;
}

.search input{
  min-width:0;
  height:42px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:0 13px;
  font-size:15px;
  outline:none;
  background:#fff;
}

.search button{
  height:42px;
  border:0;
  border-radius:14px;
  padding:0 14px;
  color:#fff;
  font-weight:800;
  background:#111827;
}

.top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
}

.place{
  margin:0 0 4px;
  font-size:14px;
  font-weight:800;
}

.temp{
  display:flex;
  align-items:flex-start;
  gap:8px;
}

.temp span{
  font-size:54px;
  line-height:.9;
  font-weight:850;
  letter-spacing:-2px;
}

.temp small{
  padding-top:7px;
  color:#606775;
  font-weight:800;
}

.temp button{
  border:0;
  padding:0;
  background:transparent;
  color:#8b93a0;
  font:inherit;
}

.temp button.active{color:#111827}

#icon{
  width:76px;
  height:76px;
  animation:float 3.6s ease-in-out infinite;
}

.desc{
  margin:18px 0 16px;
  font-size:15px;
  line-height:1.45;
}

.days{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  overflow:hidden;
  border-radius:14px;
  background:var(--soft);
}

.day{
  text-align:center;
  padding:10px 3px;
  font-size:12px;
  font-weight:800;
}

.day img{
  width:25px;
  height:25px;
  margin:5px 0 2px;
}

.hi{display:block;font-size:15px}
.lo{display:block;margin-top:3px;color:#a0a6b0}

.label{
  margin-top:18px;
  font-size:14px;
  font-weight:850;
}

.chart{
  width:100%;
  height:auto;
  margin-top:8px;
  display:block;
}

.line{
  fill:none;
  stroke:#15171c;
  stroke-width:4;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.dot{
  fill:#15171c;
  stroke:#fff;
  stroke-width:4;
}

.chart-temp{
  font-size:22px;
  font-weight:850;
  fill:#252932;
  text-anchor:middle;
}

.chart-time{
  font-size:18px;
  font-weight:650;
  fill:#8b93a0;
  text-anchor:middle;
}

.stamp{
  margin:8px 0 0;
  font-size:12px;
  color:#98a1af;
  text-align:right;
}

.loading{opacity:.68}

@keyframes in{
  from{transform:translateY(16px);opacity:0}
  to{transform:translateY(0);opacity:1}
}

@keyframes float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}

@media(max-width:430px){
  body{padding:14px}
  .weather-card{padding:17px;border-radius:21px}
  .days{grid-template-columns:repeat(3,minmax(0,1fr))}
}
