:root {
  /* Shared white + purple palette (DidGood + ScrantonCoin) */
  --purple-1: #5b2c6f;
  --purple-2: #7d3c98;
  --purple-3: #9b59b6;
  --purple-4: #c39bd3;
  --purple-soft: #f5eef8;
  --purple-deep: #3d1a4a;
  --cream: #ffffff;          /* aliased to white for legacy rules */
  --cream-dark: #f5eef8;
  --navy: #5b2c6f;           /* aliased to purple for legacy rules */
  --navy-deep: #3d1a4a;
  --slate: #4A4452;
  --slate-light: #6e5a78;
  --gold: #B8860B;
  --amber-bg: #FBF3E0;
  --amber-border: #D4A017;
  --white: #FFFFFF;
  --border: #e5d6ee;
  --border-soft: #f0e6f8;
  --green: #1e8449;
  --green-bg: #eafaf1;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  background: var(--white);
  color: var(--slate);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: "Libre Baskerville", Georgia, serif;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1rem; padding: 0.7rem 0;
}
.brand-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.28rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em;
}
.brand-tag {
  display: block; margin-top: 0.1rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.72rem; font-style: italic; color: var(--slate-light); font-weight: 400;
}
.nav-pills {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem;
  background: var(--cream-dark); border-radius: 999px; padding: 0.28rem;
}
.nav-pills a {
  font-size: 0.78rem; font-weight: 600; color: var(--slate);
  padding: 0.42rem 0.78rem; border-radius: 999px; white-space: nowrap;
}
.nav-pills a:hover { color: var(--navy); background: rgba(255,255,255,0.6); }
.nav-pills a.active {
  background: var(--white); color: #111;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.nav-pills a.cta { background: var(--navy); color: #fff; }
.nav-pills a.cta:hover, .nav-pills a.cta.active { background: var(--navy-deep); color: #fff; }

.hero { padding: 2.6rem 0 0.5rem; text-align: center; }
.hero-label {
  display: inline-block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.78rem; font-style: italic; color: var(--navy);
  background: var(--cream-dark); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.38rem 0.95rem; margin-bottom: 1.15rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; font-weight: 400; }
.hero-lead {
  max-width: 680px; margin: 1rem auto 0;
  font-size: 1.05rem; line-height: 1.65;
}
.hero-actions, .actions {
  display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: center; margin-top: 1.25rem;
}
.page-hero { padding: 2.1rem 0 0.25rem; }
.page-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.35rem); }
.page-hero .lede {
  max-width: 720px; margin-top: 0.75rem; font-size: 1.02rem; line-height: 1.65;
}

.btn-navy, .btn-outline {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; font-weight: 600;
  padding: 0.62rem 1.05rem; border-radius: 8px;
  font-family: inherit;
}
.btn-navy { background: var(--navy); color: #fff !important; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline {
  background: var(--white); color: var(--navy) !important;
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--navy); }

.section { padding: 1.6rem 0; }
.gold-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.45rem;
}
.card-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem;
}
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) {
  .card-grid, .card-grid.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .card-grid, .card-grid.three, .card-grid.two { grid-template-columns: 1fr; }
  .nav-pills { width: 100%; border-radius: 14px; }
}
.join-card, .panel, .tier, .faq details, .callout {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,40,85,0.04);
}
.join-card {
  padding: 1.15rem 1.05rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.45rem;
  min-height: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.join-card:hover { border-color: #D0C8BC; box-shadow: 0 6px 16px rgba(0,40,85,0.06); }
.join-card .icon {
  width: 2.2rem; height: 2.2rem; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--navy); font-size: 0.95rem;
}
.join-card h2, .join-card h3 { font-size: 1.05rem; }
.join-card .kicker {
  font-size: 0.75rem; font-weight: 700; color: var(--gold); letter-spacing: 0.02em;
}
.join-card p { font-size: 0.88rem; line-height: 1.5; flex: 1; }
.join-card .more { font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-top: 0.35rem; }
.club-card { background: var(--amber-bg); border-color: var(--amber-border); }

.steps {
  display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center;
  list-style: none; margin: 0.8rem 0 0; padding: 0;
}
.steps li {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.45rem 0.7rem; font-size: 0.8rem; font-weight: 700; color: var(--navy);
}
.steps .arrow { color: #C4BDB2; background: transparent; border: 0; padding: 0; }

.panel { padding: 1.35rem 1.25rem; }
.panel + .panel { margin-top: 0.85rem; }
.prose p + p { margin-top: 0.75rem; }
.prose ul, .prose ol { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.prose li { margin: 0.28rem 0; }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

.tier { padding: 1.15rem 1.1rem; }
.tier h3 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.tier .rank { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.tier ul { margin: 0.55rem 0 0; padding-left: 1.1rem; font-size: 0.9rem; }
.tier.gold { border-color: #C9A227; background: linear-gradient(#fff, #FFF9EE); }

.faq details { padding: 0.85rem 1rem; margin-bottom: 0.55rem; }
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1rem;
}
.faq details p { margin-top: 0.55rem; font-size: 0.95rem; }

.callout {
  padding: 1.15rem 1.2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.8rem 1.2rem;
  background: var(--navy); color: #E8EEF5; border: 0;
}
.callout h2 { color: #fff; font-size: 1.25rem; }
.callout p { color: #D5DEE8; font-size: 0.92rem; max-width: 640px; }
.callout .btn-navy { background: #fff; color: var(--navy) !important; }
.callout .btn-navy:hover { background: var(--white); }

.mail {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.15rem; color: var(--navy);
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  padding: 1.4rem 0 1.8rem;
  background: var(--cream-dark);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.45rem 0.9rem; font-size: 0.82rem; }
.footer-links a:hover { color: var(--navy); }
.footer-copy { width: 100%; font-size: 0.75rem; color: var(--slate-light); margin-top: 0.35rem; }


/* Util bar — DidGood parity */
.util-bar {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--slate-light);
}
.util-bar .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.25rem; padding-top: 0.45rem; padding-bottom: 0.45rem;
}
.util-bar a:hover { color: var(--navy); }

.icon-svg {
  width: 1.05rem; height: 1.05rem; display: block;
}


/* Brand logo in header / footer */
.brand-lockup {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: inherit; text-decoration: none;
}
.brand-lockup img.site-logo {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; background: #000;
  border: 2px solid var(--purple-4);
  flex-shrink: 0;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.65rem;
}
.footer-brand img.site-logo {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; background: #000;
  border: 2px solid var(--purple-4);
}

/* Media blocks from original scrantoncoin.com */
.media-hero {
  margin: 1.25rem auto 0;
  max-width: 920px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 10px 28px rgba(91, 44, 111, 0.12);
}
.media-hero img {
  display: block; width: 100%; height: auto;
  max-height: 380px; object-fit: cover;
}
.media-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(91, 44, 111, 0.08);
}
.media-figure img {
  display: block; width: 100%; height: auto;
  max-height: 420px; object-fit: contain;
  background: var(--purple-soft);
}
.media-figure figcaption {
  font-size: 0.8rem; color: var(--slate-light);
  padding: 0.55rem 0.85rem; border-top: 1px solid var(--border);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}
.media-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
  box-shadow: 0 6px 18px rgba(91, 44, 111, 0.12);
}
.media-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.btn-navy { background: var(--purple-1); }
.btn-navy:hover { background: var(--purple-deep); }
.nav-pills a.cta { background: var(--purple-1); }
.nav-pills a.cta:hover, .nav-pills a.cta.active { background: var(--purple-deep); color: #fff; }
.brand-title { color: var(--purple-deep); }
.gold-label { color: var(--purple-2); }
