/* Convex Opportunities — design system (splash slice).
   ───────────────────────────────────────────────────────────────────────────
   This is the minimal slice of the Convex design system that the public splash
   (index.html) consumes: the self-hosted Marcellus display face, the brand
   tokens, and the Button / LinkWithIcon component classes. It replaces the
   former Google Fonts <link> and the bespoke button/link rules in styles.css,
   so the splash now renders from the same tokens and components as everything
   else in the system — with no third-party network call.

   Source of truth is .design-sync/ (the hand-authored @convex/ds package); the
   token + component blocks below are copied verbatim from the generated
   ds-bundle/ (tokens/*.css and _ds_bundle.css). Only Marcellus is shipped here
   — the splash uses no body text, so the Source Serif 4 reading face and the
   chart/letter/tearsheet styles are intentionally left out to keep this page
   lean. The --cvx-font-text/-num tokens are kept for parity but are inert here
   (no Source Serif @font-face is loaded). Regenerate from .design-sync/ if the
   button/link treatment changes upstream. */

/* ── Fonts: Marcellus (display) ──────────────────────────────────────────── */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/marcellus-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/marcellus-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Color tokens ────────────────────────────────────────────────────────── */
:root {
  /* Raw palette */
  --cvx-navy: #0D2438;        /* primary brand blue — logo, body text, borders */
  --cvx-navy-deep: #06233a;   /* deeper navy — dark surfaces, button hover fills */
  --cvx-cream: #ede8dc;       /* warm cream — gradient end / muted surface */
  --cvx-cream-light: #fbf9f4; /* lightest cream — gradient start / page base */
  --cvx-paper: #f0eee4;       /* off-white — text/icon color on navy surfaces */
  --cvx-white: #ffffff;

  /* Semantic */
  --cvx-bg: radial-gradient(circle at center, var(--cvx-cream-light) 0%, var(--cvx-cream) 100%);
  --cvx-text: var(--cvx-navy);
  --cvx-text-inverse: var(--cvx-paper);
  --cvx-border: var(--cvx-navy);

  /* Elevation used by interactive brand elements on hover. */
  --cvx-shadow-hover: 0 4px 12px rgba(6, 35, 58, 0.15);
}

/* ── Typography tokens ───────────────────────────────────────────────────── */
:root {
  --cvx-font-serif: 'Marcellus', Georgia, 'Times New Roman', serif;
  --cvx-font-display: var(--cvx-font-serif);
  /* Reading/numeric tiers — kept for parity with the full system; not loaded on
     the splash (no body text here). */
  --cvx-font-text: 'Source Serif 4', 'Source Serif 4 Fallback', Charter, 'Iowan Old Style', Georgia, Cambria, 'Times New Roman', serif;
  --cvx-font-num: var(--cvx-font-text);

  --cvx-text-sm: 0.9rem;
  --cvx-text-lg: 1.2rem;
  --cvx-text-xl: 1.5rem;

  --cvx-weight-regular: 400;
  --cvx-weight-strong: 600;

  --cvx-tracking: 1px;

  --cvx-radius: 4px;
  --cvx-transition: all 0.3s ease;
}

/* ── Button ──────────────────────────────────────────────────────────────── */
.cvx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--cvx-font-serif, 'Marcellus', serif);
  font-weight: 900;
  letter-spacing: var(--cvx-tracking, 1px);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--cvx-radius, 4px);
  border: 2px solid var(--cvx-border, #06233a);
  cursor: pointer;
  transition: var(--cvx-transition, all 0.3s ease);
  -webkit-appearance: none;
  appearance: none;
}

/* Sizes */
.cvx-button--sm { font-size: 0.95rem; padding: 0.55rem 1.15rem; }
.cvx-button--md { font-size: var(--cvx-text-lg, 1.2rem); padding: 0.8rem 1.5rem; }
.cvx-button--lg { font-size: var(--cvx-text-xl, 1.5rem); padding: 1rem 2rem; }

/* Outline (default) — the live "Contact Us" treatment. */
.cvx-button--outline {
  color: var(--cvx-navy-deep, #06233a);
  background-color: transparent;
}
.cvx-button--outline:hover {
  background-color: var(--cvx-navy-deep, #06233a);
  color: var(--cvx-paper, #f0eee4);
  transform: translateY(-2px);
  box-shadow: var(--cvx-shadow-hover, 0 4px 12px rgba(6, 35, 58, 0.15));
}

/* Filled — solid navy for primary emphasis. */
.cvx-button--filled {
  color: var(--cvx-paper, #f0eee4);
  background-color: var(--cvx-navy-deep, #06233a);
}
.cvx-button--filled:hover {
  background-color: var(--cvx-navy, #0D2438);
  transform: translateY(-2px);
  box-shadow: var(--cvx-shadow-hover, 0 4px 12px rgba(6, 35, 58, 0.15));
}

.cvx-button:disabled,
.cvx-button[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── LinkWithIcon ────────────────────────────────────────────────────────── */
.cvx-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--cvx-font-serif, 'Marcellus', serif);
  font-weight: var(--cvx-weight-strong, 600);
  font-size: var(--cvx-text-sm, 0.9rem);
  letter-spacing: var(--cvx-tracking, 1px);
  color: var(--cvx-navy, #0D2438);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--cvx-transition, all 0.3s ease);
}
.cvx-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.cvx-link__icon {
  display: inline-flex;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.cvx-link:hover .cvx-link__icon { opacity: 1; }
