:root {
  --ink: #2b2118;
  --paper: #f8f2e9;
  --card: #ffffff;
  --crust: #c26a2e;
  --crust-dark: #8f4a1c;
  --sky: #3d6f8e;
  --muted: #6b5d4f;
  --line: #e3d5c3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

.hero h1 {
  font-size: 2rem;
  margin: 0 0 0.25rem;
  color: var(--crust-dark);
}

.tagline { margin: 0 0 1.5rem; color: var(--muted); }

.weather-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 6px rgba(43, 33, 24, 0.06);
}

.weather-card h2, .visit h2 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--crust-dark);
}

.weather-state { color: var(--muted); }

.weather-state--error {
  background: #f6e8dc;
  border: 1px solid var(--crust);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--ink);
}

.weather-error-title { font-weight: bold; margin-top: 0; }

.weather-now {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.weather-temp {
  font-size: 3rem;
  margin: 0.25rem 0;
  line-height: 1;
  color: var(--sky);
}

.weather-desc {
  font-size: 1.25rem;
  margin: 0;
  text-transform: capitalize;
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem 1rem;
  margin: 1rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line);
}

.weather-details dt { color: var(--muted); font-size: 0.85rem; }
.weather-details dd { margin: 0; font-weight: bold; }

.weather-message { font-style: italic; color: var(--sky); }

.weather-updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 0; }

.visit { margin-top: 2rem; }

.footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer a { color: var(--crust-dark); }

a:focus-visible, .weather-card:focus-within {
  outline: 3px solid var(--crust);
  outline-offset: 2px;
}

a:focus-visible { border-radius: 2px; }

@media (max-width: 420px) {
  .hero h1 { font-size: 1.6rem; }
  .weather-temp { font-size: 2.4rem; }
}
