/* =============================================================================
   LP Affiliate Site Template — main.css
   Brand: LP Yellow #FED000 · Dark #2a2a2d · Gray #56565A
   Fonts: Roboto (sans) · Roboto Slab (serif)
   ============================================================================= */

/* --- Reset & variables ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:   #2a2a2d;
  --dark2:  #333336;
  --yellow: #FED000;
  --gray:   #56565A;
  --cream:  #f7f5f0;
  --muted:  #a8a8b0;
  --white:  #ffffff;
  --text:   #1a1a1a;
  --mid:    #4a5568;
  --sans:   'Roboto', sans-serif;
  --serif:  'Roboto Slab', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Shared utilities ------------------------------------------------------- */

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
  display: block;
}

/* Section wrapper — constrains content width and provides padding */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 3rem;
}

.section-container h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 13px 32px;
  border-radius: 2px;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--dark);
}
.btn-primary:hover { background: #ffe340; }

.btn-secondary {
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
}
.btn-secondary:hover { background: var(--yellow); color: var(--dark); }

/* --- Navigation ------------------------------------------------------------- */

.site-nav {
  background: var(--dark);
  border-bottom: 3px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
}

.nav-container {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: all .25s;
}

/* Nav links list */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .65);
  padding: 0 14px;
  height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color .2s, border-color .2s;
}

.nav-links li a:hover {
  color: var(--white);
  border-bottom-color: var(--yellow);
}

.nav-donate {
  background: var(--yellow) !important;
  color: var(--dark) !important;
  padding: 9px 22px !important;
  border-radius: 2px;
  font-weight: 700 !important;
  height: auto !important;
  border-bottom: none !important;
  margin-left: 12px;
}

.nav-donate:hover {
  background: #ffe340 !important;
  border-bottom: none !important;
}

/* --- Hero ------------------------------------------------------------------- */

.hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 40%;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(42,42,45,.82) 35%, rgba(42,42,45,.1) 100%);
  display: flex;
  align-items: center;
}

/* Yellow accent bar on left edge */
.hero-overlay::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--yellow);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 3rem;
  max-width: 680px;
}

.hero-logo {
  height: 90px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 24px;
}

.hero-content .eyebrow { margin-bottom: 14px; }

.hero-content h1 {
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.0;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-content h1 em {
  color: var(--yellow);
  font-style: normal;
}

.hero-sub {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, .85);
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
/* --- Signup (Brevo embed) --------------------------------------------------- */

.signup-section {
  background: var(--dark2);
  border-bottom: 1px solid rgba(254,208,0,.15);
}

.signup-section .section-container h2 {
  color: var(--white);
}

.signup-section .section-container p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}

.brevo-embed {
  max-width: 600px;
}

.brevo-embed iframe {
  display: block;
  width: 100%;
  border: none;
}

/* --- Party of Principle ----------------------------------------------------- */

.principles {
  background: var(--white);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--cream);
  margin-top: 40px;
}

.principle-card {
  background: var(--white);
  padding: 36px 28px;
  border-top: 3px solid transparent;
  transition: border-color .2s;
}

.principle-card:hover { border-top-color: var(--yellow); }

.principle-card h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: 12px;
}

.principle-card p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.7;
}

/* --- Meetups ---------------------------------------------------------------- */

.meetups {
  background: var(--dark);
}

.meetups .section-container h2 {
  color: var(--white);
}

.meetup-card {
  background: var(--dark2);
  border: 1px solid rgba(254,208,0,.15);
  border-left: 4px solid var(--yellow);
  padding: 28px 32px;
  margin-top: 28px;
  max-width: 600px;
}

.meetup-card h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 12px;
}

.meetup-time {
  font-size: 14px;
  color: var(--yellow);
  font-weight: 500;
  margin-bottom: 4px;
}

.meetup-location {
  font-size: 15px;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 2px;
}

.meetup-address {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.meetup-notes {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.meetup-next-date {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 4px;
}

.meetup-all-events {
  margin-top: 12px;
  font-size: 14px;
}

.meetup-all-events a {
  color: var(--muted);
}

.meetup-all-events a:hover {
  color: var(--white);
}

/* --- News ------------------------------------------------------------------- */

.news-section {
  background: var(--white);
}

.news-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  border-left: 4px solid transparent;
  padding-left: 0;
  transition: border-left-color .15s, background .15s;
}

.news-card:first-of-type { border-top: 1px solid #eee; }
.news-card:hover { border-left-color: var(--yellow); }

.news-card time {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  padding-top: 3px;
  line-height: 1.4;
}

.news-card h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--dark);
  margin-bottom: 6px;
}

.news-card h3 a {
  color: inherit;
  transition: color .15s;
}

.news-card h3 a:hover { color: var(--gray); }

.news-card p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.6;
  grid-column: 2;
}

.news-section .btn {
  margin-top: 28px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #eee;
  margin-top: 8px;
}

.news-grid .news-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-left: 4px solid transparent;
  border-bottom: none;
  transition: border-left-color .15s, background .15s;
}

.news-grid .news-card:first-of-type { border-top: none; }
.news-grid .news-card:hover { border-left-color: var(--yellow); background: var(--cream); }

.news-grid .news-card time {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
}

.news-grid .news-card h3 { margin-bottom: 4px; }

/* News archive page */
.news-archive .section-container h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 8px;
}

.news-archive .section-container .eyebrow {
  margin-bottom: 6px;
}

/* --- About ------------------------------------------------------------------ */

.about {
  background: var(--white);
}

.about > .section-container > p {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 8px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.about-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-top: 4px solid var(--yellow);
  padding: 24px 28px;
}

.about-card h3 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.about-card ul {
  list-style: none;
  padding: 0;
}

.about-card li {
  font-size: 15px;
  color: var(--text);
  padding: 9px 0;
  border-bottom: 1px solid #eee;
  line-height: 1.5;
}

.about-card li:last-child { border-bottom: none; }

.about-card a {
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}

.about-card a:hover { color: var(--gray); }

/* --- Resources -------------------------------------------------------------- */

.resources {
  background: var(--white);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #e0e0e0;
  margin-top: 40px;
}

.resource-card {
  background: var(--white);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 4px solid transparent;
  transition: background .15s, border-left-color .15s;
}

.resource-card:hover {
  background: var(--cream);
  border-left-color: var(--yellow);
}

.resource-card h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--dark);
}

.resource-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 340px;
}

/* --- Footer ----------------------------------------------------------------- */

.site-footer {
  background: var(--dark);
  color: var(--muted);
  border-top: 3px solid var(--yellow);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 3rem 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-affiliation {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 260px;
}

.footer-links h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 3px 0;
  transition: color .15s;
}

.footer-links li a:hover { color: var(--white); }

.footer-legal {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 3rem;
  max-width: 100%;
}

.footer-legal p {
  font-size: 15px;
  color: var(--muted);
  max-width: 1100px;
  margin: 0 auto 4px;
}

.footer-attribution {
  font-size: 12px !important;
  color: rgba(255,255,255,.25) !important;
  line-height: 1.5;
}

.footer-attribution a {
  color: rgba(255,255,255,.35);
  text-decoration: underline;
}

/* --- Post ------------------------------------------------------------------- */

.post-content {
  background: var(--cream);
  min-height: 100vh;
}

.post-header {
  background: var(--dark);
  padding: 56px 3rem 48px;
  border-bottom: 3px solid var(--yellow);
}

.post-header .eyebrow { margin-bottom: 12px; }

.post-header h1 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
  max-width: 760px;
}

.post-header time {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.post-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 3rem 64px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.85;
}

.post-body p { margin-bottom: 1.25rem; }
.post-body h2, .post-body h3 { color: var(--dark); font-family: var(--sans); margin: 1.8rem 0 .8rem; }
.post-body a { color: var(--dark); text-decoration: underline; }
.post-body a:hover { color: var(--gray); }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-body li { margin-bottom: .4rem; }

.post-nav {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 3rem 48px;
}

.post-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  text-decoration: none;
  transition: color .15s;
}

.post-nav a:hover { color: var(--white); }

/* --- Responsive ------------------------------------------------------------- */

@media (max-width: 900px) {
  .principles-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  /* Nav */
  .site-nav { padding: 0 1.25rem; }
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
    border-bottom: 3px solid var(--yellow);
    z-index: 99;
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    height: auto;
    padding: 12px 1.5rem;
    border-bottom: none;
    margin-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav-links li a:hover {
    border-bottom-color: transparent;
    border-left-color: var(--yellow);
  }

  .nav-donate {
    margin: 8px 1.5rem 4px !important;
    text-align: center;
    padding: 12px !important;
  }

  /* Hero */
  .hero-content { padding: 48px 1.5rem; }

  /* Values strip */

  /* Sections */
  .section-container { padding: 48px 1.5rem; }

  /* News grid */
  .news-grid { grid-template-columns: 1fr; }

  /* Meetup */
  .meetup-card { max-width: 100%; }

  /* News */
  .news-card { grid-template-columns: 1fr; gap: 4px; }
  .news-card time { font-size: 12px; }

  /* Resources */
  .resources-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-container { grid-template-columns: 1fr; gap: 32px; padding: 40px 1.5rem 32px; }
  .footer-main { grid-column: auto; }
  .footer-legal { padding: 16px 1.5rem; }

  /* Post */
  .post-header { padding: 40px 1.5rem 36px; }
  .post-body { padding: 36px 1.5rem 48px; }
  .post-nav { padding: 0 1.5rem 40px; }
}
