/* Same Sky Collective Society — shared styles
   Design ported from preview.html (2026-07-07): cream sky, rainbow accents,
   flower side borders, Quicksand headings. Mobile-first, WCAG AA contrast. */

:root {
  --cream: #fdf8f0;
  --paper: #ffffff;
  --ink: #2b2632;
  --soft: #5c5663;
  --turq: #15b6bd;
  --turq-dark: #0d7d82;   /* AA-safe turquoise for small text on cream */
  --green: #7cc24a;
  --blue: #3a9fd8;
  --blue-dark: #1f6f9e;   /* AA-safe link blue */
  --mag: #e5408a;
  --mag-dark: #c02368;
  --orange: #f47a23;
  --yellow: #f7c233;
  --grad: linear-gradient(100deg, #15b6bd, #7cc24a 52%, #3a9fd8);
  --radius: 16px;
  --shadow: 0 12px 34px rgba(42, 38, 50, 0.12);
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--cream); }

body {
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink);
  background: transparent;
  overflow-x: hidden;
}

/* Animated sky canvas sits behind everything; cream is the no-JS fallback */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }

/* Flower side borders */
.side {
  position: fixed; top: 0; bottom: 0; width: 60px; z-index: 6;
  background: url(ssc-flowers-side.jpg) repeat-y; background-size: 60px auto;
  pointer-events: none; box-shadow: 0 0 22px rgba(42, 38, 50, 0.10);
}
.side.l { left: 0; }
.side.r { right: 0; transform: scaleX(-1); }
@media (min-width: 761px) { body { padding: 0 60px; } }
@media (max-width: 760px) { .side { width: 14px; } body { padding: 0 14px; } }
@media (max-width: 430px) { .side { display: none; } body { padding: 0; } }

h1, h2, h3, h4, .brandmark {
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  font-weight: 700; line-height: 1.15; color: var(--ink);
}
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
p { margin-bottom: 1em; }
a { color: var(--blue-dark); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.sr-only { position: absolute; left: -9999px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 18px rgba(42, 38, 50, 0.08); }
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0.6rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: 1.05rem;
}
.brand img { height: 40px; border-radius: 6px; }
.nav-toggle {
  background: none; border: none; color: var(--ink);
  font-size: 1.5rem; line-height: 1; padding: 0.35rem 0.6rem;
  border-radius: 10px; cursor: pointer;
}
.nav-toggle:focus-visible { outline: 2px solid var(--turq); outline-offset: 2px; }
.main-nav { display: none; width: 100%; }
.main-nav.open { display: block; }
.main-nav ul { list-style: none; padding: 0.5rem 0 0.75rem; }
.main-nav a {
  display: block; color: var(--ink); text-decoration: none;
  padding: 0.55rem 0.25rem; border-radius: 6px;
  font-weight: 600; font-family: 'Quicksand', sans-serif;
}
.main-nav a:hover { color: var(--turq-dark); }
.main-nav a[aria-current="page"] { color: var(--turq-dark); }

.quick-links {
  display: flex; gap: 0.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 0.55rem 1.25rem;
  background: rgba(253, 248, 240, 0.92);
  border-bottom: 1px solid rgba(42, 38, 50, 0.07);
}
.quick-links a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.9rem;
  font-family: 'Quicksand', sans-serif; white-space: nowrap;
  padding: 0.35rem 0.95rem; background: var(--paper);
  border: 1.5px solid rgba(42, 38, 50, 0.12); border-radius: 999px;
}
.quick-links a.ql-donate { background: var(--mag); border-color: var(--mag); color: #fff; }

@media (min-width: 800px) {
  .quick-links { display: none; }
  .nav-toggle { display: none; }
  .main-nav { display: block; width: auto; }
  .main-nav ul { display: flex; gap: 1.3rem; padding: 0; }
  .main-nav a { padding: 0.4rem 0; }
  .main-nav a.nav-donate {
    background: var(--mag); color: #fff; padding: 0.4rem 1.1rem; border-radius: 999px;
  }
}

/* ---------- Hero ---------- */
.hero { padding: 3.2rem 0 2.6rem; text-align: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .tagline {
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  max-width: 38em; margin: 0 auto 1.6em; color: var(--soft);
}
.hero-ctas { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.herologo {
  width: min(340px, 80vw); border-radius: 20px;
  box-shadow: var(--shadow); margin: 0 auto 1.4rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.75rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-family: 'Quicksand', sans-serif;
  text-decoration: none; font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--mag); color: #fff; }
.btn-donate { background: var(--mag); color: #fff; }
.btn-outline { border: 2px solid var(--turq-dark); color: var(--turq-dark); }
.btn-outline-dark { border: 2px solid var(--turq-dark); color: var(--turq-dark); }
.section-dark .btn-donate, .section-dark .btn-primary { background: #fff; color: var(--mag-dark); }
.section-dark .btn-outline { border-color: #fff; color: #fff; }

/* ---------- Sections ---------- */
section { padding: 3rem 0; }
.section-alt { background: rgba(255, 255, 255, 0.55); }
.section-dark {
  background: var(--grad); color: #fff;
  border-radius: 0;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.kicker {
  display: block; font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--turq-dark); margin-bottom: 0.5em;
}
.section-dark .kicker { color: #fff; }
.reveal { animation: ssrise 0.7s ease both; }
@keyframes ssrise { from { transform: translateY(14px); } to { transform: none; } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
}
.card-body { padding: 1.25rem; flex: 1; }
.card-body p:last-child { margin-bottom: 0; }
.card img.card-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* Placeholder art blocks — replace with real photos */
.ph {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.95); font-weight: 600; font-size: 0.9rem;
  font-family: 'Quicksand', sans-serif; text-align: center; padding: 1rem;
}
.ph-1 { background: linear-gradient(135deg, #15b6bd, #3a9fd8); }
.ph-2 { background: linear-gradient(135deg, #f47a23, #e5408a); }
.ph-3 { background: linear-gradient(135deg, #7cc24a, #15b6bd); }
.ph-4 { background: linear-gradient(135deg, #3a9fd8, #e5408a); }
.ph-5 { background: linear-gradient(135deg, #f7c233, #f47a23); }
.ph-6 { background: linear-gradient(135deg, #e5408a, #3a9fd8); }
.ph-portrait { aspect-ratio: 1 / 1; border-radius: 50%; width: 120px; margin: 1.25rem auto 0; }

/* ---------- Giant 70% stat with flower fill ---------- */
.stat { text-align: center; }
.stat .n {
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: clamp(5rem, 20vw, 13rem); line-height: 0.85;
}
#stat70 {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.statwrap { position: relative; display: inline-block; line-height: 0.85; }
#statfx { position: absolute; top: -12%; left: -6%; width: 112%; height: 124%; pointer-events: none; }
.stat > .container > p, .stat .statcaption { max-width: 30ch; margin: 0.6rem auto 0; color: var(--soft); }

/* Smaller companion stats */
.stats { display: grid; gap: 1.5rem; text-align: center; margin-top: 2.2rem; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-inline: auto; } }
.stat-number {
  font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 2.6rem;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Visit / info ---------- */
.info-box {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 4px solid var(--turq); padding: 1.4rem;
}
.info-box ul { list-style: none; }
.info-box li { padding: 0.3rem 0; }
.info-box li strong { font-family: 'Quicksand', sans-serif; }
.map-embed { width: 100%; border: 0; border-radius: 10px; }

/* ---------- Events ---------- */
.event {
  display: flex; gap: 1.1rem; background: var(--paper);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.2rem; margin-bottom: 1.1rem;
}
.event-date {
  flex-shrink: 0; width: 70px; text-align: center;
  background: var(--grad); color: #fff; border-radius: 10px;
  padding: 0.55rem 0.3rem; height: fit-content;
}
.event-date .month { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.event-date .day { display: block; font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.event h3 { margin-bottom: 0.2em; }
.event p { margin-bottom: 0.3em; color: var(--soft); }

/* ---------- Press ---------- */
.press-item {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.3rem; margin-bottom: 1.1rem;
}
.press-outlet { font-weight: 700; color: var(--turq-dark); font-family: 'Quicksand', sans-serif; }

/* ---------- Newsletter ---------- */
.newsletter-band { background: rgba(255, 255, 255, 0.55); }
.newsletter-form { display: flex; gap: 0.6rem; flex-wrap: wrap; max-width: 30rem; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 200px; padding: 0.7rem 1rem;
  border: 1.5px solid rgba(42, 38, 50, 0.18); border-radius: 999px;
  font-size: 1rem; font-family: inherit; background: var(--paper);
}
.newsletter-form input[type="email"]:focus-visible { outline: 2px solid var(--turq); outline-offset: 1px; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, transparent, #ffffff 55%);
  color: var(--ink); margin-top: 3rem; padding: 3rem 0 2rem;
}
.footer-grid { display: grid; gap: 1.8rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { margin-bottom: 0.5em; font-size: 1rem; }
.site-footer a { color: var(--blue-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 0.2rem 0; }
.social a { display: inline-flex; align-items: center; gap: 0.5rem; line-height: 2.2; }
.social svg { flex-shrink: 0; color: var(--turq-dark); }
.footer-note {
  margin-top: 2rem; font-size: 0.85rem; color: var(--soft);
  border-top: 1px solid rgba(42, 38, 50, 0.12); padding-top: 1.2rem;
}

/* ---------- Tier give links ---------- */
.tier-give { font-family: 'Quicksand', sans-serif; font-weight: 700; color: var(--mag-dark); text-decoration: none; }
.tier-give:hover { text-decoration: underline; }

/* ---------- Campaign meter ---------- */
.meter { height: 9px; border-radius: 99px; background: #eee; overflow: hidden; margin: 0.5rem 0 0.3rem; }
.meter i { display: block; height: 100%; background: var(--grad); }

/* ---------- Misc ---------- */
.land-ack { font-size: 0.95rem; font-style: italic; color: var(--soft); }
.badge {
  display: inline-block; background: var(--grad); color: #fff;
  font-family: 'Quicksand', sans-serif; font-size: 0.78rem; font-weight: 700;
  padding: 0.25rem 0.85rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.6rem;
}
.price { font-weight: 700; font-family: 'Quicksand', sans-serif; }
.sold { color: var(--mag-dark); font-weight: 700; }
.note-placeholder {
  background: #fff7ef; border: 1px dashed var(--orange); border-radius: 10px;
  padding: 0.7rem 1rem; font-size: 0.9rem; color: #9a5a12; margin: 1rem 0;
}
.section-dark .note-placeholder {
  background: #fff; border-color: var(--orange); color: var(--ink);
}
.tag {
  display: inline-block; background: var(--paper); border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.85rem;
  font-weight: 600; margin: 0.2rem 0.3rem 0 0; color: var(--soft);
}
.skip-link {
  position: absolute; left: -9999px;
  background: #fff; color: var(--ink); padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .reveal { animation: none; }
}
