:root {
  color-scheme: light;
  --paper: #fff6e9;
  --ink: #263c53;
  --muted: #586f80;
  --green: #087777;
  --line: #cfe5e1;
  --coral: #cf4f3d;
  --sunshine: #f1bd48;
  --sky: #48a5d4;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(165deg, #fff0dc 0%, #f1faff 46%, #f2fbf2 100%);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7.1%;
}

.site-header {
  height: 84px;
  border-bottom: 1px solid rgba(38, 60, 83, 0.12);
  background: rgba(255, 250, 243, 0.78);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-tree {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.header-note,
.header-link {
  color: var(--muted);
  font-size: 11px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-note {
  margin: 0;
  letter-spacing: 0.02em;
}

.header-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.header-link span {
  padding-left: 5px;
  color: var(--coral);
}

.weather-ticker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 38px;
  overflow: hidden;
  padding: 6px 7.1%;
  background: linear-gradient(90deg, #007f83, #189e9a 58%, #3b9dc2);
  color: white;
}

.weather-ticker-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.weather-ticker-track {
  width: 100%;
}

.weather-ticker-copy {
  display: block;
  font-size: 10px;
  line-height: 1.5;
}

.weather-ticker-track.is-rolling {
  display: flex;
  width: max-content;
  animation: weather-roll 34s linear infinite;
}

.weather-ticker-track.is-paused {
  animation-play-state: paused;
}

.weather-ticker-track.is-rolling .weather-ticker-copy {
  flex: 0 0 auto;
  padding-right: 64px;
  white-space: nowrap;
}

.weather-ticker-track.is-rolling .weather-ticker-duplicate {
  display: block;
}

.weather-ticker-duplicate {
  display: none;
}

.weather-ticker-toggle {
  flex: 0 0 auto;
  padding: 3px 0 3px 8px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
}

@keyframes weather-roll {
  to {
    transform: translateX(-50%);
  }
}

main {
  width: min(1120px, 85.8%);
  margin: 0 auto;
}

.intro {
  padding: 60px 0 35px;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  color: var(--coral);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow-line {
  display: inline-block;
  width: 19px;
  height: 1px;
  background: currentColor;
}

.intro h1 {
  margin: 13px 0 9px;
  font-family: var(--serif);
  font-size: clamp(39px, 5.3vw, 61px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.13;
}

.intro h1 em {
  color: var(--coral);
  font-weight: 500;
}

.intro-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.86fr);
  align-items: stretch;
  gap: 28px;
}

.gallery {
  min-width: 0;
}

.carousel {
  position: relative;
  height: 440px;
  overflow: hidden;
  border: 4px solid #fffaf3;
  border-radius: 15px;
  background: #9ed4dc;
  box-shadow: 0 14px 35px rgba(38, 60, 83, 0.15);
}

.carousel-track,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  visibility: hidden;
  opacity: 0;
  transition: opacity 450ms ease, visibility 450ms ease;
}

.slide.is-active {
  visibility: visible;
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-shade {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(14, 22, 17, 0.67));
  pointer-events: none;
}

.slide-caption {
  position: absolute;
  right: 29px;
  bottom: 61px;
  left: 34px;
  color: white;
}

.caption-kicker {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.slide-caption h2 {
  margin: 3px 0 2px;
  font-family: var(--serif);
  font-size: 10pt;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.slide-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10pt;
}

.slide-caption .caption-kicker {
  font-size: 10pt;
  letter-spacing: 0.03em;
}

.slide-caption .slide-credit {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10pt;
}

.slide-credit a {
  color: inherit;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-underline-offset: 2px;
}

.carousel-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 37px;
  height: 37px;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  background: rgba(25, 35, 27, 0.15);
  color: white;
  cursor: pointer;
  font-size: 18px;
  transition: background 160ms ease, transform 160ms ease;
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(25, 35, 27, 0.48);
}

.carousel-previous {
  left: 17px;
}

.carousel-next {
  right: 17px;
}

.carousel-footer {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 21px;
  left: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carousel-progress {
  width: 88px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.carousel-progress-fill {
  display: block;
  width: 1.85%;
  height: 100%;
  background: white;
  transition: width 250ms ease;
}

.carousel-count {
  color: white;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.carousel-count span {
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.58);
}

.gallery-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.gallery-note span {
  margin-right: 4px;
  color: var(--green);
}

.weather-card {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  padding: 25px 24px 19px;
  border: 1px solid #f2d9ad;
  border-radius: 14px;
  background: linear-gradient(155deg, #fffdf5, #fff1dd);
  box-shadow: 0 10px 24px rgba(200, 129, 57, 0.09);
}

.weather-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.weather-eyebrow {
  justify-content: flex-start;
  font-size: 8px;
}

.weather-heading h2 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.weather-symbol {
  color: #e6a91f;
  font-size: 26px;
  line-height: 1;
}

.weather-place {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.location-pin {
  color: var(--green);
  font-size: 22px;
  line-height: 1;
}

.place-name {
  overflow: hidden;
  max-width: 220px;
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-updated {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.weather-current {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
}

.current-icon {
  color: #e6a91f;
  font-size: 43px;
  line-height: 1;
}

.current-temp {
  margin: 0;
  font-family: var(--serif);
  font-size: 45px;
  letter-spacing: -0.07em;
  line-height: 1;
}

.current-summary {
  max-width: 180px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.weather-status {
  min-height: 15px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.weather-status[data-state="error"] {
  color: #a34135;
}

.weather-status[data-state="loading"] {
  color: #9b6b1c;
}

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

.forecast-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.forecast-day {
  font-weight: 600;
}

.forecast-description {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forecast-temp {
  font-weight: 600;
  white-space: nowrap;
}

.weather-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.weather-retry {
  padding: 8px 12px;
  border: 0;
  border-radius: 20px;
  background: var(--coral);
  color: white;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.weather-retry:hover {
  background: #ae3c32;
}

.weather-retry:focus-visible,
.map-tab:focus-visible,
.weather-ticker-toggle:focus-visible {
  outline: 2px solid var(--sunshine);
}

.location-button,
.coordinates-toggle,
.coordinates-form button {
  border: 0;
  cursor: pointer;
}

.location-button {
  padding: 0;
  background: transparent;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
}

.location-button span {
  margin-right: 3px;
  font-size: 13px;
}

.coordinates-toggle {
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.coordinates-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 7px;
  margin-top: 12px;
}

.coordinates-form[hidden] {
  display: none;
}

.coordinates-form label {
  color: var(--muted);
  font-size: 8px;
}

.coordinates-form input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 7px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: white;
  color: var(--ink);
  font-size: 10px;
}

.coordinates-form input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #728a68;
  outline-offset: 3px;
}

.coordinates-form button {
  padding: 8px 9px;
  border-radius: 2px;
  background: var(--green);
  color: white;
  font-size: 9px;
}

.weather-source {
  margin: 13px 0 0;
  color: #898a81;
  font-size: 8px;
}

.weather-source a {
  color: var(--green);
  text-decoration: none;
}

.pub-map-section {
  margin-top: 54px;
  padding-top: 34px;
  border-top: 2px dashed #f1c86f;
}

.pub-map-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.pub-map-heading .eyebrow {
  justify-content: flex-start;
}

.pub-map-heading h2 {
  margin: 8px 0 4px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.pub-map-intro {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.map-source-link {
  padding-bottom: 2px;
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.map-source-link span {
  padding-left: 4px;
}

.map-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
}

.map-tab {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #e1f2ee;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.map-tab.is-active,
.map-tab[aria-selected="true"] {
  border-color: var(--coral);
  background: var(--coral);
  color: white;
}

.map-panel {
  outline: none;
}

.pub-map {
  height: 430px;
  overflow: hidden;
  border: 3px solid white;
  border-radius: 13px;
  background: #d9f0f1;
  box-shadow: 0 10px 28px rgba(38, 60, 83, 0.12);
}

.pub-map .esri-view-surface:focus::after {
  outline-color: var(--green);
}

.map-popup-photo {
  display: block;
  width: min(100%, 260px);
  max-height: 170px;
  margin: 8px 0;
  border-radius: 2px;
  object-fit: cover;
}

.map-popup-credit {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.activities-section {
  margin-top: 54px;
  padding-top: 34px;
  border-top: 2px dashed #efb7a6;
}

.activities-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}

.activities-heading .eyebrow {
  justify-content: flex-start;
}

.activities-heading h2 {
  margin: 8px 0 4px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.activities-intro {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.activity-card {
  position: relative;
  min-height: 205px;
  padding: 20px 19px 18px;
  border: 1px solid #d9e9df;
  border-radius: 13px;
  background: linear-gradient(145deg, #fffdf6, #f4fbf5);
  box-shadow: 0 8px 18px rgba(38, 60, 83, 0.06);
}

.activity-card:nth-child(2) {
  border-color: #f1dfb8;
  background: linear-gradient(145deg, #fffdf6, #fff3dd);
}

.activity-card:nth-child(3) {
  border-color: #cce5ee;
  background: linear-gradient(145deg, #fff, #eaf7ff);
}

.activity-number {
  position: absolute;
  top: 16px;
  right: 17px;
  color: #e0a24b;
  font-family: var(--serif);
  font-size: 24px;
}

.activity-label {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.activity-card h3 {
  max-width: 85%;
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.activity-card p:not(.activity-label) {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.activity-card a {
  color: var(--green);
  font-size: 9px;
  font-weight: 600;
  text-decoration: none;
}

.activity-card a span {
  padding-left: 3px;
}

.pub-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}

.pub-map-status,
.map-attribution {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.pub-map-status[data-state="error"] {
  color: #a34135;
}

.map-attribution {
  text-align: right;
}

.map-attribution a {
  color: var(--green);
  text-decoration: none;
}

.map-retry {
  flex: 0 0 auto;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid var(--green);
  border-radius: 2px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
}

.map-retry[hidden] {
  display: none;
}

.site-footer {
  min-height: 74px;
  margin-top: 42px;
  border-top: 1px solid rgba(38, 60, 83, 0.14);
  color: var(--muted);
  font-size: 8px;
}

.site-footer span:first-child {
  font-weight: 700;
  letter-spacing: 0.1em;
}

.site-footer span span {
  padding: 0 4px;
  color: var(--green);
}

@media (max-width: 800px) {
  main {
    width: min(620px, 88%);
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .carousel {
    height: min(59vw, 430px);
    min-height: 290px;
  }

  .weather-card {
    min-height: 420px;
  }

  .ais-map {
    height: 390px;
  }

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

  .activity-card {
    min-height: auto;
  }

  .pub-map {
    height: 390px;
  }

  .site-footer {
    margin-top: 32px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer {
    padding-right: 6%;
    padding-left: 6%;
  }

  .site-header {
    height: 68px;
  }

  .brand {
    gap: 7px;
    font-size: 18px;
  }

  .brand-tree {
    width: 33px;
    height: 33px;
  }

  .header-actions {
    gap: 9px;
  }

  .header-link {
    font-size: 8px;
  }

  .weather-ticker {
    gap: 10px;
    padding-right: 6%;
    padding-left: 6%;
  }

  .weather-ticker-copy {
    font-size: 9px;
  }

  .weather-ticker-toggle {
    font-size: 8px;
  }

  .header-note {
    display: none;
  }

  main {
    width: 88%;
  }

  .intro {
    padding: 45px 0 27px;
  }

  .intro-copy {
    max-width: 290px;
    margin: 0 auto;
  }

  .carousel {
    height: 72vw;
    min-height: 285px;
  }

  .slide-caption {
    bottom: 57px;
    left: 23px;
  }

  .carousel-footer {
    right: 22px;
    left: 23px;
  }

  .carousel-previous {
    left: 11px;
  }

  .carousel-next {
    right: 11px;
  }

  .weather-card {
    padding: 22px 20px 18px;
  }

  .slide-caption {
    right: 18px;
    bottom: 54px;
    left: 18px;
  }

  .pub-map-section {
    margin-top: 40px;
    padding-top: 27px;
  }

  .pub-map-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .pub-map-heading h2 {
    font-size: 27px;
  }

  .activities-section {
    margin-top: 40px;
    padding-top: 27px;
  }

  .activities-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .activities-heading h2 {
    font-size: 27px;
  }

  .pub-map {
    height: 340px;
  }

  .ais-map {
    height: 340px;
  }

  .pub-map-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding-bottom: 8px;
  }

  .ais-section {
    margin-top: 48px;
    padding-top: 34px;
    border-top: 2px dashed #8acbd0;
    border-radius: 0;
  }

  .ais-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
  }

  .ais-heading .eyebrow {
    justify-content: flex-start;
    color: var(--green);
  }

  .ais-heading h2 {
    margin: 8px 0 4px;
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.04em;
  }

  .ais-intro {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
  }

  .ais-map-wrap {
    position: relative;
  }

  .ais-map {
    height: 430px;
  }

  .ais-map-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    background: rgba(255, 251, 243, 0.96);
    box-shadow: 0 2px 8px rgba(25, 55, 65, 0.15);
    color: #145664;
    font-size: 9px;
    font-weight: 700;
  }

  .ais-map-badge span {
    margin-right: 4px;
    color: #168fa0;
    font-size: 8px;
  }

  .ais-map-footer {
    align-items: flex-start;
  }

  .ais-map-footer .pub-map-status {
    max-width: 58%;
  }

  .ais-map-footer .map-attribution {
    max-width: 38%;
  }

  .ais-map-footer .pub-map-status[data-state="error"] {
    color: #a34135;
  }

  .ais-map-footer .pub-map-status[data-state="loading"] {
    color: #147c91;
  }

  @media (max-width: 520px) {
    .ais-section {
      margin-top: 40px;
      padding-top: 27px;
    }

    .ais-heading {
      align-items: flex-start;
      flex-direction: column;
      gap: 10px;
    }

    .ais-heading h2 {
      font-size: 27px;
    }

    .ais-map-footer .pub-map-status,
    .ais-map-footer .map-attribution {
      max-width: 100%;
    }
  }

  .map-attribution {
    width: 100%;
    text-align: left;
  }

  .site-footer {
    min-height: 66px;
    gap: 12px;
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .weather-ticker-track.is-rolling {
    display: block;
    width: 100%;
    animation: none;
    transform: none;
  }

  .weather-ticker-track.is-rolling .weather-ticker-copy {
    padding-right: 0;
    white-space: normal;
  }

  .weather-ticker-track.is-rolling .weather-ticker-duplicate {
    display: none;
  }
}
