/* ===== Tokens ===== */
:root {
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.3s var(--ease-out);
}

[data-theme="dark"] {
  --bg:              #000000;
  --bg-card:         #232323;
  --bg-card-hover:   #393939;
  --border:          #1e1e1e;
  --border-hover:    #2a2a2a;
  --text:            #e8e8e8;
  --text-secondary:  #888888;
  --text-muted:      #555555;
  --accent:          #7eb8a0;
}

[data-theme="light"] {
  --bg:              #f8f7f5;
  --bg-card:         #ffffff;
  --bg-card-hover:   #fafaf9;
  --border:          #e5e3df;
  --border-hover:    #d5d3cf;
  --text:            #1a1a1a;
  --text-secondary:  #6b6b6b;
  --text-muted:      #aaaaaa;
  --accent:          #4a8a6e;
}

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

/* ===== Base ===== */
html {
  font-size: 16px;
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color var(--transition), color var(--transition);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition);
}
a:hover { opacity: 0.75; }

/* ===== Layout ===== */
.page-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.wordmark:hover { opacity: 1; }

/* ===== Nav ===== */
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--text); opacity: 1; }

/* ===== Theme toggle (pill) ===== */
.theme-toggle {
  appearance: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 44px;
  height: 24px;
  cursor: pointer;
  position: relative;
  transition: border-color var(--transition);
}
.theme-toggle:hover { border-color: var(--border-hover); }

.theme-toggle__icon {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-secondary);
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform var(--transition), background var(--transition);
}
[data-theme="light"] .theme-toggle__icon {
  transform: translateX(20px);
  background: var(--text);
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 64px;
}

.hero__tagline {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero__body {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== Section label ===== */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ===== Ventures ===== */
.ventures {
  padding: 48px 0;
}

.venture-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.venture-card {
  border: 1px solid var(--border);
  padding: 24px 28px;
  transition: background-color var(--transition), border-color var(--transition);
}
.venture-card + .venture-card { border-top: none; }
.venture-card:first-child { border-radius: 10px 10px 0 0; }
.venture-card:last-child  { border-radius: 0 0 10px 10px; }

/* Light mode: raised white cards */
[data-theme="light"] .venture-card {
  background: var(--bg-card);
}
[data-theme="light"] .venture-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

/* Dark mode: transparent — borders define the structure, no lifted box */
[data-theme="dark"] .venture-card {
  background: transparent;
}
[data-theme="dark"] .venture-card:hover {
  background: var(--bg-card);
}

.venture-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 8px;
}

.venture-card__name {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.venture-card__status {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.venture-card__desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ===== Contact ===== */
.contact {
  padding: 48px 0;
}

.contact__email {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}

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

.footer__copy {
  font-size: 0.78rem;
  font-weight: 300;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .page-container { padding: 0 18px; }
  .hero { padding: 56px 0 48px; }
  .site-nav { gap: 16px; }
  .venture-card__header { flex-direction: column; gap: 4px; }
}

/* ===== Entrance animations ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero__tagline,
  .hero__body,
  .venture-card,
  .contact {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.6s var(--ease-out) forwards;
  }

  .hero__tagline          { animation-delay: 0.1s; }
  .hero__body             { animation-delay: 0.2s; }
  .venture-card:nth-child(1) { animation-delay: 0.35s; }
  .venture-card:nth-child(2) { animation-delay: 0.45s; }
  .venture-card:nth-child(3) { animation-delay: 0.55s; }
  .contact                { animation-delay: 0.6s; }

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