/* ─── Wild Bill's Warriors ───
   A personal, editorial tribute site — not a SaaS template.
   Typeface pairing: Lora (serif, for the story) + Inter (sans, for UI).
   Brand color pulled from the logo: #0099cc (warrior blue).
   Layout: asymmetric, narrative-driven, photo-treated-as-feature.
*/

:root {
  --brand: #0099cc;
  --brand-dark: #007399;
  --brand-darker: #004d66;
  --brand-tint: #f0f8fc;
  --brand-tint-2: #e1f2f9;
  --ink: #1c2b33;
  --ink-light: #5a6a72;
  --ink-soft: #8a9aa2;
  --white: #fff;
  --cream: #faf8f5;
  --line: #e2e8ec;
  --max: 880px;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { height: 46px; width: auto; }
.main-nav { display: flex; gap: 1.75rem; align-items: center; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.nav-donate {
  background: var(--brand);
  color: var(--white) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background .2s, transform .15s;
}
.nav-donate:hover { background: var(--brand-dark); text-decoration: none !important; transform: translateY(-1px); }
.nav-heart { font-size: 0.85rem; opacity: 0.9; }

@media (max-width: 520px) {
  .main-nav { gap: 1rem; }
  .main-nav a:not(.nav-donate) { display: none; }
  .logo { height: 38px; }
}

/* ─── Hero ─── */
.hero {
  background: var(--ink);
  color: var(--white);
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

/* Subtle texture overlay — not a flat gradient */
.hero-grain {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0,153,204,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(0,153,204,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero-logo {
  height: 80px;
  width: auto;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}
.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--sans);
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

/* Large donate CTA — not a plain button, has a label + subtext */
.btn-donate-large {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: var(--brand);
  color: var(--white);
  padding: 1.1rem 2.5rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background .25s, transform .2s, box-shadow .25s;
  box-shadow: 0 4px 20px rgba(0,153,204,0.3);
}
.btn-donate-large:hover {
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,153,204,0.2);
}
.btn-label { font-size: 1.15rem; font-weight: 700; }
.btn-sub { font-size: 0.78rem; opacity: 0.8; font-weight: 400; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  z-index: 2;
}
.scroll-arrow { font-size: 1rem; animation: bounce 2s infinite; }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (max-width: 600px) {
  .hero { min-height: 80vh; }
  .hero-logo { height: 60px; }
  .hero-sub { font-size: 1rem; }
}

/* ─── Story — editorial layout ─── */
.story {
  background: var(--cream);
  padding: 5rem 1.5rem 4rem;
}
.story-inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* First paragraph with drop cap */
.story-lead {
  margin-bottom: 3rem;
}
.dropcap {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.dropcap::first-letter {
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  padding: 0.3rem 0.6rem 0 0;
  color: var(--brand);
}
.story-body {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-light);
}
.story-body em { color: var(--ink); font-style: italic; }

/* Photo treated as a feature, not a thumbnail */
.story-photo-block {
  margin: 0 -2rem 3rem;
  padding: 0;
}
.story-photo-block figure {
  text-align: center;
}
.story-photo-block img {
  width: 100%;
  max-width: 400px;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}
.story-photo-block figcaption {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  font-style: italic;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.story-photo-block figcaption strong {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.story-continue {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-light);
}
.story-continue p { margin-bottom: 1.25rem; }

/* Signoff — personal letter feel */
.story-signoff {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.signoff-quote {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink-light);
  font-style: italic;
  margin-bottom: 1rem;
}
.signoff-bold {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.25rem;
}
.signoff-names {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 600px) {
  .story-photo-block { margin: 0 0 2.5rem; }
  .dropcap { font-size: 1.25rem; }
  .dropcap::first-letter { font-size: 3.5rem; }
  .story-body { font-size: 1.1rem; }
  .story-continue { font-size: 1.05rem; }
}

/* ─── Donate — personal, not transactional ─── */
.donate {
  background: var(--ink);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.donate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,153,204,0.12) 0%, transparent 60%);
}
.donate-inner { position: relative; z-index: 2; max-width: 520px; margin: 0 auto; }
.donate-quote-mark {
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--brand);
  line-height: 0.5;
  margin-bottom: 1rem;
  opacity: 0.6;
}
.donate-lead {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.donate-body {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.donate-form { display: inline-block; }
.btn-paypal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: var(--white);
  border: none;
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--sans);
  border-radius: 100px;
  cursor: pointer;
  transition: background .25s, transform .15s, box-shadow .25s;
  box-shadow: 0 4px 20px rgba(0,153,204,0.25);
}
.btn-paypal:hover {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,153,204,0.2);
}
.paypal-icon { flex-shrink: 0; }

.donate-tax {
  margin-top: 1.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 600px) {
  .donate-lead { font-size: 2rem; }
  .donate-body { font-size: 1rem; }
}

/* ─── Footer ─── */
.site-footer {
  background: #0f1a20;
  color: #8a9aa2;
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner { max-width: 880px; margin: 0 auto; }
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo { height: 44px; opacity: 0.7; }
.footer-partners { text-align: right; }
.footer-partners-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6a72;
  margin-bottom: 0.6rem;
}
.footer-partners a {
  display: block;
  font-size: 0.9rem;
  color: #8a9aa2;
  margin-bottom: 0.3rem;
  transition: color .2s;
}
.footer-partners a:hover { color: var(--brand); text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  font-size: 0.82rem;
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brand);
}

@media (max-width: 600px) {
  .footer-top { flex-direction: column; }
  .footer-partners { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
