:root {
  --ink: #1d2a4a;
  --ink-soft: #566088;
  --gold: #dc9e52;
  --blue: #5c8fd6;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Work Sans', sans-serif;
  color: var(--ink);
  display: flex;
  justify-content: center;
  padding: 52px 20px;
  position: relative;
  overflow-x: hidden;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(255,214,150,0.55), transparent 60%),
    linear-gradient(170deg, #cfe0f7 0%, #eadcc9 48%, #f3cf9e 75%, #efb98a 100%);
}

.wrap { width: 100%; max-width: 480px; }

header { margin-bottom: 22px; }
.tag { color: var(--gold); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 8px; }
h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 34px;
  margin: 0 0 10px;
  color: #17233f;
}
.desc { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0; max-width: 400px; }

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(29, 42, 74, 0.35);
}
.search-card { margin-bottom: 16px; }

.row { display: flex; gap: 10px; }
input {
  flex: 1;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(29,42,74,0.12);
  border-radius: 12px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
input:focus { outline: none; border-color: var(--gold); }
input::placeholder { color: #9aa3c0; }

button {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 11px 20px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
button:hover { background: #2a3a66; }

.error { color: #c0533f; font-size: 12.5px; margin-top: 10px; }

.result-card { margin-top: 0; }
.place { font-family: 'Fraunces', serif; font-size: 16px; color: var(--ink-soft); margin: 0 0 6px; }

.current { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.temp {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: 68px;
  line-height: 1;
  color: #17233f;
}
.meta { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }

.chart-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin: 0 0 12px; }

.days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: center;
}
.day { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.day .hi { font-size: 12.5px; font-weight: 600; color: var(--gold); }
.day .lo { font-size: 11.5px; color: var(--blue); }
.day .d { font-size: 11px; color: var(--ink-soft); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.03em; }

.track {
  position: relative;
  width: 6px;
  height: 84px;
  background: rgba(29,42,74,0.08);
  border-radius: 4px;
}
.bar {
  position: absolute;
  left: 0; right: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold), var(--blue));
}

footer { margin-top: 24px; text-align: center; }
footer a { color: var(--ink-soft); font-size: 12px; text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 420px) {
  .temp { font-size: 52px; }
  .days { gap: 6px; }
}
