/* SOYEP — soyep.org
   Warm, plain, mobile-first. No framework, no build step. */

:root {
  --cream:    #FFF9F2;
  --cream-2:  #FBEFE1;
  --ink:      #16212E;
  --ink-2:    #4A5865;
  --sunrise:  #E4572E;
  --sunrise-d:#C6431E;
  --marigold: #F3A712;
  --teal:     #12796B;

  --wrap: 1120px;
  --r: 14px;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--cream);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--r) 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

:where(a, button):focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- brand ---------- */

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem; line-height: 1;
  color: var(--sunrise);
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong {
  font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1;
}
.brand-text small {
  font-size: .6875rem; color: var(--ink-2); letter-spacing: .02em;
  margin-top: .18rem;
}

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 242, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(22, 33, 46, .09);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
}

.nav { display: flex; align-items: center; gap: 1.65rem; }
.nav a {
  text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--ink-2);
}
.nav a:hover { color: var(--ink); }
.nav a.btn { color: var(--cream); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: .5rem; width: 44px; height: 44px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  margin: 4px auto; width: 22px; transition: .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(22,33,46,.1);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; font-size: 1.0625rem; border-bottom: 1px solid rgba(22,33,46,.07); }
  .nav a.btn { margin-top: .9rem; text-align: center; border-bottom: 0; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--sunrise); color: var(--cream);
  text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--sunrise-d); transform: translateY(-1px); }
.btn-sm { padding: .5rem 1.1rem; font-size: .9375rem; }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(22,33,46,.22);
}
.btn-ghost:hover { background: rgba(22,33,46,.05); color: var(--ink); }

/* ---------- shared bits ---------- */

.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sunrise); margin: 0 0 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.eyebrow span { font-family: var(--display); font-size: 1rem; }

.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section-title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: 2.75rem; max-width: 22ch; }
.section-alt { background: var(--cream-2); }

.prose p { margin: 0 0 1.15rem; color: var(--ink-2); font-size: 1.0625rem; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--teal); text-underline-offset: 3px; }
.muted { color: var(--ink-2); font-size: .9375rem; }

.grid-2 {
  display: grid; gap: clamp(1.75rem, 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
.grid-2 h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); }
@media (min-width: 880px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- hero ---------- */

.hero {
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5.5rem);
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(243, 167, 18, .22) 0%, transparent 58%),
    radial-gradient(100% 80% at 100% 10%, rgba(228, 87, 46, .16) 0%, transparent 60%),
    var(--cream);
  border-bottom: 1px solid rgba(22,33,46,.08);
}
.hero h1 {
  font-size: clamp(2.35rem, 6.4vw, 4.4rem);
  max-width: 17ch;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--sunrise);
  position: relative;
  white-space: normal;
}
.lede {
  font-size: clamp(1.0625rem, 1.9vw, 1.3125rem);
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 2.25rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- pillars ---------- */

.pillars, .ways, .contact-list, .foot-nav { list-style: none; margin: 0; padding: 0; }

.pillars { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.pillars li {
  background: var(--cream);
  border: 1px solid rgba(22,33,46,.1);
  border-radius: var(--r);
  padding: 2rem 1.65rem 1.9rem;
}
.pillar-num {
  font-family: var(--display); font-size: 2.25rem; font-weight: 700;
  color: var(--marigold); line-height: 1; display: block; margin-bottom: .85rem;
}
.pillars h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.pillars p { margin: 0; color: var(--ink-2); font-size: .9875rem; }

/* ---------- get involved ---------- */

.section-dark {
  background: var(--ink);
  color: var(--cream);
}
.section-dark .eyebrow { color: var(--marigold); }
.section-dark h2 { color: var(--cream); }

.ways { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- photos ---------- */

.photo-band {
  background: var(--cream);
  padding: 0 0 clamp(1rem, 3vw, 2rem);
  margin-top: clamp(-3.5rem, -6vw, -2rem);
  position: relative; z-index: 1;
}

.photo { margin: 0; }
.photo picture { display: block; }
.photo img {
  width: 100%;
  border-radius: var(--r);
  box-shadow: 0 18px 44px -22px rgba(22, 33, 46, .55);
  object-fit: cover;
  background: var(--cream-2);
}
.photo figcaption {
  margin-top: .8rem;
  font-size: .8125rem;
  color: var(--ink-2);
}

.photo-lead img {
  aspect-ratio: 16 / 9;
  border-radius: clamp(var(--r), 2vw, 22px);
}
@media (max-width: 600px) {
  .photo-lead img { aspect-ratio: 4 / 3; }
}

.community .photo { margin-top: clamp(2rem, 5vw, 3rem); }
.community .photo img { aspect-ratio: 16 / 9; }

/* ---------- founder ---------- */

.section-founder { padding-top: 0; }

.founder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.35rem;
  padding: clamp(2rem, 5vw, 3rem) 0 0;
  border-top: 1px solid rgba(22, 33, 46, .12);
}
@media (min-width: 720px) {
  .founder { flex-direction: row; text-align: left; gap: 2.5rem; align-items: center; }
}

.founder-photo {
  flex: 0 0 auto;
  width: clamp(140px, 26vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: 0 0 0 5px var(--cream), 0 0 0 7px var(--marigold),
              0 16px 36px -20px rgba(22, 33, 46, .6);
}
/* picture is inline by default; without this the img's height:100% has no
   parent height to resolve against and the circle renders empty */
.founder-photo picture {
  display: block;
  width: 100%; height: 100%;
}
.founder-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.founder-name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 .2rem;
}
.founder-role {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sunrise); margin: 0 0 .9rem;
}
.founder-bio { margin: 0; color: var(--ink-2); max-width: 52ch; }

/* ---------- pull quote ---------- */

.pullquote {
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid rgba(22, 33, 46, .14);
}
.pullquote blockquote {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.1vw, 2.05rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 1.15rem;
  max-width: 30ch;
  text-wrap: balance;
}
.pullquote blockquote::before { content: "\201C"; color: var(--sunrise); }
.pullquote blockquote::after  { content: "\201D"; color: var(--sunrise); }
.pullquote figcaption { font-size: .9375rem; color: var(--ink-2); }
.pullquote figcaption a { color: var(--teal); text-underline-offset: 3px; }

.ways li {
  border: 1px solid rgba(255, 249, 242, .16);
  border-radius: var(--r);
  padding: 1.85rem 1.6rem;
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.03);
}
.ways h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.ways p { color: rgba(255, 249, 242, .74); margin: 0 0 1.5rem; font-size: .9875rem; flex: 1; }

.link-arrow {
  color: var(--marigold); font-weight: 600; font-size: .9375rem;
  text-decoration: none;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- contact ---------- */

.contact {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 880px) { .contact { grid-template-columns: 1.15fr .85fr; } }
.contact h2 { font-size: clamp(1.75rem, 3.8vw, 2.5rem); margin-bottom: 1.25rem; }

.contact-list { display: grid; gap: 1rem; }
.contact-list li {
  background: var(--cream-2);
  border-radius: var(--r);
  padding: 1.15rem 1.35rem;
}
.ct-label {
  display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: .3rem;
}
.contact-list a {
  font-family: var(--display); font-size: 1.3rem; font-weight: 600;
  color: var(--ink); text-decoration: none; word-break: break-word;
}
.contact-list a:hover { color: var(--sunrise); }

/* ---------- footer ---------- */

.site-foot {
  background: var(--ink); color: rgba(255,249,242,.7);
  padding: 2.75rem 0;
}
.foot-inner {
  display: flex; flex-wrap: wrap; gap: 1.75rem;
  align-items: center; justify-content: space-between;
}
.foot-brand { display: flex; align-items: center; gap: .7rem; color: var(--cream); }
.foot-brand strong { font-family: var(--display); font-size: 1.2rem; display: block; line-height: 1.1; }
.foot-brand small { font-size: .6875rem; color: rgba(255,249,242,.6); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1.35rem; }
.foot-nav a { text-decoration: none; font-size: .9375rem; }
.foot-nav a:hover { color: var(--cream); }
.foot-legal { width: 100%; margin: 0; font-size: .8125rem; color: rgba(255,249,242,.45); }
