@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Karla:wght@300;400;500;600;700&display=swap');

:root {
  --paper: #FBF9F3;
  --ink: #20261A;
  --yellow: #F0B91E;
  --green: #3B6D11;
  --green-tint: #E9EEDD;
  --yellow-tint: #FCEFC9;
  --ink-soft: #5B6155;
  --line: #DCD6C6;
  --gold-num: #B8860B;
  --radius: 2px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  font-family: 'Karla', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.9em;
  display: inline-block;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FAFAF8;
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
}

.logo {
  display: block;
  line-height: 0;
}

.logo img {
  height: 92px;
  width: auto;
  display: block;
}

nav.main-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

nav.main-nav a {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 400;
  padding: 6px 0;
  margin-right: 36px;
  border-bottom: 1px solid transparent;
}

nav.main-nav a:last-child { margin-right: 0; }

nav.main-nav a:hover,
nav.main-nav a.active {
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.btn {
  display: inline-block;
  font-family: 'Karla', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { text-decoration: none; background: var(--ink); color: var(--paper); }

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

.btn-primary:hover { background: var(--ink); border-color: var(--ink); }

.btn-pill {
  padding: 16px 34px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Thread signature motif ---------- */
.thread-rule {
  position: relative;
  height: 48px;
  margin: 0 auto;
  max-width: var(--max-w);
}

.thread-rule svg { width: 100%; height: 100%; display: block; }

.thread-knot {
  fill: var(--yellow);
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 0.5em; }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero h1 strong { font-weight: 700; }

.hero-lede { font-size: 1.1rem; max-width: 46ch; }

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

.btn-pill-wrap {
  text-align: center;
  line-height: 1.3;
  padding: 16px 28px;
}

.btn-outline-green {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}

.btn-outline-green:hover { background: var(--green); border-color: var(--green); color: var(--paper); }

.hero-art {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  justify-self: end;
}

.hero-photo {
  width: 230px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-logo {
  width: 200px;
  height: auto;
}

/* ---------- About Hero (About page) ---------- */
.about-hero { padding: 72px 0 88px; }

.about-hero-top {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

.about-hero-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-hero-top h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 0.6em; }
.about-hero-top p { font-size: 1.05rem; }

.about-hero-continued {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
}

.about-hero-continued > div { grid-column: 2; }

.about-hero-continued p { font-size: 1.05rem; }

.about-hero-cta-line {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  margin-top: 8px;
  margin-bottom: 40px;
}

.about-hero-cta-line > span {
  grid-column: 2;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
}

.about-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.about-card {
  background: var(--green-tint);
  border-radius: 16px;
  padding: 36px 32px;
}

.about-card h2 {
  color: var(--green);
  font-size: 1.7rem;
  margin-bottom: 20px;
}

.about-card ul { list-style: none; padding: 0; margin: 0; }

.about-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 1rem;
  color: var(--green);
}

.about-card li:last-child { margin-bottom: 0; }

.about-card-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green);
}

.about-hero-cta-wrap { text-align: center; }

@media (max-width: 900px) {
  .about-hero-top { grid-template-columns: 1fr; }
  .about-hero-photo { max-width: 320px; height: 360px; }
  .about-hero-continued, .about-hero-cta-line { grid-template-columns: 1fr; gap: 0; }
  .about-hero-continued > div, .about-hero-cta-line > span { grid-column: 1; }
  .about-cards-grid { grid-template-columns: 1fr; }
}
/* ---------- Contact Hero ---------- */
.contact-hero { padding: 80px 0; }

.contact-hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
}

.contact-hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 0.5em; }
.contact-hero-lede { font-size: 1.1rem; max-width: 48ch; margin-bottom: 32px; }

.contact-hero-email { font-size: 1rem; margin-top: 28px; }
.contact-hero-email strong { color: var(--ink); }
.contact-hero-email a { color: var(--green); font-weight: 600; }

.contact-hero-logo { width: 100%; height: auto; }

@media (max-width: 860px) {
  .contact-hero-grid { grid-template-columns: 1fr; }
  .contact-hero-logo { max-width: 260px; margin: 0 auto; }
}

/* ---------- Article page ---------- */
.article-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.article-hero .wrap { max-width: 760px; }
.article-hero .eyebrow { display: block; }
.article-hero h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-top: 0.2em; }
.article-meta { font-size: 0.9rem; color: var(--ink-soft); }

.article-body { padding: 56px 0 24px; }
.article-body .wrap { max-width: 760px; }

.article-body p { font-size: 1.08rem; color: var(--ink); margin-bottom: 1.3em; }
.article-body h2 {
  font-size: 1.5rem;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}
.article-body ul {
  margin: 0 0 1.3em;
  padding-left: 1.4em;
}
.article-body li {
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 0.5em;
}
.article-body strong { font-weight: 700; }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 40px;
}
.article-tags .wrap { max-width: 760px; display: flex; flex-wrap: wrap; gap: 10px; }

.tag-pill {
  display: inline-block;
  background: var(--green-tint);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
}

.article-back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- Resources carousel (Resources page) ---------- */
.resources-carousel-section { padding: 88px 0; }

.resources-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.carousel-arrows { display: flex; gap: 12px; flex-shrink: 0; }

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.carousel-arrow:hover { background: var(--ink); color: var(--paper); }
.carousel-arrow svg { width: 18px; height: 18px; }

.resources-carousel-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.resources-carousel-track::-webkit-scrollbar { display: none; }

.article-card {
  flex: 0 0 auto;
  width: 360px;
  scroll-snap-align: start;
}

.article-thumb {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--green-tint);
}

.article-thumb svg { width: 100%; height: 100%; display: block; }

.article-date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 18px;
  text-align: center;
}

.article-card h3 {
  font-size: 1.4rem;
  text-align: center;
  margin-top: 8px;
  line-height: 1.3;
}

.article-card p {
  font-size: 0.95rem;
  text-align: center;
}

.article-card .read-more {
  display: block;
  text-align: center;
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .article-card { width: 280px; }
}

.resources-teaser-section { padding: 88px 0; }

.resources-teaser-section h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  margin-top: 0.1em;
}

.resources-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.resources-links-grid a {
  color: var(--green);
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  line-height: 1.4;
}

@media (max-width: 860px) {
  .resources-links-grid { grid-template-columns: 1fr; gap: 24px; }
}
.about-blurb-section { padding: 88px 0 64px; }

.about-blurb-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

.about-blurb-photo {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-blurb-text p { font-size: 1.05rem; }
.about-blurb-text a { color: var(--green); font-weight: 600; }

@media (max-width: 760px) {
  .about-blurb-grid { grid-template-columns: 1fr; }
  .about-blurb-photo { max-width: 240px; height: 280px; }
}

/* ---------- Testimonials carousel (reusable component) ---------- */
.testimonials-section { padding: 24px 0 88px; overflow: hidden; }

.testimonials-section h2 { margin-bottom: 8px; }

.testimonial-viewport {
  margin-top: 32px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}

.testimonial-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: testimonial-scroll 45s linear infinite;
}

.testimonial-track:hover { animation-play-state: paused; }

.testimonial-card {
  width: 360px;
  flex: 0 0 auto;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.testimonial-attr {
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

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

@media (prefers-reduced-motion: reduce) {
  .testimonial-track { animation: none; }
  .testimonial-viewport { overflow-x: auto; }
}
.stages-section { padding: 88px 0; }

.stages-section h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  margin-top: 0.1em;
}

.stages-section > .wrap > p {
  max-width: 60ch;
  font-size: 1.05rem;
  margin-top: 20px;
}

.stages-list {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.stage-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.stage-num {
  font-family: 'Newsreader', serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--gold-num);
  line-height: 1;
}

.stage-title { margin-bottom: 6px; }
.stage-desc { font-size: 1rem; max-width: 60ch; margin-bottom: 0; }

@media (max-width: 640px) {
  .stage-row { grid-template-columns: 56px 1fr; gap: 20px; }
  .stage-num { font-size: 2rem; }
}
.feature-section { padding: 88px 0; }

.feature-section .eyebrow { display: block; }

.feature-section h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  max-width: 14ch;
  margin-top: 0.1em;
}

.feature-section > .wrap > p {
  max-width: 60ch;
  font-size: 1.05rem;
  margin-top: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--paper-card, #FFFFFF);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 26px;
}

.feature-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
  color: var(--green);
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; margin-bottom: 0; }

@media (max-width: 1020px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.pillars {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--green-tint);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.pillar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: var(--radius);
}

.pillar-mark {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
}

/* ---------- Section generic ---------- */
.section { padding: 88px 0; }
.section-narrow { max-width: 720px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ---------- Cards / resources ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.resource-card {
  border-top: 3px solid var(--yellow);
  padding-top: 20px;
}

.resource-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 { color: var(--paper); }
.cta-band p { color: #C9CCC0; }
.cta-band .btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--paper); border-color: var(--paper); }

/* ---------- Footer ---------- */
footer.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a { color: var(--ink-soft); font-size: 0.88rem; margin-left: 24px; }
.footer-links a:first-child { margin-left: 0; }

.foot-note { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-header p { max-width: 60ch; }

/* ---------- Timeline (about) ---------- */
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 28px;
  margin-top: 8px;
}

.timeline-item { position: relative; padding-bottom: 32px; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline-item h3 { margin-bottom: 2px; }
.timeline-item .role-meta { font-size: 0.84rem; color: var(--green); font-weight: 600; margin-bottom: 6px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { margin-bottom: 14px; font-size: 1rem; }
.contact-list a { font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .page-header .wrap[style*="grid-template-columns:1fr auto"] {
    grid-template-columns: 1fr !important;
  }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; max-width: 260px; margin-top: 24px; }
  .pillars-grid, .card-grid { grid-template-columns: 1fr; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
  .footer-links a { margin-left: 0; margin-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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