/* ============================================================
   WIP Collective — styles.css (v3)
   Punch-list update: bigger logo, bigger type, solid underline,
   wider text measures, fixed nav Join button, official footer
   ============================================================ */

:root {
  --sage: #4e604e;
  --sage-deep: #41513f;
  --sage-deepest: #313e2f;
  --cream: #efdbc3;
  --cream-bright: #f7ecdb;
  --line: rgba(239, 219, 195, 0.28);
  --max: 1080px;
  --measure: 820px;
  --display: "Abril Fatface", Georgia, serif;
  --sans: "Aileron", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--cream);
  background: var(--sage);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.005em;
  color: var(--cream-bright);
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; line-height: 1.32; }

.eyebrow {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 1.2rem;
}

/* Lowercase serif closers: "pull up a seat." */
.closer h2 { text-transform: lowercase; }

/* ---------- Signature: the underline ---------- */

.in-progress {
  position: relative;
  white-space: nowrap;
}
.in-progress::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.06em;
  height: 0.08em;
  background: currentColor;
  opacity: 0.9;
}

/* ---------- Header / nav ---------- */

header {
  background: var(--sage);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.logo { text-decoration: none; display: block; }
.logo img { height: 72px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--cream);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--cream);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  background: var(--cream);
  color: var(--sage-deepest);
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--cream);
  transition: background 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}
.btn:hover { background: var(--cream-bright); border-color: var(--cream-bright); }

/* Nav Join button: dark text always (fixes cream-on-cream bug) */
.nav-links a.btn,
.nav-links a.btn:hover,
.nav-links a.btn[aria-current="page"] {
  color: var(--sage-deepest);
  font-size: 0.98rem;
  padding: 10px 24px;
  border-bottom: 1.5px solid var(--cream);
}
.nav-links a.btn:hover { border-color: var(--cream-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
}

/* ---------- Sections ---------- */

section { padding: 88px 0; }

.section-soft { background: var(--sage-deep); }
.section-sage { background: var(--sage-deep); }

.hero { padding: 100px 0 92px; }
.hero p.lede {
  font-size: 1.25rem;
  max-width: var(--measure);
  margin: 1.6rem 0 2.2rem;
}

/* Button + note stacked and centered together */
.btn-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.btn-stack .post-btn {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  opacity: 0.85;
}
.post-btn {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.92rem;
  opacity: 0.85;
}

section > .wrap > p,
.prose p { max-width: var(--measure); }

/* Full-width text (aligns with card grids) */
.full p, p.full { max-width: none; }

.prose p + p { margin-top: 1.1rem; }

h2 + p, h1 + p { margin-top: 1.2rem; }

em { font-style: italic; }

/* ---------- Cards & grids ---------- */

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

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

.card {
  background: rgba(239, 219, 195, 0.06);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.card h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }

/* Quote cards */
.quote-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 30px 28px 26px;
}
.quote-card::before {
  content: "\201C";
  font-family: var(--display);
  font-size: 3rem;
  line-height: 0;
  color: var(--sage);
  display: block;
  margin: 16px 0 6px;
}
.quote-card p {
  font-family: var(--sans);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--sage-deepest);
}

/* Big pull quote (About) */
.pullquote {
  border-left: 3px solid var(--cream);
  padding-left: 28px;
  max-width: var(--measure);
  margin: 2.6rem 0;
}
.pullquote p {
  font-family: var(--sans);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.6;
  color: var(--cream-bright);
}
.pullquote cite {
  display: block;
  margin-top: 0.9rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Founder blocks */
.founder h3 { font-size: 1.55rem; margin-bottom: 0.7rem; }

/* Feature list rows */
.feature-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  max-width: 880px;
}
.feature-row:last-of-type { border-bottom: 1px solid var(--line); }
.feature-row h3 { font-size: 1.28rem; }
.feature-row p {
  font-size: 1.17rem;
  line-height: 1.65;
  color: var(--cream-bright);
}

/* ---------- Closer sections ---------- */

.closer { text-align: center; padding: 96px 0; }
.closer p { margin: 1rem auto 1.8rem; max-width: 560px; }
.closer .note { font-size: 0.92rem; margin-top: 0.9rem; opacity: 0.85; }
.center p { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */

footer {
  background: var(--sage-deepest);
  color: var(--cream);
  padding: 72px 0 40px;
}
footer h2 { font-size: 1.6rem; }
footer p { max-width: 560px; margin-top: 0.8rem; opacity: 0.92; }

.footer-form {
  display: flex;
  gap: 12px;
  margin-top: 1.6rem;
  max-width: 500px;
  flex-wrap: wrap;
}
.footer-form input {
  flex: 1 1 240px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
}
.footer-form input::placeholder { color: rgba(239, 219, 195, 0.55); }
.footer-form input:focus {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}
.footer-msg { margin-top: 0.9rem; font-size: 0.92rem; }
.footer-msg a { color: var(--cream); }

.footer-base {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  opacity: 0.92;
}
.footer-base img { height: 44px; width: auto; }
.footer-contact {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-contact a {
  color: var(--cream);
  display: inline-flex;
  align-items: center;
}
.footer-contact svg { width: 20px; height: 20px; fill: var(--cream); }
.footer-contact a:hover { opacity: 0.8; }

/* ---------- Motif ---------- */

.motif {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--cream);
  background: var(--sage-deepest);
  text-align: center;
  padding: 0 0 34px;
  opacity: 0.9;
}

/* ---------- Focus visibility ---------- */

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav-links { gap: 18px; }
}

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 8px; }
  section { padding: 64px 0; }
  .hero { padding: 68px 0 60px; }
  .logo img { height: 58px; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--sage);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-links a.btn {
    margin-top: 12px;
    text-align: center;
    width: auto;
    display: inline-block;
    padding: 11px 32px;
  }
  .footer-base { flex-direction: column; align-items: flex-start; }
}
