/* ==========================================================================
   Storylight Collective — homepage styles
   Palette pulled from the official brand kit: storylight orange (primary),
   with crimson and dusty blue as supporting accents against ink/ivory.
   Serif display (Fraunces) for headlines, Inter for body copy. Swap the
   CSS variables below to adjust brand colors without touching layout rules.
   ========================================================================== */

:root {
  --ink: #29251f;        /* brand: ink */
  --paper: #f7f4ef;      /* brand: ivory */
  --paper-dim: #efe6d3;  /* derived: dimmer ivory for alternating sections */
  --amber: #ed9319;      /* brand: storylight orange — PRIMARY */
  --amber-dark: #c97a10; /* derived: hover state for amber */
  --crimson: #5e1c29;    /* brand: crimson — supporting accent */
  --dusty: #556778;      /* brand: dusty blue — supporting accent / muted text */
  --misty: #d9dfe4;      /* brand: misty blue — light supporting tint */
  --line: #e4dcc7;       /* derived: hairline borders on ivory */
  --muted: #5c6b77;      /* derived: readable muted tone from dusty blue */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap-max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap.narrow {
  max-width: 720px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

a { color: inherit; }

.section-heading {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
  margin-bottom: 40px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--amber);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-text {
  background: none;
  color: var(--muted);
  text-decoration: underline;
  padding: 14px 10px;
  font-weight: 500;
}

.btn-text:hover {
  color: var(--ink);
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo img {
  height: 34px;
  width: 34px;
  object-fit: contain;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
}

.nav-cta {
  background: var(--amber);
  color: var(--paper) !important;
  padding: 9px 18px;
  border-radius: 4px;
}

.nav-cta:hover { background: var(--amber-dark); }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 90px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, var(--paper-dim), var(--paper) 65%);
}

.hero-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 28px;
  display: block;
}

.hero .tagline {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  max-width: 780px;
  margin: 0 auto 22px;
}

.hero .one-liner {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Stakes ---------- */
.stakes {
  padding: 90px 0;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.stake-statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 28px;
  color: var(--amber);
}

.stake-body {
  color: var(--misty);
  font-size: 1.05rem;
}

/* ---------- Guide ---------- */
.guide {
  padding: 90px 0;
}

.guide-empathy {
  font-size: 1.15rem;
  margin-bottom: 28px;
}

.guide-authority {
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: 40px;
  margin-bottom: 48px;
  padding-left: 20px;
  border-left: 2px solid var(--line);
}

.founders {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.founder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 120px;
}

.founder-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid var(--paper-dim);
}

.founder-photo.placeholder {
  background: linear-gradient(155deg, var(--misty), var(--dusty));
}

.founder-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Gallery ---------- */
.gallery {
  padding: 90px 0;
  background: var(--paper-dim);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 24px;
  align-items: center;
}

.gallery-item {
  margin: 0;
  text-align: center;
}

.gallery-item.featured {
  position: relative;
}

.gallery-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  margin-bottom: 14px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 20px rgba(41, 37, 31, 0.12);
}

.gallery-item.featured .gallery-image {
  aspect-ratio: 3 / 2.1;
  box-shadow: 0 10px 28px rgba(41, 37, 31, 0.22);
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.gallery-item figcaption {
  font-size: 0.92rem;
  color: var(--muted);
}

.gallery-item.featured figcaption {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Plan ---------- */
.plan {
  padding: 90px 0;
  text-align: center;
}

.plan-steps {
  list-style: none;
  margin: 0 0 50px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
}

.plan-steps li {
  padding: 0;
}

.plan-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 16px;
}

.plan-steps h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.plan-steps p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Explanatory paragraph ---------- */
.explain {
  padding: 70px 0;
  background: var(--paper-dim);
  text-align: center;
  border-top: 1px solid var(--line);
}

.explain p {
  font-size: 1.15rem;
  color: var(--ink);
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 90px 0;
  background: var(--paper-dim);
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.testimonial-card {
  margin: 0;
  padding: 32px 26px;
  background: var(--paper);
  border-radius: 6px;
  border-top: 3px solid var(--amber);
  box-shadow: 0 6px 20px rgba(41, 37, 31, 0.08);
}

.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 18px;
}

.testimonial-card cite {
  display: block;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.testimonial-card cite span {
  font-weight: 400;
}

/* ---------- Become a Spotlight (direct ask) ---------- */
.spotlight {
  padding: 90px 0;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.spotlight-intro {
  color: var(--misty);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 48px;
}

.spotlight-tiers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto;
}

.spotlight-tier {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 36px 28px;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spotlight-tier h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 14px;
  color: var(--paper);
}

.spotlight-tier .tier-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--paper);
  margin: 0 0 14px;
}

.spotlight-tier .tier-price span {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--dusty);
}

.spotlight-tier .tier-price {
  margin: 0;
}

.spotlight-tier-featured {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid var(--amber);
  padding: 44px 30px;
  width: 280px;
  transform: translateY(-8px);
}

.spotlight-tier-featured .tier-price {
  font-size: 2.4rem;
}

.spotlight-cta {
  margin: 48px auto 0;
}

.spotlight-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--dusty);
  margin: 20px auto 0;
  max-width: 560px;
}

@media (max-width: 760px) {
  .spotlight-tiers {
    flex-direction: column;
  }
  .spotlight-tier,
  .spotlight-tier-featured {
    width: 100%;
    max-width: 320px;
    transform: none;
  }
}

/* ---------- Join / signup ---------- */
.join {
  padding: 100px 0;
  text-align: center;
}

.join p {
  color: var(--muted);
  margin-bottom: 32px;
}

.join-fork {
  font-size: 0.9rem;
  margin-top: -16px !important;
}

.join-fork a {
  color: var(--amber-dark);
  font-weight: 600;
}

.signup-placeholder {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.signup-placeholder input {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-width: 260px;
}

.form-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--misty);
  padding: 50px 0 30px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.footer-logo {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.footer-tagline {
  margin: 0;
  color: var(--misty);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 0.92rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--misty);
}

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

.footer-address {
  font-size: 0.82rem;
  color: var(--misty);
  margin: 0 0 10px;
}

.footer-fine {
  font-size: 0.78rem;
  color: #8c96a0;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .main-nav { gap: 14px; font-size: 0.85rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.featured { order: -1; }
  .plan-steps { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 70px 0 60px; }
  .founders { gap: 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* Narrow phones: logo + nav links + CTA button no longer fit on one row
   without wrapping awkwardly. Drop the anchor links (About/Our Work just
   jump down this same single page) and keep the logo + the one CTA that
   matters at a glance. */
@media (max-width: 480px) {
  .logo-word { font-size: 1rem; }
  .main-nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 0.85rem; white-space: nowrap; }
}
