:root {
  --bg: #eef7f5;
  --panel: #ffffff;
  --ink: #18201f;
  --muted: #60706d;
  --line: #d5e2df;
  --accent: #0f766e;
  --sun: #f59e0b;
  --rain: #2563eb;
  --shadow: 0 18px 44px rgba(25, 44, 40, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 24px 16px 34px;
}

.hero,
.details,
.forecast-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 3.3rem;
  line-height: 0.95;
}

h2 {
  font-size: 1.35rem;
}

.muted,
.status {
  color: var(--muted);
}

.current {
  display: grid;
  align-content: center;
  min-height: 140px;
  border-radius: 8px;
  background: #102f2d;
  color: #f8fffd;
  padding: 20px;
}

.temperature {
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 14px 0 24px;
  overflow: hidden;
}

.details div {
  display: grid;
  gap: 4px;
  padding: 16px 10px;
  background: #fbfefd;
  text-align: center;
}

.details span {
  font-size: 1.05rem;
  font-weight: 850;
}

.details small {
  color: var(--muted);
  font-size: 0.72rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 760;
}

button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}

.forecast {
  display: grid;
  gap: 10px;
}

.forecast-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #eef7f5;
  font-size: 1.8rem;
}

.forecast-card strong,
.forecast-card span,
.forecast-card small {
  display: block;
}

.forecast-card small {
  color: var(--muted);
  margin-top: 2px;
}

.temps {
  min-width: 78px;
  text-align: right;
  font-weight: 850;
}

.status {
  min-height: 24px;
  margin-top: 16px;
  font-size: 0.92rem;
}

@media (min-width: 700px) {
  .page {
    padding-top: 42px;
  }

  .hero {
    grid-template-columns: 1fr 280px;
    align-items: stretch;
  }

  .forecast {
    grid-template-columns: repeat(2, 1fr);
  }
}
