* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #000;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.4;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
}

a {
  color: #000;
  text-decoration: underline;
}

/* Tools nav */
.tools {
  margin-bottom: 1rem;
  font-style: italic;
}

.tools a {
  display: inline-block;
  margin-right: 1.25rem;
  text-decoration: underline;
}

/* Search form */
.search {
  position: relative;
  margin-bottom: 1.5rem;
  padding-right: 6rem;
}

.search input[type="text"] {
  display: block;
  width: 100%;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.5rem;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-family: inherit;
}

.search button {
  position: absolute;
  top: 0;
  right: 0;
  width: 5.5rem;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.5rem;
  margin: 0;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* Error banner */
.error {
  border: 2px solid #000;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

/* Search results */
.results {
  margin-bottom: 1.5rem;
}

.results h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table td {
  padding: 0.4rem 0.5rem;
  border-top: 2px solid #000;
  vertical-align: top;
}

.results-table tr:first-child td {
  border-top: 0;
}

.results-table .coords {
  text-align: right;
  font-family: monospace;
  white-space: nowrap;
}

.no-results {
  margin: 0;
}

/* Current weather */
.current {
  padding: 0 0 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.current-header {
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  text-align: left;
  overflow: hidden;
}

.location {
  float: left;
  font-weight: bold;
}

.datetime {
  float: right;
  font-family: monospace;
}

.temp {
  font-size: 4rem;
  font-weight: bold;
  line-height: 1;
  margin: 0.5rem 0;
}

.conditions {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.conditions .icon {
  font-size: 1.5rem;
}

.meta {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.meta li {
  display: inline-block;
  margin: 0 0.625rem;
  white-space: nowrap;
}

/* Hourly table */
.hourly {
  border: 2px solid #000;
}

.hourly-table {
  width: 100%;
  border-collapse: collapse;
}

.hourly-table th,
.hourly-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 2px solid #000;
  text-align: left;
}

.hourly-table th {
  border-bottom: 2px solid #000;
  background: #fff;
  font-weight: bold;
}

.hourly-table tbody tr:last-child td {
  border-bottom: 0;
}

.hourly-table .hour {
  font-family: monospace;
  font-weight: bold;
}

.hourly-table .num {
  font-family: monospace;
  white-space: nowrap;
}

.hourly-table .icon {
  text-align: center;
  font-size: 1.2rem;
  width: 2rem;
}
