/* ==========================================================================
   Interior pages — painted / parchment look (mobile-first)
   Relies on tokens from styles.css: --paper, --ink, --ink-soft,
   --brush-orange, --font-ui, --font-title
   ========================================================================== */

body.page {
  background: #2a1f15;
}

/* ---------- page header ---------- */
.page-header {
  position: relative;
  padding: 128px 0 46px;
  color: #f5ecdd;
  background:
    radial-gradient(ellipse 70% 120% at 15% 0%, rgba(234, 138, 46, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 100% at 90% 100%, rgba(96, 120, 70, 0.22), transparent 60%),
    linear-gradient(180deg, #2b2016 0%, #3a2b1c 100%);
  border-bottom: 0;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper-grain);
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* hand-painted orange edge under the header */
.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 7px;
  background: linear-gradient(90deg, transparent, var(--brush-orange) 8%, #f2a65a 50%, var(--brush-orange) 92%, transparent);
  clip-path: polygon(0 60%, 4% 20%, 12% 70%, 22% 15%, 34% 65%, 47% 10%, 58% 70%, 70% 20%, 82% 68%, 92% 18%, 100% 60%, 100% 100%, 0 100%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: #cdb99a;
}

.breadcrumb a {
  color: #cdb99a;
  text-decoration: none;
  border-bottom: 1px dotted rgba(205, 185, 154, 0.6);
}

.breadcrumb a:hover {
  color: #ffb066;
}

.breadcrumb span[aria-current] {
  color: #f5ecdd;
}

.page-header .section-label {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 12px 4px;
  font-family: "Archivo Black", "Roboto", sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #2b2016;
  background: var(--brush-orange);
  border-radius: 12px 16px 13px 17px / 16px 12px 17px 13px;
}

.page-header h1 {
  margin: 8px 0 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 4.8rem);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  -webkit-text-stroke: 0.8px currentColor;
  color: #f7efdc;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.page-lede {
  max-width: 720px;
  margin: 16px 0 0;
  font-family: var(--font-ui);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.4;
  color: #eadcc2;
}

/* ---------- content area ---------- */
.page-content {
  position: relative;
  padding: 44px 0 120px;
  background:
    linear-gradient(180deg, transparent calc(100% - 140px), var(--night) 100%),
    radial-gradient(ellipse 60% 40% at 10% 10%, rgba(234, 138, 46, 0.1), transparent 70%),
    radial-gradient(ellipse 50% 40% at 95% 60%, rgba(96, 120, 70, 0.12), transparent 70%),
    #2a1f15;
}

.container.narrow {
  width: min(100% - 32px, 880px);
}

/* ---------- parchment cards ---------- */
.card {
  position: relative;
  margin: 0 0 22px;
  padding: 26px 22px 24px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 1px rgba(90, 65, 38, 0.14);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.55;
}

.card.note {
  background:
    var(--paper-grain),
    linear-gradient(180deg, #f6dcae 0%, #efc78a 100%);
}

.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.card h2 {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.5px currentColor;
  color: #2f2314;
}

/* painted orange underline under card titles */
.card h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 5px;
  margin-top: 8px;
  background: var(--brush-orange);
  clip-path: polygon(0 62%, 6% 18%, 50% 8%, 94% 22%, 100% 58%, 92% 92%, 48% 100%, 8% 86%);
  transform: rotate(-0.8deg);
}

.card h3 {
  margin: 22px 0 6px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #8a4a15;
}

.card p {
  margin: 0 0 14px;
}

.card a {
  color: #a8481a;
  text-decoration: underline;
  text-decoration-color: rgba(168, 72, 26, 0.4);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.card a:hover,
.card a:focus-visible {
  color: #6f2c08;
  text-decoration-color: currentColor;
}

.card .btn,
.card .btn:hover {
  text-decoration: none;
}

.card .btn-primary { color: #f7efdc; }
.card .btn-donate { color: #fff6e8; }

.card strong {
  font-weight: 700;
  color: #2a1d0f;
  background: linear-gradient(transparent 62%, rgba(234, 138, 46, 0.32) 62%);
}

.card .small,
.small {
  font-size: 1.02rem;
  opacity: 0.85;
}

/* ---------- lists ---------- */
.list,
.link-list,
.steps,
.partner-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 26px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 10px;
  height: 9px;
  background: var(--brush-orange);
  border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
}

.link-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(90, 65, 38, 0.18);
}

.link-list li:first-child { border-top: 0; }

.link-list li span {
  font-size: 1.02rem;
  opacity: 0.75;
}

.steps {
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0 0 16px;
  padding-left: 48px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: #fff6e8;
  background: #d9792a;
  border-radius: 56% 44% 52% 48% / 48% 54% 46% 52%;
}

.num {
  display: inline-block;
  min-width: 1.4em;
  margin-right: 4px;
  padding: 0 0.14em;
  text-align: center;
  color: #fff6e8;
  background: #d9792a;
  border-radius: 56% 44% 52% 48% / 48% 54% 46% 52%;
  -webkit-text-stroke: 0;
}

/* fees */
.fee-list {
  margin: 14px 0 6px;
  padding: 0;
  list-style: none;
}

.fee-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 18px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(90, 65, 38, 0.35);
}

.fee-list li:last-child { border-bottom: 0; }

.fee-list strong {
  background: none;
  color: #8a4a15;
  font-size: 1.2rem;
}

/* ways to give / contact blocks */
.way-grid {
  display: grid;
  gap: 14px;
  margin: 12px 0 14px;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}

.way {
  margin: 0;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(90, 65, 38, 0.2);
  border-radius: 8px;
}

.way h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.way p { margin: 0 0 8px; }
.way p:last-child { margin-bottom: 0; }
.way .list { margin-bottom: 0; }

/* partners */
.partner-list li {
  padding: 16px 0;
  border-top: 1px solid rgba(90, 65, 38, 0.2);
}

.partner-list li:first-child { border-top: 0; padding-top: 0; }
.partner-list h3 { margin: 0 0 4px; }
.partner-list p { margin: 0; }

/* buttons inside pages */
.btn-row,
.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.page-cta { margin-top: 30px; }

.page-cta .btn-light { box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4); }

.page-content .btn,
.card .btn {
  height: 54px;
  min-width: 0;
  padding: 0 28px;
  font-size: 1.2rem;
}

/* ---------- tablet / desktop ---------- */
@media (min-width: 700px) {
  .page-header { padding: 156px 0 58px; }
  .page-content { padding: 56px 0 150px; }
  .card { padding: 32px 36px 30px; margin-bottom: 26px; }
  .way-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}

@media (min-width: 1024px) {
  .page-header { padding: 176px 0 66px; }
}
