.cv-page {
  --cv-accent: #0f766e;
  --cv-accent-soft: #ccfbf1;
  --cv-border: #cbd5e1;
  --cv-muted: #64748b;
  --cv-text: #0f172a;
  color: var(--cv-text);
}

.cv-section {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 3rem;
  padding: 3.75rem 0;
  border-bottom: 1px solid var(--cv-border);
}

.cv-section-heading {
  align-self: start;
}

.cv-section-number {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--cv-accent);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.cv-section-heading h2 {
  margin: 0;
  color: var(--cv-text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.cv-timeline {
  position: relative;
}

.cv-timeline::before {
  position: absolute;
  top: 0.45rem;
  bottom: 0.5rem;
  left: 0.25rem;
  width: 1px;
  background: var(--cv-border);
  content: "";
}

.cv-entry {
  position: relative;
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1.75rem;
  padding: 0 0 2.25rem 2rem;
}

.cv-entry:last-child {
  padding-bottom: 0;
}

.cv-entry::before {
  position: absolute;
  top: 0.35rem;
  left: 0;
  width: 0.5625rem;
  height: 0.5625rem;
  border: 2px solid var(--cv-accent);
  border-radius: 50%;
  background: #fff;
  content: "";
}

.cv-date {
  margin: 0;
  color: var(--cv-muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.5;
}

.cv-entry-content h3 {
  margin: 0;
  color: var(--cv-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.cv-organization {
  margin: 0.25rem 0 0;
  color: var(--cv-accent);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.5;
}

.cv-description {
  max-width: 37rem;
  margin: 0.5rem 0 0;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.65;
}

.cv-description span {
  display: block;
}

.cv-description span + span {
  margin-top: 0.125rem;
}

.cv-description a {
  color: var(--cv-accent);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.cv-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2.5rem;
}

.cv-download-label,
.cv-download-note {
  margin: 0;
}

.cv-download-label {
  color: var(--cv-text);
  font-size: 0.9375rem;
  font-weight: 700;
}

.cv-download-note {
  margin-top: 0.25rem;
  color: var(--cv-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.cv-download-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  background: var(--cv-text);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.cv-download-link:hover {
  background: var(--cv-accent);
  transform: translateY(-1px);
}

.cv-download-link:focus-visible,
.cv-description a:focus-visible {
  outline: 3px solid var(--cv-accent-soft);
  outline-offset: 3px;
}

html.dark .cv-page {
  --cv-accent: #5eead4;
  --cv-accent-soft: #134e4a;
  --cv-border: #334155;
  --cv-muted: #94a3b8;
  --cv-text: #f8fafc;
}

html.dark .cv-description {
  color: #cbd5e1;
}

html.dark .cv-entry::before {
  background: #0f172a;
}

html.dark .cv-download-link {
  background: #f8fafc;
  color: #0f172a;
}

html.dark .cv-download-link:hover {
  background: var(--cv-accent);
}

@media (max-width: 760px) {
  .cv-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }

  .cv-section-heading {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
  }

  .cv-section-number {
    margin-bottom: 0;
  }

  .cv-entry {
    grid-template-columns: 1fr;
    gap: 0.375rem;
    padding-left: 1.75rem;
  }

  .cv-date {
    color: var(--cv-accent);
  }

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

  .cv-download-link {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cv-download-link {
    transition: none;
  }
}
