@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700;9..144,900&family=IBM+Plex+Sans:wght@400;500;600;700;800&display=swap");

/* Unified My Odyssey Investing Design Tokens & Top Navigation */
:root {
  --moi-bg: #f6f4f1;
  --moi-surface: #ffffff;
  --moi-surface-2: #fdfaf6;
  --moi-ink: #1c1410;
  --moi-muted: #6f6259;
  --moi-line: #e7ddd2;
  --moi-burgundy: #5c1220;
  --moi-burgundy-deep: #3d0b16;
  --moi-burgundy-2: #7a1e2e;
  --moi-gold: #c19a3a;
  --moi-gold-bright: #e3c27a;
  --moi-gold-pale: #f3d98b;
  --moi-gold-soft: #f3e6c8;
  --moi-shadow: 0 10px 30px rgba(92, 18, 32, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --moi-bg: #131010;
    --moi-surface: #1e1917;
    --moi-surface-2: #251e1a;
    --moi-ink: #f5efe8;
    --moi-muted: #b8a99c;
    --moi-line: #3a2f28;
    --moi-gold-soft: #3a2f16;
    --moi-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

.moi-topbar {
  position: relative;
  z-index: 20;
  background: var(--moi-burgundy-deep);
  color: #fff;
  border-bottom: 2px solid var(--moi-gold);
  font-family: "IBM Plex Sans", "Public Sans", system-ui, -apple-system, sans-serif;
}

.moi-topbar-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
}

.moi-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
}

.moi-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  flex: none;
  border: 1px solid rgba(227, 194, 122, 0.65);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  display: block;
}

.moi-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.moi-brand-title {
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: #fff;
}

.moi-brand-sub {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moi-gold-pale);
}

.moi-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.moi-nav a {
  color: #f5efe8;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.moi-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(227, 194, 122, 0.45);
  color: var(--moi-gold-bright);
}

.moi-nav a.moi-nav-cta {
  background: var(--moi-gold);
  color: #1c1410;
  font-weight: 700;
}

.moi-nav a.moi-nav-cta:hover {
  background: var(--moi-gold-pale);
  color: #1c1410;
}

.moi-topbar,
.moi-topbar *,
.moi-nav a,
.moi-brand-title,
.moi-brand-sub {
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}


/* Responsive hardening for mobile phones & desktop browsers */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.moi-page-hero {
  width: 100%;
}

@media (max-width: 768px) {
  .moi-topbar-in {
    padding: 10px 14px;
    gap: 8px 12px;
  }

  .moi-nav {
    width: 100%;
    gap: 5px;
  }

  .moi-nav a {
    font-size: 0.75rem;
    padding: 6px 9px;
  }

  .moi-page-hero {
    margin: 12px auto 18px;
    padding: 20px 16px 24px;
    border-radius: 14px;
  }

  .moi-page-hero h1 {
    font-size: clamp(26px, 7.5vw, 36px);
  }

  .moi-page-hero p.moi-page-hero-lead {
    font-size: 14.5px;
  }
}
