.valley-theme {
  --cream: #f7f3ea;
  --cream-deep: #e9dfca;
  --paper: #fcfaf5;
  --ink: #303730;
  --ink-soft: #50594e;
  --muted: #666b5e;
  --orange: #a65b44;
  --orange-dark: #8e4935;
  --teal: #52674b;
  --teal-dark: #3d503b;
  --teal-pale: #e2e8d9;
  --line: rgba(67, 79, 59, 0.18);
  --shadow: 0 20px 48px rgba(69, 64, 47, 0.1);
  --display: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

.valley-theme .announcement,
.valley-theme .nav-links,
.valley-theme .nav-cta,
.valley-theme .button,
.valley-theme .eyebrow,
.valley-theme .feature-number,
.valley-theme .local-tags,
.valley-theme .local-tags li,
.valley-theme .opening-stamp,
.valley-theme .story-kicker,
.valley-theme .text-link,
.valley-theme .signup-form button,
.valley-theme .faq summary,
.valley-theme .footer-mark,
.valley-theme .footer-links {
  font-family: var(--body);
}

.valley-theme .pill,
.valley-theme .chip,
.valley-theme .stamp,
.valley-theme .quote-band cite,
.valley-theme .signature,
.valley-theme .field > span {
  font-family: var(--body);
}

.valley-theme .announcement {
  background: var(--teal-dark);
}

.valley-theme .site-header {
  background: rgba(247, 243, 234, 0.96);
}

.valley-theme .nav-shell {
  grid-template-columns: auto 1fr;
  gap: 16px;
}

.valley-theme .nav-links {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(16px, 2.3vw, 30px);
  padding: 0;
  border: 0;
  background: transparent;
}

.valley-theme .menu-toggle {
  display: none;
}

.valley-theme .hero {
  padding: clamp(32px, 4vw, 56px) 0 clamp(40px, 5vw, 64px);
}

.valley-theme .hero-grid {
  gap: clamp(28px, 4vw, 56px);
}

.valley-theme .hero-grid--text {
  grid-template-columns: 1fr;
}

.valley-theme .hero-grid--text .hero-copy {
  max-width: 820px;
}

.valley-theme .hero-visual {
  min-height: 540px;
}

.valley-theme .hero-copy > p {
  margin-top: 20px;
}

.valley-theme .hero-actions {
  margin-top: 24px;
}

.valley-theme .hero::after,
.valley-theme .story-band::before,
.valley-theme .community-card::after,
.valley-theme .signup::before,
.valley-theme .signup::after {
  content: none;
}

.valley-theme .hero h1,
.valley-theme .section-title,
.valley-theme .signup h2 {
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.valley-theme .hero h1 em {
  font-style: italic;
}

.valley-theme .hero-copy > .eyebrow {
  font-size: 12px;
  color: var(--teal);
}

.valley-theme .photo-main {
  width: min(86%, 350px);
  transform: rotate(1deg);
}

.valley-theme .photo-small {
  transform: rotate(-3deg);
}

.valley-theme .photo-main img,
.valley-theme .photo-small img {
  height: auto;
}

.valley-theme .opening-stamp {
  border: 1px solid var(--teal-pale);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.name-story {
  padding: 0 24px clamp(40px, 5vw, 64px);
  text-align: center;
}

.name-inner {
  max-width: 760px;
  margin: 0 auto;
}

.valley-theme .family-memory {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.valley-theme .memory-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  filter: saturate(0.55) sepia(0.15);
  pointer-events: none;
  user-select: none;
}

.valley-theme .memory-photo--coast {
  object-position: 40% 72%;
}

.valley-theme .memory-photo--portrait {
  left: auto;
  right: 3%;
  width: min(44%, 360px);
  object-position: 35% 30%;
  opacity: 0.22;
  mask-image: linear-gradient(to right, transparent, #fff 30%, #fff 70%, transparent);
}

.valley-theme .memory-photo--tulips {
  object-position: left bottom;
  opacity: 0.16;
}

.family-page-inner {
  width: min(100% - 40px, 780px);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) 0;
}

.family-intro {
  padding-bottom: 28px;
}

.family-intro .eyebrow {
  margin-bottom: 14px;
}

.family-intro h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.family-intro h1 em {
  color: var(--orange);
}

.family-lede {
  margin: 18px 0 0;
  color: var(--teal-dark);
  font-size: clamp(18px, 2vw, 22px);
}

.family-chapter {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.family-chapter h2 {
  position: relative;
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.family-chapter p {
  position: relative;
  max-width: 640px;
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
  text-wrap: pretty;
}

.family-chapter p:last-child {
  margin-bottom: 0;
}

.family-chapter--photo {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

.family-chapter--reverse .family-photo {
  order: -1;
}

.family-photo {
  min-width: 0;
  margin: 0;
  padding: 4px;
}

.family-photo img {
  width: 100%;
  height: auto;
  border: 7px solid var(--paper);
  filter: saturate(0.85) sepia(0.08);
  transform: rotate(1deg);
}

.family-photo--redwoods img {
  transform: rotate(-1deg);
}

.family-photo figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
}

.valley-theme .family-chapter .memory-photo {
  opacity: 0.1;
  mask-image: linear-gradient(to bottom, transparent, #fff 20%, #fff 75%, transparent);
}

.valley-theme .family-chapter .memory-photo--portrait {
  opacity: 0.14;
  mask-image: linear-gradient(to right, transparent, #fff 35%, #fff 75%, transparent);
}

.family-signoff {
  margin: 18px 0 0;
  color: var(--teal-dark);
  font-family: var(--display);
  font-size: 20px;
  font-style: italic;
}

.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto 20px;
  color: var(--teal);
}

.leaf-divider span {
  width: min(22vw, 140px);
  height: 1px;
  background: var(--line);
}

.leaf-divider svg {
  width: 64px;
  height: 52px;
  flex-shrink: 0;
}

.name-story h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.2;
}

.name-story p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.6;
  text-wrap: pretty;
}

.valley-theme .story-inner,
.valley-theme .signup-inner {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.valley-theme .story-kicker {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.35;
}

.valley-theme .story-kicker strong {
  display: inline;
  margin: 0;
  color: var(--cream-deep);
  font-size: inherit;
  font-weight: 400;
}

.valley-theme .signup-form[hidden] {
  display: none;
}

.valley-theme .stacked-form[hidden] {
  display: none;
}

.valley-theme .build-section,
.valley-theme .community {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.valley-theme .section-heading {
  gap: 24px;
  margin-bottom: 28px;
}

.valley-theme .community {
  gap: clamp(28px, 4vw, 48px);
}

.valley-theme .feature-card {
  min-height: 0;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 36px;
  box-shadow: none;
}

.valley-theme .feature-card.local {
  background: var(--teal-dark);
}

.valley-theme .feature-card .feature-number {
  margin-bottom: 18px;
}

.valley-theme .local-tags {
  padding-top: 24px;
}

.valley-theme .feature-card.seasonal {
  background: var(--cream-deep);
}

.valley-theme .feature-card.neighborhood {
  background: #ead8ce;
  color: var(--ink);
}

.valley-theme .feature-card.neighborhood .feature-number,
.valley-theme .feature-card.neighborhood p {
  color: var(--ink-soft);
}

.valley-theme .menu-tease {
  width: min(100% - 48px, 1200px);
  min-height: 0;
  margin: 0 auto clamp(40px, 5vw, 64px);
  overflow: hidden;
  border-radius: 40px;
  background: var(--paper);
}

.valley-theme .menu-copy {
  padding: clamp(28px, 3vw, 40px);
}

.valley-theme .menu-tease--text {
  grid-template-columns: 1fr;
}

.valley-theme .menu-tease--text .menu-copy p {
  max-width: 760px;
}

.valley-theme .menu-photo {
  min-height: 360px;
}

.valley-theme .community-card {
  align-self: start;
  padding: clamp(28px, 3vw, 40px);
  border: 0;
  border-radius: 40px 40px 64px 40px;
  background: #e7eadf;
  transform: none;
}

.valley-theme .community-card h2,
.valley-theme .faq h2 {
  font-weight: 400;
  line-height: 1.16;
}

.valley-theme .community-card p:not(.eyebrow) {
  line-height: 1.6;
}

.valley-theme .footer-inner {
  padding: 32px 0;
}

.valley-theme .footer-mark {
  letter-spacing: 0.06em;
}

.valley-theme :focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}

.valley-theme .signup-form input[type="email"]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
  border-radius: 24px;
}

.valley-theme .page-hero {
  padding: clamp(40px, 5vw, 64px) 0;
}

.valley-theme .page-hero::after,
.valley-theme .quote-band::before {
  content: none;
}

.valley-theme .page-hero h1,
.valley-theme .stage-inner h1,
.valley-theme .panel h2,
.valley-theme .panel h3,
.valley-theme .mini-card h3,
.valley-theme .quote-band blockquote,
.valley-theme .person h3 {
  font-weight: 400;
  line-height: 1.16;
}

.valley-theme .page-hero h1 em,
.valley-theme .stage-inner h1 em {
  color: var(--orange);
  font-style: italic;
}

.valley-theme .section {
  padding: clamp(40px, 5vw, 64px) 0;
}

.valley-theme .section.snug {
  padding: clamp(28px, 3vw, 40px) 0;
}

.valley-theme .section.flush-top {
  padding-top: 0;
}

.valley-theme .section.flush-bottom {
  padding-bottom: 0;
}

.valley-theme .panel,
.valley-theme .mini-card {
  border-radius: 36px;
}

.valley-theme .panel.center {
  background: #e7eadf;
}

.valley-theme .panel.teal.center {
  background: var(--teal-dark);
}

.valley-theme .mini-card.orange {
  background: var(--teal-dark);
}

.valley-theme .mini-card.deep {
  background: #ead8ce;
}

.valley-theme .quote-band .wrap {
  padding: clamp(40px, 5vw, 64px) 0;
}

.valley-theme .panel .ring-mark,
.valley-theme .quote-band .wrap::before {
  width: 64px;
  height: 52px;
  border: 0;
  background: var(--teal);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 64' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 54C30 39 40 26 57 12M36 34C20 35 15 24 16 17C28 16 38 21 36 34ZM44 25C43 12 51 7 65 7C64 19 57 28 44 25ZM29 43C38 30 52 32 60 37C51 47 39 51 29 43Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.valley-theme .panel .ring-mark {
  right: 20px;
  bottom: 18px;
  border-radius: 0;
  opacity: 0.2;
}

.valley-theme .panel.teal .ring-mark,
.valley-theme .quote-band .wrap::before {
  background: var(--cream-deep);
}

.valley-theme .quote-band .wrap::before {
  display: block;
  margin: 0 auto 28px;
  content: "";
}

.valley-theme .arch-photo {
  transform: rotate(1deg);
}

.valley-theme .tilt-photo {
  transform: rotate(-1deg);
}

.valley-theme .arch-photo img,
.valley-theme .tilt-photo img {
  height: auto;
}

.valley-theme .stamp {
  border: 1px solid var(--teal-pale);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.valley-theme .pill {
  transform: none;
}

.valley-theme .panel .pill {
  color: var(--paper);
}

.valley-theme .timeline-track {
  height: 2px;
  border-radius: 999px;
}

.valley-theme .people {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.valley-theme .person h3 {
  font-size: 23px;
}

.valley-theme .stage {
  padding: clamp(40px, 5vw, 64px) 0;
}

.valley-theme .stage-art {
  opacity: 0.07;
}

.valley-theme .big-number {
  color: var(--cream-deep);
  font-weight: 400;
  -webkit-text-stroke: 1px var(--orange);
}

.valley-theme .field input,
.valley-theme .field textarea {
  border-radius: 18px;
}

.valley-theme .section[id],
.valley-theme .signup[id] {
  scroll-margin-top: 112px;
}

@media (max-width: 700px) {
  .family-chapter--photo {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .family-chapter--reverse .family-photo {
    order: 0;
  }

  .family-photo {
    width: min(100%, 440px);
    justify-self: center;
  }
}

@media (max-width: 600px) {
  .family-page-inner {
    width: calc(100% - 32px);
  }

  .family-chapter {
    padding: 24px 0;
  }

  .valley-theme .memory-photo--portrait {
    right: 0;
    width: 70%;
    opacity: 0.14;
  }

  .valley-theme .hero-visual {
    min-height: 450px;
  }

  .valley-theme .photo-main {
    width: min(82%, 280px);
  }

  .valley-theme .menu-tease {
    width: calc(100% - 32px);
    border-radius: 28px;
  }

  .valley-theme .menu-copy {
    padding: 28px 24px 32px;
  }

  .valley-theme .menu-photo {
    min-height: 260px;
  }

  .valley-theme .feature-card,
  .valley-theme .community-card {
    border-radius: 28px;
  }

  .valley-theme .hero-actions .button {
    width: 100%;
  }

  .name-story {
    padding-right: 24px;
    padding-left: 24px;
  }

  .valley-theme .panel,
  .valley-theme .mini-card {
    border-radius: 28px;
  }

  .valley-theme .section[id],
  .valley-theme .signup[id] {
    scroll-margin-top: 96px;
  }
}
