:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #646464;
  background: #0a2031;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #0a2031;
}

.weather-app {
  width: min(360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  text-align: center;
}

.weather-app h1 {
  margin: 16px 0 12px;
  color: #646464;
}

form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#holidays-button,
#daily-quote-button {
  width: 100%;
  margin-top: 8px;
}

#admin-test-panel {
  text-align: left;
}

#admin-test-panel h2 {
  margin-bottom: 12px;
}

#admin-test-panel label {
  display: block;
  margin-bottom: 6px;
}

#test-quote-button {
  width: 100%;
  margin-top: 8px;
}

input,
button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  font: inherit;
}

input {
  width: 100%;
  padding: 0 12px;
  color: #646464;
  background: #fff;
}

button {
  padding: 0 16px;
  color: #646464;
  background: #e8edf3;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #da808c;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.weather-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
}

dialog {
  width: min(440px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #233746;
  background: #fff;
  box-shadow: 0 20px 60px rgb(0 0 0 / 35%);
}

dialog::backdrop {
  background: rgb(0 0 0 / 65%);
}

.quote-dialog-content {
  padding: 28px 24px 24px;
  text-align: center;
}

.quote-dialog-content h2 {
  margin: 0 0 16px;
  color: #0078d7;
  font-size: 22px;
}

.quote-occasion {
  margin: 0 0 8px;
  color: #646464;
  font-size: 0.9em;
  font-weight: 600;
}

.quote-test-date {
  margin: 0 0 8px;
  color: #646464;
  font-size: 0.9em;
}

.quote-dialog-content blockquote {
  margin: 0 0 16px;
  font-size: 1.15em;
  line-height: 1.5;
}

.quote-category {
  margin: 0 0 20px;
  color: #646464;
  font-size: 0.9em;
}

.quote-attribution,
.quote-source {
  margin: 0 0 8px;
  color: #646464;
  font-size: 0.9em;
}

.quote-source {
  margin-bottom: 20px;
}

.quote-source a {
  color: #0078d7;
}

.quote-dialog-content button {
  width: 100%;
}

.weather-card h2 {
  margin: 0 0 8px;
  color: #0078d7;
  font-size: 20px;
}

.weather-card .date {
  margin: 0 0 8px;
  color: #646464;
  text-transform: capitalize;
}

.temperature {
  color: #0078d7;
  font-size: 34px;
  font-weight: 700;
}

.weather-card hr {
  border: 0;
  border-top: 1px solid #dbe1e8;
}

.weather-card p {
  margin: 8px 0;
}

.holiday-entry + .holiday-entry {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dbe1e8;
}

.holiday-entry p {
  margin: 4px 0;
}

.holiday-scope {
  color: #646464;
  font-size: 0.9em;
}

.status {
  margin-top: 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
