:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #18334a;
  background: #f0f6f9;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.5;
}

.site-header {
  color: white;
  background: linear-gradient(135deg, #102e47 0%, #17617e 100%);
  padding: 3rem 1.5rem 5rem;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border: 1px solid #ffffff55;
  border-radius: 18px;
  background: #ffffff18;
  font-size: 3rem;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-header .eyebrow {
  color: #a9dce9;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.location {
  margin: 0.75rem 0 0;
  color: #d4e9f1;
}

.header-label {
  padding: 0.5rem 0.85rem;
  border: 1px solid #ffffff40;
  border-radius: 999px;
  color: #e4f3f7;
  font-size: 0.8rem;
  white-space: nowrap;
}

main {
  max-width: 1100px;
  margin: -2.5rem auto 0;
  padding: 0 1.5rem 3rem;
  position: relative;
}

.overview {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid #dce9f0;
  border-radius: 22px;
  box-shadow: 0 18px 45px #153c5812;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading .eyebrow {
  color: #197c99;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.025em;
}

.refresh-note {
  color: #627b8d;
  font-size: 0.85rem;
}

.status {
  margin: 1.25rem 0 0;
  color: #526c7d;
}

.conditions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.weather-card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid #dceaf0;
  border-radius: 16px;
  background: #f5f9fb;
}

.temperature-card {
  background: linear-gradient(145deg, #e5f5f9, #f5fbfd);
  border-color: #c4e4ed;
}

.weather-card h3 {
  margin: 0;
  color: #526c7d;
  font-size: 0.95rem;
  font-weight: 600;
}

.reading {
  margin: 0.7rem 0 0;
  color: #123d58;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.card-detail {
  margin: 0.75rem 0 0;
  color: #627b8d;
  font-size: 0.85rem;
}

.data-details {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e4edf2;
  color: #526c7d;
  font-size: 0.9rem;
}

.data-details p {
  margin: 0.35rem 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  color: #627b8d;
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 700px) {
  .site-header {
    padding: 2rem 1rem 4rem;
  }

  .header-inner {
    display: block;
  }

  .brand {
    align-items: flex-start;
    gap: 0.85rem;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 2.2rem;
  }

  .header-label {
    display: none;
  }

  main {
    padding: 0 1rem 2rem;
  }

  .conditions {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .weather-card {
    padding: 1.25rem;
  }

  .reading {
    font-size: 2.5rem;
  }
}


/* NOAA seven-day forecast */

.forecast {
  margin-top: 3rem;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.forecast-card {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid #d7e5ed;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(23, 59, 89, 0.06);
}

.forecast-card h3 {
  margin: 0 0 0.75rem;
  color: #173b59;
  font-size: 1rem;
}

.forecast-temperature {
  margin: 0 0 0.75rem;
  color: #173b59;
  font-size: 1.8rem;
  font-weight: 700;
}

.forecast-description {
  line-height: 1.5;
}

.forecast-detail {
  color: #496579;
  font-size: 0.9rem;
  line-height: 1.5;
}

.forecast-attribution {
  margin-top: 1rem;
  color: #496579;
  font-size: 0.85rem;
}

@media (max-width: 1000px) {
  .forecast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .forecast-grid {
    grid-template-columns: 1fr;
  }
}
