/*
Theme Name: Sister Aimee GP Child
Theme URI: https://sisteraimee.org/
Description: A GeneratePress child theme for SisterAimee.org, designed as a public evidence hub for Aimee Semple McPherson's life, ministry, and 1926 abduction case.
Author: SisterAimee.org
Author URI: https://sisteraimee.org/
Template: generatepress
Version: 0.1.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sister-aimee-gp-child
*/

:root {
  --sa-ink: #171717;
  --sa-muted: #5a5146;
  --sa-paper: #fbf4e6;
  --sa-paper-2: #fffaf0;
  --sa-cream: #f7ecd8;
  --sa-gold: #b98635;
  --sa-gold-dark: #87601f;
  --sa-red: #8f1d18;
  --sa-red-dark: #6e120f;
  --sa-green: #163f2b;
  --sa-green-2: #24583d;
  --sa-blue: #163b4c;
  --sa-line: rgba(135, 96, 31, 0.35);
  --sa-shadow: 0 18px 45px rgba(32, 21, 8, 0.12);
  --sa-radius: 18px;
}

body {
  background: var(--sa-paper);
  color: var(--sa-ink);
}

body,
button,
input,
select,
textarea {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
.main-navigation .main-nav ul li a,
.site-branding .main-title {
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: var(--sa-red-dark);
}

a:hover,
a:focus {
  color: var(--sa-blue);
}

.site-header {
  border-bottom: 1px solid var(--sa-line);
  background: var(--sa-paper-2);
}

.site-branding .main-title a {
  color: var(--sa-ink);
  letter-spacing: 0.01em;
}

.site-description {
  color: var(--sa-muted);
}

.main-navigation,
.main-navigation ul ul {
  background: var(--sa-green);
}

.main-navigation .main-nav ul li a,
.menu-toggle,
.main-navigation .menu-bar-items {
  color: #fff7e8;
  letter-spacing: 0.02em;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a,
.main-navigation .main-nav ul li.sfHover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  background: var(--sa-red-dark);
  color: #fff;
}

.inside-article,
.sidebar .widget,
.comments-area {
  background: transparent;
}

.separate-containers .site-main {
  margin-top: 0;
}

.sa-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.sa-fullbleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.sa-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(185, 134, 53, 0.22), transparent 32%),
    linear-gradient(135deg, #fff7e8 0%, #f6e5c9 52%, #fdf8ef 100%);
  border-bottom: 1px solid var(--sa-line);
}

.sa-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(135, 96, 31, 0.38);
  pointer-events: none;
}

.sa-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 42px;
  align-items: center;
  min-height: 610px;
  padding: 84px 24px;
}

.sa-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sa-red-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.sa-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--sa-gold);
}

.sa-hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(2.8rem, 7vw, 6.7rem);
  line-height: 0.92;
  color: var(--sa-ink);
}

.sa-hero h1 em {
  color: var(--sa-red-dark);
  font-style: normal;
}

.sa-lede {
  max-width: 760px;
  color: #2d2a25;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.sa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.sa-button,
.wp-block-button__link.sa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  border: 2px solid var(--sa-red-dark);
  background: var(--sa-red-dark);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 9px 22px rgba(110, 18, 15, 0.18);
}

.sa-button:hover,
.sa-button:focus {
  color: #fff;
  background: var(--sa-green);
  border-color: var(--sa-green);
}

.sa-button.sa-secondary {
  color: var(--sa-green);
  background: transparent;
  border-color: var(--sa-gold-dark);
  box-shadow: none;
}

.sa-button.sa-secondary:hover,
.sa-button.sa-secondary:focus {
  color: #fff;
  background: var(--sa-gold-dark);
}

.sa-portrait-card {
  background: rgba(255, 250, 240, 0.84);
  border: 1px solid var(--sa-line);
  border-radius: var(--sa-radius);
  box-shadow: var(--sa-shadow);
  padding: 26px;
}

.sa-portrait-placeholder {
  display: grid;
  place-items: center;
  min-height: 330px;
  border: 1px dashed rgba(135, 96, 31, 0.55);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(143, 29, 24, 0.10), transparent 40%),
    #fffaf0;
  color: var(--sa-muted);
  text-align: center;
  padding: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
}

.sa-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 34px 0;
}

.sa-card,
.sa-evidence-card,
.sa-callout,
.sa-page-box {
  background: var(--sa-paper-2);
  border: 1px solid var(--sa-line);
  border-radius: var(--sa-radius);
  box-shadow: var(--sa-shadow);
  padding: 26px;
}

.sa-card h3,
.sa-evidence-card h3,
.sa-page-box h2,
.sa-page-box h3 {
  margin-top: 0;
  color: var(--sa-green);
}

.sa-card .sa-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--sa-red-dark);
  color: #fff;
  font-weight: 900;
}

.sa-section {
  padding: 68px 0;
}

.sa-section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  margin: 0 0 16px;
}

.sa-section-intro {
  max-width: 820px;
  color: var(--sa-muted);
  font-size: 1.13rem;
  line-height: 1.65;
}

.sa-band {
  background: var(--sa-green);
  color: #fff7e8;
  border-top: 6px solid var(--sa-gold);
  border-bottom: 6px solid var(--sa-gold);
}

.sa-band h2,
.sa-band h3 {
  color: #fff;
}

.sa-band a {
  color: #fff2c9;
}

.sa-claim-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--sa-paper-2);
  box-shadow: var(--sa-shadow);
  border-radius: 16px;
  overflow: hidden;
}

.sa-claim-table th,
.sa-claim-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--sa-line);
  vertical-align: top;
}

.sa-claim-table th {
  background: var(--sa-green);
  color: #fff;
  text-align: left;
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sa-claim-table tr:last-child td {
  border-bottom: 0;
}

.sa-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(143, 29, 24, 0.1);
  color: var(--sa-red-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
}

.sa-evidence-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.sa-evidence-card p:last-child,
.sa-card p:last-child,
.sa-callout p:last-child {
  margin-bottom: 0;
}

.sa-callout {
  border-left: 8px solid var(--sa-red-dark);
}

.sa-source-note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--sa-muted);
}

.sa-footer-cta {
  text-align: center;
}

.footer-widgets,
.site-footer {
  background: var(--sa-green);
  color: #fff7e8;
}

.site-info {
  background: var(--sa-green);
  color: #fff7e8;
  border-top: 1px solid rgba(255, 247, 232, 0.2);
}

.site-info a {
  color: #fff2c9;
}

@media (max-width: 900px) {
  .sa-hero-inner,
  .sa-card-grid,
  .sa-evidence-list {
    grid-template-columns: 1fr;
  }

  .sa-hero-inner {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (max-width: 600px) {
  .sa-wrap {
    padding: 0 18px;
  }

  .sa-section {
    padding: 48px 0;
  }

  .sa-claim-table,
  .sa-claim-table tbody,
  .sa-claim-table tr,
  .sa-claim-table th,
  .sa-claim-table td {
    display: block;
    width: 100%;
  }

  .sa-claim-table thead {
    display: none;
  }

  .sa-claim-table td::before {
    display: block;
    margin-bottom: 6px;
    color: var(--sa-red-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
  }

  .sa-claim-table td:nth-child(1)::before { content: "Claim"; }
  .sa-claim-table td:nth-child(2)::before { content: "Correction"; }
  .sa-claim-table td:nth-child(3)::before { content: "Evidence Path"; }
}
