:root {
  --bg: #fbf7f1;
  --card: #ffffff;
  --text: #2a231d;
  --muted: #6d6258;
  --rust: #9a4628;
  --rust-dark: #7d351e;
  --gold: #d7aa68;
  --gold-soft: #f4e5cc;
  --border: #e8ddd1;
  --shadow: 0 18px 45px rgba(42, 35, 29, 0.1);
  --max-width: 1120px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

body,
button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--rust);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rust-dark);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 17ch;
  font-size: clamp(2.55rem, 4.4vw, 4.15rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

p {
  margin: 0;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.section-pad {
  padding-block: 84px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(232, 221, 209, 0.82);
  background: rgba(251, 247, 241, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(calc(100% - 32px), var(--max-width));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.site-actions,
.button-row,
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--text);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button-primary {
  background: var(--rust);
  color: #fffaf4;
  font-size: 1.05rem;
}

.button-primary:hover {
  background: var(--rust-dark);
  color: #fffaf4;
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--gold);
  background: #ffffff;
  color: var(--text);
}

.button-large {
  min-height: 50px;
  padding-inline: 24px;
}

.button-large.button-primary {
  min-height: 56px;
  padding-inline: 30px;
  font-size: 1.28rem;
}

.button-stacked {
  min-height: 68px;
  flex-direction: column;
  gap: 3px;
  line-height: 1.12;
  padding-block: 10px;
}

.button-stacked .button-main {
  font-size: 1.35rem;
}

.button-stacked .button-note {
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0.92;
}

.hero {
  padding-top: 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.82fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.eyebrow {
  color: var(--rust);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.16rem, 2vw, 1.34rem);
  line-height: 1.55;
}

.designation-box {
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dfbf86;
  border-radius: 8px;
  background: var(--gold-soft);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(154, 70, 40, 0.08);
}

.designation-box p {
  max-width: 55ch;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.48;
}

.copy-button {
  min-height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--rust);
  border-radius: 999px;
  background: var(--card);
  color: var(--rust);
  padding: 9px 16px;
  font-weight: 800;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--rust-dark);
  color: var(--rust-dark);
}

.trust-line {
  max-width: 65ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: 10px;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 52%;
}

.cost-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: -20px;
  margin-bottom: 16px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 12px 30px rgba(42, 35, 29, 0.06);
}

.stat-value {
  color: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  font-weight: 700;
  line-height: 1;
}

.stat-card h2 {
  max-width: 38ch;
  margin-top: 10px;
  color: var(--muted);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.story-section {
  padding-top: 72px;
}

.story-section h2 {
  margin-bottom: 28px;
}

.story-copy {
  max-width: 100%;
  color: var(--text);
  font-size: clamp(1.05rem, 1.3vw, 1.16rem);
}

.story-copy::after {
  content: "";
  display: block;
  clear: both;
}

.story-copy p {
  max-width: 65ch;
  margin-bottom: 1.1em;
}

.story-photo {
  width: min(42%, 420px);
  float: right;
  margin: 0 0 28px 44px;
}

.story-photo img,
.medical-gallery img {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 14px 36px rgba(42, 35, 29, 0.08);
}

.story-photo img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.bill-section {
  padding-block: 34px;
}

.bill-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.7fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: clamp(18px, 3vw, 26px);
  box-shadow: 0 14px 34px rgba(42, 35, 29, 0.07);
}

.bill-copy {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.bill-copy h2 {
  max-width: 13ch;
}

.bill-copy p:not(.eyebrow) {
  max-width: 58ch;
  color: var(--muted);
}

.bill-photo {
  margin: 0;
}

.bill-photo img {
  width: 100%;
  max-height: 540px;
  border: 1px solid var(--border);
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.community-band {
  margin-top: 24px;
  background: #f3dfbf;
  border-block: 1px solid #e2c58f;
}

.community-content {
  padding-block: clamp(36px, 5vw, 58px);
  display: grid;
  justify-items: start;
  gap: 12px;
}

.community-content h2 {
  max-width: 20ch;
  color: var(--text);
  font-size: clamp(2.1rem, 5vw, 4.15rem);
}

.community-content p {
  max-width: 65ch;
  color: #4c4035;
}

.final-donation {
  background: var(--text);
  color: #fffaf4;
  padding-block: clamp(34px, 5vw, 52px);
}

.final-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px, 5vw, 54px);
}

.final-donation h2 {
  max-width: 26ch;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.final-donation p {
  max-width: 65ch;
  margin-top: 10px;
  color: #f3e9dd;
}

.final-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
  flex: 0 0 auto;
}

.button-on-dark {
  background: var(--gold);
  color: var(--text);
}

.button-on-dark:hover {
  background: #e1ba80;
  color: var(--text);
}

.text-link-on-dark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #fff4e4;
  font-weight: 800;
}

.text-link-on-dark:hover {
  color: #ffffff;
}

.final-tax-line {
  font-size: 0.96rem;
}

.medical-photos {
  padding-block: 44px 64px;
}

details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.medical-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 18px 18px;
}

.medical-gallery figure {
  margin: 0;
}

.medical-gallery img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 34px;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-title {
  color: var(--text);
  font-weight: 800;
}

.site-footer p:not(.footer-title) {
  max-width: 62ch;
  margin-top: 6px;
  font-size: 0.95rem;
}

.footer-links a {
  font-weight: 800;
}

.share-panel[hidden] {
  display: none;
}

.share-panel {
  position: fixed;
  inset: auto 18px 18px auto;
  z-index: 70;
  width: min(calc(100% - 36px), 430px);
}

.share-panel-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: 18px;
  box-shadow: 0 18px 52px rgba(42, 35, 29, 0.2);
}

.share-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.share-panel h2 {
  color: var(--text);
  font-family: inherit;
  font-size: 1.2rem;
  line-height: 1.25;
}

.share-panel p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.share-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.share-option {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 10px 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.share-option:hover {
  border-color: var(--gold);
  color: var(--rust-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    width: min(100%, 460px);
    justify-self: center;
  }

  h1 {
    max-width: 15ch;
  }

  .story-photo {
    width: min(46%, 360px);
    margin-left: 30px;
  }

  .hero-card {
    order: -1;
  }

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

  .final-compact {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-actions {
    justify-items: start;
  }
}

@media (max-width: 699px) {
  :root {
    --header-height: 64px;
  }

  html {
    scroll-padding-top: var(--header-height);
  }

  body {
    font-size: 17px;
  }

  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .section-pad {
    padding-block: 54px;
  }

  .site-actions [data-share-button] {
    display: none;
  }

  .brand {
    font-size: 1.2rem;
  }

  .button {
    padding-inline: 16px;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-grid {
    gap: 30px;
  }

  .hero-card {
    width: min(100%, 380px);
  }

  .hero-copy {
    gap: 20px;
  }

  h1 {
    max-width: 13ch;
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .button-row,
  .site-actions {
    align-items: stretch;
  }

  .button-row {
    flex-direction: column;
  }

  .designation-box {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }

  .cost-summary {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .story-section {
    padding-top: 46px;
  }

  .story-photo {
    float: none;
    width: 100%;
    margin: 0 0 24px;
  }

  .community-content {
    justify-items: stretch;
  }

  .community-content h2 {
    max-width: 15ch;
  }

  .final-actions {
    width: 100%;
    justify-items: stretch;
  }

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

  .medical-gallery {
    grid-template-columns: 1fr;
  }

  .share-panel {
    inset: auto 14px calc(14px + env(safe-area-inset-bottom)) 14px;
    width: auto;
  }

  .share-options {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (max-width: 380px) {
  .header-inner {
    width: min(calc(100% - 24px), var(--max-width));
    gap: 10px;
  }

  .site-actions .button {
    padding-inline: 13px;
  }

  .eyebrow {
    font-size: 0.76rem;
  }
}

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

  .button:hover {
    transform: none;
  }
}
