* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #f3f6f8;
  color: #173044;
  font: 15px/1.4 "Segoe UI", "Helvetica Neue", sans-serif;
  overflow-x: hidden;
}

h1,
p {
  margin: 0;
}

.card {
  width: 100%;
  max-width: 340px;
  min-height: 100%;
  padding: 16px 16px 14px;
  background: #fff;
  border-right: 1px solid #d5e0ea;
}

.eyebrow {
  margin-bottom: 4px;
  color: #1f5f99;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  color: #173044;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.region {
  margin-top: 3px;
  color: #4d6274;
  font-size: 13px;
}

#panel {
  margin-top: 16px;
}

.loading {
  color: #4d6274;
  font-size: 14px;
}

.now {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.icon svg {
  display: block;
  width: 48px;
  height: 48px;
}

.condition {
  color: #173044;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.temps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 6px;
}

.temp-k {
  display: block;
  color: #4d6274;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.temp-v {
  color: #173044;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.precip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e1e8ee;
}

.precip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4d6274;
  font-size: 13px;
  font-weight: 600;
}

.precip-label svg {
  display: block;
  width: 14px;
  height: 14px;
}

.precip-value {
  color: #173044;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.notice {
  padding: 12px;
  background: #fff6e8;
  border: 1px solid #e6c48a;
  border-radius: 12px;
}

.notice-title {
  color: #3d2910;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.notice-copy {
  margin-top: 6px;
  color: #4a3416;
  font-size: 14px;
  line-height: 1.45;
}

.notice code {
  padding: 0 0.28em;
  background: rgba(92, 58, 12, 0.1);
  border-radius: 4px;
  color: #3d2910;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.problem {
  padding: 12px;
  background: #f4f7f9;
  border: 1px solid #d5e0ea;
  border-radius: 12px;
}

.problem .notice-title,
.problem .notice-copy {
  color: #173044;
}

.foot {
  margin-top: 16px;
  color: #4d6274;
  font-size: 12px;
}

@media (max-width: 220px) {
  .now {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 16px;
  }
}
