@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/assets/fonts/Mulish-VariableFont_wght.woff2") format("woff2");
}

@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/CrimsonPro-VariableFont_wght.woff2") format("woff2");
}

:root {
  --paper: #f3f2ec;
  --surface: #ffffff;
  --ink: #172321;
  --muted: #62706d;
  --faint: #687572;
  --line: #d8ddda;
  --line-strong: #b7c1bd;
  --teal: #245b5c;
  --teal-dark: #183f40;
  --green: #337557;
  --orange: #cc6840;
  --header-height: 66px;
  --page-width: 1180px;
  --sans: "Mulish", "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Crimson Pro", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}

button {
  font: inherit;
}

.visually-hidden,
.skip-link {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link:focus {
  background: var(--surface);
  border: 2px solid var(--teal);
  clip: auto;
  clip-path: none;
  height: auto;
  left: 12px;
  padding: 10px 14px;
  top: 12px;
  width: auto;
  z-index: 100;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.site-header {
  background: rgba(243, 242, 236, 0.97);
  border-bottom: 1px solid var(--line-strong);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  height: var(--header-height);
  margin: 0 auto;
  max-width: var(--page-width);
  padding: 0 24px;
}

.wordmark {
  align-items: center;
  display: inline-flex;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-mark {
  flex: 0 0 auto;
  height: 36px;
  margin-right: 10px;
  width: 36px;
}

.wordmark-number {
  color: var(--teal-dark);
  font-size: 29px;
  font-weight: 800;
}

.wordmark-name {
  color: var(--ink);
  font-size: 25px;
  font-weight: 430;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--teal);
}

.unit-switch {
  border: 1px solid var(--line-strong);
  display: inline-grid;
  grid-template-columns: repeat(2, 40px);
  margin-left: 4px;
}

.unit-link {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
}

.unit-link + .unit-link {
  border-left: 1px solid var(--line-strong);
}

.unit-link:hover {
  background: #e8ebe7;
  color: var(--ink);
}

.unit-link.is-active {
  background: var(--teal-dark);
  color: #fff;
}

.page-frame,
.footer-inner {
  margin: 0 auto;
  max-width: var(--page-width);
  padding-left: 24px;
  padding-right: 24px;
}

.alert-bar {
  border-bottom: 1px solid var(--line-strong);
  min-height: 74px;
  padding: 15px 0;
}

.alert-summary {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.alert-bar h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}

.alert-bar p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.alert-link {
  align-items: center;
  color: var(--teal);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
  letter-spacing: 0.025em;
  text-underline-offset: 4px;
}

.alert-link svg {
  fill: none;
  flex: 0 0 auto;
  height: 13px;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 13px;
}

.alert-list {
  border-top: 1px solid var(--line);
  margin-top: 14px;
}

.weather-alert {
  display: grid;
  gap: 24px;
  grid-template-columns: 220px minmax(0, 1fr);
  padding: 14px 0;
}

.weather-alert + .weather-alert {
  border-top: 1px solid var(--line);
}

.weather-alert h3 {
  font-size: 12px;
  line-height: 1.4;
}

.weather-alert h3 a {
  color: #a03f35;
  text-underline-offset: 3px;
}

.weather-alert p {
  color: var(--ink);
  font-size: 13px;
  margin: 0;
}

.content-section {
  padding: 40px 0 0;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 23px;
}

.section-heading h1,
.section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.primary-condition {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--teal);
}

.primary-condition-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 19px 24px 18px;
}

.primary-condition-header h2,
.station-card-header h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.017em;
}

.primary-condition-header h2 {
  font-size: 23px;
  line-height: 1.2;
}

.observation-time {
  color: var(--faint);
  font-size: 11px;
  line-height: 1.35;
}

.primary-condition-header .observation-time {
  padding-top: 3px;
  text-align: right;
  white-space: nowrap;
}

.primary-condition-body {
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(470px, 1.35fr);
  min-height: 218px;
}

.temperature-lockup {
  align-items: center;
  display: flex;
  gap: 20px;
  padding: 27px 24px;
}

.primary-weather-icon {
  flex: 0 0 auto;
  height: 94px;
  image-rendering: auto;
  object-fit: contain;
  width: 94px;
}

.primary-temperature {
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 82px);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.9;
  white-space: nowrap;
}

.condition-name {
  font-size: 18px;
  font-weight: 650;
  margin-top: 12px;
}

.feels-like {
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}

.feels-like strong {
  color: inherit;
  font-weight: 700;
}

.measurement-grid {
  border-left: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.measurement-grid > div {
  align-content: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  min-height: 72px;
  padding: 13px 21px;
}

.measurement-grid > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.measurement-grid > div:last-child {
  border-bottom: 0;
  grid-column: 1 / -1;
}

.measurement-grid dt,
.station-measurements dt,
.hour-card dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.025em;
}

.measurement-grid dd {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
  margin-top: 3px;
}

.station-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin-top: 14px;
}

.station-card {
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
  padding: 18px 19px;
}

.station-card-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 62px;
}

.station-card-header h2 {
  font-size: 18px;
  line-height: 1.2;
}

.station-weather-icon {
  flex: 0 0 auto;
  height: 54px;
  object-fit: contain;
  width: 54px;
}

.station-reading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 6px;
  padding-bottom: 14px;
}

.station-temperature {
  font-family: var(--serif);
  font-size: 38px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.station-reading > div > p:last-child {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}

.station-reading .observation-time {
  max-width: 95px;
  padding-bottom: 2px;
  text-align: right;
}

.station-measurements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 9px;
}

.station-measurements > div {
  min-width: 0;
  padding: 5px 8px 5px 0;
}

.station-measurements dd {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  margin-top: 1px;
  overflow-wrap: anywhere;
}

.hourly-section {
  overflow: hidden;
}

.hourly-scroll {
  border: 1px solid var(--line-strong);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.hourly-scroll:focus-visible {
  outline-offset: 4px;
}

.hourly-list {
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  list-style: none;
  margin: 0;
  min-width: 960px;
  padding: 0;
}

.hour-card {
  min-width: 0;
  padding: 15px 14px 14px;
}

.hour-card + .hour-card {
  border-left: 1px solid var(--line);
}

.hour-period {
  color: var(--teal);
  display: block;
  font-size: 12px;
  font-weight: 750;
}

.hour-card > img {
  height: 50px;
  margin: 14px 0 9px;
  object-fit: contain;
  width: 50px;
}

.hour-temperature {
  font-family: var(--serif);
  font-size: 29px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.hour-condition {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  min-height: 31px;
  padding-top: 5px;
}

.hour-feels-like {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  min-height: 17px;
  margin-top: 2px;
  white-space: nowrap;
}

.hour-feels-like strong {
  font-weight: 700;
}

.hour-card dl {
  border-top: 1px solid var(--line);
  margin-top: 9px;
  padding-top: 8px;
}

.hour-card dl > div {
  display: grid;
  gap: 4px;
  grid-template-columns: 40px minmax(0, 1fr);
  margin-top: 3px;
}

.hour-card dd {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
  min-width: 0;
  white-space: normal;
}

.forecast-section {
  padding-bottom: 72px;
}

.forecast-section-heading {
  align-items: end;
}

.forecast-update {
  color: var(--muted);
  font-size: 11px;
  padding-bottom: 3px;
  text-align: right;
}

.forecast-update strong {
  color: var(--ink);
  display: block;
  font-weight: 700;
  margin-top: 2px;
}

.outlook {
  align-items: start;
  background: var(--teal-dark);
  color: #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: 112px minmax(0, 1fr);
  padding: 22px 26px;
}

.outlook h3 {
  color: #adc9c5;
  font-size: 14px;
  font-weight: 650;
  padding-top: 5px;
}

.outlook > p {
  font-family: var(--serif);
  font-size: clamp(21px, 2.8vw, 30px);
  letter-spacing: -0.022em;
  line-height: 1.3;
  max-width: 900px;
}

.forecast-list {
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.forecast-item {
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  gap: 16px;
  grid-template-columns: 64px minmax(0, 1fr);
  min-width: 0;
  padding: 21px 24px;
  position: relative;
}

.forecast-night {
  border-left: 1px solid var(--line);
}

.forecast-item h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  grid-column: 1 / -1;
}

.forecast-item img {
  align-self: center;
  height: 60px;
  object-fit: contain;
  width: 60px;
}

.forecast-item p {
  align-self: center;
  font-size: 14px;
  line-height: 1.55;
  max-width: 440px;
}

.forecast-day {
  grid-column: 1;
}

.forecast-night {
  background: rgba(36, 91, 92, 0.035);
  grid-column: 2;
}

@media (min-width: 601px) {
  .forecast-night:first-child,
  .forecast-day:last-child {
    border-left: 0;
    grid-column: 1 / -1;
  }
}

.unavailable {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 20px;
}

.site-footer {
  background: var(--teal-dark);
  color: #fff;
}

.site-footer :focus-visible {
  outline-color: #fff;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  min-height: 110px;
}

.sun-times {
  align-items: center;
  display: flex;
  gap: 22px;
}

.sun-times p {
  display: grid;
}

.sun-times p span {
  color: #adc9c5;
  font-size: 11px;
  font-weight: 600;
}

.sun-times p strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin-top: 1px;
}

.sun-times-divider {
  background: #527777;
  height: 36px;
  width: 1px;
}

.data-sources {
  color: #adc9c5;
  font-size: 11px;
  line-height: 1.9;
  text-align: right;
}

.data-sources a {
  color: #fff;
  text-underline-offset: 3px;
}

.data-sources span {
  padding: 0 5px;
}

@media (max-width: 1020px) {
  .primary-condition-body {
    grid-template-columns: minmax(300px, 0.8fr) minmax(390px, 1fr);
  }

  .forecast-item {
    gap: 12px;
    grid-template-columns: 54px minmax(0, 1fr);
    padding-left: 18px;
    padding-right: 18px;
  }

  .forecast-item img {
    height: 52px;
    width: 52px;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: auto;
  }

  html {
    scroll-padding-top: 132px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0;
    height: auto;
    justify-content: space-between;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .site-nav {
    gap: 26px;
    margin-left: 0;
    order: 3;
    padding-top: 12px;
    width: 100%;
  }

  .unit-switch {
    margin-left: auto;
  }

  .alert-bar {
    padding: 13px 0;
  }

  .content-section {
    padding-top: 54px;
  }

  .primary-condition-body {
    grid-template-columns: 1fr;
  }

  .measurement-grid {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .weather-alert {
    gap: 5px;
    grid-template-columns: 1fr;
  }

  .hourly-list {
    grid-template-columns: repeat(6, 160px);
    min-width: max-content;
  }

  .forecast-item {
    padding-bottom: 24px;
    padding-top: 22px;
  }
}

@media (max-width: 600px) {
  .header-inner,
  .page-frame,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wordmark-number {
    font-size: 27px;
  }

  .wordmark-name {
    font-size: 23px;
  }

  .wordmark-mark {
    height: 32px;
    width: 32px;
  }

  .site-nav {
    gap: 22px;
    overflow-x: auto;
  }

  .section-heading {
    align-items: start;
    display: grid;
    gap: 14px;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 42px;
  }

  .primary-condition-header {
    display: grid;
    gap: 10px;
    padding: 18px 20px 16px;
  }

  .primary-condition-header .observation-time {
    text-align: left;
  }

  .temperature-lockup {
    gap: 16px;
    padding: 23px 20px;
  }

  .primary-weather-icon {
    height: 84px;
    width: 84px;
  }

  .primary-temperature {
    font-size: 57px;
  }

  .condition-name {
    font-size: 16px;
    margin-top: 12px;
  }

  .measurement-grid > div {
    min-height: 68px;
    padding: 12px 18px;
  }

  .measurement-grid dd {
    font-size: 16px;
  }

  .station-card {
    padding: 17px 18px;
  }

  .forecast-section-heading {
    align-items: start;
  }

  .forecast-update {
    text-align: left;
  }

  .outlook {
    gap: 12px;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .outlook > p:last-child {
    font-size: 21px;
  }

  .forecast-list {
    grid-template-columns: 1fr;
  }

  .forecast-item,
  .forecast-night {
    border-left: 0;
  }

  .forecast-item {
    grid-template-columns: 58px minmax(0, 1fr);
    grid-column: 1;
    padding: 18px 8px 20px 0;
  }

  .footer-inner {
    align-items: start;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    min-height: 154px;
    padding-bottom: 26px;
    padding-top: 26px;
  }

  .data-sources {
    text-align: left;
  }

}

@media (max-width: 380px) {
  .site-nav {
    justify-content: space-between;
  }

  .temperature-lockup {
    align-items: start;
  }

  .primary-weather-icon {
    height: 68px;
    width: 68px;
  }

  .primary-temperature {
    font-size: 48px;
  }

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

  .measurement-grid > div,
  .measurement-grid > div:nth-child(odd) {
    border-right: 0;
  }

  .measurement-grid > div:last-child {
    grid-column: auto;
  }

  .station-reading {
    align-items: start;
    display: grid;
  }

  .station-reading .observation-time {
    max-width: none;
    text-align: left;
  }

  .station-measurements {
    grid-template-columns: 1fr;
  }

  .sun-times {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .sun-times-divider {
    height: 1px;
    width: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header {
    position: static;
  }

  .site-nav,
  .unit-switch,
  .alert-link {
    display: none;
  }

  .content-section {
    break-inside: avoid;
    padding-top: 48px;
  }

  .hourly-scroll {
    overflow: visible;
  }
}
