/* ==========================================================================
   The Sowell Foundation — styles
   Layout concept: an editorial, left-aligned page. A single lavender
   "remembrance" orb anchors the hero; a deep plum band carries the
   memorial invitation; ivory pages hold everything else.
   ========================================================================== */

:root {
  /* Color — light */
  --bg: #FAF7F9;          /* lilac-tinted ivory */
  --surface: #F2ECF4;     /* soft lavender paper */
  --tint: #E3D6EE;        /* lavender */
  --lilac: #B79CD3;       /* lilac */
  --blush: #F3DCE7;       /* soft pink */
  --rose: #A8456F;        /* rose accent (text-safe) */
  --on-band-rose: #F2C3D8;
  --accent: #6A478F;      /* purple accent */
  --accent-strong: #3A1D45; /* deep plum */
  --fg: #2A1A30;          /* plum ink */
  --muted: #5F5066;
  --line: rgba(58, 29, 69, 0.16);
  --band: #3A1D45;        /* memorial band */
  --on-band: #F7F1F8;
  --on-band-muted: #D8C9E3;
  --btn-fg: #FFFFFF;
  --draft-bg: #FFF3C9;
  --draft-fg: #5A4300;

  /* Type */
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --font-text: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-hero: clamp(3.4rem, 1.6rem + 9vw, 9.5rem);

  /* Space */
  --gutter: 16px;
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius: 4px;
  --header-h: 72px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #160F1A;
    --surface: #1F1524;
    --tint: #34253F;
    --lilac: #8C70AD;
    --blush: #3B2232;
    --rose: #EBA8C6;
    --on-band-rose: #F2C3D8;
    --accent: #CDB4EA;
    --accent-strong: #E9DCF5;
    --fg: #F2EBF4;
    --muted: #B9A9C2;
    --line: rgba(233, 220, 245, 0.16);
    --band: #2A1A33;
    --on-band: #F7F1F8;
    --on-band-muted: #CDBBDA;
    --btn-fg: #1C1220;
    --draft-bg: #4A3B0A;
    --draft-fg: #FFE9A8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #160F1A;
  --surface: #1F1524;
  --tint: #34253F;
  --lilac: #8C70AD;
  --blush: #3B2232;
  --rose: #EBA8C6;
  --on-band-rose: #F2C3D8;
  --accent: #CDB4EA;
  --accent-strong: #E9DCF5;
  --fg: #F2EBF4;
  --muted: #B9A9C2;
  --line: rgba(233, 220, 245, 0.16);
  --band: #2A1A33;
  --on-band: #F7F1F8;
  --on-band-muted: #CDBBDA;
  --btn-fg: #1C1220;
  --draft-bg: #4A3B0A;
  --draft-fg: #FFE9A8;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { /* paints the phone's top safe-area band */
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg);
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }
p { text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
section[id], header[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { :root { --gutter: 40px; } }
@media (min-width: 1100px) { :root { --gutter: 56px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent-strong); color: var(--bg);
  padding: 10px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--accent-strong);
}
.section-title em { font-style: italic; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.5rem;
  font: 600 0.9375rem/1 var(--font-text);
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn-solid { background: var(--accent-strong); color: var(--bg); }
.btn-solid:hover { background: var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--accent-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: var(--on-band); color: #3A1D45; }
.btn-light:hover { background: var(--tint); }
.btn-small { min-height: 40px; padding: 0 1.1rem; font-size: 0.875rem; }
.btn-disabled, .btn[disabled] {
  background: transparent; color: var(--muted);
  border: 1.5px dashed var(--line); cursor: not-allowed;
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Draft markers ---------- */
.draft-tag {
  display: inline-block;
  margin: 0.25rem 0;
  padding: 0.15rem 0.55rem;
  font: 600 0.6875rem/1.5 var(--font-text);
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--draft-bg); color: var(--draft-fg);
  border-radius: 3px; vertical-align: middle;
}
.no-draft .draft-tag { display: none; }
.placeholder-text { color: var(--muted); font-style: italic; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}

/* Wordmark: "The" in italic, SOWELL in Bodoni, FOUNDATION tracked beneath */
.wordmark {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 0.3rem;
  text-decoration: none;
  color: var(--accent-strong);
  line-height: 1;
}
.wm-the { font-family: var(--font-display); font-style: italic; font-size: 0.95rem; color: var(--accent); }
.wm-name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; letter-spacing: 0.01em; }
.wm-sub {
  grid-column: 1 / -1;
  margin-top: 0.3rem;
  font-family: var(--font-text); font-weight: 600;
  font-size: 0.56rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--muted);
}

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a:not(.btn) {
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  padding: 0.6rem 0.6rem; color: var(--fg);
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.35rem;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
@media (min-width: 720px) { .site-nav { gap: 0.75rem; } .site-nav .btn { margin-left: 0.5rem; } }
@media (max-width: 380px) {
  .wm-name { font-size: 1.3rem; }
  .site-nav a:not(.btn) { padding-inline: 0.4rem; font-size: 0.875rem; }
  .site-nav .btn-small { padding: 0 0.85rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 8vw, 8.5rem) clamp(4rem, 3rem + 6vw, 8rem);
  border-bottom: 1px solid var(--line);
}
.hero-orb {
  position: absolute;
  width: clamp(300px, 62vw, 760px);
  aspect-ratio: 1;
  max-width: none;
  right: max(-38vw, -300px);
  top: clamp(-120px, -6vw, -40px);
  border-radius: 50%;
  background: var(--tint);
  pointer-events: none;
}
.hero-orb::before {
  content: ""; position: absolute;
  width: 44%; aspect-ratio: 1; border-radius: 50%;
  left: -12%; bottom: 2%;
  background: var(--blush);
}
.hero-orb span {
  position: absolute; inset: -7%;
  border-radius: 50%;
  border: 1px solid var(--lilac);
  opacity: 0.7;
}
@media (min-width: 900px) {
  .hero-orb { right: -8vw; top: 50%; translate: 0 -50%; }
}
.hero-inner { position: relative; }
.hero-title {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: var(--step-hero);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--accent-strong);
  display: flex; flex-direction: column;
}
.hero-first { font-style: italic; font-weight: 400; color: var(--accent); }
.hero-last { font-weight: 500; padding-left: 0.55em; }
.hero-rule {
  width: 72px; height: 2px; background: var(--rose);
  margin: clamp(1.75rem, 1rem + 2vw, 2.75rem) 0 1.5rem;
}
.hero-lede {
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--fg);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-in { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
  .d1 { animation-delay: .12s; } .d2 { animation-delay: .3s; }
  .d3 { animation-delay: .42s; } .d4 { animation-delay: .54s; }
  .hero-orb { animation: bloom 1.6s cubic-bezier(.2,.7,.2,1) both; }
  .hero-rule.hero-in { animation-name: draw; transform-origin: left; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bloom { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }

/* ---------- Legacy ---------- */
.legacy { padding-block: var(--section); }
.legacy-grid { display: grid; gap: 2.5rem; }
.legacy-head .section-title { margin-top: 1rem; }
.legacy-body { display: flex; flex-direction: column; gap: 1.25rem; max-width: 36rem; min-width: 0; }
.review-note {
  display: grid; gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: var(--draft-bg); color: var(--draft-fg);
  border-radius: var(--radius);
  font-size: 0.9375rem; line-height: 1.55;
}
.review-title { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.no-draft .review-note { display: none; }

/* Tribute: set on the lavender-pink of the hero orb */
.tribute {
  margin: 0;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  background: var(--blush);
  border-radius: var(--radius);
  display: grid; gap: 1.25rem;
}
.tribute-label {
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--rose);
}
.tribute-text { margin: 0; display: grid; gap: 1rem; }
.tribute-text p {
  font-family: var(--font-display);
  font-size: var(--step-1); line-height: 1.5;
  color: var(--accent-strong);
}
.tribute-text .tribute-lead { font-size: var(--step-2); line-height: 1.3; font-style: italic; }
.tribute-sign {
  font-size: 0.9375rem; color: var(--muted);
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.legacy-facts {
  margin: 1rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid; gap: 1rem;
}
.legacy-facts div { display: grid; gap: 0.15rem; }
.legacy-facts dt {
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
}
.legacy-facts dd { margin: 0; color: var(--fg); }
@media (min-width: 900px) {
  .legacy-grid { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: start; }
  .legacy-head { position: sticky; top: calc(var(--header-h) + 3rem); }
  .legacy-facts { grid-template-columns: 1fr; }
}

/* ---------- Memorial band ---------- */
.memorial {
  background: var(--band);
  color: var(--on-band);
  padding-block: var(--section);
}
.memorial-inner { display: grid; gap: 2rem; }
.eyebrow-on-band { color: var(--on-band-muted); }
.memorial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.1rem + 2.9vw, 3.5rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 22ch;
  max-width: 24em;
  color: var(--on-band);
}
.memorial-quote em { font-style: italic; color: var(--on-band-rose); }
.memorial-notes {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem;
  max-width: 34rem;
  color: var(--on-band-muted);
}
.memorial .btn-light:focus-visible { outline-color: var(--on-band); }
.memorial :focus-visible { outline-color: var(--on-band); }
@media (min-width: 900px) {
  .memorial-inner { grid-template-columns: 1fr 1fr; column-gap: 5rem; }
  .eyebrow-on-band, .memorial-quote { grid-column: 1 / -1; }
  .memorial-notes { grid-column: 2; }
}

/* ---------- Donate ---------- */
.donate { padding-block: var(--section); }
.donate-head { display: grid; gap: 1rem; max-width: 40rem; margin-bottom: 3rem; }
.donate-intro { color: var(--muted); }
.give-grid { display: grid; gap: 1rem; }
@media (min-width: 820px) { .give-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.give-card {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  transition: border-color .3s ease, transform .3s ease;
}
.give-card.is-live { background: var(--bg); border-color: var(--lilac); }
.give-card.is-live:hover { border-color: var(--accent); }
.give-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.give-name {
  font-family: var(--font-display);
  font-size: 2rem; line-height: 1;
  color: var(--accent-strong);
}
.give-status {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  padding: 0.25rem 0.6rem; border: 1px solid var(--line); border-radius: 999px;
  white-space: nowrap;
}
.give-card.is-live .give-status { color: var(--accent); border-color: var(--lilac); }
.give-desc { color: var(--muted); font-size: 0.975rem; }
.give-details {
  margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--line);
  display: grid; gap: 0.75rem;
}
.give-details div { display: grid; gap: 0.1rem; min-width: 0; }
.give-details dt {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.give-details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.give-action { margin-top: auto; padding-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.give-action .btn { width: 100%; }
.copy-status { font-size: 0.8125rem; color: var(--accent); min-height: 1.2em; }

.verify-note {
  margin-top: 2rem;
  display: grid; gap: 0.35rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  max-width: 46rem;
  font-size: 0.9375rem; color: var(--muted);
}
.verify-title { font-weight: 600; color: var(--fg); }
@media (min-width: 720px) {
  .verify-note { grid-template-columns: 11rem 1fr; gap: 1.5rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 4rem 2rem;
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
.footer-name { font-family: var(--font-display); font-size: 1.75rem; color: var(--accent-strong); line-height: 1.1; }
.footer-memory { margin-top: 0.4rem; font-family: var(--font-display); color: var(--rose); font-size: 1.1rem; }
.footer-label {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.6rem;
}
.footer-col { min-width: 0; }
.footer-col p + p { margin-top: 0.75rem; }
.footer-legal p:not(.footer-label) { color: var(--muted); max-width: 34rem; }
.footer-col a { overflow-wrap: anywhere; }
.footer-base {
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.8125rem; color: var(--muted);
}
.footer-base a { text-underline-offset: 3px; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 1.4fr; gap: 3rem; }
}

/* ---------- Scroll reveal (content is always visible; motion only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transform: translateY(14px); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-in { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

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

/* ---------- Contribution disclosure ---------- */
.contrib-info {
  display: grid; gap: 1rem;
  margin-bottom: 2rem;
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  background: var(--blush);
  border-radius: var(--radius);
}
.contrib-title {
  font-family: var(--font-text);
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rose);
}
.contrib-body { display: grid; gap: 0.85rem; max-width: 46rem; font-size: 0.975rem; color: var(--fg); }
@media (min-width: 900px) {
  .contrib-info { grid-template-columns: 15rem 1fr; gap: 3rem; }
}

/* About lead paragraph */
.legacy-lead {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.35;
  color: var(--accent-strong);
}
.legacy-body p:not(.legacy-lead) { color: var(--muted); }

/* ==========================================================================
   Centered masthead (family request): foundation name large and centered,
   menu beneath it, memorial line smaller below.
   ========================================================================== */
.site-header {
  position: fixed; left: 0; right: 0;
  top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform .35s ease, visibility 0s linear .35s;
}
.site-header.is-visible {
  transform: none; visibility: visible;
  transition: transform .35s ease, visibility 0s;
}

.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.masthead-mark {
  display: grid;
  justify-items: center;
  margin: 0;
  color: var(--accent-strong);
  line-height: 1;
  font-weight: 400;
}
.mm-the {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.25rem, 0.9rem + 1.4vw, 2.1rem);
  color: var(--accent);
  margin-bottom: -0.1em;
}
.mm-name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(4rem, 2rem + 10vw, 9.5rem);
  letter-spacing: -0.02em; line-height: 0.95;
}
.mm-sub {
  margin-top: 0.6em;
  padding-left: 0.55em; /* balances the trailing letter-spacing so it centers optically */
  font-family: var(--font-text); font-weight: 600;
  font-size: clamp(0.8rem, 0.6rem + 0.9vw, 1.3rem);
  letter-spacing: 0.55em; text-transform: uppercase;
  color: var(--muted);
}

.masthead-nav {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(1.75rem, 1rem + 2vw, 2.5rem);
}
.masthead-nav a:not(.btn) {
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--fg);
  padding: 0.5rem 0.25rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .3s ease;
}
.masthead-nav a:not(.btn):hover { background-size: 100% 1px; }

.hero .hero-rule { margin: clamp(2rem, 1.25rem + 2vw, 3rem) auto 1.75rem; transform-origin: center; }

.hero-memory { display: grid; gap: 0.5rem; justify-items: center; }
.hero-memory-name {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  line-height: 1.1;
  color: var(--accent);
}

.hero .hero-lede { margin-top: 1.25rem; max-width: 36rem; font-size: var(--step-0); color: var(--muted); }
.hero .hero-actions { justify-content: center; margin-top: 2rem; }

/* Keep the decorative circles off the headline on phones */
@media (max-width: 719px) {
  .hero-orb { width: 300px; right: -170px; top: -90px; opacity: .8; }
}

/* Desktop/tablet: circles frame the centered masthead instead of crossing it */
@media (min-width: 720px) {
  .hero-orb {
    --orb: clamp(340px, 36vw, 540px);
    width: var(--orb);
    right: calc(var(--orb) * -0.52);
    top: 50%; translate: 0 -50%;
  }
  .hero-orb::before { display: none; }
  .hero::before {
    --blush-size: clamp(220px, 22vw, 320px);
    content: ""; position: absolute; pointer-events: none;
    width: var(--blush-size); aspect-ratio: 1; border-radius: 50%;
    background: var(--blush);
    left: calc(var(--blush-size) * -0.42); bottom: -70px;
  }
  .memorial-notes { grid-column: 1; }
}

/* ---------- Give cards: QR codes + aligned rows ---------- */
.give-qr { margin: 0; display: grid; justify-items: start; gap: 0.5rem; }
.give-qr img {
  width: 148px; height: 148px;
  padding: 6px; background: #FFFFFF;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.give-qr figcaption { font-size: 0.8125rem; color: var(--muted); }
.give-hint { font-size: 0.875rem; color: var(--muted); }
.give-details:empty, .give-qr:empty { display: none; }
.desktop-only { display: none; }

@media (min-width: 720px) {
  .phone-only { display: none !important; }
  .desktop-only { display: block; }
}
@media (max-width: 719px) {
  .give-qr { display: none; }
}
/* Line up name, QR and button rows across the three cards */
@media (min-width: 820px) {
  .give-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 1rem; }
  .give-details:empty, .give-qr:empty { display: block; padding: 0; border: 0; }
  .give-action { margin-top: 0; align-self: end; }
}

/* ---------- Even button rows ---------- */
/* "Copied" message floats below the button instead of reserving space */
.give-action { position: relative; }
.give-action .copy-status {
  position: absolute; left: 0; right: 0; top: 100%;
  margin-top: 0.35rem; text-align: center;
}
/* PayPal QR links open the app on phones and tablets (touch screens).
   On computers (mouse) the row shows a same-height note instead of a button. */
.phone-only { display: inline-flex !important; }
.mouse-only { display: none; }
@media (hover: hover) and (pointer: fine) {
  .phone-only { display: none !important; }
  .mouse-only { display: flex; }
}
.give-scan-note {
  width: 100%; min-height: 48px;
  align-items: center; justify-content: center;
  border: 1.5px dashed var(--line); border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  text-align: center; padding: 0 1rem;
}

/* ---------- Additional ways to give ---------- */
.more-ways {
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid; gap: 0.75rem;
}
.more-title {
  font-family: var(--font-display);
  font-size: var(--step-2); line-height: 1.15;
  color: var(--accent-strong);
}
.more-body { max-width: 40rem; color: var(--fg); }
.more-body a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.more-body a:hover { color: var(--rose); }
@media (min-width: 720px) {
  .more-ways { grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: baseline; }
}

.thanks {
  text-align: center;
  font-family: var(--font-display); font-style: italic;
  font-size: var(--step-2); line-height: 1.3;
  color: var(--rose);
  text-wrap: balance;
}

/* ---------- Site icon ("S" seal) used on the page ---------- */
.seal { display: block; flex: none; border-radius: 22%; }
.seal-bg { fill: #3A1D45; }
.seal-glow { fill: #E3D6EE; opacity: .22; }
.seal-s { fill: #F7F1F8; font-family: var(--font-display); font-style: italic; font-size: 38px; }
.seal-md { width: 56px; height: 56px; margin-bottom: 1.1rem; }
.seal-sm { width: 44px; height: 44px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .seal { box-shadow: 0 0 0 1px var(--line); }
}
:root[data-theme="dark"] .seal { box-shadow: 0 0 0 1px var(--line); }

.thanks-block {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  display: grid; justify-items: center; gap: 1.1rem;
}
