/* =========================================================
   STEM_Lens — stylesheet
   Design: bone-white paper, dusk-blue ink, brass accent.
   Headlines in Fraunces, body/UI in Inter.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --paper: #f5eff7;
  --paper-dim: #ece5f1;
  --ink: #1e1d20;
  --ink-soft: #514b55;
  --dusk: #2c7f7b;
  --dusk-soft: #25766e;
  --brass: #7b2ab8;
  --brass-deep: #661e93;
  --line: #d5cbdd;
  --sky-tint: #e8ecf0;
  --max: 1120px;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

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

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

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

/* -------------------- focus & accessibility -------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
.skip-link{
  position: absolute; left: -999px; top: auto;
  background: var(--dusk); color: #ffffff; padding: 10px 16px;
  border-radius: 4px; z-index: 200;
}
.skip-link:focus{ left: 16px; top: 16px; }

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

/* -------------------- masthead -------------------- */
.masthead{
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.masthead-top{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 30px 0 18px;
  flex-wrap: wrap;
  gap: 8px;
}
.wordmark{
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark span{ color: var(--brass); }
.tagline{
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--serif);
}

nav.primary-nav{
  border-top: 1px solid var(--line);
}
.primary-nav .wrap{
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
}
.nav-list{
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 15px;
}
.nav-list a{
  text-decoration: none;
  display: inline-block;
  padding: 14px 0;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}
.nav-list a:hover, .nav-list a.active{
  border-bottom-color: var(--brass);
}
.nav-more{ position: relative; }
.nav-more > button{
  font: inherit;
  font-size: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 0;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-bottom: 2px solid transparent;
}
.nav-more > button:hover{ border-bottom-color: var(--brass); }
.nav-more .chev{ transition: transform .15s ease; font-size: 11px; margin-top: 1px; }
.nav-more[data-open="true"] .chev{ transform: rotate(180deg); }
.dropdown{
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  min-width: 240px;
  display: none;
  z-index: 50;
  box-shadow: 0 8px 20px rgba(32, 29, 31, 0.08);
}
.nav-more[data-open="true"] .dropdown{ display: block; }
.dropdown a{
  display: block;
  padding: 13px 18px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}
.dropdown a:last-child{ border-bottom: none; }
.dropdown a:hover{ background: var(--sky-tint); }

.nav-toggle{
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 11px;
  font-size: 15px;
  cursor: pointer;
}

@media (max-width: 760px){
  .nav-toggle{ display: inline-block; }
  .primary-nav .wrap{ flex-direction: column; align-items: stretch; gap: 0; }
  .nav-row{ display: flex; align-items: center; }
  .nav-list{
    flex-direction: column;
    gap: 0;
    width: 100%;
    display: none;
  }
  .nav-list.open{ display: flex; }
  .nav-list a{ padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-more{ width: 100%; display: none; }
  .nav-list.open ~ .nav-more,
  .nav-more.open{ display: block; }
  .dropdown{ position: static; border: none; border-top: 1px solid var(--line); box-shadow: none; }
}

/* -------------------- buttons & labels -------------------- */
.btn{
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 3px;
  border: 1px solid var(--dusk);
  color: var(--paper);
  background: var(--dusk);
  cursor: pointer;
}
.btn:hover{ background: var(--dusk-soft); border-color: var(--dusk-soft); }
.btn-outline{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover{ background: var(--ink); color: var(--paper); }
.btn-brass{
  background: var(--brass);
  border-color: var(--brass);
  color: #fff;
}
.btn-brass:hover{ background: var(--brass-deep); border-color: var(--brass-deep); }

.eyebrow{
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass-deep);
  font-size: 16px;
  margin: 0 0 6px;
}

/* -------------------- hero -------------------- */
.hero{
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--line);
}
.hero .wrap{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1{
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1.12;
  margin: 0 0 18px;
  max-width: 15ch;
}
.hero p{
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 26px;
}
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art{ width: 100%; }

@media (max-width: 820px){
  .hero .wrap{ grid-template-columns: 1fr; gap: 34px; }
  .hero-art{ max-width: 320px; margin: 0 auto; }
  .hero h1{ font-size: 34px; }
}

/* -------------------- section headings -------------------- */
.section{ padding: 56px 0; }
.section + .section{ border-top: 1px solid var(--line); }
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.section-head h2{
  font-family: var(--serif);
  font-size: 30px;
  margin: 0;
}
.section-head .see-all{
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}
.section-intro{
  color: var(--ink-soft);
  max-width: 62ch;
  margin: -14px 0 30px;
}

.tint{ background: var(--sky-tint); }
.dusk-block{ background: var(--dusk); color: var(--paper); }
.dusk-block .eyebrow{ color: #d59ad9; }
.dusk-block h2{ color: #fff; }

/* -------------------- article cards / grid -------------------- */
.article-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 30px;
}
@media (max-width: 900px){ .article-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .article-grid{ grid-template-columns: 1fr; } }

.card{
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.card-thumb{
  aspect-ratio: 4/3;
  background: var(--sky-tint);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 14px;
}
.card-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.card-cat{
  font-size: 12.5px;
  color: var(--brass-deep);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
.card h3{
  font-family: var(--serif);
  font-size: 21px;
  margin: 0 0 8px;
  line-height: 1.28;
}
.card p{
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.card .meta{
  font-size: 13px;
  color: var(--ink-soft);
}

/* -------------------- filter bar -------------------- */
.filter-bar{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}
.filter-bar button{
  font-family: var(--sans);
  font-size: 14px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 16px;
  cursor: pointer;
  color: var(--ink-soft);
}
.filter-bar button:hover{ border-color: var(--ink); color: var(--ink); }
.filter-bar button.active{
  background: var(--dusk);
  border-color: var(--dusk);
  color: #fff;
}

/* -------------------- learn/discover/participate strip -------------------- */
.ldp{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.ldp-item{
  padding: 30px 28px;
  border-left: 1px solid var(--line);
}
.ldp-item:first-child{ border-left: none; }
.ldp-num{
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 15px;
  margin-bottom: 10px;
  display: block;
}
.ldp-item h3{
  font-family: var(--serif);
  font-size: 21px;
  margin: 0 0 10px;
}
.ldp-item p{ color: var(--ink-soft); font-size: 15px; margin: 0 0 14px; }
.ldp-item a{ font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
@media (max-width: 760px){
  .ldp{ grid-template-columns: 1fr; }
  .ldp-item{ border-left: none; border-top: 1px solid var(--line); }
  .ldp-item:first-child{ border-top: none; }
}

/* -------------------- mission page -------------------- */
.prose{ max-width: 68ch; }
.prose h2{ font-family: var(--serif); font-size: 27px; margin: 42px 0 14px; }
.prose h2:first-child{ margin-top: 0; }
.prose p{ margin: 0 0 18px; color: var(--ink-soft); font-size: 16.5px; }
.prose p strong{ color: var(--ink); }

.pull-fact{
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  border-left: 3px solid var(--brass);
  padding: 4px 0 4px 22px;
  margin: 30px 0;
  color: var(--ink);
}

.team-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 10px;
}
@media (max-width: 760px){ .team-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .team-grid{ grid-template-columns: 1fr; } }
.team-card{ border: 1px solid var(--line); padding: 20px; }
.team-card .role{ font-size: 13px; color: var(--brass-deep); font-weight: 600; margin-bottom: 4px; }
.team-card h4{ font-family: var(--serif); font-size: 18px; margin: 0 0 6px; }
.team-card p{ font-size: 14px; color: var(--ink-soft); margin: 0; }

/* -------------------- role list (join page) -------------------- */
/* Ways to contribute — purple & beige treatment, per team request */
:root{
  --lav: #6E5A8E;
  --lav-deep: #574674;
  --sand: #e4d3ef;
  --sand-line: #d3afde;
}
.role-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 10px 0 10px;
}
@media (max-width: 620px){ .role-list{ grid-template-columns: 1fr; } }
.role-item{
  position: relative;
  padding: 24px 22px 22px;
  background: var(--sand);
  border: 1px solid var(--sand-line);
  border-radius: 6px;
  overflow: visible;
}
.role-sticker{
  position: absolute;
  top: -14px;
  left: -10px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--lav);
  color: #fff;
  border-radius: 50%;
  border: 3px solid var(--sand);
  box-shadow: 0 2px 6px rgba(87,70,116,0.35);
  transform: rotate(-8deg);
}
.role-item:nth-child(even) .role-sticker{ transform: rotate(7deg); background: var(--lav-deep); }
.role-item h3{ font-family: var(--serif); font-size: 19px; margin: 4px 0 6px; color: var(--lav-deep); }
.role-item p{ margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* -------------------- forms -------------------- */
.form{
  max-width: 640px;
  margin-top: 10px;
}
.form-row{ margin-bottom: 20px; }
.form-row label{
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.form-row .hint{ font-weight: 400; color: var(--ink-soft); font-size: 13px; }
.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea{
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 3px;
  color: var(--ink);
}
.form textarea{ min-height: 130px; resize: vertical; }
.checkbox-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
}
@media (max-width: 520px){ .checkbox-grid{ grid-template-columns: 1fr; } }
.checkbox-item{ display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 400; }
.checkbox-item input{ width: 16px; height: 16px; }
.form-status{
  margin-top: 16px;
  font-size: 14.5px;
  display: none;
}
.form-status.show{ display: block; }

/* -------------------- opportunities / workshops -------------------- */
.opp-list{ display: flex; flex-direction: column; }
.opp-item{
  padding: 26px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
}
.opp-item:last-child{ border-bottom: 1px solid var(--line); }
.opp-item h3{ font-family: var(--serif); font-size: 21px; margin: 0 0 8px; }
.opp-item p{ margin: 0 0 8px; color: var(--ink-soft); font-size: 15px; }
.opp-tag{
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brass-deep);
  background: var(--sky-tint);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.opp-meta{ font-size: 14px; }
.opp-meta div{ margin-bottom: 6px; }
.opp-meta span{ color: var(--ink-soft); }
@media (max-width: 700px){ .opp-item{ grid-template-columns: 1fr; } }
/* -------------------- workshops page -------------------- */
.wk-hero{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, var(--dusk) 0%, #34456a 100%);
  color: #fff;
  border-radius: 10px;
  padding: 36px 40px;
  box-shadow: 0 10px 30px rgba(36,50,75,0.25);
}
.wk-hero-text{ max-width: 62ch; }
.wk-hero-text h2{
  font-family: var(--serif);
  font-size: 28px;
  margin: 12px 0 10px;
  color: #fff;
}
.wk-hero-text p{
  color: #D8DEE7;
  font-size: 15.5px;
  margin: 0;
}
.wk-hero-btn{ white-space: nowrap; flex-shrink: 0; }
@media (max-width: 760px){
  .wk-hero{ flex-direction: column; align-items: flex-start; padding: 28px; }
  .wk-hero-btn{ width: 100%; text-align: center; }
}

.wk-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 11px;
  border-radius: 20px;
}
.wk-open{ background: #DCF3E3; color: #1E7A42; }
.wk-closed{ background: #f7d3d3; color: #B23A3A; }
.wk-hero .wk-open{ background: rgba(255,255,255,0.16); color: #9CE8B4; }

.wk-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 700px;   /* keeps cards from stretching too wide on laptop */
  margin: 0 auto;     /* centers the column on the page */
}
@media (max-width: 700px){ .wk-grid{ grid-template-columns: 1fr; } }

.wk-card{
  background: #fffffff5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
  border-top: 4px solid var(--line);
  transition: box-shadow .15s ease, transform .15s ease;
}
.wk-card--open{ border-top-color: #2FA860; }
.wk-card--closed{ border-top-color: #C24949; opacity: 0.82; }
.wk-card:hover{ box-shadow: 0 8px 22px rgba(32,31,29,0.08); transform: translateY(-2px); }
.wk-card-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.wk-date{ font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.wk-card h3{ font-family: var(--serif); font-size: 20px; margin: 0 0 8px; }
.wk-card p{ font-size: 14.5px; color: var(--ink-soft); margin: 0 0 14px; }
.wk-register{ font-size: 14px; padding: 9px 18px; }

.workshop-item{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.workshop-item:last-child{ border-bottom: 1px solid var(--line); }
.workshop-date{
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass-deep);
  font-size: 15px;
  padding-top: 2px;
}
.workshop-item h3{ font-family: var(--serif); font-size: 20px; margin: 0 0 8px; }
.workshop-item p{ margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 600px){ .workshop-item{ grid-template-columns: 1fr; gap: 8px; } }

.upcoming-box{
  border: 1px solid var(--brass);
  background: #f3c5f3;
  padding: 24px 26px;
  margin-bottom: 40px;
}
.upcoming-box h3{ font-family: var(--serif); margin: 0 0 8px; font-size: 20px; }
.upcoming-box p{ margin: 0; color: var(--ink-soft); font-size: 15px; }

/* -------------------- article page -------------------- */
.article-head{ padding: 50px 0 30px; }
.article-head .card-cat{ font-size: 13px; }
.article-head h1{
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.16;
  margin: 12px 0 16px;
  max-width: 20ch;
}
.article-head .byline{ color: var(--ink-soft); font-size: 14.5px; }
.article-hero-img{
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
  background: var(--sky-tint);
  margin: 30px 0 10px;
  overflow: hidden;
}
.article-hero-img img{ width: 100%; height: 100%; object-fit: cover; }
.article-body{
  max-width: 68ch;
  padding-bottom: 50px;
  font-size: 17px;
}
.article-body p{ margin: 0 0 20px; }
.article-body h2{ font-family: var(--serif); font-size: 25px; margin: 38px 0 14px; }
.article-body ul{ margin: 0 0 20px; padding-left: 22px; }
.article-body li{ margin-bottom: 8px; }
.back-link{
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-soft);
}
.back-link:hover{ color: var(--ink); }
.related{ border-top: 1px solid var(--line); padding-top: 40px; margin-top: 20px; }

/* -------------------- footer -------------------- */
footer{
  border-top: 1px solid var(--line);
  background: var(--paper-dim);
  padding: 46px 0 32px;
  margin-top: 20px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 34px;
}
@media (max-width: 700px){ .footer-grid{ grid-template-columns: 1fr; gap: 26px; } }
.footer-grid h4{ font-size: 14px; margin: 0 0 14px; }
.footer-grid .wordmark{ font-size: 24px; }
.footer-grid p{ color: var(--ink-soft); font-size: 14.5px; max-width: 34ch; }
.footer-grid ul{ list-style: none; margin: 0; padding: 0; }
.footer-grid li{ margin-bottom: 10px; font-size: 14.5px; }
.footer-grid a{ text-decoration: none; color: var(--ink-soft); }
.footer-grid a:hover{ color: var(--ink); }
.footer-bottom{
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* -------------------- page header (non-home pages) -------------------- */
.page-head{ padding: 48px 0 10px; }
.page-head h1{ font-family: var(--serif); font-size: 40px; margin: 0 0 14px; }
.page-head p{ color: var(--ink-soft); max-width: 60ch; font-size: 16.5px; }

/* -------------------- centered h1 override -------------------- */
h1 {
  text-align: center;
  margin: 35px 0 20px 0 !important;
}
