@font-face {
  font-family: 'Roboto Condensed Local';
  src: url('../fonts/RobotoCondensed-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed Local';
  src: url('../fonts/RobotoCondensed-Bold.ttf') format('truetype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #183f31;
  --forest-deep: #0d3328;
  --moss: #486857;
  --cream: #fbf6e7;
  --paper: #fffdf4;
  --gold: #efbd63;
  --ink: #1f3c31;
  --wood-rail: 26px;
  --shadow: 0 14px 28px rgba(24, 43, 33, 0.24);
  --condensed: 'Roboto Condensed Local', 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --intro-duration: 1800ms;
  --intro-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--condensed);
  background-color: var(--forest-deep);
  background-image: var(--site-bg-image);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
.thumb {
  cursor: pointer;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(calc(100% - (var(--wood-rail) * 2)), 1536px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.94), transparent 35%), linear-gradient(180deg, #f9f3df 0%, #fffaf0 61%, #f8efd8 100%);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.24);
}

.page::before,
.page::after {
  content: '';
  position: absolute;
  top: 0;
  pointer-events: none;
  opacity: 0;
}

.page::before {
  z-index: 24;
  left: 0;
  right: 0;
  height: min(88vh, 720px);
  background: radial-gradient(circle at 18% 18%, rgba(235, 248, 244, 0.7), transparent 32%), radial-gradient(circle at 64% 2%, rgba(194, 215, 213, 0.42), transparent 36%), linear-gradient(180deg, rgba(216, 231, 226, 0.58) 0%, rgba(245, 239, 218, 0.14) 58%, rgba(255, 248, 228, 0) 100%);
  mix-blend-mode: screen;
}

.page::after {
  z-index: 25;
  left: -72%;
  width: 66%;
  height: min(98vh, 780px);
  background: linear-gradient(103deg, transparent 8%, rgba(255, 244, 204, 0.18) 30%, rgba(239, 189, 99, 0.5) 50%, rgba(255, 251, 231, 0.22) 66%, transparent 88%);
  filter: blur(18px);
  mix-blend-mode: screen;
  transform: skewX(-12deg) translate3d(0, 0, 0);
}

body.is-intro-running .weather,
body.is-intro-running .hero {
  animation: introMorningFocus var(--intro-duration) var(--intro-ease) both;
}

body.is-intro-running .page::before {
  animation: introMist var(--intro-duration) ease-out both;
}

body.is-intro-running .page::after {
  animation: introSunriseSweep var(--intro-duration) var(--intro-ease) both;
}

body.is-intro-running .site-header,
body.is-intro-running .weather-title,
body.is-intro-running .weather-grid,
body.is-intro-running .hero-content {
  animation: introSettle 920ms var(--intro-ease) both;
  will-change: opacity, transform, filter;
}

body.is-intro-running .site-header {
  --intro-y: -16px;
  animation-delay: 80ms;
}

body.is-intro-running .hero-content {
  --intro-y: 26px;
  animation-delay: 250ms;
}

body.is-intro-running .weather-title {
  --intro-y: 18px;
  animation-delay: 420ms;
}

body.is-intro-running .weather-grid {
  --intro-y: 22px;
  animation-delay: 540ms;
}

@keyframes introMorningFocus {
  0% {
    filter: brightness(0.84) saturate(0.72) contrast(0.96);
  }

  48% {
    filter: brightness(0.98) saturate(0.9) contrast(1);
  }

  100% {
    filter: none;
  }
}

@keyframes introMist {
  0% {
    opacity: 0.82;
    transform: translate3d(0, -10px, 0);
  }

  58% {
    opacity: 0.36;
  }

  100% {
    opacity: 0;
    transform: translate3d(0, -34px, 0);
  }
}

@keyframes introSunriseSweep {
  0% {
    opacity: 0;
    transform: skewX(-12deg) translate3d(0, 0, 0);
  }

  16% {
    opacity: 0.78;
  }

  68% {
    opacity: 0.62;
  }

  100% {
    opacity: 0;
    transform: skewX(-12deg) translate3d(260%, 0, 0);
  }
}

@keyframes introSettle {
  0% {
    opacity: 0;
    filter: blur(8px) saturate(0.76);
    transform: translate3d(0, var(--intro-y, 18px), 0);
  }

  68% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    filter: none;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-intro-running .page,
  body.is-intro-running .weather,
  body.is-intro-running .hero,
  body.is-intro-running .page::before,
  body.is-intro-running .page::after,
  body.is-intro-running .site-header,
  body.is-intro-running .weather-title,
  body.is-intro-running .weather-grid,
  body.is-intro-running .hero-content {
    animation: none;
    filter: none;
    opacity: 1;
    transform: none;
  }

  body.is-intro-running .page::before,
  body.is-intro-running .page::after {
    opacity: 0;
  }
}

.site-header {
  position: absolute;
  order: 0;
  top: 0;
  left: 0;
  z-index: 10;
  width: min(86%, 1185px);
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: clamp(26px, 4vw, 58px);
  padding: 10px 48px 13px 76px;
  background: linear-gradient(180deg, rgba(35, 81, 63, 0.94) 0%, rgba(16, 55, 43, 0.96) 100%);
  border: 1px solid rgba(255, 247, 223, 0.16);
  border-top: 0;
  border-left: 0;
  border-bottom-right-radius: 78px;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(20, 35, 27, 0.34);
  backdrop-filter: blur(7px);
}

.logo {
  width: 208px;
  flex: 0 0 auto;
}

.logo svg {
  display: block;
  width: 100%;
  height: auto;
}

.site-header .logo svg [stroke='#2b533c'] {
  stroke: #fff2cf;
}

.site-header .logo svg [fill='#2b533c'],
.site-header .logo svg g[fill='#183f31'],
.site-header .logo svg text {
  fill: #fff6df;
}

.site-header .logo svg circle {
  fill: #efbd63;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 247, 223, 0.24);
  border-radius: 8px;
  color: #fff7df;
  background: linear-gradient(180deg, #24513f 0%, #123d30 100%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.14),
    0 3px 9px rgba(24, 43, 33, 0.2);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.site-header.is-nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #274135;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.main-nav {
  min-height: 42px;
  gap: 0;
  padding: 4px;
  border: 1px solid rgba(255, 247, 223, 0.2);
  border-radius: 999px;
  color: #fff7df;
  background: linear-gradient(180deg, rgba(255, 247, 223, 0.13) 0%, rgba(255, 247, 223, 0.05) 100%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    0 7px 16px rgba(7, 31, 24, 0.2);
  font-size: 17px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

@media (min-width: 1041px) {
  .main-nav a {
    border-radius: 0;
  }

  .main-nav a:first-child {
    border-radius: 999px 0 0 999px;
  }

  .main-nav a:last-child {
    border-radius: 0 999px 999px 0;
  }
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #173c30;
  background: linear-gradient(180deg, #ffe7a5 0%, #eebf67 100%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.42),
    0 2px 7px rgba(7, 30, 23, 0.22);
  outline: none;
}

.main-nav span {
  width: 1px;
  height: 18px;
  margin: 0 3px;
  overflow: hidden;
  color: rgba(255, 247, 223, 0.42);
  background: rgba(255, 247, 223, 0.28);
  text-indent: -999px;
}

.hero {
  position: relative;
  order: 1;
  min-height: 568px;
  display: grid;
  align-items: center;
  padding: 152px 0 76px;
  background:
    linear-gradient(180deg, rgba(21, 38, 28, 0.04), rgba(19, 40, 28, 0.32)),
    var(--hero-bg-image, url('../img/hero-panorama-2.jpg')) center center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(780px, calc(100% - 52px));
  margin-left: 13.4%;
  color: #fff8e6;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.hero h1,
.section-title,
.weather-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(42px, 4.95vw, 64px);
  line-height: 0.95;
}

.hero p {
  margin: 12px 0 24px 37px;
  font-size: clamp(21px, 2.35vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #172f26;
  background: linear-gradient(#f8d994, #e9b762);
  box-shadow:
    inset 0 2px rgba(255, 255, 255, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.34);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .pill {
  margin-left: 185px;
}

.cream-wave,
.bottom-wave {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.cream-wave {
  z-index: 5;
  bottom: -2px;
  height: 86px;
  color: var(--cream);
}

.village-intro {
  position: relative;
  order: 3;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
  padding: 94px 82px 200px;
  margin: 0 0 -100px;
  color: #203c30;
  background: #e4eef6;
}

.village-intro-copy,
.village-facts {
  position: relative;
  z-index: 3;
}

.village-top-wave {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.village-top-wave {
  z-index: 2;
  top: -70px;
  height: 100px;
  color: #e4eef6;
}

.section-kicker {
  margin: 0 0 8px;
  color: #8d6d2e;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.village-intro h2 {
  margin: 0 0 22px;
  color: var(--forest);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.98;
  text-transform: uppercase;
}

.village-intro p {
  max-width: 840px;
  margin: 0 0 17px;
  color: #315246;
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.48;
}

.village-intro p:last-child {
  margin-bottom: 0;
}

.village-facts {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
}

.village-facts div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 13px 16px;
  border-left: 4px solid rgba(47, 111, 156, 0.52);
  background: rgba(248, 252, 255, 0.68);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(45, 78, 110, 0.08);
}

.village-facts dt,
.village-facts dd {
  margin: 0;
}

.village-facts dt {
  color: #4e6f88;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.village-facts dd {
  min-width: 0;
  color: #1f4964;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.webcam {
  position: relative;
  order: 4;
  margin-top: -1px;
  padding: 125px 82px 50px;
  background: url('../img/vectors/webcam.svg') center top / cover no-repeat;
}

.webcam .section-title,
.gallery .section-title {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #173c30;
}

.webcam .section-title {
  font-size: clamp(28px, 2.6vw, 38px);
  margin-bottom: 32px;
}

.webcam-player {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 1.78;
  border: 7px solid #f8f4e7;
  border-radius: 10px;
  background: #d7e5ea;
  box-shadow: 0 16px 30px rgba(20, 36, 29, 0.32);
}

.webcam-player::before,
.thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.48) 45%, transparent 72%), linear-gradient(135deg, #d5dfd8 0%, #eef1e8 48%, #becfc8 100%);
  background-size:
    230% 100%,
    100% 100%;
  opacity: 0;
  transition: opacity 180ms ease;
  animation: imageGhostSweep 1100ms ease-in-out infinite;
}

.webcam-player.is-image-loading::before,
.thumb.is-image-loading::before {
  opacity: 1;
}

.webcam-player.is-timelapse::before {
  opacity: 0;
}

.webcam-player img,
.webcam-player video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    opacity 180ms ease,
    filter 180ms ease;
}

.webcam-player.is-image-loading img,
.thumb.is-image-loading img {
  opacity: 0;
  filter: blur(10px);
}

.webcam-player video {
  background: #111d19;
}

.webcam-player [hidden] {
  display: none;
}

.webcam-player::after {
  display: none;
}

@keyframes imageGhostSweep {
  0% {
    background-position:
      130% 0,
      0 0;
  }

  100% {
    background-position:
      -130% 0,
      0 0;
  }
}

.webcam-status {
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 9px;
  right: 9px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 12px;
  pointer-events: none;
}

.webcam-chips {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(245, 244, 236, 0.76);
  box-shadow: 0 1px 5px rgba(21, 32, 27, 0.24);
  pointer-events: auto;
}

.timelapse-panel {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 58px;
  display: none;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  pointer-events: none;
}

.webcam-player.is-timelapse .timelapse-panel {
  display: flex;
}

.webcam-lightbox-link {
  position: absolute;
  z-index: 4;
  top: 54px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff8e8;
  background: rgba(15, 28, 24, 0.68);
  box-shadow: 0 4px 14px rgba(9, 21, 17, 0.26);
  backdrop-filter: blur(8px);
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.webcam-lightbox-link::before {
  content: '';
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-2px, -2px);
}

.webcam-lightbox-link::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(7px, 7px) rotate(45deg);
}

.webcam-lightbox-link:hover,
.webcam-lightbox-link:focus-visible {
  background: rgba(15, 28, 24, 0.88);
  transform: translateY(-1px);
  outline: none;
}

.timelapse-copy {
  display: grid;
  gap: 2px;
  max-width: min(440px, 72%);
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(15, 28, 24, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.timelapse-copy strong {
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1;
}

.timelapse-copy span {
  font-size: 13px;
}

.timelapse-kicker,
.timelapse-size {
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 700;
}

.timelapse-kicker {
  color: #f2cf84;
}

.timelapse-size {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #213428;
  background: rgba(248, 244, 231, 0.88);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 12px;
}

.badge {
  position: absolute;
  z-index: 2;
  top: 0;
  padding: 4px 8px;
  border-radius: 5px;
  color: white;
  background: rgba(53, 61, 64, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font-size: 14px;
}

.badge.time {
  position: static;
  justify-self: start;
}

.badge.update {
  position: static;
  justify-self: end;
}

.live,
.timelapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.webcam-tab {
  border: 0;
}

.live {
  color: white;
  background: #c92722;
  box-shadow: none;
}

.timelapse {
  color: #5c625d;
  background: rgba(255, 255, 255, 0.72);
}

.webcam-tab.active {
  box-shadow: 0 0 12px rgba(201, 39, 34, 0.42);
}

.webcam-tab.live:not(.active) {
  color: #6c6258;
  background: rgba(255, 255, 255, 0.72);
}

.webcam-tab.timelapse.active {
  color: white;
  background: var(--forest);
  box-shadow: 0 4px 12px rgba(24, 63, 49, 0.28);
}

.webcam-wave {
  bottom: -1px;
  height: 88px;
  color: #fff8e8;
}

.gallery {
  position: relative;
  order: 5;
  padding: 20px 84px 68px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.86), transparent 48%), linear-gradient(180deg, #fff8e7 0%, #fff4dc 100%);
}

.gallery .section-title {
  font-size: clamp(40px, 4vw, 56px);
  margin: 28px 0 34px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.265;
  overflow: hidden;
  border-radius: 9px;
  background: #cbdac6;
  box-shadow: 0 8px 16px rgba(21, 35, 28, 0.28);
}

.thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    opacity 180ms ease,
    filter 180ms ease;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin-top: 30px;
}

.slider-dots span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #c4baa2;
}

.slider-dots .active {
  background: var(--forest);
}

.weather {
  position: relative;
  order: 2;
  padding: 40px 76px 150px;
  background: radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.76), transparent 45%), linear-gradient(180deg, #fff8e8 0%, #fff7e7 100%);
}

.weather-title {
  text-align: center;
  font-size: clamp(25px, 2.5vw, 36px);
  margin-bottom: 30px;
}

.weather-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 2.68fr);
  gap: 20px;
  align-items: start;
}

.card {
  border: 1px solid rgba(56, 76, 63, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(28, 43, 34, 0.14);
}

.current {
  position: relative;
  overflow: hidden;
  padding: 20px 22px 24px;
  border-color: rgba(42, 63, 50, 0.14);
  color: #223b2f;
  background: rgba(255, 253, 248, 0.94);
  box-shadow:
    inset 4px 0 0 rgba(49, 95, 73, 0.78),
    0 12px 24px rgba(28, 43, 34, 0.12);
}

.current::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.82);
}

.current h3,
.filters h3,
.data-link {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
}

.current h3 {
  position: relative;
  z-index: 1;
  color: var(--forest);
  font-size: 24px;
}

.weather-now {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 10px;
  margin: 18px 0 20px;
}

.weather-now svg {
  width: 78px;
  height: auto;
  padding: 8px;
  border-radius: 50%;
  background: #edf3e8;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.72),
    0 5px 12px rgba(24, 63, 49, 0.12);
}

.temp {
  color: #315f49;
  font-size: clamp(44px, 3.5vw, 54px);
  font-weight: 700;
  line-height: 0.95;
  text-shadow: 0 1px rgba(255, 255, 255, 0.8);
}

.stats {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  color: #56675e;
  font-size: 17px;
}

.stats div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(42, 63, 50, 0.1);
}

.stats b {
  color: #223b2f;
  text-align: right;
  white-space: nowrap;
}

.current-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.current-metric {
  min-width: 0;
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(42, 63, 50, 0.11);
  border-radius: 8px;
  background: #f6f8f3;
  box-shadow: none;
}

.current-metric.wide {
  grid-column: 1 / -1;
}

.current-metric span {
  min-width: 0;
  color: #647167;
  font-size: 14px;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  hyphens: auto;
}

.current-metric b {
  min-width: 0;
  color: var(--forest);
  font-size: 22px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.current-metric small {
  min-width: 0;
  color: #6e756f;
  font-size: 13px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.filters {
  position: relative;
  padding: 20px 22px 22px;
}

.filter-head {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(320px, 1.4fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 16px;
}

.filters h3 {
  font-size: 24px;
  margin-bottom: 11px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  min-height: 38px;
  padding: 4px;
  border: 1px solid #ddd2bd;
  border-radius: 999px;
  background: #f2eadb;
  font-size: 15px;
  text-transform: uppercase;
}

.tabs button {
  min-width: 0;
  min-height: 30px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  text-transform: inherit;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.tabs .active {
  color: white;
  background: var(--forest);
  box-shadow: 0 4px 10px rgba(24, 63, 49, 0.22);
}

.chart-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  gap: 22px;
  align-items: start;
}

.chart-area > * {
  min-width: 0;
}

.chart-label {
  margin: 0 0 9px;
  color: #3d3d39;
  font-size: 17px;
}

.chart-stack {
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
  min-height: 0;
}

.chart-canvas-wrap {
  position: relative;
  min-width: 0;
  width: 100%;
  height: 292px;
  padding: 8px 8px 0 0;
}

.rain-canvas-wrap {
  position: relative;
  min-width: 0;
  height: 152px;
}

.wind-canvas-wrap {
  position: relative;
  min-width: 0;
  height: 152px;
}

.chart-canvas-wrap canvas,
.rain-canvas-wrap canvas,
.wind-canvas-wrap canvas {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
}

.side-panel h4 {
  margin: 2px 0 15px;
  font-size: 22px;
  text-transform: uppercase;
}

.custom-select,
.date-field {
  position: relative;
}

.native-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.field-trigger {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(42, 63, 50, 0.16);
  border-radius: 8px;
  color: #263b31;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 1px 2px rgba(28, 43, 34, 0.07);
  font-size: 17px;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.field-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-trigger:hover,
.custom-select.is-open .field-trigger,
.date-field.is-open .field-trigger {
  border-color: rgba(49, 95, 73, 0.42);
  background: #fffefa;
  box-shadow:
    0 0 0 3px rgba(49, 95, 73, 0.1),
    0 8px 18px rgba(28, 43, 34, 0.1);
}

.field-trigger:disabled {
  cursor: wait;
  opacity: 0.68;
}

.select-trigger::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #315f49;
  border-bottom: 2px solid #315f49;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 160ms ease;
}

.custom-select.is-open .select-trigger::after {
  transform: translateY(-30%) rotate(225deg);
}

.date-trigger::after {
  content: '';
  flex: 0 0 auto;
  width: 17px;
  height: 16px;
  margin-left: auto;
  border: 2px solid #315f49;
  border-top-width: 5px;
  border-radius: 3px;
}

.date-trigger {
  padding-right: 12px;
}

.select-menu,
.calendar-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  border: 1px solid rgba(42, 63, 50, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 18px 34px rgba(28, 39, 30, 0.18);
}

.select-menu {
  display: none;
  padding: 6px;
}

.custom-select.is-open .select-menu {
  display: grid;
  gap: 2px;
}

.select-menu button {
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  color: #344238;
  background: transparent;
  font-size: 16px;
  text-align: left;
  transition:
    background-color 140ms ease,
    color 140ms ease;
}

.select-menu button:hover {
  color: #20372c;
  background: rgba(49, 95, 73, 0.09);
}

.select-menu button.is-selected {
  color: white;
  background: var(--forest);
}

.field-label {
  display: block;
  margin: 0 0 5px;
  color: #69695f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.date-controls {
  display: grid;
  gap: 10px;
}

.date-control {
  display: none;
}

.date-control.is-active {
  display: block;
}

.range-fields.is-active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.calendar-popover {
  min-width: 268px;
  width: max-content;
  padding: 10px;
}

.range-fields > div:last-child .calendar-popover {
  right: 0;
  left: auto;
}

.calendar-head {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-head strong {
  color: var(--ink);
  font-size: 18px;
  text-align: center;
}

.calendar-nav {
  width: 32px;
  height: 32px;
  border: 1px solid #ded2bc;
  border-radius: 50%;
  background: #fbf5e8;
}

.calendar-nav::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-left: 2px solid #2d4639;
  border-bottom: 2px solid #2d4639;
  transform: rotate(45deg);
}

.calendar-nav.next::before {
  transform: rotate(225deg);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 32px);
  gap: 4px;
}

.calendar-weekdays {
  margin-bottom: 4px;
  color: #777064;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #2d332f;
  background: transparent;
  font-size: 15px;
}

.calendar-day:hover {
  background: #efe3ca;
}

.calendar-day.is-muted {
  color: #afa897;
}

.calendar-day.is-selected {
  color: white;
  background: var(--forest);
  box-shadow: 0 3px 8px rgba(24, 63, 49, 0.22);
}

.calendar-day:disabled {
  cursor: not-allowed;
  color: #c6c1b7;
  background: transparent;
}

.extremes {
  margin-top: 22px;
  padding: 12px;
  border: 1px solid rgba(42, 63, 50, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: #4b4b46;
}

.extremes strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
  text-transform: uppercase;
}

.extreme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.extreme-item {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(56, 76, 63, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.extreme-item.wide {
  grid-column: 1 / -1;
  min-height: 56px;
  border-color: rgba(24, 63, 49, 0.18);
  background: rgba(239, 247, 239, 0.82);
}

.extreme-item span {
  color: #74736a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  hyphens: auto;
}

.extreme-item b {
  color: var(--forest);
  font-size: 19px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.extreme-item small {
  color: #6e756f;
  font-size: 12px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.extreme-item.wide b {
  font-size: 24px;
}

.secondary-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.precip,
.wind-panel {
  position: relative;
  width: 100%;
  padding: 14px 16px 12px;
  border-radius: 8px;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.8),
    0 7px 18px rgba(45, 78, 110, 0.12);
}

.precip {
  border: 1px solid rgba(72, 117, 159, 0.22);
  background: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.82), transparent 42%), linear-gradient(180deg, rgba(237, 247, 255, 0.96) 0%, rgba(220, 234, 246, 0.92) 100%);
}

.wind-panel {
  border: 1px solid rgba(82, 115, 106, 0.24);
  background: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.82), transparent 42%), linear-gradient(180deg, rgba(239, 247, 239, 0.96) 0%, rgba(226, 236, 226, 0.92) 100%);
}

.precip h4,
.wind-panel h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 10px;
  font-size: 18px;
  text-transform: uppercase;
}

.precip h4 {
  color: #1c4663;
}

.wind-panel h4 {
  color: #315246;
}

.precip h4 span {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff8e8;
  background: #2f6f9c;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

.weather.is-loading [data-current-temp],
.weather.is-loading [data-current-stats] div,
.weather.is-loading [data-current-stats]:empty::before,
.weather.is-loading [data-current-summary] > *,
.weather.is-loading [data-current-summary]:empty::before,
.weather.is-loading [data-extremes],
.weather.is-loading .chart-canvas-wrap::after,
.weather.is-loading .rain-canvas-wrap::after,
.weather.is-loading .wind-canvas-wrap::after {
  background: linear-gradient(100deg, rgba(225, 218, 202, 0.55) 0%, rgba(255, 253, 248, 0.95) 42%, rgba(225, 218, 202, 0.55) 82%);
  background-size: 220% 100%;
  animation: weatherGhost 1.15s ease-in-out infinite;
}

.weather.is-loading .current [data-current-temp],
.weather.is-loading .current [data-current-stats] div,
.weather.is-loading .current [data-current-stats]:empty::before,
.weather.is-loading .current [data-current-summary] > *,
.weather.is-loading .current [data-current-summary]:empty::before {
  background: linear-gradient(100deg, rgba(230, 197, 129, 0.34) 0%, rgba(255, 253, 248, 0.82) 42%, rgba(230, 197, 129, 0.34) 82%);
  background-size: 220% 100%;
}

.weather.is-loading .precip .rain-canvas-wrap::after {
  background: linear-gradient(100deg, rgba(147, 184, 219, 0.28) 0%, rgba(246, 252, 255, 0.84) 42%, rgba(147, 184, 219, 0.28) 82%);
  background-size: 220% 100%;
}

.weather.is-loading .wind-panel .wind-canvas-wrap::after {
  background: linear-gradient(100deg, rgba(154, 183, 166, 0.28) 0%, rgba(247, 252, 247, 0.84) 42%, rgba(154, 183, 166, 0.28) 82%);
  background-size: 220% 100%;
}

.weather.is-loading .filters [data-extremes],
.weather.is-loading .filters .chart-canvas-wrap::after {
  background: linear-gradient(100deg, rgba(225, 218, 202, 0.48) 0%, rgba(255, 253, 248, 0.92) 42%, rgba(225, 218, 202, 0.48) 82%);
  background-size: 220% 100%;
}

.weather.is-loading [data-current-temp],
.weather.is-loading [data-current-stats] div,
.weather.is-loading [data-current-summary] > *,
.weather.is-loading [data-extremes] {
  border-color: transparent;
  border-radius: 8px;
  color: transparent;
}

.weather.is-loading [data-current-temp] {
  min-height: 54px;
}

.weather.is-loading .current [data-current-temp] {
  visibility: hidden;
  background: none;
  animation: none;
}

.weather.is-loading [data-current-stats]:empty::before,
.weather.is-loading [data-current-summary]:empty::before {
  content: '';
  display: block;
  width: 100%;
  border-radius: 8px;
}

.weather.is-loading [data-current-stats]:empty::before {
  height: 114px;
}

.weather.is-loading [data-current-summary]:empty::before {
  height: 136px;
}

.weather.is-loading [data-extremes]:empty {
  min-height: 118px;
}

.weather.is-loading [data-current-temp]::selection,
.weather.is-loading [data-current-stats] *::selection,
.weather.is-loading [data-current-summary] *::selection,
.weather.is-loading [data-extremes] *::selection {
  color: transparent;
  background: transparent;
}

.weather.is-loading [data-current-stats] div *,
.weather.is-loading [data-current-summary] *,
.weather.is-loading [data-extremes] * {
  color: transparent;
}

.weather.is-loading .chart-canvas-wrap::after,
.weather.is-loading .rain-canvas-wrap::after,
.weather.is-loading .wind-canvas-wrap::after {
  content: '';
  position: absolute;
  inset: 8px 8px 0 0;
  z-index: 2;
  border-radius: 8px;
  pointer-events: none;
}

.weather.is-loading .rain-canvas-wrap::after,
.weather.is-loading .wind-canvas-wrap::after {
  inset: 0;
}

@keyframes weatherGhost {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

.data-links {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.data-links[hidden] {
  display: none;
}

.data-link {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(42, 63, 50, 0.14);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 18px rgba(28, 43, 34, 0.12);
  font-size: clamp(17px, 1.5vw, 22px);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.data-link.active {
  color: white;
  background: var(--forest);
  box-shadow: 0 8px 18px rgba(24, 63, 49, 0.2);
}

.content-page {
  order: 1;
  min-height: 560px;
  padding: 168px clamp(28px, 6vw, 92px) 92px;
  background: linear-gradient(180deg, rgba(255, 250, 238, 0.94) 0%, rgba(248, 239, 216, 0.98) 100%);
}

.content-page-inner {
  width: min(780px, 100%);
}

.content-page h1 {
  margin: 0 0 22px;
  color: var(--forest);
  font-size: clamp(44px, 5vw, 76px);
  line-height: 0.95;
}

.content-page p {
  max-width: 680px;
  margin: 0 0 16px;
  color: #315246;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
}

.legal-content {
  width: min(880px, 100%);
}

.legal-content h2 {
  margin: 30px 0 10px;
  color: var(--forest);
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.08;
  text-transform: uppercase;
}

.legal-content h3 {
  margin: 24px 0 8px;
  color: #315246;
  font-size: clamp(20px, 1.55vw, 24px);
  line-height: 1.18;
  text-transform: uppercase;
}

.legal-content p,
.legal-content address {
  max-width: 820px;
  margin: 0 0 18px;
  color: #315246;
  font-size: clamp(17px, 1.35vw, 20px);
  font-style: normal;
  line-height: 1.55;
}

.legal-content a {
  color: var(--forest);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-list {
  max-width: 820px;
  margin: 0 0 20px 22px;
  padding: 0;
  color: #315246;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
}

.legal-list li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.footer {
  position: relative;
  order: 6;
  margin-top: auto;
  min-height: clamp(240px, 24vw, 330px);
  display: grid;
  place-items: end center;
  padding: clamp(118px, 13vw, 168px) 20px 34px;
  overflow: hidden;
  isolation: isolate;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: calc(clamp(28px, 4vw, 54px) * -1);
  z-index: 0;
  background-image: url('../img/vectors/footer_2.svg');
  background-position: right top;
  background-repeat: no-repeat;
  background-size: max(100%, 1026px) auto;
  pointer-events: none;
}

.footer-links {
  position: relative;
  z-index: 2;
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  text-transform: none;
}

@media (max-width: 1500px) {
  .site-header {
    width: min(calc(100% - (var(--wood-rail) * 2)), 1430px);
    min-height: 74px;
    gap: clamp(16px, 1.7vw, 24px);
    padding: 8px 28px 11px 44px;
  }

  .logo {
    width: clamp(174px, 14vw, 198px);
  }

  .main-nav {
    flex-wrap: nowrap;
    min-height: 38px;
    font-size: clamp(14px, 1.02vw, 15px);
    white-space: nowrap;
  }

  .main-nav a {
    padding: 0 clamp(7px, 0.75vw, 10px);
    min-height: 30px;
  }

  .main-nav span {
    margin: 0 2px;
  }

  .weather {
    padding-right: clamp(44px, 4vw, 64px);
    padding-left: clamp(44px, 4vw, 64px);
  }

  .weather-grid {
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 2.42fr);
    gap: 16px;
  }

  .filters {
    padding: 17px;
  }

  .filter-head {
    grid-template-columns: minmax(150px, 0.58fr) minmax(280px, 1.42fr);
    gap: 12px;
  }

  .chart-area {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.26fr);
    gap: 14px;
  }

  .tabs {
    font-size: 14px;
  }

  .weather-now {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px;
  }

  .weather-now svg {
    width: 68px;
  }

  .current-metric {
    padding-right: 10px;
    padding-left: 10px;
  }

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

@media (max-width: 1280px) {
  .village-intro {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .village-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .weather-grid,
  .filter-head,
  .chart-area {
    grid-template-columns: 1fr;
  }

  .weather-grid {
    gap: 18px;
  }

  .extreme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 1280px) {
  .current {
    display: grid;
    grid-template-columns: minmax(218px, 0.72fr) minmax(0, 1fr);
    gap: 12px 22px;
    padding: 17px 18px;
  }

  .current h3,
  .current-summary {
    grid-column: 1 / -1;
  }

  .weather-now {
    margin: 0;
  }

  .stats {
    align-self: start;
    gap: 5px;
    font-size: 16px;
  }

  .stats div {
    padding: 5px 0;
  }

  .current-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
  }

  .current-metric.wide {
    grid-column: auto;
  }
}

@media (max-width: 1200px) {
  .site-header {
    width: calc(100% - (var(--wood-rail) * 2));
    gap: 16px;
    padding-right: 22px;
    padding-left: 32px;
  }

  .main-nav {
    font-size: 14px;
  }

  .weather-grid,
  .filter-head,
  .chart-area {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .precip,
  .wind-panel {
    width: auto;
  }

  .chart-stack {
    min-height: 0;
  }
}

@media (max-width: 1040px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px 14px;
    min-height: 68px;
    padding: 8px 20px 10px 32px;
    border-bottom-right-radius: 42px;
  }

  .logo {
    width: clamp(178px, 26vw, 198px);
  }

  .nav-toggle {
    display: grid;
    justify-self: end;
  }

  .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 0;
    border: 1px solid rgba(255, 247, 223, 0);
    border-radius: 12px 12px 22px 8px;
    font-size: 16px;
    line-height: 1.1;
    background: rgba(9, 42, 32, 0.42);
    box-shadow: none;
    transition:
      max-height 180ms ease,
      padding-top 180ms ease,
      padding-bottom 180ms ease,
      box-shadow 180ms ease;
  }

  .site-header.is-nav-open .main-nav {
    max-height: 300px;
    padding: 7px 8px 9px;
    border-color: rgba(255, 247, 223, 0.16);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.1),
      0 8px 18px rgba(8, 28, 22, 0.2);
  }

  .main-nav a {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    color: #173c30;
    background: linear-gradient(#f8d994, #e9b762);
  }

  .main-nav span {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --wood-rail: 0px;
  }

  .page {
    width: 100%;
    box-shadow: none;
  }

  .site-header {
    width: 100%;
    border-radius: 0 0 26px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px 12px;
    min-height: 60px;
    padding: 8px 13px 9px;
  }

  .logo {
    width: min(178px, 66vw);
  }

  .nav-toggle {
    display: grid;
    justify-self: end;
    width: 38px;
    height: 38px;
    padding: 8px;
  }

  .nav-toggle span {
    width: 20px;
  }

  .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 0;
    border: 1px solid rgba(255, 247, 223, 0);
    border-radius: 12px 12px 22px 8px;
    font-size: 16px;
    line-height: 1.1;
    background: rgba(9, 42, 32, 0.42);
    box-shadow: none;
    transition:
      max-height 180ms ease,
      padding-top 180ms ease,
      padding-bottom 180ms ease,
      box-shadow 180ms ease;
  }

  .site-header.is-nav-open .main-nav {
    max-height: 300px;
    padding: 7px 8px 9px;
    border-color: rgba(255, 247, 223, 0.16);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.1),
      0 8px 18px rgba(8, 28, 22, 0.2);
  }

  .main-nav a {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    color: #173c30;
    background: linear-gradient(#f8d994, #e9b762);
  }

  .main-nav span {
    display: none;
  }

  .hero {
    min-height: 520px;
    padding-top: 104px;
    background-size: auto 620px;
    background-position: center top;
  }

  .hero-content {
    margin-left: 24px;
  }

  .hero p,
  .hero .pill {
    margin-left: 0;
  }

  .webcam,
  .gallery,
  .village-intro,
  .weather {
    padding-left: 22px;
    padding-right: 22px;
  }

  .village-intro {
    padding-top: 76px;
    padding-bottom: 84px;
  }

  .village-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather {
    padding-top: 30px;
    padding-bottom: 44px;
  }

  .content-page {
    min-height: 460px;
    padding: 120px 22px 76px;
  }

  .weather-title {
    text-align: left;
    font-size: clamp(25px, 9vw, 34px);
    line-height: 1.05;
    margin-bottom: 24px;
  }

  .weather-grid {
    gap: 14px;
  }

  .card,
  .filters,
  .current {
    min-width: 0;
  }

  .current,
  .filters {
    padding: 16px;
  }

  .current h3,
  .filters h3 {
    font-size: 22px;
  }

  .filter-head {
    gap: 12px;
    margin-bottom: 18px;
  }

  .chart-label {
    font-size: 16px;
    line-height: 1.2;
  }

  .chart-area {
    gap: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .weather-now {
    grid-template-columns: 70px 1fr;
  }

  .weather-now svg {
    width: 70px;
  }

  .temp {
    font-size: 46px;
  }

  .data-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .range-fields.is-active {
    grid-template-columns: 1fr;
  }

  .timelapse-panel {
    left: 10px;
    right: 10px;
    bottom: 44px;
    font-size: 13px;
  }

  .timelapse-copy {
    max-width: 100%;
    padding: 8px 10px;
  }

  .timelapse-copy strong,
  .timelapse-size {
    display: none;
  }

  .webcam-status {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 7px;
  }

  .badge.update {
    display: none;
  }

  .webcam-chips {
    order: -1;
  }

  .chart-canvas-wrap {
    height: 268px;
    padding-right: 0;
    overflow: hidden;
  }

  .rain-canvas-wrap {
    height: 154px;
    overflow: hidden;
  }

  .wind-canvas-wrap {
    height: 154px;
    overflow: hidden;
  }

  .secondary-chart-grid {
    grid-template-columns: 1fr;
  }

  .precip,
  .wind-panel {
    padding: 12px 10px 10px;
  }

  .precip h4,
  .wind-panel h4 {
    font-size: 16px;
    line-height: 1.15;
  }

  .precip h4 span {
    margin-left: 0;
  }

  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 18px;
    font-size: 14px;
  }

  .tabs button {
    min-height: 34px;
    padding: 0 5px;
  }

  .side-panel h4 {
    font-size: 20px;
  }

  .field-trigger {
    min-height: 44px;
    padding-left: 11px;
  }

  .select-menu,
  .calendar-popover {
    z-index: 40;
  }

  .calendar-popover {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .range-fields > div:last-child .calendar-popover {
    right: auto;
    left: 0;
  }

  .calendar-head {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 6px;
  }

  .calendar-head strong {
    font-size: 16px;
  }

  .calendar-weekdays,
  .calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
  }

  .calendar-day {
    width: 100%;
    max-width: 30px;
    height: auto;
    aspect-ratio: 1;
    justify-self: center;
    font-size: 14px;
  }

  .calendar-nav {
    width: 30px;
    height: 30px;
  }

  .current-summary,
  .extreme-grid {
    grid-template-columns: 1fr;
  }

  .current-metric,
  .extreme-item {
    min-height: 54px;
  }

  .data-link,
  .stats,
  .extremes,
  .field-trigger {
    font-size: 16px;
  }
}
