/* ── CV page — light olive palette ───────────────────────────────────── */

:root {
  --cv-bg: #fafafa;          /* page background */
  --cv-bg-card: #ffffff;     /* cards / role panels */
  --cv-heading: #626f47;     /* olive — headings */
  --cv-sage: #a4b465;        /* sage — accents (bullets, borders, hovers) */
  --cv-cta: #ffcf50;         /* yellow — call-to-action */

  --cv-text: #2d2f26;        /* near-black olive — body text */
  --cv-text-muted: #6f7360;  /* muted olive-grey — secondary text */
  --cv-text-dim: #8f927e;    /* dim — labels, dates, footer */

  --cv-link: #5a6640;        /* links */
  --cv-link-hover: #3f4a2a;  /* link hover */

  --cv-border: rgba(98,111,71,0.18);          /* soft olive border */
  --cv-card-shadow: 0 1px 3px rgba(98,111,71,0.08);
  --cv-heading-shadow: 0 2px 1px rgba(0,0,0,0.18);  /* slight, sharp, dark */
  --cv-cta-glow: 0 2px 14px rgba(255,207,80,0.55);

  --cv-max-width: 760px;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Libre Franklin', sans-serif;
}

.cv-page {
  background: var(--cv-bg);
  color: var(--cv-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.cv-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid var(--cv-border);
  max-width: var(--cv-max-width);
  margin: 0 auto;
}

.cv-wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--cv-text);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.cv-wordmark:hover {
  color: var(--cv-heading);
}

.cv-header-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cv-text-dim);
}

/* ── Main / container ─────────────────────────────────────────────────── */

.cv-main {
  padding: 2rem 1.5rem 4rem;
}

.cv-container {
  max-width: var(--cv-max-width);
  margin: 0 auto;
}

/* ── Intro ────────────────────────────────────────────────────────────── */

.cv-intro {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--cv-border);
  margin-bottom: 2.5rem;
}

.cv-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.01em;
  color: var(--cv-heading);
  text-shadow: var(--cv-heading-shadow);
  margin-bottom: 0.35rem;
}

.cv-role {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--cv-text-muted);
  margin-bottom: 1.1rem;
}

/* The intro role subtitle shares the .cv-role class with the experience cards —
   strip the card chrome from the intro instance only. */
.cv-intro .cv-role {
  background: transparent;
  border: none;
  box-shadow: none;
}

.cv-contact-line {
  font-size: 0.92rem;
  color: var(--cv-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.cv-contact-line a {
  color: var(--cv-link);
  text-decoration: none;
}

.cv-contact-line a:hover {
  color: var(--cv-link-hover);
  text-decoration: underline;
}

.cv-sep {
  color: var(--cv-text-dim);
  opacity: 0.6;
}

.cv-pdf-link {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.55rem 1.1rem;
  background: var(--cv-cta);
  color: #3a3d2a;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  box-shadow: var(--cv-cta-glow);
  transition: background 0.2s, box-shadow 0.2s;
}

.cv-pdf-link:hover {
  background: #ffd765;
  box-shadow: 0 4px 20px rgba(255,207,80,0.75);
}

/* ── Sections ─────────────────────────────────────────────────────────── */

.cv-section {
  margin-bottom: 3rem;
}

.cv-section-last {
  margin-bottom: 1rem;
}

.cv-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.cv-section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cv-heading);
  text-shadow: var(--cv-heading-shadow);
  margin-bottom: 1.5rem;
}

.cv-toggle-all {
  background: transparent;
  border: 1px solid var(--cv-border);
  color: var(--cv-text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.cv-toggle-all:hover {
  color: var(--cv-heading);
  border-color: var(--cv-sage);
  background: rgba(164,180,101,0.10);
}

/* ── Profile ──────────────────────────────────────────────────────────── */

.cv-profile {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--cv-text);
  max-width: 65ch;
}

.cv-profile strong {
  color: var(--cv-heading);
  font-weight: 700;
}

/* ── Experience ───────────────────────────────────────────────────────── */

.cv-experience-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cv-role {
  background: var(--cv-bg-card);
  border: 1px solid var(--cv-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--cv-card-shadow);
}

.cv-role-summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cv-role-summary::-webkit-details-marker {
  display: none;
}

.cv-role-summary:hover {
  background: rgba(164,180,101,0.10);
}

.cv-role-heading {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cv-role-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--cv-heading);
  text-shadow: var(--cv-heading-shadow);
}

.cv-role-company {
  font-size: 0.88rem;
  color: var(--cv-text-muted);
}

.cv-role-dates {
  font-size: 0.82rem;
  color: var(--cv-text-dim);
  font-weight: 500;
  white-space: nowrap;
}

.cv-role[open] .cv-role-summary {
  border-bottom: 1px solid var(--cv-border);
}

.cv-role-body {
  padding: 1rem 1.2rem 1.3rem;
}

.cv-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cv-bullet-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--cv-text);
}

.cv-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cv-sage);
}

.cv-bullet-list strong {
  color: var(--cv-heading);
  font-weight: 700;
}

.cv-tech-line {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--cv-text-dim);
  font-style: italic;
}

/* ── Skills ───────────────────────────────────────────────────────────── */

.cv-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem 2rem;
}

.cv-skill-group-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--cv-heading);
  text-shadow: var(--cv-heading-shadow);
  margin-bottom: 0.3rem;
}

.cv-skill-items {
  font-size: 0.88rem;
  color: var(--cv-text-muted);
  line-height: 1.6;
}

/* ── Talks / Education / Languages ───────────────────────────────────── */

.cv-talks-list,
.cv-edu-list,
.cv-lang-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cv-talk-title,
.cv-edu-degree,
.cv-lang-name {
  display: block;
  font-weight: 600;
  color: var(--cv-text);
  font-size: 0.95rem;
}

a.cv-talk-title {
  text-decoration: none;
  transition: color 0.2s;
}

a.cv-talk-title:hover {
  color: var(--cv-link-hover);
  text-decoration: underline;
}

.cv-talk-venue,
.cv-edu-school,
.cv-lang-level {
  display: block;
  font-size: 0.85rem;
  color: var(--cv-text-muted);
  margin-top: 0.1rem;
}

.cv-additional {
  font-size: 0.92rem;
  color: var(--cv-text-muted);
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.cv-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--cv-text-dim);
  background: transparent;
  border-top: 1px solid var(--cv-border);
}

/* ── Mobile ───────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .cv-contact-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .cv-sep {
    display: none;
  }

  .cv-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cv-role-summary {
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* ── Reduced motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
