/* 구형 iOS Safari 호환: CSS 변수/grid 미사용, flex 대신 table/inline-block */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  color: #eee;
  overflow: hidden;
  font-family: "HelveticaNeue-Light", "Helvetica Neue", "Apple SD Gothic Neo", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  cursor: default;
}

#wrap {
  position: relative;
  padding: 1.2rem 1.5rem 0;
  text-align: center;
}

#date {
  font-size: 1.7rem;
  color: #999;
  letter-spacing: 0.05em;
}

#clock {
  font-family: "HelveticaNeue-Medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  margin: 0.3rem 0 0.6rem;
  color: #fff;
}
#hm {
  font-size: 10.5rem;
  letter-spacing: -0.02em;
}
#sec {
  font-size: 3rem;
  color: #666;
  margin-left: 0.6rem;
  display: inline-block;
  width: 3.6rem;
  text-align: left;
}
#ampm {
  font-size: 2.4rem;
  color: #888;
  margin-right: 0.6rem;
}

#now {
  white-space: nowrap;
  margin-bottom: 1.2rem;
}
#now-icon, #now-temp, #now-info {
  display: inline-block;
  vertical-align: middle;
}
#now-icon {
  font-size: 4.2rem;
  margin-right: 0.8rem;
}
#now-temp {
  font-size: 5rem;
  font-weight: 200;
  margin-right: 1.2rem;
}
#now-info {
  text-align: left;
}
#now-desc {
  display: block;
  font-size: 1.9rem;
  color: #ddd;
}
#now-detail {
  display: block;
  font-size: 1.25rem;
  color: #888;
  margin-top: 0.3rem;
}

.strip {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0 auto 0.6rem;
}
.strip td {
  text-align: center;
  vertical-align: top;
  padding: 0.5rem 0;
  border-left: 1px solid #1c1c1c;
}
.strip td:first-child {
  border-left: 0;
}
#hourly {
  border-top: 1px solid #1c1c1c;
}
#daily {
  border-top: 1px solid #1c1c1c;
}
.s-label {
  display: block;
  font-size: 1.15rem;
  color: #888;
}
.s-icon {
  display: block;
  font-size: 2.2rem;
  line-height: 1.3;
}
.s-temp {
  display: block;
  font-size: 1.35rem;
  color: #ddd;
}
.s-lo {
  color: #6a8fb5;
}
.s-hi {
  color: #d9866b;
}
.s-pop {
  display: block;
  font-size: 1rem;
  color: #5a9bd5;
  height: 1.3rem;
}
.sun { color: #d9866b; }
.sat { color: #6a8fb5; }

.pm-good { color: #5a9bd5; }
.pm-ok { color: #6fbf73; }
.pm-bad { color: #e0a040; }
.pm-worst { color: #e05050; }

/* 세로 모드: 상세 정보를 아래 줄로 내리고 전체를 조금 아래로 */
@media (orientation: portrait) {
  #wrap { padding-top: 5rem; }
  #hm { font-size: 11rem; }
  #now { margin-bottom: 2rem; }
  #now-detail { white-space: normal; }
  #now-info { max-width: 22rem; }
  .strip { margin-bottom: 1.5rem; }
}

#status {
  font-size: 0.95rem;
  color: #444;
}
