/* New Hampshire — granite, spruce, and autumn field guide */
:root {
  --nh-spruce: #173f35;
  --nh-pine: #255b49;
  --nh-granite: #59636a;
  --nh-slate: #303b40;
  --nh-maple: #a9472d;
  --nh-gold: #c98e32;
  --nh-mist: #edf1ed;
  --nh-cream: #f7f4ec;
  --nh-paper: #fffdf8;
  --nh-line: #cfd5cf;
  --nh-muted: #59635f;
}

body.new-hampshire-page {
  background: var(--nh-cream);
  color: var(--nh-slate);
}

.new-hampshire-page .site-header {
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid rgba(23, 63, 53, .2);
}

.new-hampshire-page main {
  padding: 0 0 5rem;
}

.nh-hero {
  position: relative;
  min-height: clamp(34rem, 56vw, 44rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--nh-spruce);
}

.nh-hero-photo,
.nh-hero-photo::after {
  position: absolute;
  inset: 0;
}

.nh-hero-photo {
  z-index: -2;
}

.nh-hero-photo::after {
  content: "";
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 36, 30, .82) 0%, rgba(12, 36, 30, .55) 44%, rgba(12, 36, 30, .08) 76%),
    linear-gradient(0deg, rgba(15, 33, 29, .34), transparent 45%);
}

.nh-hero-photo picture,
.nh-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.nh-hero-photo img {
  object-fit: cover;
  object-position: center;
}

.nh-hero-inner {
  width: 100%;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.nh-title-card {
  position: relative;
  max-width: 46rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  background: rgba(255, 253, 248, .94);
  border: 1px solid rgba(255, 255, 255, .75);
  border-left: 8px solid var(--nh-maple);
  box-shadow: 0 22px 52px rgba(6, 25, 20, .28);
}

.nh-title-card::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 6rem;
  height: 6px;
  background: var(--nh-gold);
}

.nh-breadcrumb {
  margin: 0 0 1.35rem;
  color: var(--nh-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nh-breadcrumb a {
  color: var(--nh-pine);
  text-underline-offset: .2em;
}

.nh-label,
.nh-kicker,
.nh-card-label {
  margin: 0 0 .45rem;
  color: var(--nh-maple);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nh-title-card h1 {
  max-width: 42rem;
  margin: 0 0 1rem;
  color: var(--nh-spruce);
  font-size: clamp(2.65rem, 6vw, 5rem);
  line-height: .98;
  letter-spacing: -.035em;
}

.nh-lede {
  max-width: 40rem;
  margin: 0;
  color: #384943;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.65;
}

.nh-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.35rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--nh-line);
  color: var(--nh-muted);
  font-size: .8rem;
}

.nh-facts span {
  display: flex;
  align-items: baseline;
  gap: .3rem;
}

.nh-facts strong {
  color: var(--nh-spruce);
  font-size: .9rem;
}

/* Alpaca directory with separate activity sidebar */
.nh-directory-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 21rem);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  max-width: 80rem;
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

.nh-directory-main {
  min-width: 0;
}

.nh-directory-intro {
  margin-bottom: 1.6rem;
  padding: 1.2rem 0 1.35rem;
  border-top: 7px solid var(--nh-spruce);
  border-bottom: 1px solid var(--nh-line);
}

.nh-directory-intro h2 {
  margin: .25rem 0 .75rem;
  color: var(--nh-spruce);
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.05;
}

.nh-directory-intro > p:last-of-type {
  max-width: 46rem;
  color: var(--nh-muted);
  line-height: 1.65;
}

.nh-callout {
  max-width: 46rem;
  margin-top: 1.35rem;
  padding: 1rem 1.05rem;
  background: #e5ebe6;
  border-left: 4px solid var(--nh-maple);
}

.nh-sidebar {
  position: sticky;
  top: 5.5rem;
}

.nh-sidebar-inner {
  overflow: hidden;
  background: var(--nh-spruce);
  border-top: 7px solid var(--nh-maple);
  box-shadow: 10px 10px 0 #d9ddd7;
}

.nh-sidebar-inner > .nh-kicker,
.nh-sidebar-inner > h2,
.nh-sidebar-intro {
  margin-inline: 1.25rem;
}

.nh-sidebar-inner > .nh-kicker {
  margin-top: 1.25rem;
  color: #e5b767;
}

.nh-sidebar h2 {
  margin-top: .25rem;
  margin-bottom: .65rem;
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  line-height: 1.08;
}

.nh-sidebar-intro {
  margin-bottom: 1.2rem;
  color: #dce7e2;
  font-size: .86rem;
  line-height: 1.5;
}

.nh-sidebar-links {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.nh-sidebar-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  min-height: 5.4rem;
  padding: .9rem 1rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  transition: background .18s ease, padding-left .18s ease;
}

.nh-sidebar-links a:last-child {
  border-bottom: 0;
}

.nh-sidebar-links a:hover,
.nh-sidebar-links a:focus-visible {
  padding-left: 1.2rem;
  background: var(--nh-pine);
  color: #fff;
}

.nh-sidebar-links b,
.nh-sidebar-links small {
  display: block;
}

.nh-sidebar-links b {
  margin-bottom: .2rem;
  color: #fff;
  font-size: .95rem;
}

.nh-sidebar-links small {
  color: #d5e2dc;
  font-size: .74rem;
  line-height: 1.35;
}

.nh-sidebar-links i {
  color: #e5b767;
  font-style: normal;
}

.nh-callout strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--nh-spruce);
  font-size: .82rem;
  letter-spacing: .03em;
}

.nh-callout p {
  margin: 0;
  color: #475650;
  font-size: .82rem;
  line-height: 1.55;
}

.new-hampshire-page .nh-directory {
  max-width: none;
}

.new-hampshire-page .farm {
  margin-bottom: .72rem;
  overflow: hidden;
  background: var(--nh-paper);
  border: 1px solid var(--nh-line);
  border-left: 5px solid var(--nh-granite);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 0 rgba(35, 52, 45, .04);
}

.new-hampshire-page .farm::before {
  display: none;
}

.new-hampshire-page .farm:hover {
  border-left-color: var(--nh-pine);
  box-shadow: 0 6px 18px rgba(35, 52, 45, .08);
}

.new-hampshire-page .farm.is-open {
  transform: none;
  border-color: #9dac9f;
  border-left-color: var(--nh-maple);
  box-shadow: 0 10px 28px rgba(35, 52, 45, .1);
}

.new-hampshire-page .farm-trigger {
  min-height: 5rem;
  padding: 1rem 1.15rem 1rem 1.25rem;
  transition: background .18s ease;
}

.new-hampshire-page .farm-trigger:hover {
  background: #f2f4ef;
}

.new-hampshire-page .farm.is-open .farm-trigger {
  background: #e7ede8;
}

.new-hampshire-page .farm-name {
  color: var(--nh-spruce);
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.25;
}

.new-hampshire-page .farm-town {
  padding: .3rem .65rem;
  background: transparent;
  border: 1px solid #aeb8b1;
  border-radius: 999px;
  color: #53615b;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.new-hampshire-page .chev {
  width: .68rem;
  height: .68rem;
  border-color: var(--nh-pine);
  border-width: 0 2px 2px 0;
}

.new-hampshire-page .farm-panel {
  visibility: hidden;
  transition: grid-template-rows .3s var(--ease), visibility .3s;
}

.new-hampshire-page .farm.is-open .farm-panel {
  visibility: visible;
}

.new-hampshire-page .farm-body {
  padding: 1.25rem 1.35rem 1.5rem;
  background: var(--nh-paper);
  border-top: 1px solid var(--nh-line);
}

.new-hampshire-page .farm-body > p {
  max-width: 52rem;
  color: #4b5853;
  line-height: 1.7;
}

.new-hampshire-page .farm-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--nh-line);
}

.new-hampshire-page .farm-meta div {
  padding-left: .75rem;
  border-left: 2px solid #d6ddd7;
}

.new-hampshire-page .farm-meta dt {
  color: var(--nh-maple);
  font-weight: 800;
}

.new-hampshire-page .farm-meta dd {
  color: var(--nh-slate);
}

.new-hampshire-page .farm-meta a {
  color: var(--nh-pine);
  font-weight: 700;
}

/* State overview */
.nh-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(17rem, .9fr);
  gap: 2.5rem 4rem;
  max-width: 78rem;
  margin-top: clamp(4rem, 9vw, 7rem);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  background: var(--nh-spruce);
  border-bottom: 8px solid var(--nh-maple);
  color: #fff;
  box-shadow: 12px 12px 0 #d9ddd7;
}

.nh-overview .nh-kicker {
  color: #e5b767;
}

.nh-overview-copy h2 {
  margin: .2rem 0 1rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

.nh-overview-copy p {
  color: #e3ece8;
  line-height: 1.75;
}

.nh-overview-copy a {
  color: #fff;
  font-weight: 700;
  text-decoration-color: #dda956;
}

.nh-overview-cards {
  display: grid;
  gap: 1rem;
}

.nh-overview-cards article {
  padding: 1.25rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
}

.nh-overview-cards article + article {
  border-left: 5px solid var(--nh-gold);
}

.nh-overview-cards .nh-card-label {
  color: #e5b767;
}

.nh-overview-cards h3 {
  margin: .3rem 0 .45rem;
  color: #fff;
  font-size: 1.15rem;
}

.nh-overview-cards p:last-child {
  margin: 0;
  color: #dce7e2;
  font-size: .88rem;
  line-height: 1.65;
}

.nh-learn-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .25);
}

.nh-learn-links a {
  min-height: 6.6rem;
  padding: 1.15rem 1rem;
  color: #fff;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, .2);
  transition: background .18s ease;
}

.nh-learn-links a:last-child {
  border-right: 0;
}

.nh-learn-links a:hover,
.nh-learn-links a:focus-visible {
  background: rgba(255, 255, 255, .1);
}

.nh-learn-links span {
  display: block;
  margin-bottom: .45rem;
  color: #e5b767;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.new-hampshire-page .nh-finder {
  max-width: 78rem;
  margin-top: clamp(4rem, 8vw, 6rem);
}

.nh-finder h2 {
  margin: 0 0 1.25rem;
}

@media (max-width: 860px) {
  .nh-directory-shell,
  .nh-overview {
    grid-template-columns: 1fr;
  }

  .nh-sidebar {
    position: static;
    margin-top: 1rem;
  }

  .nh-callout {
    max-width: 38rem;
  }
}

@media (max-width: 700px) {
  .nh-hero {
    min-height: 42rem;
    align-items: flex-end;
  }

  .nh-hero-photo::after {
    background: linear-gradient(0deg, rgba(10, 31, 25, .84) 0%, rgba(10, 31, 25, .22) 65%, rgba(10, 31, 25, .08) 100%);
  }

  .nh-hero-photo img {
    object-position: center 28%;
  }

  .nh-hero-inner {
    padding: 8rem 1rem 2.25rem;
  }

  .nh-title-card {
    padding: 1.35rem;
    border-left-width: 5px;
    box-shadow: 0 14px 32px rgba(6, 25, 20, .26);
  }

  .nh-title-card h1 {
    font-size: clamp(2.5rem, 12vw, 3.7rem);
  }

  .nh-facts {
    display: grid;
    gap: .35rem;
  }

  .nh-sidebar-inner {
    box-shadow: 7px 7px 0 #d9ddd7;
  }

  .new-hampshire-page .farm-trigger {
    min-height: 5.4rem;
  }

  .new-hampshire-page .farm-meta,
  .nh-learn-links {
    grid-template-columns: 1fr;
  }

  .nh-learn-links a {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
  }

  .nh-learn-links a:last-child {
    border-bottom: 0;
  }

  .nh-overview {
    width: calc(100% - 2rem);
    margin-inline: 1rem;
    padding: 1.5rem;
    box-shadow: 7px 7px 0 #d9ddd7;
  }
}

@media (max-width: 520px) {
  .nh-breadcrumb span,
  .nh-breadcrumb a {
    display: none;
  }

  .new-hampshire-page .farm-trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem .8rem;
  }

  .new-hampshire-page .farm-name {
    grid-column: 1;
  }

  .new-hampshire-page .farm-town {
    grid-column: 1;
    justify-self: start;
  }

  .new-hampshire-page .chev {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nh-sidebar-links a,
  .nh-learn-links a,
  .new-hampshire-page .farm,
  .new-hampshire-page .farm-trigger,
  .new-hampshire-page .farm-panel {
    transition: none;
  }
}
