/*
Theme Name: Pages of Hope - Beyond kINship
Theme URI: https://beyondkinship.org
Author: Beyond kINship / ChatGPT
Description: A warm, composition-book inspired WordPress theme for Beyond kINship. Designed with soft colors, notebook paper backgrounds, photo-card styling, and donor-friendly sections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pages-of-hope
Tags: nonprofit, custom-logo, accessibility-ready, blog, one-column, two-columns, featured-images, full-width-template
*/

:root {
  --bk-cream: #fff8e7;
  --bk-paper: #fffdf6;
  --bk-gold: #d4af37;
  --bk-green: #1f4d3a;
  --bk-brown: #8b6f47;
  --bk-charcoal: #111111;
  --bk-blue-line: rgba(135, 177, 220, 0.26);
  --bk-red-line: rgba(193, 77, 77, 0.35);
  --bk-blush: #f8e8e8;
  --bk-soft-green: #e7f1e9;
  --bk-shadow: 0 14px 34px rgba(17, 17, 17, 0.10);
  --bk-radius: 22px;
  --bk-max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--bk-charcoal);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  background-color: var(--bk-cream);
  background-image:
    linear-gradient(90deg, transparent 0, transparent 64px, var(--bk-red-line) 65px, transparent 66px),
    repeating-linear-gradient(0deg, var(--bk-paper) 0px, var(--bk-paper) 31px, var(--bk-blue-line) 32px);
}

a { color: var(--bk-green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #163829; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 231, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 111, 71, 0.20);
}

.header-inner {
  max-width: var(--bk-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-branding { display: flex; align-items: center; gap: 12px; }
.custom-logo { max-height: 64px; width: auto; }
.site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.site-title a { color: var(--bk-charcoal); text-decoration: none; }
.site-description { margin: -6px 0 0; color: var(--bk-brown); font-size: 0.95rem; }

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.main-navigation a {
  display: inline-block;
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--bk-charcoal);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: var(--bk-green);
  color: #fff;
}

.site-main { min-height: 60vh; }
.container, .content-area {
  max-width: var(--bk-max);
  margin: 0 auto;
  padding: 34px 24px;
}

.hero {
  max-width: var(--bk-max);
  margin: 34px auto 20px;
  padding: clamp(44px, 8vw, 86px) 24px;
}
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 20%, rgba(212, 175, 55, 0.28), transparent 32%),
    radial-gradient(circle at 82% 15%, rgba(31, 77, 58, 0.20), transparent 35%),
    var(--bk-paper);
  box-shadow: var(--bk-shadow);
  border: 1px solid rgba(139, 111, 71, 0.24);
  padding: clamp(36px, 6vw, 78px);
}
.hero-card::before {
  content: "";
  position: absolute;
  left: 58px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--bk-red-line);
}
.hero-eyebrow, .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bk-green);
  background: rgba(31, 77, 58, 0.10);
  border: 1px solid rgba(31, 77, 58, 0.16);
  border-radius: 999px;
  padding: 7px 13px;
  font-weight: 800;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02;
  margin: 18px 0 16px;
  max-width: 920px;
}
.hero p {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  max-width: 780px;
  margin-bottom: 28px;
}

.button-row, .wp-block-buttons { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn, .wp-block-button__link, input[type="submit"], button[type="submit"] {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--bk-green);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(31,77,58,0.18);
  cursor: pointer;
}
.btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover, button[type="submit"]:hover { transform: translateY(-1px); }
.btn.secondary { background: var(--bk-gold); color: var(--bk-charcoal) !important; }
.btn.light { background: #fff; color: var(--bk-green) !important; border: 1px solid rgba(31,77,58,0.2); }

.section {
  max-width: var(--bk-max);
  margin: 28px auto;
  padding: 0 24px;
}
.notebook-card, .wp-block-group {
  background: rgba(255, 253, 246, 0.94);
  border: 1px solid rgba(139, 111, 71, 0.20);
  border-radius: var(--bk-radius);
  box-shadow: var(--bk-shadow);
  padding: clamp(24px, 4vw, 42px);
}
.section h2, .entry-title, .page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  margin: 10px 0 16px;
}
.section-intro { max-width: 780px; font-size: 1.08rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.card {
  grid-column: span 4;
  position: relative;
  background: #fff;
  border: 1px solid rgba(139,111,71,0.22);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(17,17,17,0.07);
}
.card:nth-child(2n) { background: var(--bk-soft-green); }
.card:nth-child(3n) { background: var(--bk-blush); }
.card h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}
.card p { margin-bottom: 0; }
.icon-note { font-size: 1.6rem; display: inline-block; margin-bottom: 8px; }

.photo-tape {
  position: relative;
  background: #fff;
  padding: 12px 12px 22px;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(17,17,17,0.13);
  transform: rotate(-1.2deg);
}
.photo-tape::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 38%;
  width: 72px;
  height: 26px;
  background: rgba(212, 175, 55, 0.33);
  border: 1px solid rgba(139,111,71,0.15);
  transform: rotate(3deg);
}

.cta-band {
  background: var(--bk-green);
  color: #fff;
  border-radius: 28px;
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 780px; }
.cta-band .btn.secondary { background: var(--bk-gold); }

.entry-content {
  background: rgba(255, 253, 246, 0.88);
  border: 1px solid rgba(139, 111, 71, 0.18);
  border-radius: var(--bk-radius);
  box-shadow: var(--bk-shadow);
  padding: clamp(24px, 4vw, 48px);
}
.entry-content h2, .entry-content h3 { font-family: Georgia, "Times New Roman", serif; }
.entry-content .wp-block-image img, .wp-block-gallery img { border-radius: 14px; }
.wp-block-columns { gap: 18px; }
.wp-block-column { min-width: 0; }

input, textarea, select {
  width: 100%;
  border: 1px solid rgba(139,111,71,0.35);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
label { font-weight: 800; }

.site-footer {
  margin-top: 44px;
  background: #111;
  color: #fff;
}
.footer-inner {
  max-width: var(--bk-max);
  margin: 0 auto;
  padding: 36px 24px;
}
.site-footer a { color: var(--bk-gold); }
.footer-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; margin: 0 0 8px; }

@media (max-width: 880px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  .main-navigation ul { justify-content: flex-start; }
  .hero-card::before { left: 26px; }
  .card { grid-column: span 6; }
}
@media (max-width: 620px) {
  .card { grid-column: span 12; }
  .hero { padding-top: 18px; }
  .hero-card { padding: 30px 24px 30px 36px; }
  .main-navigation a { font-size: 0.88rem; padding: 8px 9px; }
}
