:root {
  --ink: #10202b;
  --ink-soft: rgba(16, 32, 43, 0.62);
  --ink-faint: rgba(16, 32, 43, 0.4);
  --card: rgba(255, 255, 255, 0.34);
  --card-border: rgba(255, 255, 255, 0.55);
  --sky-a: #bfe3ff;
  --sky-b: #eaf6ff;
  --accent: #1c4f6b;
  transition: color .8s ease;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 6vw;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--sky-a) 0%, var(--sky-b) 55%, var(--sky-a) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 80% 8%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(ellipse 50% 35% at 12% 92%, rgba(255,255,255,0.35), transparent 60%);
  pointer-events: none;
}

.page {
  width: 100%;
  max-width: 620px;
}

.eyebrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2.2rem;
}

.eyebrow .place {
  font-weight: 600;
  color: var(--ink-soft);
}

.hero {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 3vw, 2rem);
  justify-content: space-between;
}

.temp-block {
  display: flex;
  align-items: flex-start;
  line-height: 0.82;
}

.temp {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 340;
  font-size: clamp(5.5rem, 17vw, 10.5rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.deg {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 340;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

.icon-wrap {
  flex-shrink: 0;
  width: clamp(64px, 12vw, 96px);
  height: clamp(64px, 12vw, 96px);
  color: var(--accent);
}
.icon-wrap svg { width: 100%; height: 100%; }

.condition {
  margin-top: 0.6rem;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 500;
  color: var(--ink);
}

.condition .range {
  font-weight: 400;
  color: var(--ink-soft);
}

.stats {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.stat {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 0.95rem 0.5rem;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.stat .label {
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.35rem;
}

.stat .value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.hourly {
  margin-top: 2.4rem;
  display: flex;
  justify-content: space-between;
  gap: 0.3rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.1rem 0.8rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hour {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}

.hour .h-time {
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.hour .h-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.hour .h-icon svg { width: 100%; height: 100%; }

.hour .h-temp {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

footer {
  margin-top: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

footer .sun-times span {
  margin-right: 1.1rem;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  margin-right: 0.4rem;
  vertical-align: middle;
}

@media (max-width: 480px) {
  .hero { flex-direction: row; align-items: center; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  footer { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

.fade-in {
  animation: fadeIn 1s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
