html,
body {
  width: 100%;
  height: 100%;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  color: #171411;
  background: #ffffff;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: #171411;
  background: #ffffff;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  line-height: 1.2;
  -webkit-text-size-adjust: 100%;
}

body.page-home,
body.page-weather {
  overflow: hidden;
}

img,
svg {
  display: block;
  border: 0;
}

a {
  color: #171411;
}

button,
input,
select {
  color: #171411;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 16px;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.site-shell {
  width: 600px;
  height: 100%;
  margin: 0 auto;
  padding: 8px 16px 4px 16px;
  background: #ffffff;
  overflow: hidden;
}

.weather-shell {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 8px 16px 4px 16px;
  background: #ffffff;
  overflow: hidden;
}

.home-panel,
.setup-form {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.setup-form {
  margin: 0;
  padding: 0;
}

.home-header:after,
.search-row:after,
.weather-topbar:after,
.weather-hero:after,
.detail-strip:after,
.forecast-list:after,
.weather-meta:after {
  content: "";
  display: block;
  clear: both;
}

.home-header {
  height: 18%;
  margin: 0;
}

.home-brand {
  float: left;
  width: 75%;
}

.home-language {
  float: right;
  width: 23%;
}

.home-title,
.weather-location {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  letter-spacing: -0.06em;
}

.home-title {
  font-size: 48px;
  line-height: 0.96;
}

.home-subtitle {
  margin: 6px 0 0 0;
  color: #625a50;
  font-size: 18px;
  line-height: 1.3;
}

.field-label,
.detail-term,
.settings-link,
.meta-source,
.bookmark-title {
  color: #625a50;
  font-family: "Gill Sans", "Trebuchet MS", Verdana, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-language .field-label {
  display: block;
  margin: 0 0 6px 0;
}

.page-home .field {
  margin-bottom: 2%;
}

.search-row {
  width: 100%;
}

.search-input-slot {
  float: left;
  width: 78%;
}

.search-button-slot {
  float: right;
  width: 20%;
}

.text-input,
.select-input,
.action-button {
  display: block;
  width: 100%;
  height: 44px;
  line-height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #5a554d;
  background: #ffffff;
  color: #171411;
  border-radius: 0;
}

.text-input {
  -webkit-appearance: none;
}

.text-input::-webkit-search-decoration,
.text-input::-webkit-search-cancel-button,
.text-input::-webkit-search-results-button,
.text-input::-webkit-search-results-decoration {
  display: none;
}

.action-button {
  padding: 0;
  font-family: "Gill Sans", "Trebuchet MS", Verdana, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #ffffff;
}

.action-button-primary {
  background: #171411;
  color: #f1ecdf;
}

.action-button[disabled] {
  background: #e8e2d7;
  color: #625a50;
}

.text-input:focus,
.select-input:focus,
.action-button:focus,
.search-result-button:focus,
.settings-link:focus {
  outline: 1px solid #171411;
  background: #f6f2eb;
}

.field-heading {
  margin: 0 0 6px 0;
}

.page-home .field-heading .field-label {
  display: block;
  margin: 0 0 4px 0;
}

.search-feedback {
  margin: 0;
  color: #625a50;
  font-size: 14px;
  line-height: 1.3;
}

.field-results {
  margin-top: 18px;
  height: 57%;
  overflow: hidden;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 90%;
  overflow: auto;
  border: 1px solid #ddd7cd;
  background: #ffffff;
}

.search-result-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #ddd7cd;
  background: #ffffff;
  text-align: left;
}

.search-results li:last-child .search-result-button {
  border-bottom: 0;
}

.search-result-button.is-selected,
.search-result-button:hover {
  background: #f3efe6;
}

.search-result-name {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.search-result-meta {
  display: block;
  margin: 2px 0 0 0;
  color: #625a50;
  font-size: 14px;
  line-height: 1.3;
}

.home-footer {
  height: 11%;
  margin: 0;
}

.submit-row {
  height: 100%;
  margin: 0;
}

.submit-row .action-button {
  height: 100%;
  line-height: 56px;
  font-size: 16px;
}

.weather-panel {
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
}

.weather-topbar {
  height: 7%;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid #5a554d;
  overflow: hidden;
}

.weather-location {
  float: left;
  width: 78%;
  padding-top: 2px;
  font-size: 34px;
  line-height: 1;
}

.settings-link {
  float: right;
  width: 22%;
  padding-top: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: right;
  text-decoration: none;
}

.weather-hero {
  display: table;
  width: 100%;
  height: 45%;
  margin: 0;
  table-layout: fixed;
}

.hero-icon {
  display: table-cell;
  float: none;
  width: 50%;
  color: #171411;
  vertical-align: middle;
}

.weather-icon {
  display: block;
}

.hero-icon svg,
.hero-icon img {
  width: 286px;
  height: auto;
  margin: 0 auto;
}

.hero-reading {
  display: table-cell;
  float: none;
  width: 50%;
  text-align: right;
  vertical-align: middle;
}

.hero-updated {
  margin: 0 0 10px 0;
  color: #625a50;
  font-family: Georgia, "Times New Roman", "Nimbus Roman No9 L", serif;
  font-size: 14px;
}

.temperature-line {
  margin: 0;
  line-height: 0.86;
  white-space: nowrap;
}

.current-temp {
  font-family: Georgia, "Times New Roman", "Nimbus Roman No9 L", serif;
  font-size: 158px;
  letter-spacing: -0.12em;
}

.current-unit {
  display: inline-block;
  padding-left: 4px;
  font-family: Georgia, "Times New Roman", "Nimbus Roman No9 L", serif;
  font-size: 46px;
  vertical-align: top;
}

.current-condition {
  margin: 2px 0 0 0;
  font-size: 40px;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-align: right;
}

.today-range {
  margin: 6px 0 0 0;
  color: #625a50;
  font-family: Georgia, "Times New Roman", "Nimbus Roman No9 L", serif;
  font-size: 18px;
  line-height: 1.1;
  text-align: right;
}

.detail-strip {
  display: table;
  width: 100%;
  height: 10%;
  margin: 0;
  table-layout: fixed;
  border-top: 2px solid #5a554d;
  overflow: hidden;
}

.detail-item {
  display: table-cell;
  float: none;
  width: 25%;
  margin: 0;
  border-left: 1px solid #ddd7cd;
  text-align: center;
  vertical-align: middle;
}

.detail-item:first-child {
  border-left: 0;
}

.detail-term {
  margin: 0;
  padding: 0 2px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.detail-value {
  margin: 3px 0 0 0;
  padding: 0 2px;
  font-family: Georgia, "Times New Roman", "Nimbus Roman No9 L", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
}

.detail-extra {
  color: #625a50;
  font-size: 12px;
  font-weight: 400;
}

.hourly-strip {
  height: 31%;
  overflow: hidden;
  border-top: 2px solid #5a554d;
}

.forecast-list {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.forecast-item {
  float: left;
  width: 25%;
  height: 100%;
  padding: 8px 0 0 0;
  border-left: 1px solid #ddd7cd;
  text-align: center;
  overflow: hidden;
}

.forecast-item:first-child {
  border-left: 0;
}

.forecast-time {
  display: block;
  font-family: Georgia, "Times New Roman", "Nimbus Roman No9 L", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.forecast-icon {
  display: block;
  width: 86px;
  height: 72px;
  margin: 8px auto 6px auto;
  color: #171411;
}

.forecast-icon svg,
.forecast-icon img {
  width: 86px;
  height: 72px;
  margin: 0 auto;
}

.forecast-temp {
  display: block;
  font-family: Georgia, "Times New Roman", "Nimbus Roman No9 L", serif;
  font-size: 30px;
  line-height: 1;
}

.forecast-text {
  display: block;
  margin-top: 4px;
  color: #625a50;
  font-size: 15px;
  line-height: 1.2;
}

.weather-meta {
  display: table;
  width: 100%;
  height: 7%;
  margin: 0;
  padding-top: 0;
  border-top: 2px solid #5a554d;
  overflow: hidden;
  table-layout: fixed;
}

.meta-date,
.meta-sun,
.meta-source {
  margin: 0;
  color: #625a50;
}

.meta-date,
.meta-sun {
  font-family: Georgia, "Times New Roman", "Nimbus Roman No9 L", serif;
  font-size: 16px;
  line-height: 1.1;
}

.meta-date {
  display: table-cell;
  float: none;
  width: 45%;
  vertical-align: middle;
}

.meta-sun {
  display: table-cell;
  float: none;
  width: 35%;
  text-align: center;
  vertical-align: middle;
}

.meta-source {
  display: table-cell;
  float: none;
  width: 20%;
  font-size: 13px;
  text-align: right;
  vertical-align: middle;
}

.error-panel {
  width: 568px;
  height: 654px;
  padding: 220px 16px 0 16px;
  border: 2px solid #1e1a15;
  background: #ffffff;
  text-align: center;
}

.error-title,
.error-copy {
  margin: 0;
}

.error-title {
  font-size: 34px;
  line-height: 1.1;
}

.error-copy {
  margin-top: 10px;
  color: #625a50;
  font-size: 18px;
  line-height: 1.4;
}
