:root {
  color-scheme: light;
  --paper: #faf6f1;
  --ink: #352326;
  --muted: #695556;
  --rose: #843e56;
  --rose-hover: #6b2d43;
  --line: #e3d0ca;
  --blush: #f3e7e3;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: var(--rose); }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; overflow-wrap: break-word; }
h1, h2 { font: 400 clamp(2.2rem, 5vw, 3.5rem)/1.08 var(--serif); letter-spacing: -.045em; }
h1 { font-size: clamp(3.15rem, 8vw, 6rem); line-height: .99; }
h1 em { color: var(--rose); font-weight: 400; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
section[id] { scroll-margin-top: 1rem; }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.skip { position: absolute; z-index: 1; top: .5rem; left: .5rem; padding: .65rem 1rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.header-inner { min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 400 clamp(1.1rem, 2.5vw, 1.45rem)/1.2 var(--serif); color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--blush); color: var(--rose); font: 1.25rem/1 var(--sans); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .65rem; font: 650 .925rem/1.25 var(--sans); text-align: center; text-decoration: none; cursor: pointer; transition: background-color .18s, border-color .18s; }
.primary, .header-action { background: var(--rose); color: white; }
.primary:hover:not(:disabled), .header-action:hover { background: var(--rose-hover); }
.outline { border-color: #cfaeae; color: var(--rose); }
.outline:hover { background: var(--blush); }
.header-action { min-height: 2.75rem; padding-inline: .8rem; border-radius: 2rem; white-space: nowrap; font-size: .875rem; }
.button:disabled { background: #efe2df; color: #6f5154; cursor: default; }

.hero { display: grid; align-items: center; gap: 1.65rem; padding-block: clamp(2.75rem, 6vw, 5rem); }
.eyebrow { display: flex; align-items: center; gap: .55rem; margin-bottom: .85rem; color: var(--rose); text-transform: uppercase; letter-spacing: .13em; font-size: .875rem; font-weight: 700; }
.eyebrow span { width: 1.2rem; height: 1px; background: currentColor; }
.hero-description { margin-top: 1.25rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-actions, .accompany-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.hero-actions .button { flex: 1 1 11rem; }
.portrait { position: relative; min-width: 0; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1.58; border: 1px solid #e1cbc4; border-radius: 1rem; background: radial-gradient(ellipse at 20% 10%, #f6eae3, transparent 68%), linear-gradient(135deg, #ebd6cd, #ddc0bd); }
.portrait-placeholder { position: absolute; inset: .85rem; display: grid; place-content: center; justify-items: center; gap: .5rem; border: 1px solid #fff9; border-radius: .65rem; color: #6e4c51; font-size: .875rem; }
.portrait-heart { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border: 1px solid #9b6b73; border-radius: 50%; font: 2rem/1 var(--sans); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; position: absolute; inset: 0; }

.donation-band { background: var(--blush); border-block: 1px solid var(--line); }
.donation-layout { display: grid; gap: 1.35rem; align-items: center; padding-block: clamp(1.65rem, 4.5vw, 3.3rem); }
.donation-layout h2 + p { max-width: 28rem; margin-top: .8rem; color: var(--muted); }
.donation-note { grid-column: 1 / -1; color: var(--muted); font-size: .875rem; }
.bank-card { min-width: 0; padding: clamp(1rem, 3vw, 1.55rem); border: 1px solid var(--line); border-radius: .9rem; background: #fffcfa; box-shadow: 0 5px 18px #492f2810; }
.bank-label { color: var(--rose); font-size: .875rem; font-weight: 700; }
.alias-row { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; justify-content: space-between; margin-block: .25rem .85rem; }
.alias { min-width: 0; overflow-wrap: anywhere; font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: -.04em; user-select: all; }
.copy-button { flex: none; }
.copy-icon { position: relative; width: .72rem; height: .8rem; border: 1px solid currentColor; border-radius: .15rem; }
.copy-icon::before { content: ""; position: absolute; top: -.22rem; left: .15rem; width: .69rem; height: .76rem; border: 1px solid currentColor; border-bottom: 0; border-left: 0; border-radius: .15rem; }
.bank-details { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding-top: .65rem; border-top: 1px solid var(--line); font-size: .875rem; }
.bank-details div { min-width: 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.bank-relationship { color: var(--muted); font-weight: 400; }
.clipboard-field { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.status { color: var(--rose); font-size: .875rem; margin-top: .6rem; }
.status:empty { margin: 0; }
.qr { margin-top: 1rem; color: var(--muted); font-size: .875rem; }
.qr img { display: block; margin-bottom: .35rem; object-fit: contain; }

.story { display: grid; align-items: start; gap: 1.25rem; padding-block: clamp(2.75rem, 7vw, 5.5rem); }
.story-text { max-width: 63ch; color: var(--muted); }
.story-text p + p { margin-top: .875rem; }
.story-text p:last-child { color: var(--rose); font-weight: 650; }
.optional, .accompany { padding-block: 2rem; border-top: 1px solid var(--line); }
.optional p, .optional article { margin-top: .65rem; }
.optional article p { white-space: pre-line; }
.site-footer { padding-block: 1.6rem; background: #f2e8e1; border-top: 1px solid var(--line); }
.footer-inner { flex-wrap: wrap; align-items: flex-start; gap: 1rem 2rem; }
.footer-inner p, .footer-links { margin-top: .35rem; color: var(--muted); font-size: .875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; overflow-wrap: anywhere; }
.footer-inner .thanks { color: var(--rose); }

@media (min-width: 44rem) {
  .wrap { width: min(100% - 4rem, 70rem); }
  .hero { grid-template-columns: 1.18fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
  .portrait { aspect-ratio: 1.12; }
  .hero-actions .button { flex: initial; }
  .donation-layout { grid-template-columns: .85fr 1.15fr; column-gap: clamp(2rem, 6vw, 5rem); }
  .donation-note { grid-column: 2; }
  .story { grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); column-gap: clamp(2rem, 5vw, 4rem); }
  .story h2 { grid-column: 1 / -1; }
}

@media (max-width: 25rem) {
  .hero-actions .button, .copy-button, .accompany-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

.contact-panel { margin-top: .75rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .65rem; color: var(--muted); }
.contact-email { font-weight: 650; overflow-wrap: anywhere; }
.family-photo { width: min(100%, 19rem); }
.family-photo img { display: block; width: 100%; height: auto; border-radius: .9rem; }
