/* ==========================================================================
   Sponsor a Dream — design tokens
   Palette: night sky → dawn gold, echoing a dream taking its first light
   ========================================================================== */

:root {
  --night-deep: #1b1640;
  --night-mid: #2e2456;
  --dawn-gold: #e8a853;
  --dawn-gold-soft: #f0c384;
  --ember: #d65f4c;
  --cream: #fbf6ee;
  --peach-tint: #f3dcc4;
  --peach-tint-soft: #f8e9d6;
  --ink: #2a2340;
  --ink-soft: #5b5470;
  --line: rgba(42, 35, 64, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--night-deep);
  margin: 0;
  line-height: 1.1;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
}

.eyebrow.on-dark { color: var(--dawn-gold); }

p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--dawn-gold); outline-offset: 3px; }

.btn-primary {
  background: var(--dawn-gold);
  color: var(--night-deep);
  box-shadow: 0 6px 20px rgba(232, 168, 83, 0.35);
}
.btn-primary:hover { background: var(--dawn-gold-soft); }

.btn-ghost {
  background: transparent;
  border-color: rgba(251, 246, 238, 0.4);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--dawn-gold); color: var(--dawn-gold); }

.btn-ghost.on-light {
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost.on-light:hover { border-color: var(--ember); color: var(--ember); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(27, 22, 64, 0.92);
  backdrop-filter: blur(10px);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.logo span { color: var(--dawn-gold); }

.logo:has(.logo-mark) {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Circular badge cropped from the square logo artwork (circle spans ~62% of the image) */
.logo-mark {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--dawn-gold), 0 4px 18px rgba(232, 168, 83, 0.35);
}
.logo:has(.logo-mark) { gap: 16px; font-size: 1.4rem; }
.site-header .wrap:has(.logo-mark) { padding-top: 12px; padding-bottom: 12px; }
.site-footer .logo-mark { width: 96px; height: 96px; }
@media (max-width: 820px) {
  .logo-mark { width: 56px; height: 56px; }
  .site-footer .logo-mark { width: 72px; height: 72px; }
}
.logo-mark img {
  display: block;
  width: 161%;
  height: 161%;
  max-width: none;
  margin: -30.5%;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(251, 246, 238, 0.8);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--dawn-gold); }

.nav-right { display: flex; align-items: center; gap: 26px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-links.nav-links-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--night-deep);
    padding: 20px 32px 26px;
    gap: 18px;
  }
  .nav-toggle { display: block; }
  .nav-right .btn-primary { display: none; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--night-deep) 0%, var(--night-mid) 62%, var(--night-mid) 100%);
  padding-top: 90px;
  padding-bottom: 0;
}

.hero-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-stars circle {
  animation: twinkle 4.5s ease-in-out infinite;
}
.hero-stars circle:nth-child(3n) { animation-delay: 0.6s; }
.hero-stars circle:nth-child(4n) { animation-delay: 1.4s; }
.hero-stars circle:nth-child(5n) { animation-delay: 2.1s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 70px 0 60px;
}

.hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 46px;
}

/* Large logo with its cream background removed, so it sits directly on the night sky */
.hero-logo {
  flex: none;
  width: clamp(280px, 32vw, 420px);
}
.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 28px rgba(232, 168, 83, 0.4));
}

/* Homepage hero: text on top, then the sponsor button with the logo to its right.
   On desktop the block spans the full page width; on mobile the logo drops below the button. */
.hero:has(.hero-stacked) { padding-top: 24px; }
.hero-main.hero-stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.hero-stacked .hero-content { padding: 36px 0 0; max-width: 980px; }
.hero-stacked h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.hero-stacked .hero-sub { max-width: 820px; font-size: clamp(1.08rem, 1.4vw, 1.25rem); }
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  margin-top: 40px;
}
.hero-cta-row .hero-actions { margin-top: 0; flex: none; }
.hero-cta-row .btn { padding: 18px 38px; font-size: 1.1rem; }
.hero-cta-row .hero-logo { margin-top: 0; width: clamp(300px, 38vw, 500px); }
@media (max-width: 820px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
    margin-top: 30px;
  }
  .hero-cta-row .btn { padding: 16px 30px; font-size: 1rem; }
  .hero-cta-row .hero-logo { width: min(260px, 70vw); margin-top: 0; }
}

@media (max-width: 820px) {
  .hero-main { flex-direction: column-reverse; align-items: flex-start; gap: 0; }
  .hero-logo { width: 240px; margin-top: 40px; }
  .hero-main .hero-content { padding-top: 36px; }
  .hero-main.hero-stacked { flex-direction: column; }
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  color: var(--cream);
  margin-top: 14px;
  font-weight: 600;
}
.hero h1 em {
  color: var(--dawn-gold);
  font-style: italic;
}

.hero-sub {
  color: rgba(251, 246, 238, 0.75);
  font-size: 1.08rem;
  max-width: 520px;
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}


/* clean fade from the night sky into the page below */
.horizon {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--night-mid) 0%, var(--cream) 100%);
}

/* ---------- Auto-scrolling photo strip ---------- */

.gallery-strip {
  padding: 90px 0 100px;
  overflow: hidden;
}
.gallery-strip h2 {
  margin-top: 10px;
  margin-bottom: 40px;
  max-width: 620px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 90s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

.marquee-group {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0 18px 0 0;
  list-style: none;
}
.marquee-group img {
  display: block;
  height: 280px;
  width: auto;
  max-width: none;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(27, 22, 64, 0.15);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 820px) {
  .gallery-strip { padding: 64px 0 72px; }
  .marquee-group img { height: 200px; }
}

/* No motion: let visitors swipe/scroll through the photos instead */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
  .marquee-group[aria-hidden="true"] { display: none; }
}

/* ---------- Section basics ---------- */

.section {
  padding: 100px 0;
}
.section-head {
  max-width: 560px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: 12px;
  font-weight: 600;
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Dreams cards ---------- */

.dreams-section { background: var(--night-mid); }
.dreams-section .section-head h2 { color: var(--cream); }
.dreams-section .section-head p { color: rgba(251, 246, 238, 0.68); }
.dreams-section .eyebrow { color: var(--dawn-gold); }

.dream-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.dream-card {
  background: var(--cream);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dream-glyph {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dawn-gold), var(--ember));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--cream);
  font-weight: 600;
}

.dream-card h3 { font-size: 1.12rem; font-weight: 600; }
.dream-card .who { color: var(--ink-soft); font-size: 0.9rem; }

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--peach-tint-soft);
  overflow: hidden;
  margin-top: 6px;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ember), var(--dawn-gold));
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .dream-cards { grid-template-columns: 1fr; }
}

/* ---------- Quote ---------- */

.quote-section {
  background: var(--cream);
  padding: 90px 0;
  text-align: center;
}
.quote-section blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--night-deep);
  max-width: 760px;
  margin: 0 auto;
  font-weight: 500;
}
.quote-section cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--night-deep);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 {
  color: var(--cream);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
}
.cta-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.bank-details {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  color: var(--cream);
}
.bank-details div { display: flex; gap: 10px; align-items: baseline; }
.bank-details dt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--dawn-gold);
  min-width: 38px;
}
.bank-details dd {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  user-select: all;
}
.vipps {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.vipps img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  display: block;
}
.vipps figcaption {
  color: var(--cream);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

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

.site-footer {
  background: var(--night-deep);
  color: rgba(251, 246, 238, 0.65);
  padding: 50px 0 30px;
  border-top: 1px solid rgba(251, 246, 238, 0.1);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 30px;
}
.footer-links {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-links a { font-size: 0.9rem; }
.footer-links a:hover { color: var(--dawn-gold); }
.footer-bottom {
  border-top: 1px solid rgba(251, 246, 238, 0.1);
  padding-top: 22px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Founders page
   ========================================================================== */

.page-hero {
  background: linear-gradient(180deg, var(--night-deep) 0%, var(--night-mid) 100%);
  padding: 120px 0 80px;
  text-align: left;
}
.page-hero h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  margin-top: 14px;
  font-weight: 600;
}
.page-hero .hero-logo { width: clamp(240px, 26vw, 340px); }
@media (max-width: 820px) {
  .page-hero .hero-logo { width: 200px; margin-top: 0; margin-bottom: 36px; }
}
.page-hero p {
  color: rgba(251, 246, 238, 0.75);
  max-width: 600px;
  margin-top: 18px;
  font-size: 1.05rem;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.founder-card {
  background: var(--peach-tint-soft);
  border-radius: 20px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--cream);
}
.avatar-1 { background: linear-gradient(135deg, var(--ember), var(--dawn-gold)); }
.avatar-2 { background: linear-gradient(135deg, var(--night-mid), var(--ember)); }
.avatar-3 { background: linear-gradient(135deg, var(--dawn-gold), var(--night-mid)); }

.founder-card h3 { font-size: 1.25rem; font-weight: 600; }
.founder-role {
  color: var(--ember);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: -10px;
}
.founder-bio { color: var(--ink-soft); font-size: 0.96rem; }
.founder-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--night-deep);
  font-size: 1.02rem;
  border-left: 2px solid var(--dawn-gold);
  padding-left: 14px;
}

@media (max-width: 900px) {
  .founders-grid { grid-template-columns: 1fr; }
}

/* ---------- Story & farm prose ---------- */

.story-section { padding-bottom: 40px; }
.prose {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.prose-callout {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--dawn-gold);
  padding-left: 18px;
}
.farm-section { background: var(--night-mid); }
.farm-section .section-head h2 { color: var(--cream); }
.farm-section .prose { color: rgba(251, 246, 238, 0.75); }
.farm-section .prose-callout { color: var(--cream); }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .wrap { padding: 0 22px; }
}
