/* ---------------------------------------------------------
   Stitched Together — design tokens
   Colors pulled directly from the logo (thread teal) and
   flyer border (gold), plus a cranberry-yarn accent.
--------------------------------------------------------- */
:root{
  --cream: #FFFFFF;
  --cream-deep: #FFFFFF;
  --teal: #4A9D93;
  --teal-deep: #2B5450;
  --gold: #C6A669;
  --berry: #8B6914;
  --berry-deep: #6B5410;
  --ink: #26302E;
  --ink-soft: #5B6663;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
}

*, *::before, *::after{ box-sizing: border-box; }

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

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

h1, h2, h3{
  font-family: var(--font-head);
  color: var(--teal-deep);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h2{ font-size: clamp(1.7rem, 3.2vw, 2.4rem); }

p{ margin: 0 0 1em; max-width: 62ch; }

a{ color: var(--berry); }

.sr-only{
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link{
  position: absolute; left: -9999px; top: 0;
  background: var(--teal-deep); color: #fff;
  padding: 0.75em 1.2em; z-index: 200;
}
.skip-link:focus{ left: 1em; top: 1em; }

:focus-visible{
  outline: 3px solid var(--berry);
  outline-offset: 2px;
}

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

/* ---------------- Header ---------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px dotted rgba(74, 157, 147, 0.3);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 2rem;
}

.wordmark{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--teal-deep);
  text-decoration: none;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  margin-right: auto;
  display: none;
}

.site-nav{
  display: flex;
  gap: 1.8rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
}
.site-nav a{
  color: var(--teal);
  text-decoration: none;
  font-size: 0.97rem;
  line-height: 1.4;
}
.site-nav a:hover{ color: var(--berry); }

.social-links{
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-left: 0;
  flex-shrink: 0;
}

.social-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0.4rem;
  color: var(--teal-deep);
  text-decoration: none;
}

.social-icon svg{
  width: 22px;
  height: 22px;
  fill: var(--teal-deep);
  transition: fill 0.2s ease;
  display: block;
}

.social-icon:hover svg{
  fill: var(--berry);
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 22px;
  background: var(--teal-deep);
}

@media (max-width: 720px){
  .header-inner{
    flex-direction: row;
    align-items: center;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    gap: 1rem;
  }
  .wordmark{
    display: flex;
    margin-right: auto;
  }
  .nav-toggle{ 
    display: flex;
    order: 3;
  }
  .site-nav{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 2px dashed var(--teal);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    justify-content: flex-start;
    flex: none;
  }
  .site-nav.open{ max-height: 420px; }
  .site-nav a{
    padding: 0.9rem 1.5rem;
    border-top: 1px solid var(--cream-deep);
    color: var(--teal);
  }
  .social-links{
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--cream-deep);
    gap: 1.2rem;
    justify-content: flex-start;
    background: var(--cream);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.open ~ .social-links{
    max-height: 100px;
  }
}

/* ---------------- Hero ---------------- */
.hero{
  padding: 2.25rem 0 0;
  text-align: center;
}
.hero-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo{
  width: min(900px, 98%);
  height: auto;
  margin-bottom: 1.6rem;
}
.hero-lede{
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 70ch;
}
.hero-actions{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.8rem;
}

.btn{
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.85em 1.7em;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary{
  background: var(--berry);
  color: #fff;
}
.btn-primary:hover{ background: var(--berry-deep); }
.btn-outline{
  background: transparent;
  border-color: var(--teal-deep);
  color: var(--teal-deep);
}
.btn-outline:hover{ background: var(--teal-deep); color: #fff; }

.stitch-divider{
  height: 24px;
  margin-top: 2.5rem;
  background-image: 
    linear-gradient(135deg, transparent 48%, var(--teal) 48%, var(--teal) 52%, transparent 52%),
    linear-gradient(45deg, transparent 48%, var(--teal) 48%, var(--teal) 52%, transparent 52%);
  background-size: 16px 24px;
  background-position: 0 0, 8px 0;
  background-repeat: repeat-x;
  opacity: 0.3;
}

/* ---------------- Sections ---------------- */
.section{
  padding: 4.5rem 0;
}
.section-alt{
  background: var(--cream-deep);
}
.section-lede{
  color: var(--ink-soft);
  max-width: 90ch;
  text-align: left;
}

.about-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
.partner-note{
  font-family: var(--font-head);
  font-style: italic;
  color: var(--teal-deep);
}
.figure-frame{
  border: 2px dashed var(--gold);
  padding: 10px;
  transform: rotate(-1.4deg);
}
.figure-frame img{ display: block; width: 100%; height: auto; }

@media (max-width: 800px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-figure{ order: -1; max-width: 420px; }
}

/* ---------------- Galleries ---------------- */
.gallery{
  display: grid;
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.gallery-6{ grid-template-columns: repeat(3, 1fr); }
.gallery-4{ grid-template-columns: repeat(2, 1fr); }

.gallery figure{
  margin: 0;
  border: 2px solid var(--teal);
  padding: 8px;
  background: var(--cream);
}
.gallery figure:nth-child(odd){ transform: rotate(-0.6deg); }
.gallery figure:nth-child(even){ transform: rotate(0.6deg); }
.gallery img{
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.gallery-4 img{ aspect-ratio: 4 / 3; }

@media (max-width: 720px){
  .gallery-6{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .gallery-6, .gallery-4{ grid-template-columns: 1fr 1fr; }
}

.stitch-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 800px){
  .stitch-grid{ grid-template-columns: 1fr; }
}

/* ---------------- Signup form (Google Form embed) ---------------- */
.join-wrap{ max-width: 700px; }

.form-embed{
  margin-top: 2rem;
  border: 2px solid var(--teal);
  background: var(--cream);
  padding: 8px;
}
.form-embed iframe{
  display: block;
  width: 100%;
  height: 1250px;
  max-height: 80vh;
  border: none;
}

.form-fallback{
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------------- Footer ---------------- */
.site-footer{
  background: var(--teal-deep);
  color: var(--cream);
  padding: 3rem 0;
}
.footer-inner{
  text-align: center;
}
.footer-logo{
  width: 220px;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-inner p{
  margin: 0 auto;
  color: var(--cream-deep);
  font-size: 0.92rem;
  max-width: 46ch;
}
