/* =============================================
   I Am A Gay Christian — Site Styles
   Stack: Web Awesome Pro (Awesome theme, bright palette)
   Fonts: Quicksand + Crimson Pro
   ============================================= */

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--wa-color-surface-default);
  color: var(--wa-color-neutral-950);
}

main {
  flex: 1;
}

a {
  color: var(--wa-color-brand-600);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--wa-color-brand-700);
}

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

/* === Rainbow Bar === */
.rainbow-bar {
  height: 6px;
  background: linear-gradient(
    to right,
    #e40303 0%,
    #e40303 16.66%,
    #ff8c00 16.66%,
    #ff8c00 33.33%,
    #ffed00 33.33%,
    #ffed00 50%,
    #008026 50%,
    #008026 66.66%,
    #004dff 66.66%,
    #004dff 83.33%,
    #750787 83.33%,
    #750787 100%
  );
}

/* === Skip Link === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--wa-color-brand-600);
  color: white;
  border-radius: var(--wa-border-radius-m);
  z-index: 999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0.5rem;
}

/* === Header === */
.site-header {
  background: var(--wa-color-surface-default);
  border-bottom: 2px solid var(--wa-color-neutral-100);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.site-logo-title {
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--wa-color-brand-600);
  line-height: 1.1;
}

.site-logo-tagline {
  font-family: Quicksand, sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--wa-color-neutral-500);
  letter-spacing: 0.03em;
}

/* === Nav === */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-block;
  padding: 0.4rem 0.875rem;
  font-family: Quicksand, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--wa-color-neutral-700);
  text-decoration: none;
  border-radius: var(--wa-border-radius-pill);
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: var(--wa-color-brand-50);
  color: var(--wa-color-brand-700);
}

.nav-link--active {
  background: var(--wa-color-brand-100);
  color: var(--wa-color-brand-700);
}

/* === Page Wrapper === */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-wrap--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* === Home Hero === */
.home-hero {
  background: linear-gradient(
    135deg,
    var(--wa-color-brand-50) 0%,
    var(--wa-color-purple-50, #faf5ff) 100%
  );
  padding: 4rem 1.5rem;
  text-align: center;
}

.home-hero__inner {
  max-width: 680px;
  margin: 0 auto;
}

.home-hero__headline {
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--wa-color-brand-700);
  margin: 0 0 1rem;
}

.home-hero__sub {
  font-family: "Crimson Pro", serif;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.65;
  color: var(--wa-color-neutral-700);
  margin: 0 0 2rem;
}

.home-hero__cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Story Grid === */
.stories-section {
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-heading {
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--wa-color-neutral-800);
  margin: 0 0 1.5rem;
  text-align: center;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* === Story Card === */
.story-card {
  display: block;
  text-decoration: none;
  border-radius: var(--wa-border-radius-l);
  overflow: hidden;
  background: var(--wa-color-surface-default);
  border: 2px solid var(--wa-color-neutral-100);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--wa-color-brand-300);
}

.story-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--wa-color-neutral-100);
}

.story-card__thumb--placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--wa-color-brand-100), var(--wa-color-purple-100, #ede9fe));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wa-color-brand-400);
  font-size: 2.5rem;
}

.story-card__body {
  padding: 1rem 1.25rem 1.25rem;
}

.story-card__name {
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--wa-color-neutral-900);
  margin: 0 0 0.35rem;
}

.story-card__excerpt {
  font-family: "Crimson Pro", serif;
  font-size: 0.95rem;
  color: var(--wa-color-neutral-600);
  margin: 0;
  line-height: 1.55;
}

/* === Story Page === */
.story-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.story-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wa-color-brand-600);
  text-decoration: none;
  margin-bottom: 1.75rem;
}

.story-page__back:hover {
  color: var(--wa-color-brand-700);
  text-decoration: underline;
}

.story-page__title {
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--wa-color-brand-700);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.story-page__meta {
  font-size: 0.85rem;
  color: var(--wa-color-neutral-500);
  margin: 0 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.story-page__video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--wa-border-radius-l);
  overflow: hidden;
  background: #000;
  margin-bottom: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.story-page__video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.story-page__content {
  font-family: "Crimson Pro", serif;
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--wa-color-neutral-800);
}

.story-page__content p {
  margin: 0 0 1.25em;
}

/* === Resources Page === */
.resources-hero {
  padding: 3rem 1.5rem 2rem;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.resources-hero__title {
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--wa-color-brand-700);
  margin: 0 0 0.75rem;
}

.resources-hero__intro {
  font-family: "Crimson Pro", serif;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--wa-color-neutral-700);
  margin: 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}

.resource-card {
  border-radius: var(--wa-border-radius-l);
  border: 2px solid var(--wa-color-neutral-100);
  padding: 1.5rem;
  background: var(--wa-color-surface-default);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.resource-card:hover {
  border-color: var(--wa-color-brand-300);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.resource-card__name {
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--wa-color-neutral-900);
  margin: 0;
}

.resource-card__desc {
  font-family: "Crimson Pro", serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--wa-color-neutral-700);
  margin: 0;
  flex: 1;
}

.resource-card__link {
  font-family: Quicksand, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  align-self: flex-start;
}

/* === Welcome / Static Page === */
.static-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.static-page__title {
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--wa-color-brand-700);
  margin: 0 0 2rem;
  line-height: 1.15;
}

.static-page__content {
  font-family: "Crimson Pro", serif;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--wa-color-neutral-800);
}

.static-page__content p {
  margin: 0 0 1.35em;
}

/* === Stories Archive Page === */
.stories-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.stories-page__title {
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--wa-color-brand-700);
  margin: 0 0 0.5rem;
  text-align: center;
}

.stories-page__intro {
  font-family: "Crimson Pro", serif;
  font-size: 1.2rem;
  color: var(--wa-color-neutral-600);
  text-align: center;
  margin: 0 0 2.5rem;
  line-height: 1.6;
}

/* === Footer === */
.site-footer {
  background: var(--wa-color-neutral-950);
  color: var(--wa-color-neutral-300);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-tagline {
  font-family: Quicksand, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--wa-color-neutral-400);
  margin: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--wa-color-neutral-400);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: var(--wa-color-neutral-100);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--wa-color-neutral-600);
  margin: 0;
}

/* === Callout === */
.love-callout {
  background: linear-gradient(135deg, var(--wa-color-brand-600), var(--wa-color-purple-600, #7c3aed));
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
  margin: 0;
}

.love-callout__text {
  font-family: "Crimson Pro", serif;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* === Responsive === */
@media (max-width: 600px) {
  .header-inner {
    padding: 0.75rem 1rem;
  }

  .home-hero {
    padding: 2.5rem 1rem;
  }

  .nav-link {
    padding: 0.35rem 0.625rem;
    font-size: 0.85rem;
  }
}
