:root {
  color-scheme: light;
  --bg: #f8fbf8;
  --surface: #ffffff;
  --surface-soft: #edf6f1;
  --ink: #12302c;
  --ink-strong: #08211d;
  --muted: #5c6f68;
  --line: #d8e4dd;
  --accent: #0f6b5b;
  --accent-strong: #0a4d42;
  --coral: #d56a4a;
  --blue: #557c9f;
  --gold: #dba84b;
  --shadow: 0 18px 55px rgba(10, 48, 42, 0.12);
  --radius: 8px;
  --header-height: 76px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem max(1.25rem, calc((100vw - var(--max)) / 2));
  background: rgba(248, 251, 248, 0.92);
  border-bottom: 1px solid rgba(216, 228, 221, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  color: var(--ink-strong);
  font-size: 0.98rem;
  line-height: 1.15;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.55rem 0.78rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--surface-soft);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle span[aria-hidden="true"],
.nav-toggle span[aria-hidden="true"]::before,
.nav-toggle span[aria-hidden="true"]::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.nav-toggle span[aria-hidden="true"]::before {
  transform: translateY(-6px);
}

.nav-toggle span[aria-hidden="true"]::after {
  transform: translateY(4px);
}

.hero,
.section,
.site-footer {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.25rem);
  padding: clamp(1.8rem, 4vw, 3rem) 0 clamp(1.2rem, 3vw, 2rem);
}

.hero-copy h1 {
  max-width: 790px;
  margin: 0;
  color: var(--ink-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 5.9vw, 4.35rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-copy p {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button:focus-visible,
.text-link:focus-visible {
  outline: 3px solid rgba(213, 106, 74, 0.35);
  outline-offset: 3px;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 107, 91, 0.2);
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-primary:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.care-note {
  position: relative;
  padding-left: 1rem;
  font-size: 0.92rem !important;
}

.care-note::before {
  position: absolute;
  top: 0.52rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.hero-media {
  margin: 0;
  max-width: 430px;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff 0%, #edf6f1 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.section {
  padding: clamp(2.8rem, 6vw, 5rem) 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-heading-left {
  margin-inline: 0;
  text-align: left;
}

.section h2 {
  margin: 0;
  color: var(--ink-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
}

.section-heading p,
.donation-copy p,
.contact-copy p,
.boundary-section p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.intro-section {
  border-top: 1px solid var(--line);
}

.value-grid,
.course-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.value-grid article,
.course-card,
.quiet-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(10, 48, 42, 0.06);
}

.value-grid article {
  padding: 1.4rem;
}

.value-number,
.course-card span {
  display: block;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin: 0.55rem 0 0;
  color: var(--ink-strong);
  font-size: 1.12rem;
  line-height: 1.25;
}

.value-grid p,
.course-card p,
.plain-copy p,
.quiet-panel li {
  color: var(--muted);
}

.value-grid p,
.course-card p,
.plain-copy p {
  margin: 0.65rem 0 0;
}

.split-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.split-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
}

.quiet-panel,
.plain-copy {
  padding: 1.5rem;
}

.plain-copy {
  border-left: 3px solid var(--gold);
}

.check-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
}

.check-list li::before {
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
  content: "";
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.course-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.course-card {
  padding: 1.45rem;
  min-height: 220px;
}

.course-card:nth-child(2) span {
  color: var(--blue);
}

.course-card:nth-child(3) span {
  color: var(--gold);
}

.donation-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.95fr);
  align-items: start;
  gap: clamp(1.2rem, 3vw, 2rem);
  padding: clamp(2rem, 5vw, 3.2rem);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.donation-copy h2,
.donation-copy p {
  color: #fff;
}

.donation-widget {
  display: grid;
  gap: 1rem;
}

.donation-form {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.donation-form label {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
  font-weight: 800;
}

.amount-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 56px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.amount-entry span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1;
}

.amount-entry input,
.donation-email {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--ink-strong);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  outline: none;
}

.donation-email {
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
}

.amount-entry input::placeholder,
.donation-email::placeholder {
  color: #7a8b84;
}

.donation-message {
  min-height: 1.2em;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.donation-message.error {
  color: #ffd5cc;
}

.checkout-embed {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #f6f8f7;
}

.checkout-embed iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
}

.boundary-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.boundary-section > p {
  margin-top: 0;
  padding: 1.25rem;
  border-left: 3px solid var(--coral);
  background: #fff8f5;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
}

.contact-copy {
  max-width: 560px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .boundary-section,
  .donation-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-media {
    max-width: 560px;
  }

  .split-content,
  .value-grid,
  .course-layout {
    align-items: start;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding-inline: 1rem;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 220px;
    overflow-wrap: anywhere;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.9rem;
  }

  .hero,
  .section,
  .site-footer {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 16vw, 4rem);
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .split-content,
  .value-grid,
  .course-layout {
    grid-template-columns: 1fr;
  }

  .donation-section {
    padding: 1.2rem;
  }
}

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