* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #fff;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
}

button,
input {
  color: #000;
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
p {
  margin-top: 0;
}

.app-shell {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  width: 100%;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding: 12px 22px 8px;
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.utility-bar,
.utility-actions,
.current-weather,
.current-facts,
.hourly-row,
.forecast-day,
.card-heading,
.footer,
.settings-header,
.search-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}

.utility-bar,
.settings-header,
.footer {
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.utility-bar {
  height: 42px;
  min-height: 42px;
  border-bottom: 2px solid #000;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
}

.status-panel {
  max-width: 55%;
  overflow: hidden;
  padding-top: 8px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border: 2px solid #000;
  border-radius: 50%;
  background: #000;
}

.status-panel.is-ok .status-dot {
  background: #fff;
}

.utility-actions {
  white-space: nowrap;
}

.utility-button,
.primary-button,
.location-result {
  min-height: 34px;
  border: 2px solid #000;
  border-radius: 5px;
  background: #fff;
  font-weight: bold;
}

.utility-button {
  margin-left: 7px;
  padding: 5px 10px;
  font-size: 13px;
}

.utility-button:active,
.primary-button:active,
.location-result:active {
  background: #000;
  color: #fff;
}

.hero {
  height: 238px;
  min-height: 238px;
  padding: 10px 0 9px;
  text-align: center;
}

.hero-heading h1 {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  font-size: 34px;
  font-weight: normal;
  line-height: 1.04;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-heading p {
  margin: 3px 0 0;
  color: #333;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.current-weather {
  height: 132px;
  min-height: 132px;
  margin-top: 2px;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.weather-icon {
  line-height: 0;
}

.weather-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  stroke: #000;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.current-icon {
  width: 102px;
  height: 102px;
  margin-right: 16px;
}

.current-reading {
  min-width: 205px;
  text-align: left;
}

.current-temperature {
  margin: 0 0 -7px;
  font-size: 116px;
  font-weight: normal;
  line-height: 0.78;
  letter-spacing: -0.09em;
}

.current-reading h2 {
  max-width: 260px;
  margin: 0;
  overflow: hidden;
  font-size: 21px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-high-low {
  margin: 3px 0 0;
  font-size: 15px;
}

.hero-high-low strong {
  font-weight: normal;
}

.current-facts {
  height: 49px;
  border-top: 1px solid #777;
  border-bottom: 1px solid #777;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.fact {
  width: 22%;
  padding: 6px 7px 4px;
  border-right: 1px solid #aaa;
  text-align: center;
}

.fact-wide {
  width: 34%;
  border-right: 0;
}

.fact span,
.fact strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fact span {
  margin-bottom: 2px;
  color: #444;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact strong {
  font-size: 16px;
}

.forecast-card {
  overflow: hidden;
  border: 2px solid #000;
  border-radius: 12px;
  background: #f2f2f2;
}

.hourly-panel {
  height: 182px;
  min-height: 182px;
  margin-bottom: 9px;
}

.card-heading {
  min-height: 38px;
  padding: 8px 13px 7px;
  border-bottom: 1px solid #888;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.hourly-heading-row {
  height: 47px;
  padding-top: 6px;
  padding-bottom: 5px;
}

.today-summary {
  display: -webkit-box;
  max-height: 34px;
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.28;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hourly-row {
  width: 100%;
  height: 131px;
  table-layout: fixed;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
  align-items: stretch;
}

.hour-card {
  width: 16.666%;
  min-width: 0;
  padding: 8px 3px 5px;
  border-right: 1px solid #aaa;
  text-align: center;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
}

.hour-card:last-child {
  border-right: 0;
}

.hour-time,
.hour-temp,
.hour-rain {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hour-time {
  height: 18px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.hour-icon {
  width: 44px;
  height: 44px;
  margin: 1px auto 0;
}

.hour-icon svg {
  stroke-width: 4;
}

.hour-temp {
  margin-top: 1px;
  font-size: 23px;
}

.hour-rain {
  margin-top: 1px;
  color: #333;
  font-size: 11px;
  font-weight: bold;
}

.daily-panel {
  min-height: 198px;
  margin-bottom: 5px;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
}

.daily-panel .card-heading {
  height: 38px;
}

.calendar-mark {
  margin-right: 8px;
  font-size: 19px;
  line-height: 1;
}

.card-heading h2 {
  margin: 0;
  color: #222;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.daily-rows {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  height: calc(100% - 38px);
  min-height: 0;
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.forecast-day {
  min-height: 39px;
  padding: 2px 12px;
  border-bottom: 1px solid #aaa;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.forecast-day:last-child {
  border-bottom: 0;
}

.day-name {
  width: 72px;
  font-size: 17px;
  font-weight: bold;
}

.day-icon {
  width: 38px;
  height: 38px;
  margin-right: 10px;
}

.day-icon svg {
  stroke-width: 4.2;
}

.day-low,
.day-high {
  width: 42px;
  font-size: 16px;
  text-align: center;
}

.day-low {
  color: #555;
}

.forecast-range {
  position: relative;
  height: 8px;
  margin: 0 10px;
  border: 1px solid #777;
  border-radius: 5px;
  background: #fff;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
}

.range-fill {
  position: absolute;
  top: -1px;
  height: 8px;
  border-radius: 5px;
  background: #333;
}

.current-marker {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 14px;
  margin-left: -2px;
  border: 1px solid #000;
  background: #fff;
}

.day-rain {
  width: 48px;
  color: #444;
  font-size: 11px;
  font-weight: bold;
  text-align: right;
}

.footer {
  height: 24px;
  min-height: 24px;
  overflow: hidden;
  color: #333;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.02em;
  line-height: 22px;
  white-space: nowrap;
}

.data-credit {
  color: #666;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.settings-panel {
  display: none;
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  padding: 24px;
  background: #fff;
}

.settings-panel.is-visible {
  display: block;
}

.settings-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 22px;
  border: 3px solid #000;
}

.settings-header {
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
}

.settings-header h2 {
  margin: 0;
  font-size: 30px;
}

.eyebrow {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.location-form {
  margin-top: 24px;
}

.location-form label,
.units-fieldset legend {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-row input {
  display: block;
  min-width: 0;
  min-height: 50px;
  padding: 9px 11px;
  border: 2px solid #000;
  border-right: 0;
  border-radius: 5px 0 0 5px;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  font-size: 20px;
}

.primary-button {
  padding: 9px 19px;
  border-radius: 0 5px 5px 0;
  background: #000;
  color: #fff;
}

.units-fieldset {
  margin: 20px 0 0;
  padding: 13px;
  border: 2px solid #000;
}

.units-fieldset label {
  display: inline-block;
  margin-right: 25px;
  font-size: 17px;
}

.units-fieldset input {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.search-status {
  margin: 20px 0 11px;
  font-weight: bold;
}

.location-result {
  display: block;
  width: 100%;
  margin-bottom: 9px;
  padding: 12px 15px;
  text-align: left;
}

.location-result strong,
.location-result span {
  display: block;
}

.location-result strong {
  font-size: 19px;
}

.location-result span {
  margin-top: 3px;
  font-size: 14px;
  font-weight: normal;
}

@media (max-width: 480px) {
  .app-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero-heading h1 {
    font-size: 30px;
  }

  .current-icon {
    width: 86px;
    height: 86px;
    margin-right: 9px;
  }

  .current-reading {
    min-width: 176px;
  }

  .current-temperature {
    font-size: 100px;
  }

  .current-reading h2 {
    max-width: 190px;
    font-size: 18px;
  }

  .day-name {
    width: 58px;
    font-size: 15px;
  }

  .day-icon {
    width: 34px;
    height: 34px;
    margin-right: 5px;
  }

  .forecast-range {
    margin-right: 5px;
    margin-left: 5px;
  }

  .day-rain {
    width: 38px;
    font-size: 10px;
  }
}

@media (max-height: 720px) {
  .app-shell {
    padding-top: 7px;
    padding-bottom: 4px;
  }

  .utility-bar {
    height: 37px;
    min-height: 37px;
  }

  .utility-button {
    min-height: 30px;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .status-panel {
    padding-top: 6px;
  }

  .hero {
    height: 207px;
    min-height: 207px;
    padding-top: 6px;
  }

  .hero-heading h1 {
    font-size: 29px;
  }

  .current-weather {
    height: 109px;
    min-height: 109px;
  }

  .current-icon {
    width: 80px;
    height: 80px;
  }

  .current-temperature {
    font-size: 94px;
  }

  .current-facts {
    height: 45px;
  }

  .hourly-panel {
    height: 164px;
    min-height: 164px;
    margin-bottom: 6px;
  }

  .hourly-heading-row {
    height: 41px;
    min-height: 41px;
  }

  .hourly-row {
    height: 119px;
  }

  .hour-card {
    padding-top: 5px;
  }

  .hour-icon {
    width: 38px;
    height: 38px;
  }

  .daily-panel {
    min-height: 184px;
  }

  .footer {
    height: 20px;
    min-height: 20px;
    line-height: 18px;
  }
}
