:root {
  --berry: #76214a;
  --berry-dark: #47162f;
  --rose: #d88aa1;
  --blush: #f8e8e6;
  --cream: #fff8f1;
  --gold: #b9873b;
  --green: #5b7c61;
  --charcoal: #252126;
  --muted: #70646b;
  --line: rgba(71, 22, 47, 0.16);
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(71, 22, 47, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 248, 241, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  color: var(--berry-dark);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--berry);
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--berry-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(44, 15, 32, 0.76) 0%, rgba(44, 15, 32, 0.46) 38%, rgba(44, 15, 32, 0.04) 72%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.18), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding: 82px 0 92px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-copy h2,
.section-heading h2,
.two-column h2,
.care-note h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(3.1rem, 8vw, 6.9rem);
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  font-weight: 500;
}

.hero-actions,
.site-footer,
.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.hero-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  width: min(760px, 100%);
  margin-top: 28px;
}

.hero-dashboard article {
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 248, 241, 0.14);
  backdrop-filter: blur(12px);
}

.hero-dashboard span {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
}

.hero-dashboard strong {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
}

.hero-dashboard small {
  display: block;
  min-height: 17px;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-dashboard .goal-card {
  background: rgba(255, 248, 241, 0.2);
  border-color: rgba(201, 154, 74, 0.42);
}

.progress-lookup {
  width: min(760px, 100%);
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(37, 33, 38, 0.42);
  backdrop-filter: blur(12px);
}

.progress-lookup label {
  margin: 0 0 8px;
  color: var(--white);
}

.progress-lookup div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.progress-lookup input {
  border-color: rgba(255, 255, 255, 0.42);
}

.progress-lookup .button {
  min-width: 112px;
}

.progress-lookup p {
  min-height: 22px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--berry);
  color: var(--white);
  box-shadow: 0 12px 34px rgba(71, 22, 47, 0.2);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.button.mint {
  background: #dceee0;
  color: #24472f;
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 12px 34px rgba(36, 71, 47, 0.2);
}

.button.muted {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
}

.button.full-width {
  width: 100%;
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-section,
.form-section,
.donation-section,
.sponsor-section,
.care-note,
.organizer-section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.two-column,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.two-column h2,
.section-copy h2,
.section-heading h2,
.care-note h2 {
  color: var(--berry-dark);
  font-size: clamp(2.1rem, 4.6vw, 4.1rem);
}

.prose p,
.section-copy p,
.section-heading p,
.care-note p {
  color: var(--muted);
  font-size: 1.05rem;
}

.prose p:first-child,
.section-copy p:first-of-type,
.section-heading p:first-of-type {
  margin-top: 0;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.story-heading {
  position: sticky;
  top: 104px;
}

.story-heading h2 {
  margin: 0;
  color: var(--berry-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.story-lede {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.story-lede strong,
.story-card strong,
.story-closing strong {
  color: var(--berry);
}

.story-body {
  display: grid;
  gap: 18px;
}

.story-card,
.pull-quote,
.walk-refrain,
.story-closing {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.story-card {
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.story-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.story-card p + p {
  margin-top: 18px;
}

.story-label {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legacy-card {
  border-left: 6px solid var(--gold);
}

.dignity-card {
  border-left: 6px solid var(--green);
}

.pull-quote {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  color: var(--white);
  background: var(--berry-dark);
  border-color: transparent;
  box-shadow: 0 18px 46px rgba(71, 22, 47, 0.18);
}

.pull-quote span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  font-weight: 700;
  line-height: 0.94;
}

.pull-quote p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  font-weight: 700;
}

.walk-refrain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.walk-refrain p {
  min-height: 112px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 22px;
  color: var(--berry-dark);
  background: var(--blush);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.32rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.16;
}

.story-closing {
  margin: 0;
  padding: clamp(24px, 4vw, 34px);
  color: var(--muted);
  font-size: 1.08rem;
  border-left: 6px solid var(--rose);
}

.metrics-band {
  padding: 64px 0;
  background: var(--berry-dark);
  color: var(--white);
}

.metrics-band .eyebrow,
.metrics-band h2 {
  color: var(--white);
}

.metrics-band .section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.metric-grid,
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric-card,
.sponsor-card,
.panel,
.recent-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 28px;
  background: rgba(255, 248, 241, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.metric-value {
  display: block;
  color: var(--rose);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
}

.metric-label {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.form-section.alt {
  background: var(--blush);
}

.split-layout {
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
}

.split-layout.reversed {
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
}

.split-layout.reversed .section-copy {
  order: 2;
}

.form-card {
  padding: clamp(22px, 4vw, 34px);
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--berry-dark);
  font-size: 0.94rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(71, 22, 47, 0.22);
  border-radius: 6px;
  background: var(--white);
  color: var(--charcoal);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(216, 138, 161, 0.42);
  border-color: var(--berry);
}

.form-note {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--green);
  font-weight: 800;
}

.recent-panel {
  margin-top: 28px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: none;
}

.recent-panel h3,
.sponsor-card h3 {
  margin: 0 0 10px;
  color: var(--berry-dark);
}

#recent-walks {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.donation-section {
  background: var(--green);
  color: var(--white);
}

.donation-section h2,
.donation-section .eyebrow,
.donation-section .prose p {
  color: var(--white);
}

.donation-section .status-callout {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.donation-section .button.primary {
  background: var(--white);
  color: var(--berry-dark);
}

.sponsor-card {
  padding: 24px;
  box-shadow: none;
}

.sponsor-card p {
  margin: 0;
  color: var(--muted);
}

.form-card.wide {
  margin-top: 28px;
}

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

.care-note {
  background: var(--charcoal);
  color: var(--white);
}

.care-note h2,
.care-note p,
.care-note h3 {
  color: var(--white);
}

.care-note .eyebrow {
  color: var(--rose);
}

.care-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.care-heading h2,
.organizer-panel h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 4.6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}

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

.care-grid article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.care-grid h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.care-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.organizer-section {
  background: var(--blush);
}

.organizer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.organizer-panel h2 {
  color: var(--berry-dark);
}

.organizer-panel p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
}

.organizer-actions {
  display: grid;
  gap: 12px;
  min-width: min(280px, 100%);
}

.button.muted-light {
  background: var(--white);
  color: var(--berry-dark);
  border-color: var(--line);
}

.site-footer {
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--berry-dark);
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: grid;
  gap: 3px;
}

.site-footer span {
  color: var(--muted);
}

.site-footer a {
  color: var(--berry);
  font-weight: 800;
}

@media (max-width: 850px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(44, 15, 32, 0.82), rgba(44, 15, 32, 0.5)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.18), transparent 42%);
  }

  .two-column,
  .story-layout,
  .split-layout,
  .split-layout.reversed,
  .sponsor-grid,
  .form-grid,
  .care-grid,
  .organizer-panel {
    grid-template-columns: 1fr;
  }

  .story-heading {
    position: static;
  }

  .hero-dashboard,
  .metric-grid,
  .walk-refrain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout.reversed .section-copy {
    order: 0;
  }
}

@media (max-width: 520px) {
  .hero-content {
    width: min(100% - 28px, 720px);
    margin-left: 14px;
  }

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

  .hero-dashboard,
  .progress-lookup div,
  .metric-grid,
  .pull-quote,
  .walk-refrain {
    grid-template-columns: 1fr;
  }

  .brand {
    align-items: flex-start;
  }

  .nav-links {
    gap: 18px;
    font-size: 0.86rem;
  }

  .metric-card,
  .sponsor-card,
  .form-card {
    padding: 20px;
  }
}
