/* node_modules/normalize.css/normalize.css */
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html {
  -webkit-text-size-adjust: 100%;
  line-height: 1.15;
}

body {
  margin: 0;
}

main {
  display: block;
}

h1 {
  margin: .67em 0;
  font-size: 2em;
}

hr {
  box-sizing: content-box;
  overflow: visible;
  height: 0;
}

pre {
  font-family: monospace;
  font-size: 1em;
}

a {
  background-color: #0000;
}

abbr[title] {
  text-decoration: underline;
  text-decoration: underline dotted;
  border-bottom: none;
}

b, strong {
  font-weight: bolder;
}

code, kbd, samp {
  font-family: monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub, sup {
  position: relative;
  vertical-align: baseline;
  font-size: 75%;
  line-height: 0;
}

sub {
  bottom: -.25em;
}

sup {
  top: -.5em;
}

img {
  border-style: none;
}

button, input, optgroup, select, textarea {
  margin: 0;
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
}

button, input {
  overflow: visible;
}

button, select {
  text-transform: none;
}

button, [type="button"], [type="reset"], [type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

[type="button"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

[type="reset"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring {
  outline: 1px dotted buttontext;
}

[type="button"]:-moz-focusring {
  outline: 1px dotted buttontext;
}

[type="reset"]:-moz-focusring {
  outline: 1px dotted buttontext;
}

[type="submit"]:-moz-focusring {
  outline: 1px dotted buttontext;
}

fieldset {
  padding: .35em .75em .625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  white-space: normal;
  max-width: 100%;
  padding: 0;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"], [type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button {
  height: auto;
}

[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template, [hidden] {
  display: none;
}

/* client/assets/css/style.css */
:root {
  --dark-rgb: 54, 55, 52;
  --light-rgb: 249, 246, 227;
  --primary-rgb: 72, 153, 148;
  --secondary-rgb: 175, 41, 36;
  --tertiary-rgb: 198, 183, 114;
  --neutral-rgb: 176, 171, 147;
  --info-rgb: 100, 174, 200;
  --buncss-light: initial;
  --buncss-dark: ;
  color-scheme: light dark;
  --bg-color: rgb(var(--light-rgb));
  --fg-color: rgb(var(--dark));
  --border-color-components: var(--dark-rgb);
  --link-color: var(--dark-rgb);
}

@media (prefers-color-scheme: dark) {
  :root {
    --buncss-light: ;
    --buncss-dark: initial;
    --bg-color: rgb(var(--dark-rgb));
    --fg-color: rgb(var(--light-rgb));
    --border-color-components: var(--light-rgb);
    --link-color: var(--primary-rgb);
  }
}

body {
  background-color: var(--bg-color);
  color: var(--fg-color);
  font-variant-numeric: lining-nums;
  transition: background-color .8s, color .5s;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.3em;
  font-weight: normal;
  line-height: 1.3;
}

body.light-theme {
  --bg-color: rgb(var(--light-rgb));
  --fg-color: rgb(var(--dark-rgb));
  --border-color-components: var(--dark-rgb);
  --link-color: var(--dark-rgb);
}

body.dark-theme {
  --bg-color: rgb(var(--dark-rgb));
  --fg-color: rgb(var(--light-rgb));
  --border-color-components: var(--light-rgb);
  --link-color: var(--primary-rgb);
}

a {
  color: rgb(var(--link-color));
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

.main-page {
  margin-top: 10rem;
}

.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.article-item {
  padding-bottom: 2rem;
}

.article-item:not(:first-child) {
  border-top: 1px solid rgba(var(--border-color-components), .3);
}

.icon {
  vertical-align: middle;
  fill: currentColor;
  stroke: currentColor;
  display: inline-block;
  width: 1em;
  height: 1em;
}

.article-item + .article-item {
  padding-top: 2rem;
}

.article-header {
  display: flex;
  text-transform: uppercase;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 400;
}

.article-footer {
  display: flex;
  justify-content: space-between;
}

.inline-links {
  display: flex;
  gap: 1rem;
}

.inline-links a {
  display: flex;
  align-items:  center;
  gap: .25rem;
}

.meta-group {
  display: flex;
  align-items:  center;
  gap: .75rem;
  margin-bottom: .75rem;
}

.tag {
  color: rgb(var(--light-rgb));
  background-color: rgb(var(--neutral-rgb));
  text-transform: uppercase;
  border-radius: 999px;
  padding: .25rem .8rem;
  font-size: 1rem;
}

.severity-10 {
  background-color: rgb(var(--secondary-rgb));
}

.severity-20 {
  background-color: rgb(var(--tertiary-rgb));
}

.severity-30 {
  background-color: rgb(var(--primary-rgb));
}

h2 {
  margin: 1.75rem 0;
  font-size: 1.75rem;
  font-weight: 500;
}

.toggle-theme {
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

select {
  border-radius: 2px;
  padding: .25rem .8rem;
}

.main-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 1rem;
  right: 1rem;
}

.main-header > .container {
  display: flex;
  border: 1px solid rgba(var(--border-color-components), .1);
  background-color: rgba(var(--border-color-components), .05);
  --webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 2rem;
}

.date-info {
  display: flex;
  text-align: left;
  flex-direction: column;
}

.modal {
  position: fixed;
  z-index: 200;
  display: flex;
  background-color: rgba(var(--dark-rgb), .6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.modal[hidden] {
  display: none;
}

.modal-content {
  position: relative;
  overflow-y: auto;
  background-color: var(--bg-color);
  border: 1px solid rgba(var(--border-color-components), .2);
  border-radius: 8px;
  max-width: 700px;
  max-height: 80vh;
  margin: 1rem;
  padding: 2rem;
}

.modal-close {
  position: absolute;
  color: var(--fg-color);
  cursor: pointer;
  opacity: .6;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  top: .5rem;
  right: .75rem;
}

.modal-close:hover {
  opacity: 1;
}

.modal-header {
  display: flex;
  text-transform: uppercase;
  flex-direction: column;
  align-items:  flex-start;
  gap: .5rem;
  font-size: 1rem;
}

.modal-title {
  text-transform: uppercase;
  margin: 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 500;
}

.modal-body {
  line-height: 1.6;
}

.modal-trigger {
  cursor: pointer;
}

.weather-card {
  display: inline-flex;
  background-color: rgba(var(--border-color-components), .08);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  vertical-align: middle;
  border-radius: 999px;
  align-items:  center;
  gap: .25rem;
  margin-left: .25rem;
  padding: .2rem .5rem;
  transition: background-color .2s;
  font-size: .85em;
  font-weight: normal;
}

.weather-card:hover {
  background-color: rgba(var(--border-color-components), .15);
  text-decoration: none;
}

.weather-icon {
  stroke: currentColor;
  fill: none;
  width: 1.2em;
  height: 1.2em;
}

.weather-temp {
  font-weight: 600;
}

.weather-detail {
  min-width: 300px;
}

.weather-detail-header {
  margin-bottom: 1.5rem;
}

.weather-detail-header h3 {
  margin: 0 0 .25rem;
  font-size: 1.5rem;
}

.weather-detail-description {
  color: rgba(var(--border-color-components), .7);
  text-transform: capitalize;
  font-size: 1rem;
}

.weather-detail-current {
  display: flex;
  border-bottom: 1px solid rgba(var(--border-color-components), .2);
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

.weather-current-main {
  display: flex;
  align-items:  center;
  gap: .75rem;
}

.weather-icon-large {
  stroke: currentColor;
  fill: none;
  width: 3rem;
  height: 3rem;
}

.weather-temp-current {
  font-size: 2.5rem;
  font-weight: 600;
}

.weather-current-info {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .9rem;
}

.weather-info-row {
  display: flex;
  align-items:  center;
  gap: .5rem;
}

.weather-info-row .icon {
  opacity: .7;
  width: 1.2em;
  height: 1.2em;
}

.weather-forecast h4 {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(var(--border-color-components), .7);
  margin: 0 0 1rem;
  font-size: 1rem;
}

.weather-forecast-day {
  display: flex;
  border-bottom: 1px solid rgba(var(--border-color-components), .1);
  align-items:  center;
  gap: 1rem;
  padding: .75rem 0;
}

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

.forecast-date {
  text-transform: capitalize;
  width: 4.5rem;
  font-size: .9rem;
}

.forecast-temp-range {
  display: flex;
  gap: .5rem;
  width: 5rem;
}

.temp-min {
  color: rgb(var(--info-rgb));
}

.temp-max {
  color: rgb(var(--secondary-rgb));
}

.forecast-precip {
  display: flex;
  flex: 1;
  align-items:  center;
  gap: .5rem;
  min-width: 0;
}

.precip-chance {
  color: rgb(var(--info-rgb));
  width: 2.5rem;
  font-size: .8rem;
}

.precip-bar-container {
  background-color: rgba(var(--border-color-components), .15);
  border-radius: 2px;
  flex: 1;
  max-width: 80px;
  height: 4px;
}

.precip-bar {
  background-color: rgb(var(--info-rgb));
  border-radius: 2px;
  height: 100%;
}

.precip-amount {
  color: rgba(var(--border-color-components), .6);
  font-size: .8rem;
}

.weather-detail-footer {
  border-top: 1px solid rgba(var(--border-color-components), .2);
  color: rgba(var(--border-color-components), .5);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: .8rem;
}

.weather-hourly {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.weather-hourly-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.weather-hourly-city {
  font-size: 1.25rem;
  font-weight: 600;
}

.weather-hourly-label {
  color: rgba(var(--border-color-components), .6);
  text-transform: uppercase;
  font-size: .9rem;
}

.weather-hourly-toggle {
  background-color: rgba(var(--border-color-components), .1);
  border: 1px solid rgba(var(--border-color-components), .2);
  cursor: pointer;
  color: inherit;
  border-radius: 4px;
  padding: .25rem .5rem;
  font-size: .75rem;
}

.weather-hourly-toggle:hover {
  background-color: rgba(var(--border-color-components), .2);
}

.weather-hourly-list {
  display: flex;
  overflow-x: auto;
  justify-content: space-between;
  gap: .5rem;
  padding-bottom: .5rem;
}

.weather-hour {
  display: flex;
  background-color: rgba(var(--border-color-components), .05);
  border-radius: 8px;
  flex-direction: column;
  flex: 1;
  align-items:  center;
  gap: .25rem;
  min-width: 60px;
  padding: .5rem .75rem;
}

.hour-time {
  font-size: .85rem;
  font-weight: 500;
}

.hour-temp {
  font-size: 1.1rem;
  font-weight: 600;
}

.hour-precip {
  color: rgb(var(--info-rgb));
  font-size: .75rem;
}

.weather-hourly-empty {
  color: rgba(var(--border-color-components), .5);
  font-size: .9rem;
}
