/* ============================================
   Carson — Clean editorial design
   ============================================ */

/* --- Reset & Variables --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #fafaf8;
  --fg: #1a1a1a;
  --fg-muted: #6b6b6b;
  --accent: #2952cc;
  --border: #e4e2dd;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- YC Badge --- */
.yc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.yc-badge:hover {
  opacity: 0.7;
}

.yc-logo {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.yc-badge span {
  color: var(--fg-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* --- Page Shell --- */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Nav --- */
.nav {
  padding: 2.5rem 0 0;
  animation: fadeIn 0.6s ease both;
}

.nav-wordmark {
  color: var(--fg);
}

.nav-logo {
  height: 1.5rem;
  width: auto;
}

/* --- Main Content --- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- Hero --- */
.hero {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.1s;
}

.hero-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--fg);
  max-width: 720px;
}

.hero-heading-accent {
  color: var(--accent);
  font-style: italic;
}

/* --- Section shared styles --- */
.about,
.team {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.8s ease both;
}

.about {
  animation-delay: 0.25s;
}

.team {
  animation-delay: 0.4s;
}

.about-label,
.team-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  padding-top: 0.35rem;
}

/* --- About --- */
.about-body p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--fg);
  max-width: 560px;
}

.about-body p + p {
  margin-top: 1.25rem;
}

/* --- Team --- */
.team-body p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--fg);
  max-width: 560px;
  margin-bottom: 2rem;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.team-member {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg);
  transition: all 0.25s ease;
}

.team-member-arrow {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
  color: var(--fg-muted);
}

.team-member:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(41, 82, 204, 0.04);
}

.team-member:hover .team-member-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* --- Footer --- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 0 2.5rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  animation: fadeIn 0.8s ease both;
  animation-delay: 0.55s;
}

/* --- Animations --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .page {
    padding: 0 1.5rem;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .about,
  .team {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 2.5rem 0;
  }

  .about-label,
  .team-label {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 0 1.25rem;
  }

  .nav {
    padding: 1.75rem 0 0;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-heading {
    font-size: 2rem;
  }

  .about-body p,
  .team-body p {
    font-size: 1rem;
  }

  .team-members {
    gap: 0.4rem;
  }

  .team-member {
    padding: 0.5rem 0.9rem;
    font-size: 0.875rem;
  }
}
